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

saving text during delivery creation

Former Member
0 Likes
1,188

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.

3 REPLIES 3
Read only

Former Member
0 Likes
755

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.

Read only

Former Member
0 Likes
755

You can use

CALL FUNCTION 'SAVE_TEXT'

and

CALL FUNCTION 'COMMIT_TEXT'

Also you can refer

Regards,

Vishal

Read only

Former Member
0 Likes
755

Thanks for the reply. But my problem is i don't have a delivery no. yet.