cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_CREATEFROMDAT2 extensibility issue

SAPSupport
Employee
Employee

(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.


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

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?

CE6
Product and Topic Expert
Product and Topic Expert

Answers (0)