SAP Function RPY_CLIF_MULTI_READ - Read classes/interfaces

Parameter Reference Type Length Default Optional Text
DEVELOPMENT_CLASS RPYCLGF-DEVCLASS C 30 SPACE X Development class
LANGUAGE SYST-LANGU C 1 SY-LANGU X Language
WITH_ATTRIBUTES RPYCLGF-FLAG C 1 SEOX_TRUE X With attributes
WITH_CLASS_INTERFACE_INFOS RPYCLGF-FLAG C 1 SEOX_TRUE X With basic information about classes/interfaces
WITH_EVENTS RPYCLGF-FLAG C 1 SEOX_TRUE X With events
WITH_EXCEPTIONS RPYCLGF-FLAG C 1 SEOX_TRUE X w/exceptions
WITH_FRIENDS_RELATIONS RPYCLGF-FLAG C 1 SEOX_TRUE X With friend relationships
WITH_INSTANCE_RELATIONS RPYCLGF-FLAG C 1 SEOX_TRUE X With instance relationships
WITH_META_RELATIONS RPYCLGF-FLAG C 1 SEOX_TRUE X With metarelationships
WITH_METHODS RPYCLGF-FLAG C 1 SEOX_TRUE X With methods
WITH_PARAMETERS RPYCLGF-FLAG C 1 SEOX_TRUE X With parameters

Parameter Reference Length Optional Text
ATTRIBUTE_SET RPYCLAT 504 X Output: Attributes
CLASS_INTERFACE_IDS RPYCLOK 30 X Input: Class/interface IDs
CLASS_INTERFACE_INFO_SET RPYCLCI 140 X Output: Basic information about classes and interfaces
ERROR_SET RPYGSER 268 X Output: Error messages
EVENT_SET RPYCLEV 236 X Output: Events
EXCEPTION_SET RPYCLEX 200 X Output: Exceptions
FRIENDS_RELATION_SET RPYCLFR 102 X Output: Friend relationships
INSTANCE_RELATION_SET RPYCLIR 92 X Output: Instance relationships
META_RELATION_SET RPYCLMR 134 X Output: Metarelationships
METHOD_SET RPYCLME 236 X Output: Methods
PARAMETER_SET RPYCLPA 463 X Output: Parameters

Functionality
This function module reads information about a set of object types(classes/interfaces) and returns the information in table parameters.
The system checks authorization when reading (not yet implemented). Theobject types are not included in a correction or repair request, andare not locked to other users. If an error occurs during reading (forexample, no authorization for an object type), the entire procedure isterminated and no information about the object types is returned. Therelevant error messages are placed in the tableERROR_SET.
In the table parameter CLASS_INTERFACE_IDS, pass the names of theobject types for which you want to read information.
Use the WITH_* (e.g. WITH_EVENTS) parameters to determine theinformation that you want to read. The information is returned in thecorresponding tables parameters (e.g. EVENT_SET). By default, all ofthe WITH_* parameters are selected, so that all of the information isread. This corresponds to the full object type (class or interface)with all of its components (attributes, methods, events), subcomponents(parameters, exceptions) and outgoing relationships (friends with,inherits from, contains, references).
If you want to read all of the information about an object type, acceptthe default values.
All long texts are, by default, read in the system language. If youwant to read texts in another lnaguage, enter its ID in the importparameter LANGUAGE.
The function module does not trigger any exceptions. Problems and errormessages are returned to the caller in the table parameterERROR_SET. If the read is successful, the error tableis empty.

Example
The following call reads all information except that for friendrelationships from the objects types 'EXAMPLE001' to 'EXAMPLE003':
* Data declaration
DATA: CLIF_KEYS LIKE RPYCLOK OCCURS 100 WITH HEADER LINE.
DATA: CLIFS LIKE RPYCLCI OCCURS 100 WITH HEADER LINE.
DATA: ATTRIBUTES LIKE RPYCLAT OCCURS 100 WITH HEADER LINE.
DATA: METHODS LIKE RPYCLME OCCURS 100 WITH HEADER LINE.
DATA: EVENTS LIKE RPYCLEV OCCURS 100 WITH HEADER LINE.
DATA: PARAMETERS LIKE RPYCLPA OCCURS 100 WITH HEADER LINE.
DATA: EXCEPTIONS LIKE RPYCLEX OCCURS 100 WITH HEADER LINE.
DATA: METARELS LIKE RPYCLMR OCCURS 100 WITH HEADER LINE.
DATA: IMPLRELS LIKE RPYCLIR OCCURS 100 WITH HEADER LINE.
DATA: FRIENDRELS LIKE RPYCLFR OCCURS 100 WITH HEADER LINE.
DATA: ERRORS LIKE RPYGSER OCCURS 100 WITH HEADER LINE.
* Fill input parameters
CLIF_KEYS-CLSNAME = 'EXAMPLE001'. APPEND CLIF_KEYS.
CLIF_KEYS-CLSNAME = 'EXAMPLE002'. APPEND CLIF_KEYS.
CLIF_KEYS-CLSNAME = 'EXAMPLE003'. APPEND CLIF_KEYS.
* Call function modules
CALL FUNCTION 'RPY_CLIF_MULTI_READ'
EXPORTING
* LANGUAGE = SY-LANGU
* WITH_CLASS_INTERFACE_INFOS = 'X'
* WITH_ATTRIBUTES = 'X'
* WITH_METHODS = 'X'
* WITH_EVENTS = 'X'
* WITH_PARAMETERS = 'X'
* WITH_EXCEPTIONS = 'X'
* WITH_META_RELATIONS = 'X'
* WITH_INSTANCE_RELATIONS = 'X'
WITH_FRIENDS_RELATIONS = ' '
TABLES
CLASS_INTERFACE_IDS = CLIF_KEYS
CLASS_INTERFACE_INFO_SET = CLIFS
ATTRIBUTE_SET = ATTRIBUTES
METHOD_SET = METHODS
EVENT_SET = EVENTS
PARAMETER_SET = PARAMETERS
EXCEPTION_SET = EXCEPTIONS
META_RELATION_SET = METARELS
INSTANCE_RELATION_SET = IMPLRELS
ERROR_SET = ERRORS
EXCEPTIONS
OTHERS = 1.
* Error processing
LOOP AT ERROR_SET.
...
ENDLOOP.

Further information
Other function modules in the Class Library API:
RPY_CLIF_MULTI_READ_LOCK
RPY_CLIF_MULTI_INSERT
RPY_CLIF_COMP_MULTI_INSERT
RPY_CLIF_REL_MULTI_INSERT
RPY_CLIF_INFO_UPDATE
RPY_CLIF_COMP_UPDATE
RPY_CLIF_REL_UPDATE
RPY_CLIF_COMP_DELETE
RPY_CLIF_REL_DELETE
RPY_CLIF_DELETE