Application Development 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: 

Creating Customer with a reference customer

former_member445996
Participant
0 Kudos

Hi All,

I need to create customers based on a reference customer in SAP. I am using FM SD_CUSTOMER_MAINTAIN_ALL but don't see a parameter for specifying the reference customer. I tried to use BAPI_CUSTOMERCREATE_FROMDATA1 which has the parameter for reference but does not have other fields like Search Terms that I need to pass so I can't use this FM whereas the FM SD_CUSTOMER_MAINTAIN_ALL has all the fields that I want to populate but does not have the field for reference customer.

Does anyone know of any other FM or any place in FM SD_CUSTOMER_MAINTAIN_ALL where I can specify the reference customer number and create the new customer based on the reference customer.

Any suggestions will be appreciated.

Regards.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please check the parameter in the BAPI..

*" VALUE(PI_COPYREFERENCE) LIKE BAPIKNA102

*" STRUCTURE BAPIKNA102

Thanks,

Naren

former_member445996
Participant
0 Kudos

Nareen,

Thanks for your response. The parameter you mentioned is in FM BAPI_CUSTOMERCREATE_FROMDATA1 which I can't use because it does not allow some of the fields that I want to pass. I would like to use SD_CUSTOMER_MAINTAIN_ALL but don't see a parameter for specifying the reference customer.

Any suggestions?

Thanks