Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Split production order using code x++

(1) ShareShare
ReportReport
Posted on by 8
Hi,
 
I want to split the production order using X++ (from code) .
And during splitting, I want the split quantity to be coming from the purchase order marked against the original production order.
 
Please help.
  • arai01 Profile Picture
    arai01 8 on at
    Split production order using code x++
    Hi Andre,
     
    I have a production order. In the BOM of the production order, I have two lines- one for raw material and other for service item. The service item line has a purchase order  marked (linked ) to it.
     
    Now, when I split this production order, a new production order is created which again has 2 BOM lines as the original production order. But in the service item BOM line of the new production order, a new purchase order is created and linked to it as per standard functionality. My requirement is that new purchase order should not be created and the purchase order marked against the original production order service line should be marked again the new production order service line.
     
    If the original production order service line prodbom.inventrefid = 00575, then the new production order service lineprodbom.inventrefid should also be equal to 00575 and not new purchase order.
     
    Thanks.
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,440 Super User 2024 Season 2 on at
    Split production order using code x++
    Hi Arai01,
     
    Can you please tell more about the requirement and what kind of help you exactly need? How do you mark a purchase order against a production order? Or is the PO linked to a BOM line?
     
    What attempts have you made yourself so far? Did you start with X++ coding? If so, do you get errors (build or runtime)? Please elaborate what help you need.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans