web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Intercompany Sales Order have 2 Different Sites and Warehouses instead of 1

(0) ShareShare
ReportReport
Posted on by 5

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?

pastedimage1666672918807v1.png

Hoping you could help us, thank you!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    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.

  • Shakeys SPCI Profile Picture
    5 on at

    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

    pastedimage1666768778720v1.png

    The part for adding PO line is here

    pastedimage1666768832323v2.png

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Shakeys,

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans