cancel
Showing results for 
Search instead for 
Did you mean: 

Update Partner Function-communication Data Dynamically

Former Member
0 Kudos

Hi,

We are creating a Sales order thru SAP standard BAPI. once the sales order is created automatically, <b>we need to pick up e-mail address from Header> Additional Data B>e-mail address field.

This e-mail address actually comes from RFC user. This needs to be pasted/ moved to Header>Partners>Sold To Party>e-mail address</b>.

Once this e-mail address is moved, we are saving the order automatically, and triggering further events.

I need to know, how to achieve the task marked in Bold

Accepted Solutions (0)

Answers (1)

Answers (1)

rmazzali
Active Contributor
0 Kudos

use BAPI_USER_GET_DETAIL to get the address, and then BAPI_SALESDOCUMENT_CHANGE to update the sales order.

You can also make a user exit that, when saving an order created by BAPI (flag CALL_FUNCTION is on) takes the address from the user and put it in VBPA.

Regards

Roberto

Former Member
0 Kudos

Hi Roberto,

Thanks for the update, but we need to change the <b>customer/ sold-to-party contact details>like e-mail address</b>Is there any function module that does this work automatically?

Thanks,

Alhad

rmazzali
Active Contributor
0 Kudos

sorry I could not understand: you have to change the Customer Master OR the sales order informations about customer ?

Roberto