Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Wrong result in code unit 5406

Posted on by 4,548

In this code i want to take due date from release production order then put it in output journal in place of posting date  to come automatic.

No need to write it by hand may be forget so that  i make some customization but no result .

I go to code unit 5406 I defined record variable in global variables as ReleaseProduction and due_date as data type date then write due_date:=ReleasedProdOrder."due date";

this line in above

production line. reset

then  i write in function insertoutputjniline i added like this

ItemJnlLine.VALIDATE("Posting Date",due_date);

after statement

ItemJnlLine.VALIDATE("Prod. Order Line No.",ProdOrderLineNo);

when i select production order no in output journal posting date also come as date today(work date) no changes and when i explode routing posting date become empty what is the problem and how i solve

What i need is due date in release production order transfere automatic to posting date in output journal can any one help me if possible

thanks

*This post is locked for comments

  • ahmed barbary Profile Picture
    ahmed barbary 4,548 on at
    RE: Wrong result in code unit 5406

    Hi guys it solved by add

    productionline.find (+)

    then

    due_date=productionline."due date";

    as

    due date is global variable as date type

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans