Clear Lines after posting in Item Journal

Hi to all ,

I am Learning the navision please help me in this…After posting a Item journal (it is a customised form), last posted doc no and date are still remained in the lines. So how to clear those fields? please help me …

Thanks in advance…

Awaiting reply

In CodeUnit 23,

Comment the below code

IF (ItemJnlBatch.“No. Series” = ‘’) AND NOT ItemJnlLine3.FINDLAST AND
NOT (ItemJnlLine2.“Entry Type” IN [ItemJnlLine2.“Entry Type”::Consumption,ItemJnlLine2.“Entry Type”::Output])
THEN BEGIN
ItemJnlLine3.INIT;
ItemJnlLine3.“Journal Template Name” := “Journal Template Name”;
ItemJnlLine3.“Journal Batch Name” := “Journal Batch Name”;
ItemJnlLine3.“Line No.” := 10000;
ItemJnlLine3.INSERT;
ItemJnlLine3.SetUpNewLine(ItemJnlLine2);
ItemJnlLine3.MODIFY;
END;

Thanks

but can we comment standard code?

as per your requirement, you have to…

welcome…

Please Don’t forget to VERIFY the post(s) that solved your problem.

Hi

Check the “SetupNewLine” function in the table 83(Item Journal Line)

Thanks

Jerome Marshal. J

ya thanks mars its solved