Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Insert No. Series Number when "Calculate Plan" Req. worksheet. In NAV 2018

Posted on by 240

Hi, All

I insert the Requisition No. Field[ie. Number Sequence Field] In Req. Worksheet Page [291]. If I insert record manually in Req worksheet Page in Auto increment the Requisition No. , But If I Click Button "Calculate Plan" on Req. Worksheet Page then it  Auto Calculate Plan For Item and Insert the Record. But I want to insert the Requisition No. while Calculate Plan. Like

1018.8.PNG

I debug the Code, But I didn't find when it inserts the Data on Page [291].

Thanks.

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Insert No. Series Number when "Calculate Plan" Req. worksheet. In NAV 2018

    Subscribe to the OnInsert Event for the Requisition Line table and add your code over there.

  • NeoMatrix Profile Picture
    NeoMatrix 240 on at
    RE: Insert No. Series Number when "Calculate Plan" Req. worksheet. In NAV 2018

    I have found that Codeunit that Calculate the plan for the item and Insert Record into Req. worksheet [Page 291] .ie. CU 99000854

    So. In that Codeunit there is a function "LOCAL MaintainPlanningLine()". In that function, I have written code as below

          "Requisition No" := NoSeries.GetNextNo('REQ',WORKDATE,FALSE); // For added no series Number. 

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans