Hi Experts,
I am Using SAVE_TEXT FM to Dynamically Change Long Text for a message.
1. i am able to run succesfully SAVE_TEXT with SY-SUBRC = 0.
2. I can see the entry in STXH.
3. I have also performed COMMIT_TEXT with all the parameters and COMMIT_WORK.
4. I am able to See the changed Text using READ_TEXT FM.
but if i go to SE91 to the message no. and see long text i am not able to see the changed text.
also when change the long text of it in a program and call the error message we should be able to see the changed long text on click of error message in status bar but it shows the same message as in SE91.
Earlier for this Text Object & Text ID in SE75 Save mode was SPACE so i changed the same to Update still its not working.
Following are the details of my code-
REPORT YTEST_MES message-id ZFQM. parameters : p_text type c. at selection-screen. if p_text <> 'C'. data: HEADER LIKE THEAD. data: t_lines type standard table of TLINE. data: ls_lines like line of t_lines. ls_lines-TDFORMAT = ' '. ls_lines-TDline = 'TEST1 TEST2 TEST3'. append ls_lines to t_lines. Header-TDOBJECT = 'DOKU'. Header-TDNAME = 'ZFQM093'. Header-TDID = 'NA'. Header-TDSPRAS = 'EN'. Header-TDFORM = 'S_DOCU_SHOW'. Header-TDSTYLE = 'S_DOCUS1'. Header-TDLINESIZE = '72'. * CALL FUNCTION 'SAVE_TEXT' EXPORTING CLIENT = SY-MANDT header = header INSERT = 'X' tables lines = t_lines 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. CALL FUNCTION 'COMMIT_TEXT' EXPORTING OBJECT = 'DOKU' NAME = 'ZFQM093' ID = 'NA' LANGUAGE = SY-LANGU . COMMIT WORK AND WAIT. message e093 with 'C' 'XXXX'. endif.
I have tried calling SAVE_TEXT will possible combination's of INSERT = 'X' or space or
SAVEMODE_DIRECT = 'X' or Both Space or 'X'.
I know i am missing a small thing...but was unable to figure out the same.
Please Help.
Regards,
Akash