To delete bp attachments like invoice or payment advice in BP T-code.

I want to delete invoice/payment advice based on date or business partner. ---------------------------------------- Steps to find filename ---------------------------------------------- Step 1: Goto T-code - BP. Step 2: Give business partner and press enter. Step 3: Goto attachments in top left (Services for object) and click on attachment list. Step 4: Note the title. Step 5: I picked Payment Advice title. ---------------------------------------- Create AMDP Class --------------------------------------------------- Step 1: Right click on project click on new select abap class. Step 2: Give package name, Class name and description. Step 3: Click on finish after giving all the details. Step 4: Write code. METHOD get_gos_objects_amdp BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT ...