cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 not calling BADI CVI_DEFAULT_VALUES

0 Kudos
646

Dear Community.

We have a mass upload report to create Business Partners and using the BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 to create the central data for the business parnters and add the roles to it. Normally when adding a customer role we add the role to the BAPI and retrieve the created customer number via class cvi_ka_bp_customer and later add all the related customer data to it.

We are facing an issue when we create a customer which has a obligatory field(BEGRU) in the customer transaction XD01. The BAPI cannot create a customer number and therefore we can not add the customer data to it.

When creating the business partner via the transaction BP and add the customer role, we developed the BADI CVI_DEFAULT_VALUES which is filling this obligatory field with a default value and therefore the transaction can create a customer number.

Why is the BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 not calling the BADI? Is this a bug? I see the BAPI is calling the BADI CVI_CUSTOM_MAPPER to map the fields from the central data to the customer data. Do I need to add the default value there too?

Thanks for any help and advice.

BR,

Andreas

Accepted Solutions (0)

Answers (0)