on 09-13-2018 12:46 PM
Dear SAP Experts,
I'm trying to post Sales Orders to one of the C4C API.
I'm getting error while adding the TotalValues and ItemTotalValues in the request. The below are the API details.
Error:
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header/>
<soap-env:Body>
<n0:CustomerOrderBundleMaintainConfirmation_sync_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:LNP:/1SAI/TAE1B4D4D680A440D11C64C:804">
<Log>
<MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
<Item>
<TypeID>106(/AP_ESI_COMMON/)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>Creating data not possible; creation disabled</Note>
</Item>
<Item>
<TypeID>022(/CL_APCRM_ORDER_AGENT/)</TypeID>
<CategoryCode>SEI.FSI</CategoryCode>
<SeverityCode>3</SeverityCode>
<Note>Item total values modifications are possible only for view object.</Note>
</Item>
</Log>
</n0:CustomerOrderBundleMaintainConfirmation_sync_V1>
</soap-env:Body>
</soap-env:Envelope>
API Details.
Manage Sales Orders
CustomerOrderProcessingManageCustomerOrderIn
Link referred: https://help.sap.com/doc/8ed4581a228646178e4f8cc38b0cf951/1708/en-US/PSM_ISI_R_II_APCRM_MANAGE_CO_IN...
In case I remove the TotalValues and ItemTotalValues from the request it creates the order.
I've tried in many possible ways, please help me to fix this.
These are the details I want to add in my request:
<ItemTotalValues TotalValuesPricingSubtotalsCompleteTransmissionIndicator="true">>
<NetAmount currencyCode="USD">1000</NetAmount>>
<GrossAmount currencyCode="USD">200</GrossAmount>
<TaxAmount currencyCode="USD">20</TaxAmount>
</ItemTotalValues>
<TotalValues>
<NetAmount currencyCode="USD">186.0</NetAmount>
<TotalValuesPricingSubtotals actionCode="01">
<TypeCode listID="2">01</TypeCode>
<Amount currencyCode="USD">186.0</Amount>
</TotalValuesPricingSubtotals>
<GrossAmount currencyCode="USD">0.0</GrossAmount>
<TaxAmount currencyCode="USD">0.0</TaxAmount>
</TotalValues>
Regards,
Vidhya Nizamkar
Hi Vidhya,
Total Values are calculated internally by C4C - thats why the request is failed when you send the values. You can observe when you create a sales order via webservice without these values but with all item level price conditions - then the total values should be automatically filled by C4C. Please update me if this is not working?
Regards,
Manideep Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manideep,
Thanks for the quick answer.
I've been trying to update item price values but i get response saying item price values are not modifiable. Any suggestions on this?
Can you help me with the sample XML and this includes the some type codes which am not sure. One more thing to add on, what is the difference between external and internal customer orders. Which field will differentiate it. I'm trying to update the closed sales order in C4C.
Any links you suggest?
Regards,
Vidhya Nizamkar
Hi Vidhya,
Total Values are calculated internally by C4C - thats why the request is failed when you send the values. You can observe when you create a sales order via webservice without these values but with all item level price conditions - then the total values should be automatically filled by C4C. Please update me if this is not working?
Regards,
Manideep Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.