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

Material attachment list

Former Member
0 Likes
501

Hello,

I want to get the attachment list for a material. There are classes available to the attachemtn list as popup but I want to get this value in an internal table.

Can anyone help.

Thanks in advance

Ramesh

2 REPLIES 2
Read only

Former Member
0 Likes
385

Hi,

I think you can use function module <b>SREL_GET_NEXT_RELATIONS</b>.

  DATA : ls_object LIKE borident,
         lt_links LIKE relgraphlk OCCURS 0 WITH HEADER LINE.  

  MOVE <your material number> TO ls_object-objkey.
  MOVE 'BUS1001' TO ls_object-objtype. "BOR Type for Material

  CALL FUNCTION 'SREL_GET_NEXT_RELATIONS'
       EXPORTING
         object          = ls_object
         roletype        = 'APPLOBJ'
         relationtype    = 'OFFD'   
*         MAX_HOPS       = 1
      TABLES
          links          = lt_links
*         ROLES          =
      EXCEPTIONS
           internal_error = 1
           no_logsys      = 2
           OTHERS         = 3 .

Hope this helps..

Sri

Read only

Former Member
0 Likes
385

Hello Sri,

It did't not work. But I tried calling function module before posting the question with following parameters: BUS1001006 & APPLOBJ. I got some data but not very helpful, gets a object key like this: FOL30000000000004URL30000000000032. Any idea?

Thanks

Ramesh