Hi
I am trying to import Data in table 16549 Gen. Journal Narration using Dataport . Problem is if there are 2 lines for Document No it is showing only second record , may be it is overwriting .
Gen. Journal Narration - OnAfterImportRecord()
"Journal Template Name":='GENERAL';
"Journal Batch Name":='Test';
GJNLine.RESET;
GJNLine."Journal Template Name":='GENERAL';
GJNLine."Journal Batch Name":='Test';
GJNLine."Document No." := "Gen. Journal Narration"."Document No.";
IF GJNLine.FINDLAST THEN BEGIN
"Gen. Journal Narration"."Line No." := GJNLine."Line No." + 10000;
END ELSE BEGIN
"Gen. Journal Narration"."Line No." := 10000;
END;
*This post is locked for comments