cancel
Showing results for 
Search instead for 
Did you mean: 

Delete attachments of PO thru ABAP

Former Member

Hi Experts,

Is it possible to delete attachments in a PR/PO thru ABAP code? If yes can you guide me or give me sample code on how to implement this. Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Sijin_Chandran
Active Contributor

Hi ,

I have never done this kind of requirement, but I have once created a program which attaches Attachments to Business Transactions like FB03, PO etc.

Search SE24 for Classes with *GOS* you will get many classes related to this , browse each one of them and check which would fit this requirement.

I followed the same and feel like CLASS "CL_GOS_SERVICE_TOOLS" and it's method "DELETE_LINKED_OBJECTS" should definitely be given a try.

Even CL_GOS_DOCUMENT_SERVICE=>DELETE_ATTACHMENT can also be given a try.

Thanks,

Sijin

Answers (0)