Notifications
Announcements
No record found.
Hi,
I'm having a bit of trouble. When we are creating Intercompany PO and SO the SO being created have 2 sites (3PL & SPCI) instead of just one of those.
I already checked my code and I am sending the correct site and warehouse when creating the SO/PO. Where do you think the problem lies?
Hoping you could help us, thank you!
Hi Shakeys,
I would suggest using the debugger and check where the site and warehouse will be different. Maybe there is a setting on the default order settings with a restriction on site and warehouse?
You can also share your code using 'Use rich formatting > Insert > Code'. Then we might be able to check if the code for setting the site and warehouse is placed too early.
Hi Andre,
I already checked the customer sales order defaults of the customer and the purchase order defaults of the vendor and both have no default site nor warehouses set.
As for the material order default settings, we disregarded the idea that the issue lies there as one material is okay in other orders and not in the others.
Here's the part of the code where we generate the Intercompany PO/SO
The part for adding PO line is here
Did you already use the debugger to find the culprit? I'm not able to verify the behavior of the coding you shared. E.g. I don't know if the ownershot parameter has the correct value, if the header is version1, etc.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader