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: 

Delete attachment (GOS) by code transaction QA03

martadelasota2
Explorer
0 Kudos

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

tan_michael
Active Participant
0 Kudos

Hi Sir,

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

0 Kudos

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

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

endif.