‎2008 Aug 06 3:06 AM
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
‎2008 Aug 06 3:34 AM
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
‎2008 Aug 06 3:34 AM
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
‎2008 Aug 06 3:43 AM
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
‎2008 Aug 06 3:50 AM
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
‎2008 Aug 06 3:56 AM
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.