Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

How to create a Purchase order from Sales order using eConnect XML

Posted on by 65

We are trying to create a process to automate the creation of PO from a Sales Order.

We are trying to use taSopToPopLink but unsuccessful so far.

The follow eConnect call comes back with no error, any guidance will be helpful.

 

<eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes">
<taSopToPopLink>
  <SOPTYPE>2</SOPTYPE>
  <SOPNUMBE>000002</SOPNUMBE>
</taSopToPopLink>
</eConnect>

Thanks

RG

*This post is locked for comments

  • Verified answer
    Rajeev Gupta Profile Picture
    Rajeev Gupta 65 on at
    Re: How to create a Purchase order from Sales order using eConnect XML

    Finally found the issue, one step forward

    taSOPtoPOPLink actually does create the PO documents. The issue that I found was that it was expecting <SOPtoPOPTransactionType> element in it. The following did work and I can see the PO created and POP10100 and POP10110 tables.

    It should be as -

    <eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes">

    <SOPtoPOPTransactionType>

    <taSopToPopLink>

     <SOPTYPE>2</SOPTYPE>

     <SOPNUMBE>000002</SOPNUMBE>

    </taSopToPopLink>

    </SOPtoPOPTransactionType>

    </eConnect>

    Thanks all for looking at it.

    Rajeev Gupta

    www.mydbsync.com

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: How to create a Purchase order from Sales order using eConnect XML

    The Schema you are using creats a link between an existing POP document and an existing SOP document. It creates a commitment whereby a POP document is committed to a SOP document.

    For this schema to run properly, both documents have to exist already.

    This schema will not auto create a POP document from a SOP document.

    As far as I know there is no Schema to achieve this. You could however just run the POP create schema off the same data that you use to create the SOP document, and then use the schema above to link them.

    (note that the schema to remove this link is situated in the POP schemas).

    Ian.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans