cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery text updation using user exits

Former Member
0 Kudos

Hii All

Our client has a requirment where we need to update text in delivery header when we save the delivery.

The delivery text needs to be updated when we save the delivery.

Can anyone help me in letting me know steps to be followed to do the same.

Thanks & Regards,

Gaurav Manocha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

First of all identify the text id associated with your delivery. Once you identify the text id, change the text id in the sample program below. You can have this logic coded within your MV50AFZ1 user exit

data: w_txt_hdr LIKE thead,

i_text LIKE tline OCCURS 0 WITH HEADER LINE,

i_text-tdformat = '* '.

i_text-tdline = 'sample'.

append i_text.

w_txt_hdr-tdobject = 'VBBK'.

w_txt_hdr-tdname = likp-vbeln.

w_txt_hdr-tdid = '0008'. "text id

w_txt_hdr-tdspras = sy-langu.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

client = sy-mandt

header = w_txt_hdr

savemode_direct = 'X'

TABLES

lines = i_text

EXCEPTIONS

id = 1

language = 2

name = 3

object = 4

OTHERS = 5.

IF sy-subrc <> 0.

ENDIF.

Answers (0)