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

BAPI_SALESDOCU_CREATEFROMDATA1 with Item Data Texts

Former Member
0 Likes
1,229

How can I save Item Data Texts when I create a sales order with BAPI_SALESDOCU_CREATEFROMDATA1?

Thanks,

Ralph

1 ACCEPTED SOLUTION
Read only

former_member222709
Contributor
0 Likes
875

Hey Ralph,

Did not find a table parameter in 'BAPI_SALESDOCU_CREATEFROMDATA1' for Texts.

But two similar options:

1. You can use 'BAPI_SALESORDER_CREATEFROMDAT2' which has a table parameter 'ORDER_TEXT' for the purpose.

2. You can also use the standard FM 'SAVE_TEXT' .

Regards,

Pranav.

3 REPLIES 3
Read only

Former Member
0 Likes
875

Try using SD_SALES_DOCU_MAINTAIN instead. Populate the following data elements

IX_TEXT_HEADERLIKEBAPISDTEXTHeader texts
IX_TEXT_ITEMLIKEBAPISDTEXTItem Texts

-A

Read only

former_member222709
Contributor
0 Likes
876

Hey Ralph,

Did not find a table parameter in 'BAPI_SALESDOCU_CREATEFROMDATA1' for Texts.

But two similar options:

1. You can use 'BAPI_SALESORDER_CREATEFROMDAT2' which has a table parameter 'ORDER_TEXT' for the purpose.

2. You can also use the standard FM 'SAVE_TEXT' .

Regards,

Pranav.

Read only

0 Likes
875

Pranav,

I changed my call to use the BAPI you recommended. I was able to save three different texts at once at the same time the sales order was created.

Thanks for your help,

Ralph