2007 Jun 21 5:17 AM
Hi. I am creating an outbound delivery via BDC (VL01no). I need to populate immediately the text header before i am able to save the delivery. Is this possible? if yes, kindly post sample here.
Helpful answers will be rewarded with points. Thanks.
Hi. I am creating an outbound delivery via BDC (VL01no). I need to populate immediately the text header before i am able to save the delivery. Is this possible? if yes, kindly post sample here.
Helpful answers will be rewarded with points. Thanks.
2007 Jun 21 5:34 AM
use fm SAVE_TEXT.
for invoice header text
below i have attached the code for saving the text for INVOICE header text.
you have to pass the four paramenters as mentioned.
for finding the these four parametersDOUBLE CLICK on the text in the transcation,
choose menu path GOTO -> HEADER u will get it,
ex.
Data l_transporter like THEAD-TDNAME.
DATA: l_it_data like TLINE occurs 0 with header line.
clear l_transporter.
l_transporter = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER. (invoice number)
clear l_it_data.
refresh l_it_data.
*for trasporter
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
id = 'Z001'
language = sy-langu
name = l_transporter
object = 'VBBK'
tables
lines = l_it_data
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF sy-subrc <> 0.
*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2007 Jun 21 5:34 AM
2007 Jun 21 5:36 AM
Thanks for the reply. But my problem is i don't have a delivery no. yet.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |