Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

Adding new fields from Purchase Header to G/L Entries

Posted on by Microsoft Employee

This topic is discussed a lot where the solution most commonly is to add those new fields in Purch. Inv. Header.(122), Gen. Journal Line (81) and G/L Entry(17).Then, after transferring the lines to Gen Gournal Line, use the copyfromgenjnlline function to copy them to G/L Entry.

I guess that with the new version of NAV the code has changed and i cannot find that function in G/L Entry(17).

Is there another way to flow the fields from Purchase Header to G/L entries now?

Thank you in advance.

  • SharonMacomber Profile Picture
    SharonMacomber 10 on at
    RE: Adding new fields from Purchase Header to G/L Entries

    Amazon is the best place for such purchases. To devote more time to my hobby, I use life hacks on this service  edubirdie.com/turabian-citation-generator where students can use free turabian citation generator. If you want to take a leading position in the market and strengthen your good reputation, you should offer your customers to leave feedback on your site.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Adding new fields from Purchase Header to G/L Entries

    So, i found the solution.

    To flow the fields created in Purchase Header, do the following:

    1) Create the fields you need in tables (38),(81),(17)

    2)At function CopyFromPurchHeader (Table 81) add 'Field_Name := PurchHeader.Field_Name '

    3)At function CopyFromGenJnlLine (Table 17) add 'Field_Name := GenJnlLine.Field_Name '

    4) At function InsertICGenJnlLine (Codeunit 90) add 'Field_Name := PurchHeader.Field_Name '

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans