SAP Function RPY_OBJECTTYPE_MULTI_READ - Read object type

Parameter Reference Type Length Default Optional Text
CICO_MODE RPYBOGF-CICO_MODE C 1 'R' X Check-In/Check-Out mode
CICO_REQUEST_NO RPYBOGF-CICO_REQNO C 10 SPACE X Number of CICO request
LANGUAGE SYST-LANGU C 1 SY-LANGU X Language in which texts and docu are to be read
WITH_EXCEPTIONS RPYBOGF-FLAG C 1 'X' X Read exceptions too?
WITH_FORMATTED_DOCUMENTATION RPYBOGF-FLAG C 1 ' ' X Read formatted documentation too?
WITH_PARAMETERS RPYBOGF-FLAG C 1 'X' X Read parameters too?
WITH_SAPSCRIPT_DOCUMENTATION RPYBOGF-FLAG C 1 'X' X Read SAPscript documentation too?
WITH_TEXTS RPYBOGF-FLAG C 1 'X' X Read short texts too?
WITH_VERBS RPYBOGF-FLAG C 1 'X' X Read verbs too?

Parameter Reference Length Optional Text
ATTRIBUTES RPYBOAT 348 X Attributes of object types
EVENTPARAMS RPYBOEP 335 X Event parameters
EVENTS RPYBOEV 196 X Events of object types
FORMATTED_DOCUMENTATION RPYBOFD 73 X Formatted documentation
INTERFACES RPYBOIF 135 X Interfaces supported
KEYFIELDS RPYBOKE 289 X Key fields of object types
METHODEXCEPTIONS RPYBOEX 188 X Method exceptions
METHODPARAMS RPYBOMP 367 X Method parameters
METHODS RPYBOME 344 X Methods of object types
OBJECTTYPE_IDS RPYBOOJ 10 IDs of object types to be read
OBJECTTYPE_INFOS RPYBOBS 574 X Basic data of object types
SAPSCRIPT_DOCUMENTATION RPYBOSD 134 X SAPscript documentation

Exception Text
NOT_FOUND Object type not found
PERMISSION_ERROR User does not have display authorization

Functionality
The function module reads the relevant definitions for a list of objecttype IDs from the business object repository.
The parameters WITH_VERBS, WITH_PARAMETERS, WITH_EXCEPTIONS,WITH_TEXTS, WITH_FORMATTED_DOCUMENTATION, andWITH_SAPSCRIPT_DOCUMENTATION can be used to determine which informationshould be read. It should be noted that WITH_PARAMETERS andWITH_EXCEPTIONS are only meaningful if the verbs are read as well, thatis if WITH_VERBS has the value 'X'. Otherwise these parameters areignored. The documentation is always read on the same level as theobject type, that is the documentation of the verbs is only read if theverbs themselves are read.
The individual sub-objects are returned in separate tables.

Example
DATA: objtypes like RPYBOOJ occurs 0 with header line," input objecttypes
basedat like RPYBOBS occurs 0, " basic data
intfs like RPYBOIF occurs 0, " interfaces
key like RPYBOKE occurs 0, " key fields
attribs like RPYBOAT occurs 0, " attributes
methods like RPYBOME occurs 0, " methods
mparameter like RPYBOMP occurs 0, " method parameters
exceptions like RPYBOEX occurs 0, " exceptions
events like RPYBOEV occurs 0, " events
eparameter like RPYBOEP occurs 0. " event parameters
...
" Fill input parameter
objtypes-objtype = 'BUS1043'. " object type customer
append objtypes.
objtypes-objtype = 'BUS1044'. " object type vendor
append objtypes.
...
call function 'RPY_OBJECTTYPE_MULTI_READ'
exporting
language = 'E' " language English
cico_mode = 'R' " read-only
cico_request_no = ' ' " no transport request
with_verbs = 'X' " read all parts
with_parameters = 'X' " "
with_exceptions = 'X' " "
with_texts = 'X' " "
with_formatted_documentation
= ' ' " no documentation
with_sapscript_documentation
= ' ' " no documentation
tables
objecttype_ids = objtypes
objecttype_infos = basedat
interfaces = intfs
keyfields = key
attributes = attribs
methods = methods
methodparams = mparameter
methodexceptions = exceptions
events = events
eventparams = eparameter
exceptions
not_found = 1
permission_error = 2
others = 3.
IF SY-SUBRC NE 0.
...
ENDIF.

Further information
For further information on the business object repository, refer to theonline documentation.
Detailed information on the referenced structures and tables can befound under:
Object type IDs
Basic data
Interfaces
Key fields
Methods
Method parameters
Exceptions
Attributes
Events
Event parameters
General fields