Skip to Content

API for maintaining Sales Contracts in S4 Hana Cloud

Hi

In our existing SAP ECC 6.0 system we are using the BAPI: BAPI_SALESDOCUMENT_CHANGE, BAPI_CUSTOMERCONTRACT_CHANGE andSD_SALESDOCUMENT_CREATE to update different data on our existing Sales Contracts.

But I'm not able to find a appropriate API in https://api.sap.com/

Does it not exist, or am searching with wrong terms?

Best regards

Carsten

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 09 at 04:01 PM

    Carsten, sorry, you are right.

    Check API SalesContract; below the data regarding this API (copied from API Discover):

    " You can use this service to integrate external applications with sales contract processing in SAP S/4HANA Cloud. In every API call, you can make use of the following operations:

    • You can retrieve sales contracts. Apply any of the filters provided or retrieve all existing data.
    • You can create sales contracts. Note that you must use “deep insert” requests (a header plus the following entities: header partner, header pricing element, item, item partner, and item pricing element). You cannot create entities without including any related entities.
    • For existing sales contracts, you can create new items. Note that you must use “deep insert” requests (with the following entities: item partner and item pricing element). You cannot create entities without including any related entities.
    • For existing sales contracts, you can update the header, header partner, header pricing element, item, item partner, and item pricing element.
    • For existing sales contracts, you can delete the header, header partner, header pricing element, item, item partner, and item pricing element. "

    Now will work. FM

    Add comment
    10|10000 characters needed characters exceeded

  • May 03 at 08:26 PM

    Carsten,

    please, check Process Sales Order API. Bellow a quickly brief that I copy and paste from the description,

    " You can use this service to integrate external applications with sales order processing in SAP S/4HANA Cloud. In every API call, you can make use of the following operations:

    • You can retrieve sales orders. Apply any of the filters provided or retrieve all existing data.
    • You can create sales orders. Note that you must use “deep insert” requests (a header plus the following entities: header partner, header pricing element, item, item partner, and item pricing element). You cannot create entities without including any related entities.
    • For existing sales orders, you can create new items. Note that you must use “deep insert” requests (with the following entities: item partner and item pricing element). You cannot create entities without including any related entities.
    • For existing sales orders, you can update the header, header partner, header pricing element, item, item partner, and item pricing element.
    • For existing sales orders, you can delete the header, header partner, header pricing element, item, item partner, and item pricing element."

    Please inform if it works,

    FM

    Add comment
    10|10000 characters needed characters exceeded