Ansicht
Dokumentation
SREL_GET_NEXT_NEIGHBORS - Determine Related Objects
General Data in Customer Master ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
All related objects whose interval is smaller than MAX_HOPS are output for the transferred object. The next neighbors have the interval 0.
You can restrict the output by:
- The type of the role in which the outbound object occurs
- The type of direct relationships with the outbound object
Example
DATA OBJECT LIKE BORIDENT.
DATA NEIGHBORS LIKE NEIGHBOR OCCURS 0 WITH HEADER LINE.
OBJECT-OBJTYPE = 'BUS2032'.
OBJECT-LOGSYS = T000-LOGSYS.
OBJECT-OBJTYPE = '1204'.
CALL FUNCTION 'SREL_GET_NEXT_NEIGHBORS'
EXPORTING
OBJECT = OBJECT
ROLETYPE = 'APPLOBJ'
RELATIONTYPE = 'OFFD'
TABLES
NEIGHBORS = NEIGHBORS.
PERFORM SHOW_TREE TABLES NEIGHBORS
USING OBJECT .
ENDFUNCTION.
Notes
To determine the describing texts for the roles found, use the function module RELMOD_READ_ROLETYPE.
Parameters
BYPASS_BUFFERMAX_HOPS
NEIGHBORS
OBJECT
RELATIONTYPE
ROLETYPE
Exceptions
INTERNAL_ERRORNO_LOGSYS
Function Group
SRELPERFORM Short Reference BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 1990 Date: 20240523 Time: 090150 sap01-206 ( 24 ms )