Application Development and Automation 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: 
Read only

Delete Operation long text for PM General task list

Former Member
0 Likes
1,450

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,055

Use DELETE_TEXT FM and after DELETE_TEXT fm use use COMITT_TEXt FM.

Thanks

Seshu

Read only

Former Member
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055

Hi Seshu,

That is working fine . thanks for your reply.

Regards,

Prabaharan.G

Read only

Former Member
0 Likes
1,055

Delete_text function module followed by commit_text is doing the required operation.