SAP Function RPY_OBJECTTYPE_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
OBJECTTYPE_ID RPYBOBS-OBJTYPE C 10 Name of Object Type
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 Type Length Text
OBJECTTYPE_INFO RPYBOBS u 574 Basic data of object type

Parameter Reference Length Optional Text
ATTRIBUTES RPYBOAT 348 X Object type attributes
EVENTPARAMS RPYBOEP 335 X Event parameters
EVENTS RPYBOEV 196 X Events of object type
FORMATTED_DOCUMENTATION RPYBOFD 73 X Formatted documentation
INTERFACES RPYBOIF 135 X Interfaces supported
KEYFIELDS RPYBOKE 289 X Key Fields of Object Type
METHODEXCEPTIONS RPYBOEX 188 X Method exceptions
METHODPARAMS RPYBOMP 367 X Method parameters
METHODS RPYBOME 344 X Methods of object type
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 definition of an object type from thebusiness 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: basedat like RPYBOBS, " 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
...
call function 'RPY_OBJECTTYPE_READ'
exporting
objecttype_id = 'BUS1043' " object type customer
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
importing
objecttype_info = basedat
tables
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:
Basic data
Interfaces
Key fields
Methods
Method parameters
Exceptions
Attributes
Events
Event parameters
General fields