Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Uploading Gen Journal Lines

(0) ShareShare
ReportReport
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,745 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans