‎2005 Dec 14 11:45 AM
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
‎2005 Dec 14 12:58 PM
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
‎2005 Dec 14 5:34 PM
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