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

ORDER_TEXT IN BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
4,288

Hi ,

what are the parameters i need to fill-up in ORDER_TEXT under BAPI_SALESORDER_CREATEFROMDAT2.. these are the following fields:

DOC_NUMBER

ITM_NUMBER

TEXT_ID

LANGU

TEXT_LINE

FUNCTION

I need to save the text in tcode va01 -sales order..using a bapi.

text object will be VBBK, text id is 0001.

How about the other fields?

Cost Center, Terms of payment key and Payment guarantee procedure.

Please help.

Thanks in advance

aVaDuDz

1 ACCEPTED SOLUTION
Read only

Former Member
1,541

Hi,

Populate fields TEXT_ID, LANGU & TEXT_LINE for each line of the text.


*** Sales Document Header Texts
  clear: ibapisdtext.
  ibapisdtext-text_id   = p_tid.
  ibapisdtext-langu     = sy-langu.
  ibapisdtext-text_line = p_text.
  append ibapisdtext.

You can find Terms of payment and Payment Guarantee Procedure in structure: BAPISDHD1.

Kind Regards

Eswar

4 REPLIES 4
Read only

Former Member
1,542

Hi,

Populate fields TEXT_ID, LANGU & TEXT_LINE for each line of the text.


*** Sales Document Header Texts
  clear: ibapisdtext.
  ibapisdtext-text_id   = p_tid.
  ibapisdtext-langu     = sy-langu.
  ibapisdtext-text_line = p_text.
  append ibapisdtext.

You can find Terms of payment and Payment Guarantee Procedure in structure: BAPISDHD1.

Kind Regards

Eswar

Read only

0 Likes
1,541

hi eswar,

please check my value in the program

order_text-text_id = '0001'.

order_text-langu = 'EN'.

order_text-text_line = '199208165, MARLON SANTONIL, 03/04/2008, 01/04/2009'.

APPEND order_text .

where can i input the value of VBBK..is it required in the bapi fields?

Please clarify

Read only

0 Likes
1,541

BAPI: BAPI_SALESORDER_CREATEFROMDAT2 being just for Sales Order, we need not specify the Object(VBBK) whereas when we are using explicit FM's like SAVE_TEXT we have to pass Text Object.

Kind Regards

Eswar

Read only

0 Likes
1,541

Hi,

I think it takes the text object automatically as VBBK. All sales order texts has object as VBBK. Just try executing ur bapi and check in va02/va03 whether it is populating the text or not. Ideally it should.

Thanks,

Vinod.