‎2014 Aug 06 4:18 PM
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./
‎2014 Aug 07 12:48 PM
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.
‎2014 Aug 06 4:37 PM
‎2014 Aug 07 12:30 PM
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./
‎2014 Aug 07 12:48 PM
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.
‎2014 Aug 07 2:53 PM
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./
‎2014 Aug 08 4:55 PM
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).
‎2014 Aug 08 5:54 PM