Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Uploading Gen Journal Lines

Posted on by 3,027

Hi

 Gen. Journal Line - OnAfterImportRecord()

"Journal Template Name":='GENERAL';
"Journal Batch Name":='TEST';
"Source Code":='GENJNL';
"Posting No. Series":='JV';
"Line No.":="LineNo."+1000;

Below is the Data. I want if 2 rows no is same then same Document No should be generated . For e.g 2&3 in below case. Is it possible or Document No generated is different for each row.

08.06.2017 Invoice 1 Vendor V000001
08.06.2017 Invoice 2 Vendor V000001
08.06.2017 Invoice 2 Vendor V000001
08.06.2017 Invoice 3 Vendor V000002
08.06.2017 Invoice 3 Vendor V000002
08.06.2017 Invoice 4 Vendor V000003

Thanks

*This post is locked for comments

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Uploading Gen Journal Lines

    Hi

     I am a newbie . How we can generate Document No

    Thanks

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,729 on at
    RE: Uploading Gen Journal Lines

    You can have different Document No. Store the Row no. OnAfterImport in a variable and then compare that value every time in OnBeforeInsert and if it matches use the previous document no. or else generate a new one. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans