WITH recGenJournalLine DO BEGIN recGenJournalLine.INIT; VALIDATE("Journal Template Name", 'DIVERSEN'); VALIDATE("Journal Batch Name", 'WAARBORG'); VALIDATE("Document Type", "Document Type"::Payment); VALIDATE("Posting Date", WORKDATE); VALIDATE("Document No.", '1'); VALIDATE("Account Type", "Account Type"::"G/L Account"); VALIDATE("Account No.",'449000'); VALIDATE(Amount,60); VALIDATE("Bal. Account Type", "Bal. Account Type"::Customer); VALIDATE("Bal. Account No.",'10000'); recGenJournalLine.INSERT(TRUE); CODEUNIT.RUN(CODEUNIT::"Gen. Jnl.-Post Line",recGenJournalLine); END;
Comments
GenJnlPostLine.RunWithCheck(recGenJournalLine, TempJnlLineDim);
TempJnlLineDim contains all dimension values.
Actually, all I needed to do was to insert the Line Nos myself, zo that the DimensionMgt could refer to those.
stupid me ... :oops:
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog