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

Item Text mapping in BAPI_SALESDOCU_CREATEFROMDATA

Former Member
0 Likes
1,176

Hi Experts,

I am working in an Inbound Sales Order Creation scenario and iam using the BAPI - BAPI_SALESDOCU_CREATEFROMDATA.

Here iam unable to find the suitable field to populate the Item Text ( for each line item ) which is a combination of Text Name, Text ID, Language and Text Object.

Please help me out in this regard or suggest me any other BAPI which accomodates Item Text in the process of sales order creation.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
801

Use FM BAPI_SALESDOCU_CREATEFROMDATA and it creates the sales order,get the sales order number using bapiret2 and pass the sales order to save_text fm immediately.

5 REPLIES 5
Read only

Former Member
0 Likes
801

you can use SD_SALESDOCUMENT_CREATE to create sales order and pass item text using table SALES_TEXT.

Thanks.

MGS

Read only

Former Member
0 Likes
801

Use BAPI_SALESORDER_CREATEFROMDAT2(Available from 4.6A)

SD_SALESDOCUMENT_CREATE also works as suggested .

Siva

Read only

dev_parbutteea
Active Contributor
0 Likes
801

Hi,

You may use field SHORT_TEXT in table ORDER_ITEMS_IN.

Also please note that BAPI_SALESORDER_CREATEFROMDAT2 works only for business object 'BUS2032',

Regards,

Sooness.

Read only

0 Likes
801

In this case as Munogee mentioned i can not use BAPI_SALESORDER_CREATEFROMDAT2.

I can use BAPI_SALESDOCU_CREATEFROMDATA but i can not see any Text Tables to populate item texts.

So do i need to call this BAPI first and then call another BAPI - BAPI_SALESORDER_CHANGE for populating the Item Texts using the tables - ORDER_TEXT

Please help me out in this regard.

Thanks in Advance.

Read only

Former Member
0 Likes
802

Use FM BAPI_SALESDOCU_CREATEFROMDATA and it creates the sales order,get the sales order number using bapiret2 and pass the sales order to save_text fm immediately.