cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add discount percentage via SoapUI request to the C4C Discount List?

Former Member
0 Likes
340

I would like to create a Discount List, but the web service ManageSalesPriceList doesn't work correctly.
To create a Discount List in Cloud for Customer I used ManageSalesPriceListIn inbound service

(link:https://help.sap.com/doc/8ed4581a228646178e4f8cc38b0cf951/1808/en-US/PSM_ISI_R_II_PRC_MANAGE_SPL_IN....).

In the definition it is written that it’s suitable for sales price lists as well as for the sales discount lists.
Here is an example of XML request in the SoapUI development environment:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

<soapenv:Header/>

<soapenv:Body>

<glob:SalesPriceListBundleMaintainRequest_sync>

<BasicMessageHeader>

</BasicMessageHeader>

<SalesPriceList ActionCode="01">

<TypeCode>7PL2</TypeCode>

<ID>Discount12</ID>

<Description languageCode="EN">Discount for client 1000004</Description>

<StartDate>2020-09-01</StartDate>

<EndDate>2020-12-31</EndDate>

<CurrencyCode>UAH</CurrencyCode>

<AccountID>1000004</AccountID>

<PriceSpecification>

<TypeCode>7PR1</TypeCode>

<ProductID>CP-10</ProductID>

<Percent>-5.0</Percent>

<ProductTypeCode>1</ProductTypeCode>

<ReleaseStatusCode>1</ReleaseStatusCode>

</PriceSpecification>

</SalesPriceList>

</glob:SalesPriceListBundleMaintainRequest_sync>

</soapenv:Body>

</soapenv:Envelope>


If we look at this Discount List in C4C we’ll see 0% discount which makes no sense.

Furthermore, if we see the price lists for this material we’ll notice that 5% discount was mistakenly reflected as 5 UAH price.


The Query also works incorrectly with sales discount list.
I used QuerySalesPriceListIn inbound service to query discount lists

(link:https://help.sap.com/doc/8ed4581a228646178e4f8cc38b0cf951/1808/en-US/PSM_ISI_R_II_QUERY_SALES_PRICE_... ).

Here is an example of XML request in the SoapUI development environment to find the Discount List by ID:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

<soapenv:Header/>

<soapenv:Body>

<glob:SalesPriceListFindByTypeCodeAndPropertyIDAndPropertyValueQuery_sync>

<SalesPriceList>

<ID>Discount12</ID>

</SalesPriceList>

</glob:SalesPriceListFindByTypeCodeAndPropertyIDAndPropertyValueQuery_sync>

</soapenv:Body>

</soapenv:Envelope>


In response I receive: “Query did not return any records for the given selection parameters”.


Also search by type code 7PL2 give me the same result.


Could you please tell me what needs to be changed in my request to receive -5% discount to the product?

Does it exist another valid web service to manage and query discount lists?


Thank you in advance for your response.



Yours faithfully,

Anna Puka

Accepted Solutions (0)

Answers (0)