SAP Knowledge Base Article - Public

3326508 - How to use parameter SalesPriceRetrieveUseCase with value SAP_DFLT in API Sales Price - Retrieve (A2X) - SAP S/4HANA Cloud

Symptom

You use SalesPriceRetrieveUseCase with the predelivered use case SAP_DFLT in API Sales Price - Retrieve (A2X). However, the request returns status code 200 with the following response:

Status: 200 
Body: 

{
    "@odata.context": "$metadata",
    "value": [
        {
            "name": "SalesPrice",
            "url": "SalesPrice"
        }
    ]
}

Environment

SAP S/4HANA Cloud

Resolution

  1. You can either avoid relying on the predelivered use case SAP_DFLT for parameter SalesPriceRetrieveUseCase, by using real business data for the payload instead.
  2. Or you can add the following parameters and corresponding values into the payload. As if SAP_DFLT is used, the above fields can be empty but they have to be a part of the request body.
    "SALESDOCUMENTTYPE": "",
    "SALESDOCUMENTITEMCATEGORY": "",
    "BILLINGDOCUMENTTYPE": ""

See Also

Keywords

KBA , SD-BF-PR-2CL , Pricing (Public Cloud) , SD-BIL-EXT-2CL , SD Billing Extensibility (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions