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.