10-08-2007 9:26 PM
Hi ,
I have created the long text using INTTAB_SAVE_TEXT function module. Please let me know how we could delete the long text already existing. I tried using the function module INTTAB_DELETE_TEXT but it was not working.
Regards,
Prabaharan.G
10-08-2007 9:30 PM
Use DELETE_TEXT FM and after DELETE_TEXT fm use use COMITT_TEXt FM.
Thanks
Seshu
10-08-2007 10:05 PM
Hi Seshu,
Please see below code. I tried the function module and gave the parameters which i exactly used for save_text but the function module returns the message, that the " text object is not avaialable "
Report ZLONGTEXT_DEL.
data: w_index like sy-index.
CALL FUNCTION 'INTTAB_DELETE_TEXT'
EXPORTING
OBJECT = 'ROUTING'
NAME = '020A000000070000000100000001'
ID = 'PLPO'
LANGUAGE = 'E'
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
CALL FUNCTION 'INTTAB_COMMIT_TEXT'
IMPORTING
COMMIT_COUNT = w_index
EXCEPTIONS
IO_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
write:/ 'successs'.
ENDIF.
Regards,
Prabaharan.G
10-08-2007 10:14 PM
Hi Seshu,
That is working fine . thanks for your reply.
Regards,
Prabaharan.G
10-08-2007 10:16 PM
Delete_text function module followed by commit_text is doing the required operation.