on 10-22-2008 9:27 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.