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 :
Microsoft Dynamics AX (Archived)

Need Sample XML for ASN - One Parent License plate with multiple license plates, each with different SKUs

(0) ShareShare
ReportReport
Posted on by 265

Hello,

I am having trouble determining the best way to build a Packing structure so that my client can accomplish the following:

Client has Purchase Orders with many lines (sometimes hundreds) .

Client sends XML and receives ASN XML.

The data must come back in a way that a Parent License Plate is created. There must be multiple license plates nested underneath the parent license plate. Based on my knowledge of the WHSUOMStructure table, each Shipment, LicensePlateD, and module ID combination must be unique. Each parentLicenseID and module ID must be unique.

How can I build the XML file so that it is a nested packing structure WHSPackUOMStructure? I cannot find a true example online, and would appreciate some assistance on this.

I also believe once we accomplish this we can receive using the parentLicense plate, and this will automatically register the nested items. This is standard, correct?

Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Isha Profile Picture
    265 on at

    Here is the last sample that I attempted  

    <ns2:ShipmentId>034225529</ns2:ShipmentId>

             <ns2:WHSUOMStructure class="entity">

               <ns2:ItemId>1234567</ns2:ItemId>

               <ns2:LicensePlateId>034508</ns2:LicensePlateId>

    <ns2:LicensePlateParent>ABC02</ns2:LicensePlateParent>

               <ns2:Qty>72.000</ns2:Qty>

               <ns2:UOMItem>CA</ns2:UOMItem>

               <ns2:WHSASNItem class="entity">

                            <ns2:ItemId>7891011</ns2:ItemId>

                             <ns2:PurchId>123</ns2:PurchId>

                             <ns2:Qty>72.000</ns2:Qty>

                             <ns2:UOM>CA</ns2:UOM>

                             <ns2:InventDim class="entity"/>

                             <ns2:WHSASNProductionBatch>

                                           <ns2:ProductionCode>XX33333HJ</ns2:ProductionCode>

                                           <ns2:BestBy>04212018</ns2:BestBy>

                                           <ns2:Quantity>48</ns2:Quantity>

                             </ns2:WHSASNProductionBatch>

                             <ns2:WHSASNProductionBatch>

                                           <ns2:ProductionCode>WWW231</ns2:ProductionCode>

                                           <ns2:BestBy>05012017</ns2:BestBy>

                                           <ns2:Quantity>24</ns2:Quantity>

                             </ns2:WHSASNProductionBatch>

               </ns2:WHSASNItem>

             </ns2:WHSUOMStructure>

             <ns2:WHSUOMStructure class="entity">

                           <ns2:ItemId>034000002412</ns2:ItemId>

                           <ns2:LicensePlateId>99</ns2:LicensePlateId>

                   <ns2:LICENSEPLATEPARENT>ABC02</ns2:LICENSEPLATEPARENT>

                            <ns2:Qty>30.000</ns2:Qty>

                           <ns2:UOMItem>CA</ns2:UOMItem>

                           <ns2:WHSASNItem class="entity">

                                         <ns2:ItemId>1842632</ns2:ItemId>

                                         <ns2:PurchId>123</ns2:PurchId>

                                         <ns2:Qty>30.000</ns2:Qty>

                                         <ns2:UOM>CA</ns2:UOM>

                                         <ns2:InventDim class="entity"/>

                           </ns2:WHSASNItem>

             </ns2:WHSUOMStructure>

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans