cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI/FM to create Customer Master Data only with General Address Details using VD01

Arijit_Mukherje
Explorer
0 Kudos

Hi,

My requirement is to create customer master record using VD01 ( which will contain only the address details and no company code data and sales data ) and to use this as a partner function for order during order creation.

I am aware of two BAPI which I am unable to use for the below mentioned reasons:

1. BAPI_CUSTOMER_CREATE - It pops up the original transaction window in run-time. My requirement is to create the customer during a web service call

2. BAPI_CUSTOMER_CREATEFROMDATA1 - This requires some company code related mandatory fields to be filled up to create the customer.

Please suggest me an alternative solution

Accepted Solutions (1)

Accepted Solutions (1)

Arijit_Mukherje
Explorer
0 Kudos

Resolved the issue. Using FM SD_CUSTOMER_MAINTAIN_ALL to create the customer.

Answers (1)

Answers (1)

Jelena
Active Contributor
0 Kudos

I don't believe you would be able to use a customer as a partner in the order if the customer is not extended to the Sales Org. So such requirement seems like a moot point. I'd go back to the functional person and ask for confirmation.

Also I'm not sure what you're building but constantly creating customer records just for one sales order is simply inefficient. There is such feature as "one time customer", which is frequently used in e-commerce interfaces, for example.

Arijit_Mukherje
Explorer
0 Kudos

I am creating Partner Function for PM Work Order, not for Sales Order.