Develop > Controller layer > Integrate with back-end systems and external applications > Back-end integration legacy messages > Order Create message


Outbound message extension for order create messages

The Report_NC_PurchaserOrder message includes the UserData XML element, which contains the UserDataField element. You can customize the UserData element to pass extra information not included in the Report_NC_PurchaserOrder outbound message by extending the SendXMLOrderMsg command and implementing either the getHeaderExtensionRecords() method or the getItemExtensionRecords()method, depending on whether to add the information at the header or item level. By default, both getHeaderExtensionRecords() and getItemExtensionRecords() methods return a null String value. Once implemented, both methods should return a String object that contains a series of UserDataField elements as follows:

<UserDataField name="field_name">field_value</UserDataField>     . 
    UserDataField repeated
loop 
    .
<UserDataField name="field_name">field_value</UserDataField>

The following table outlines the methods called for the XML elements of the Report_NC_PurchaseOrder message:

Message XML Element Method Called
Report_NC_PurchaserOrder Report_PO_Header getHeaderExtensionRecords()
Report_NC_PurchaserOrder Report_PO_Item getItemExtensionRecords()

The Order Create message includes the USRLST record, which contains the DATUSR_DATA data segment. DATUSR allows you to add optional fields to a message. You can customize the DATUSR records to pass extra information not included in the Order Create outbound message by extending the SendWCSOrderMsg command and implementing either the getHeaderExtensionRecords() method or the getItemExtensionRecords()method, depending on whether you want to add the information at the header or item level. By default, both getHeaderExtensionRecords() and getItemExtensionRecords() methods return a null String value. Once implemented, both methods should return a String object that contains a series of DATUSR records...

<DATUSR>DATUSR_DATA</DATUSR>         :         : DATUSR repeated loop
        :
<DATUSR> DATUSR_DATA</DATUSR>

The following table outlines the methods called for the sections of the Order Create message:

Message USRLST Section Method Called
Order Create <HEADER> getHeaderExtensionRecords()
Order Create <ITMDAT> getItemExtensionRecords()


Related tasks

Create an outbound message

Related reference

Back-end integration legacy messages


+

Search Tips   |   Advanced Search