Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CUSTOMER_CREATEFROMDATA1 doesn't hit user exit for XD01/XD02?

Former Member
0 Kudos
729

Hi I put a standard user exit in the enhancement SAPMF02D for the transaction XD01/XD02. It works perfectly via the transactions. However, if we use the BAPI_CUSTOMER_CREATEFROMDATA1 it doesn't hit the user-exit at all. Is this a bug or is there a different user-exit I should be using?

Thanks,

Tamara

3 REPLIES 3

JL23
Active Contributor
277

"there is a danger that you will lose data"

Please read OSS note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D

As this BAPI is for online store customers only it has its own exit EXIT_SAPLWWCC1_001

Former Member
0 Kudos
277

I appreciate your time and response Jurgen. I took a look at this and the user-exit EXIT_SAPLWWCC1_001 won't work because it only has the fields that are in the BAPI. We have a user-exit SAPMF02D that updates the field KNA1-COUNC based on the district. The field COUNC isn't in the BAPI. We have to use this BAPI because we are using it as part of our internet sales and customers are created from the portal.

RaymondGiuseppi
Active Contributor
277

Neither the BAPI_FM CUSTOMER_CREATEFROMDATA1/SD_CUSTOMER_MAINTAIN_ALL (as already written by jrgen.lins.) nor the class API CMD_EI_API will execute this customer-exit check.

The FM are restricted, so don't use if not

" SAP Online Store and the SAP Internet Sales R/3 Edition

You could use the class API CMD_EI_API with the following restriction:

" It is possible to use this class to development your own maintenance of customer master data but the custom checks should be re-developed

So in this case, look also at Enhancement Spot CUSTOMER_EXTENSION.

Or go back to BDC.