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

create new customer using BAPI BAPI_CUSTOMER_CREATEFROMDATA1

Former Member
0 Likes
1,243

Hi There,

I am trying to create a new customer in SAP through BAPI for demo purpose. The BAPI function I used is BAPI_CUSTOMER_CREATEFROMDATA1. However, the BAPI call requires a reference customer. How can I find a valid reference customer in SAP? Furthermore, is it correct at all to use this BAPI function to create a new customer? Is there any other BAPI function that I can use to do the same stuff? Thanks a lot in advance for your help!

Thanks,

Lei

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
783

Hi,

The BAPI which you are trying to use is correct.

Please find the "where-used " list of function module and check if there are any example programs available in your system. if available please use the program as reference.

Also refer :

https://forums.sdn.sap.com/click.jspa?searchID=15193438&messageID=5925480

Thanks

Krishnan

5 REPLIES 5
Read only

Former Member
0 Likes
785

Hi,

The BAPI which you are trying to use is correct.

Please find the "where-used " list of function module and check if there are any example programs available in your system. if available please use the program as reference.

Also refer :

https://forums.sdn.sap.com/click.jspa?searchID=15193438&messageID=5925480

Thanks

Krishnan

Read only

0 Likes
783

Dear Krishnan,

thanks a lot for the quick answer. We have only a demo SAP server for development. Therefore, the "where-used" list of the function module does not find any sample programs in the system.

The problem I had is to find a valid reference customer that I can use in the function call.

thanks,

Lei

Read only

0 Likes
783

Hi Lie,

Just go to table VBAK and execute. Take one order.

Go to VA03 and open this order. Now check the sold-to of that order(Top left corner). You can use this as reference(Since u r able to create order for this customer).

U can take the valid customers from customer master KNA1 as well.

Also u can try the BAPI BAPI_CUSTOMER_CREATE.

Thanks,

Vinod.

Read only

Former Member
0 Likes
783

Hi Liu,

have a look at the example in the thread below:

also have a look in the link below;

http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_CREATEFROMDATA1

With luck,

Pritam.

Read only

Former Member
0 Likes
783

Hii..

Please Refer this Links :

we can create using standard classes also..

Thanks & Regards

Shanthan Reddy