05-24-2011 3:53 PM
In IW21 when i save long text throhgh function module SAVE_TEXT it save in header place but not showing in description place.
If i manuly write long text in header(IW21) it shows in description place also.when i save the long text using SAVE_TEXT, after notification close(clinck on notification no on IW22) ltext button goto disable mode but if i entred manuly long text it working fine.
please provide me any soluction in this problem..........commit_work function module can't work it returns sy-tabix = 0.
.................soumen
05-24-2011 4:15 PM
05-24-2011 4:15 PM
05-24-2011 4:23 PM
Try passing parameter SAVEMODE_DIRECT as 'X' in the Function module SAVE_TEXT
05-24-2011 4:33 PM
Hi,
maybe the header place and the description place have two different objectid.
Try to use the SAVE_TEXT for both objectid.
Filippo
05-24-2011 4:37 PM
Hi,
I found the following:
For Header text
Text ID = 'LTXT'
Text object = 'QMEL'
For description text:
Text ID = 'LTXT'
Text object = 'QMSM'
Regards,
Filippo
05-25-2011 4:34 AM
My problem is not solve yet,,,,,,,,
SAVE_TEXT function module i already pass SAVEMODE_DIRECT = 'X', header and description TEXT OBJECT is same 'QMEL'.
after SAVE_TEXT function module COMMIT_TEXT function module dos't work..........i pass same parameter value in SAVE_TEXT and COMMIT_TEXT function module.
05-25-2011 11:03 AM
I solve the problem ,,,,,,,,,,,,,,,after save_text update the field qmel-indtx = 'X' where QMNUM(notification no) = SAVE_TEXT header notfication no.
T_HEADER-TDOBJECT = 'QMEL'.
T_HEADER-TDNAME = L_NOTIF.
T_HEADER-TDID = 'LTXT'.
T_HEADER-TDSPRAS = 'EN'.
APPEND T_HEADER.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = T_HEADER
SAVEMODE_DIRECT = 'X'
IMPORTING
FUNCTION = L_FUN
NEWHEADER = T_HEADER
TABLES
LINES = T_TEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
IF SY-SUBRC = 0.
UPDATE QMEL
SET
INDTX = 'X'
WHERE QMNUM = L_NOTIF.
ENDIF.
05-25-2011 11:36 AM