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 attachment (GOS) by code transaction QA03

martadelasota2
Explorer
0 Likes
1,577

Hi all.

I need deleting attachments by program from transaction QA03. I have found some answers in this community but they haven't worked.

I have tried to use method

DELETE_ATTACHMENT

from class

GL_GOS_DOCUMENT_SERVICE.

but it doesn't work. Some of my code:

Could anybody help me?

Thanks a lot.

Marta.

Hi all.

I need deleting attachments by program from transaction QA03. I have found some answers in this community but they haven't worked.

I have tried to use method

DELETE_ATTACHMENT

from class

GL_GOS_DOCUMENT_SERVICE.

but it doesn't work. Some of my code:

Could anybody help me?

Thanks a lot.

Marta.

2 REPLIES 2
Read only

tan_michael
Active Participant
0 Likes
1,344

Hi Sir,

Can you give a sample value of your lv_type_aux and lv_insplot?

Read only

0 Likes
1,344

and kindly debug it by removing the comment out of exceptions... then put

if sy-subrc eq 0. " Check the return code here

endif.