Hi
In the below code it gives above error
"Journal Template Name":='GENERAL';
"Journal Batch Name":='test';
"Posting No. Series":='JV';
"Line No.":=GetLineNo;
GenJnlLine.RESET;
GenJnlLine.SETRANGE("Journal Template Name",'GENERAL');
GenJnlLine.SETRANGE("Journal Batch Name",'test');
GenJnlLine.SETRANGE("External Document No.", "External Document No.");
IF NOT GenJnlLine.FINDFIRST THEN
"Document No.":= NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)
ELSE
"Document No.":= GenJnlLine."Document No.";
Thanks
*This post is locked for comments
1st paramenter is no. series code (using this no. series only next no will be generated)
2nd parameter Posting date, this you have multiple no. series with different start date then this posting date is used to get right no. series by start date.
3rd parameter is update the no. series or not. it should be yes..
Hi
Can u pls guide how the below line works
NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)
Thanks
you need to pass right value in first parameter like from No. series code to use.
please dont expect code changes.. expect only suggestions..
Hi
What changes should i do in my code . Secondly How the below line works
"Document No.":= NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)
Thanks
"Document No.":= NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)
I guess GenJnlLine."Posting No. Series" is blank
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156