Application Development 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: 

SAVE_TEXT NOT PERMANENTLY UPDATE

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try FM COMMIT_TEXT.

Rob

7 REPLIES 7

Former Member
0 Kudos

Try FM COMMIT_TEXT.

Rob

awin_prabhu
Active Contributor
0 Kudos

Try passing parameter SAVEMODE_DIRECT as 'X' in the Function module SAVE_TEXT

0 Kudos

Hi,

maybe the header place and the description place have two different objectid.

Try to use the SAVE_TEXT for both objectid.

Filippo

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

Close the Discussion..........SOUMEN