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

Adding order Text using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,800

Hi All ,

How can we add order text at header level to a sales using bapi BAPI_SALESORDER_CREATEFROMDAT2 ,

There is this structure ORDER_TEXT STRUCTURE BAPISDTEXT , But looks like this is used for adding text item level .

Thanks in advance .

Vinay Kolla

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,582

If you pass TDOBJECT as VBBK is will maintain the Texts for Header.(if you specify valid Textid).

For header Textname should be the Ordernumber.

If the TDOBJECT is VBBP then it is For Item text(Corresponding Text id should be suppllied).

For Item Textname should be Ordernumber+ Itemnumber.

This BAPI parameter used for Both the purposes.

4 REPLIES 4
Read only

Former Member
0 Likes
1,583

If you pass TDOBJECT as VBBK is will maintain the Texts for Header.(if you specify valid Textid).

For header Textname should be the Ordernumber.

If the TDOBJECT is VBBP then it is For Item text(Corresponding Text id should be suppllied).

For Item Textname should be Ordernumber+ Itemnumber.

This BAPI parameter used for Both the purposes.

Read only

0 Likes
1,582

Thanks vijay ,

But I would not know the order number to pass while using BAPI_SALESORDER_CREATEFROMDAT2 as this is internal . should i leave it blank .

Thanks

vinay Kolla

Read only

0 Likes
1,582

No.we cannot leave blank.otherwise your without sales activity how can we expect SO.

you must fill all sales regarding information in

Sales Document Type
Collective Number
Sales Organization
Distribution Channel
Division
Sales Group
Sales Office

Amit.

Read only

0 Likes
1,582

Hi Amit ,

I will be filling that data into structure ORDER_HEADER_IN,

but the field ORDER_TEXT-DOC_NUMBER which i would not know as it is internal generated , will it work if i leave it blank .It doe not work when i leave it blank .

Thanks

Vinay kolla