SAP Knowledge Base Article - Preview

3680348 - Item values are not copied from referenced document when create contract via API_SALES_CONTRACT_SRV though it works fine in T-Code VA41

Symptom

  • Create contract via API_SALES_CONTRACT_SRV, item values are not copied from referenced document. The payload is like:
    ==============================================
     "SoldToParty": "1000",
      "SalesContractType": "ZCQ",
      "SalesOrganization": "1000",
      "DistributionChannel": "10",
      "OrganizationDivision": "10",
      "ReferenceSDDocument": "1111", 
    ...
       "to_Item": [
          {
            "Material": "XX",
            "ProductionPlant": "1000",
            "RequestedQuantity": "1", 
    ...
     }], 
    ...
    ==============================================
  • Country-related data, such as tax codes and tax laws, is not populated in the contracts created via the API_SALES_CONTRACT_SRV.
  • Pricing data does not get copied from referenced document.
  • As comparation, manually creating contract with reference to the document using transaction VA41 works correctly.


Read more...

Environment

  • Sales And Distribution (SD)
  • SAP S/4HANA
  • SAP S/4HANA Cloud Private Edition

Product

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

Keywords

VBAP_KOPIEREN_PRUEFEN, /IWFND/GW_CLIENT , KBA , SD-SLS-API , APIs for Sales Document in S/4 Sales & Distribution , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.