on 2024 May 22 11:06 AM
(Please set the tag as "SAP S/4HANA Cloud for Sales" afterwards. That tag was not available at the time of creation, for some unknown reasons...)
Hi experts,
We need to extend the existing and already implemented standard interface between SAP Cloud for Customer and SAP S/4HANA Cloud.
We refer in particular to the creation of an S4 sales order as a C4C quote follow-up document: a custom field has been defined in context Sales Document Header and needs to be mapped in the SCPI flow according to a specific logic.
Unfortunately, we are unable to find the custom field in the service metadata of BAPI_SALESORDER_CREATEFROMDAT2. We know how the IDoc interface can be extended in S4 OP (KBA 143580) but we are unable to find any documentation for S4HC.
Can you please verify our issue?
Thank you and regards.
Request clarification before answering.
BAPI:
It is possible to use custom fields in the BAPI BAPI_SALESORDER_CREATEFROMDAT2. That is the reason why it is also shown in the "Custom Fields" app. Custom fields can only be added using the EXTENSIONIN structure of type BAPIPAREX of the BAPI. For that, custom fields need to be converted into some special format using the helper methods CL_CFD_BAPI_MAPPING -> map_to_bapiparex_single() for header and CL_CFD_BAPI_MAPPING -> map_to_bapiparex_multi() for items.
IDocs:
We have to say key user extensibility is not supported for IDocs.
Question:
We're wondering why you are using BAPI and IDOC instead of OData V2 / V4 or SOAP Services, which are absolutely recommend in Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also find some example report here:
User | Count |
---|---|
17 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.