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
Add a comment