Monday, March 21, 2011

SREL_GET_NEXT_NEIGHBORS (Part 1)

CALL FUNCTION 'SREL_GET_NEXT_NEIGHBORS'
*"  IMPORTING
*"     VALUE(OBJECT) LIKE  BORIDENT STRUCTURE  BORIDENT
*"     VALUE(ROLETYPE) LIKE  RELROLES-ROLETYPE OPTIONAL
*"     VALUE(RELATIONTYPE) LIKE  BRELTYP-RELTYPE OPTIONAL
*"     VALUE(MAX_HOPS) TYPE  RELHOPS DEFAULT 1
*"     VALUE(BYPASS_BUFFER) TYPE  FLAG DEFAULT SPACE
*"  TABLES
*"      NEIGHBORS STRUCTURE  NEIGHBOR OPTIONAL
*"  EXCEPTIONS
*"      INTERNAL_ERROR
*"      NO_LOGSYS


This FM returns 2 objects that have binary relationhips. 1 of the example we have in SAP IS-U is Disconnect Document and the Service Notification.

1. Enter Object Key and Object Type of a Service Notification
2. Enter Role Type and Relationship Type of the object. Please take note that this is optional.
3. It returns Disconnection Document Number + Disconnection Activity Number 

Tables involved:

  • SRRELROLES
  • ORBRELTYP
  • SMZB_BINREL 

No comments:

Post a Comment