You would like to understand how ReleaseStatusCode is determined when you query for a Price List/ Discount List using webservice QuerySalesPriceListIn.
SAP Business Bydesign
Reproducing the Issue
- Execute the QuerySalesPriceListIn
- You see that for the Price List XXX and Price List YYY where the header status is Partially Released in the system, in the XML response the ReleaseStatusCode is set as 2(Partially released) for Price List XXX and ReleaseStatusCode is set as 3 (Released) for Price List YYY.(XXX and YYY are the names of Price Lists in the system
- You expect the ReleaseStatusCode is set as 2(Partially released) for both the Price Lists because the header status is Partially Released for both in the system
ReleaseStatusCode indicates whether the price list has been released or not and is relevant for price calculation.
In case of Price List XXX, the Price List was initially released and then later changes were made at the Item level and the price list was not released again, for example changing the List price from 10 EUR to 20 EUR or changing the discount percentage from -2% to -3%, this will change the release status of the item and the header to Partially released. In such cases the ReleaseStatusCode is set as 2(Partially released).
In case of Price List YYY, the Price List was initially released and then new items were added without making changes to existing items. If you check the Price List , you will see there are few items which are released and few items which are not released or when you add a new item, save the price list and then delete the newly added item without releasing, the status of the Price List remains Partially Released at the header level. In such cases the ReleaseStatusCode is set as 3(Released).
Additionaly, you can check PriceSpecificationListReleaseStatusCode which indicates whether the items of a price list have been released.
This is system Behavior.
QuerySalesPriceListIn; Releasestatuscode; , KBA , querysalespricelistin , releasestatuscode , webservice , AP-PMD , Price Master Data Management , Problem