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: 
Read only

usage of BAPI BAPI_CUSTOMER_CREATEFROMDATA1

MartinMaruskin
Active Contributor
0 Likes
2,419

Hi all,

I'm thinking to use BAPI BAPI_CUSTOMER_CREATEFROMDATA1 as a call to ECC from 3rd party system.

I found SAP Note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D

which says that the BAPI and other FMs in function group V02D is supposed to be used "exclusively for use in the SAP Online Store and the SAP Internet Sales R/3 Edition"

So my question is if someone used this BAPI in Z* programs in SAP system system.

If this BAPI is not used can you suggest alternative BAPI for Customer master data creation?

Thanks.

m./

1 ACCEPTED SOLUTION
Read only

UweFetzer_se38
Active Contributor
0 Likes
2,122

Hi Martin,

I think (I know, everyone is kicking me now) in this case you can ignore the SAP note and use the BAPI, it works and I never had any data loss.

6 REPLIES 6
Read only

Former Member
0 Likes
2,122

Try to use BAPI_BUPA_FS_CREATE_FROM_DATA2

Read only

0 Likes
2,122

Hi Ankit,

I tried BAPI you suggested. It is working. BP I created I can see in Tcode BP. However I can't see ti in Tcode XD03 - Customers.

What I really need is to create Customer - means data that is visible in XD03.

I evaluated also BAPI_CUSTOMER_CREATEFROMDATA1. The only problem with this BAPI is that is has mandatory input structure  pi_copyreference where existing customer must be specified. At the moment I cannot avoid this.

Any other BAPI for Customers (XD03) creation?

Thanks,

m./

Read only

UweFetzer_se38
Active Contributor
0 Likes
2,123

Hi Martin,

I think (I know, everyone is kicking me now) in this case you can ignore the SAP note and use the BAPI, it works and I never had any data loss.

Read only

0 Likes
2,122

Thanks Uwe, I'll use it for sure 🙂

Just additional query: BAPI_CUSTOMER_CREATEFROMDATA1 has mandatory input structure  pi_copyreference where existing Cust No/SOrg/DistrChan/Division needs to be provided... However my program going to create new customer from the scratch I do not have this info. So is there any BAPI I could query cust number e.g. by name (like BAPI BAPI_CUSTOMER_FIND does) but which would provide me info on Org/DistrChan/Division as well?

I know I can get this info by simple query to KNVV table but my development is outside SAP (in JAVA) and I want to avoid such a calls to lookup directly tables.

Thanks

m./

Read only

0 Likes
2,122

Hi Martin,

from the function module documentation:


- Fields of import parameter PI_COPYREFERENCE:

R/3 reference customer, sales area data (sales organization,

distribution channel, division)

Note on reference customer:

The reference customer should be created bearing in mind that its

sole purpose is to provide data for customers that are created via

the BAPI.

That is, the reference customer is not an operative customer in the

business sense. As a result, the customer should be created with a

separate account group with internal number assignment. In addition,

the reference customer must exist in the organizational data that is

transferred to the BAPI.

If company-code-independent data is transferred to the BAPI, the

reference customer must be created for a company code.

So, if you have created a reference customer already, you should know the organizational data (Org/DistrChan/Division and Company code).

Read only

0 Likes
2,122

OK thanks, have a nice WE 🙂