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: 

Get attachment details from MM01/MM02.

victor_chew
Explorer
0 Kudos
589

Dear all,

Is there any way to retrieve the attachment details in MM01/MM02 screen and make into a report format with Material Number? I've search several post and the best I can get is just the attachment title from table SOOD. I wanted to show the report details such as Material Number & Attachment Title.

Thanks,

Aik

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
508

Business object type of materials in MM02 must be BUS1001.

See for instance this API: https://github.com/keremkoseoglu/ABAP-Library/blob/master/document/zcl_bc_gos_toolkit.abap

Sandra_Rossi
Active Contributor
0 Kudos
508

You're talking about GOS attachments for material. All GOS attachments work the same, only the business object type and key are specific to material, the API is the same for reading or writing GOS attachments whatever the business object type is.

You have lots of questions/answers in the Web, so I won't repeat them.

raymond_giuseppi
Active Contributor
508

If you ask about GOS attachment (FAQ), there are multiple threads on how to get the list.

Of course conversion into printable format heavily depends on file types (pdf, docx, jpg, html links, etc.)