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 for Customer Creation

Former Member
0 Kudos
2,943

hi

which bapi is to use for customer cretaion in SAP R/3, i have used BAPI_CUSTOMER_CREATEDATA1 but it requores the ref. customer.

the problem is that there cannot be a single ref. customer which can act as a template for all the new customers which can be made using the above bapi. help me in creating the customer using BAPI??

abhishek suppal

8 REPLIES 8

Former Member
0 Kudos
460

HI,

just use below function module

BAPI_CUSTOMER_CREATE

Please reward me points if you find it is useful

Thanks

Ramesh

0 Kudos
460

hi ramesh

this bapi doen't have any import parameters, it just takes u to the txn XD01, my requirement is not this i want to call the BAPI thru external source.

abhishek suppal

Former Member
0 Kudos
460

Hi,

try with the following

BAPI_CUSTOMER_CREATEFROMDATA or you see following business object KNA1 through SWo1 transaction.

Thanks

Ramesh

Former Member
0 Kudos
460

If there is no suitable BAPI, you can consider using function module ABAP4_CALL_TRANSACTION.

This is a remote enabled fm that can call any transaction in SAP. The input data is passed in tables parameter Using_Tab. This tables parameter has a structure like BDCDATA.

May be you can use this fm first with minimum data to create the customer and then use change BAPI to create additional data for the created customer.

Former Member
0 Kudos
460

BAPI_CUSTOMER_CREATEDATA1 or BAPI_CUSTOMER_CREATEDATA is only for use with SAP Online Store or SAP Internet Sales . If you have access to OSS please read note 390045. You should try ALE/ batch input .

If you still want to use BAPI , just read the FM documentation and you will see what data is copied from reference customer , so you can create one reference customer for each account group and use it while calling the BAPI.

Cheers.

andreas_mann3
Active Contributor
0 Kudos
460

Hi,

or use report rfbide00 (unfortunately not complete master data!)

Andreas

Former Member
0 Kudos
460

Hi,

Can you try the BAPI funciton module BAPI_CUSTOMER_CREATEFROMDATA1 for creating customer.

If you need know how to fill the BAPI structure, please check the where used list and use this.

Thanks,

Lakshmi

nayan_sahu
Explorer
0 Kudos
460

Hi,

Abhishek

Please Use this bapi

SD_CUSTOMER_MAINTAIN_ALL

I don't think it will ask  for any reference customer number.

If this Bapi is not helpful to you then u can use Bapi

BAPI_CUSTOMER_CREATEFROMDATA1.

Thanks

Nayan