Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

C4C WebService A2X "Recent Orders"

Hi Experts,

I am using the webservice:

Manage Recent Order Data

ManageExternalAggregatedCustomerSalesOrderViewIn

In the helpsap there is not documentation, to test the web service Inbound Service Interface (public)


but I managed to send data with the following XML:

<glob:ExternalAggregatedCustomerSalesOrderViewBundleMaintainRequest_Sync>

         <BasicMessageHeader>

            <ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">200000346</ID>

            <UUID schemeID="?" schemeAgencyID="?">02DC6479-32AC-1ED5-92EC-A8F90D684732</UUID>

            <ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ReferenceID>

            <ReferenceUUID schemeID="?" schemeAgencyID="?"></ReferenceUUID>

         </BasicMessageHeader>

         <ExternalAggregatedCustomerSalesOrderView actionCode="01" SalesOrderHeaderListCompleteTransmissionIndicator="false">

            <ObjectNodeSenderTechnicalID>200000346</ObjectNodeSenderTechnicalID>

            <ChangeStateID>20150825201545.3834650</ChangeStateID>

            <OpenSalesOrdersCountValue>1</OpenSalesOrdersCountValue>

            <OpenOrdersNetAmount currencyCode="USD">15.0</OpenOrdersNetAmount>

            <SalesOrderHDR actionCode="01">

               <ObjectNodeSenderTechnicalID>200000346</ObjectNodeSenderTechnicalID>

               <SalesOrderID>200000346</SalesOrderID>

               <SalesOrderLifeCycleStatusCode>1</SalesOrderLifeCycleStatusCode>

               <DeliveryStatusCode>1</DeliveryStatusCode>

               <NetAmount currencyCode="USD">15.00</NetAmount>

               <Date>2014-08-01</Date>

               <InvBlockingStatusCode>1</InvBlockingStatusCode>

               <DelivBlockingStatusCode>1</DelivBlockingStatusCode>

            </SalesOrderHDR>

          <AccountUUID schemeID="?" schemeAgencyID="?">00163e0c-ce07-1ee5-8384-890809f87389</AccountUUID>           

         </ExternalAggregatedCustomerSalesOrderView>

      </glob:ExternalAggregatedCustomerSalesOrderViewBundleMaintainRequest_Sync>

And the item was created in "Recent Orders" in C4C:


Now I want to update the status that item, but I have tried in various ways to send parameters and do not succeed.

thankful any help.

John

Former Member
Former Member replied

Hi John,

ActionCode 04 is used for update

You could use the below sample payload for update scenario:

<SalesOrderHDR actionCode="04"> : To update a specific sales order, with ID 111 (sample)

<AccountUUID>12345678-90AB-CDEF-0123-456789ABCDEF</AccountUUID> : This is the key, system will look for any information sent earlier for this account and thus will be able to pinpoint which data needs to be changed.

<n0:ExternalAggregatedCustomerSalesOrderViewBundleMaintainRequest_Sync xmlns:n0= "http://sap.com/xi/SAPGlobal20/Global">
   <BasicMessageHeader>
    </BasicMessageHeader>
  <ExternalAggregatedCustomerSalesOrderView actionCode="04"  SalesOrderHeaderListCompleteTransmissionIndicator="false">
    <ObjectNodeSenderTechnicalID></ObjectNodeSenderTechnicalID>
    <ChangeStateID></ChangeStateID>
    <OpenSalesOrdersCountValue>16 </OpenSalesOrdersCountValue>
   <OpenOrdersNetAmount currencyCode="USD">18</OpenOrdersNetAmount>
   <SalesOrderHDR actionCode="04">
     <ObjectNodeSenderTechnicalID></ObjectNodeSenderTechnicalID>
     <SalesOrderID>111 </SalesOrderID>
     <SalesOrderLifeCycleStatusCode>1 </SalesOrderLifeCycleStatusCode>
     <DeliveryStatusCode>2 </DeliveryStatusCode>
    <NetAmount currencyCode="USD">25</NetAmount>
     <Date></Date>
     <InvBlockingStatusCode>1 </InvBlockingStatusCode>
     <DelivBlockingStatusCode>1 </DelivBlockingStatusCode>
    </SalesOrderHDR>
    <AccountUUID>12345678-90AB-CDEF-0123-456789ABCDEF </AccountUUID>
   </ExternalAggregatedCustomerSalesOrderView>

</n0:ExternalAggregatedCustomerSalesOrderViewBundleMaintainRequest_Sync>

Regards

Sushant

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question