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

customer createion bapi

Former Member
0 Likes
333

hi my requirement is to create customer first  then again i want to create address for that customer and then i will go to xd02 and link both customer and address is ther any bapi which can help in doing these?

Moderator message : Search for available information, discussion locked.

Message was edited by: Vinod Kumar

2 REPLIES 2
Read only

ShyamPindiproli
Active Participant
0 Likes
304

Hello,

You can use the BAPI -   BAPI_CUSTOMER_CREATEFROMDATA1

As per the documentation, you can also send the address data

CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'

  EXPORTING

    PI_PERSONALDATA              = PI_PERSONALDATA

  •     PI_OPT_PERSONALDATA          = PI_OPT_PERSONALDATA
  •     PI_COMPANYDATA               = PI_COMPANYDATA
  •     PI_OPT_COMPANYDATA           = PI_OPT_COMPANYDATA
  •     PI_CONSUMEREN                = PI_CONSUMEREN

    PI_COPYREFERENCE             = PI_COPYREFERENCE

  •     PI_CREDIT_CONTROL_FLAG       = PI_CREDIT_CONTROL_FLAG
  •   IMPORTING
  •     CUSTOMERNO                   = CUSTOMERNO
  •     RETURN                       = RETURN

Regards,

Shyam

Read only

0 Likes
304

hi my requirement is to create customer first and again xk01 create site address and add the created customer in partner functions sp sold to party and save it