I really am in need of some help with this BAPI.
This is my code
data: objectid type bapiborid. objectid-objkey = material. objectid-objtype = 'BUS1080'. if sy-mandt = '260'. objectid-logsys = 'IRDCLNT260'. elseif sy-mandt = '220'. objectid-logsys = 'IRDCLNT220'. endif. call function 'BAPI_REL_GETRELATIONS' exporting objectid = objectid * ROLE = * RELATION = * RECURSIONLEVEL = 1 IMPORTING RETURN = RETURN4 tables listofrelations = list_of_relations.
However it is not returning anything at all and also there is no information in the return paramater! I am sure I am passing the correct parameters to the BAPI but to no avail. What I am trying to do is get all the object links (or relations) held against this object (Material) ... Any ideas??