RPY_OBJECTTYPE_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RPY_OBJECTTYPE_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SIBO
Released Date:
01.07.1996
Processing type: Remote-Enabled
CALL FUNCTION 'RPY_OBJECTTYPE_READ' "Read object type
EXPORTING
objecttype_id = " rpybobs-objtype Name of Object Type
* language = SY-LANGU " sy-langu Language in which texts and docu are to be read
* cico_mode = 'R' " rpybogf-cico_mode Check-In/Check-Out mode
* cico_request_no = SPACE " rpybogf-cico_reqno Number of CICO request
* with_verbs = 'X' " rpybogf-flag Read verbs too?
* with_parameters = 'X' " rpybogf-flag Read parameters too?
* with_exceptions = 'X' " rpybogf-flag Read exceptions too?
* with_texts = 'X' " rpybogf-flag Read short texts too?
* with_formatted_documentation = ' ' " rpybogf-flag Read formatted documentation too?
* with_sapscript_documentation = 'X' " rpybogf-flag Read SAPscript documentation too?
IMPORTING
objecttype_info = " rpybobs Basic data of object type
* TABLES
* interfaces = " rpyboif Interfaces supported
* keyfields = " rpyboke Key Fields of Object Type
* attributes = " rpyboat Object type attributes
* methods = " rpybome Methods of object type
* methodparams = " rpybomp Method parameters
* methodexceptions = " rpyboex Method exceptions
* events = " rpyboev Events of object type
* eventparams = " rpyboep Event parameters
* formatted_documentation = " rpybofd Formatted documentation
* sapscript_documentation = " rpybosd SAPscript documentation
EXCEPTIONS
NOT_FOUND = 1 " Object type not found
PERMISSION_ERROR = 2 " User does not have display authorization
. " RPY_OBJECTTYPE_READ
The ABAP code below is a full code listing to execute function module RPY_OBJECTTYPE_READ including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_objecttype_info | TYPE RPYBOBS , |
| it_interfaces | TYPE STANDARD TABLE OF RPYBOIF,"TABLES PARAM |
| wa_interfaces | LIKE LINE OF it_interfaces , |
| it_keyfields | TYPE STANDARD TABLE OF RPYBOKE,"TABLES PARAM |
| wa_keyfields | LIKE LINE OF it_keyfields , |
| it_attributes | TYPE STANDARD TABLE OF RPYBOAT,"TABLES PARAM |
| wa_attributes | LIKE LINE OF it_attributes , |
| it_methods | TYPE STANDARD TABLE OF RPYBOME,"TABLES PARAM |
| wa_methods | LIKE LINE OF it_methods , |
| it_methodparams | TYPE STANDARD TABLE OF RPYBOMP,"TABLES PARAM |
| wa_methodparams | LIKE LINE OF it_methodparams , |
| it_methodexceptions | TYPE STANDARD TABLE OF RPYBOEX,"TABLES PARAM |
| wa_methodexceptions | LIKE LINE OF it_methodexceptions , |
| it_events | TYPE STANDARD TABLE OF RPYBOEV,"TABLES PARAM |
| wa_events | LIKE LINE OF it_events , |
| it_eventparams | TYPE STANDARD TABLE OF RPYBOEP,"TABLES PARAM |
| wa_eventparams | LIKE LINE OF it_eventparams , |
| it_formatted_documentation | TYPE STANDARD TABLE OF RPYBOFD,"TABLES PARAM |
| wa_formatted_documentation | LIKE LINE OF it_formatted_documentation , |
| it_sapscript_documentation | TYPE STANDARD TABLE OF RPYBOSD,"TABLES PARAM |
| wa_sapscript_documentation | LIKE LINE OF it_sapscript_documentation . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| it_interfaces | TYPE STANDARD TABLE OF RPYBOIF , |
| wa_interfaces | LIKE LINE OF it_interfaces, |
| ld_objecttype_id | TYPE RPYBOBS-OBJTYPE , |
| ld_objecttype_info | TYPE RPYBOBS , |
| ld_language | TYPE SY-LANGU , |
| it_keyfields | TYPE STANDARD TABLE OF RPYBOKE , |
| wa_keyfields | LIKE LINE OF it_keyfields, |
| ld_cico_mode | TYPE RPYBOGF-CICO_MODE , |
| it_attributes | TYPE STANDARD TABLE OF RPYBOAT , |
| wa_attributes | LIKE LINE OF it_attributes, |
| ld_cico_request_no | TYPE RPYBOGF-CICO_REQNO , |
| it_methods | TYPE STANDARD TABLE OF RPYBOME , |
| wa_methods | LIKE LINE OF it_methods, |
| ld_with_verbs | TYPE RPYBOGF-FLAG , |
| it_methodparams | TYPE STANDARD TABLE OF RPYBOMP , |
| wa_methodparams | LIKE LINE OF it_methodparams, |
| ld_with_parameters | TYPE RPYBOGF-FLAG , |
| it_methodexceptions | TYPE STANDARD TABLE OF RPYBOEX , |
| wa_methodexceptions | LIKE LINE OF it_methodexceptions, |
| ld_with_exceptions | TYPE RPYBOGF-FLAG , |
| it_events | TYPE STANDARD TABLE OF RPYBOEV , |
| wa_events | LIKE LINE OF it_events, |
| ld_with_texts | TYPE RPYBOGF-FLAG , |
| it_eventparams | TYPE STANDARD TABLE OF RPYBOEP , |
| wa_eventparams | LIKE LINE OF it_eventparams, |
| ld_with_formatted_documentation | TYPE RPYBOGF-FLAG , |
| it_formatted_documentation | TYPE STANDARD TABLE OF RPYBOFD , |
| wa_formatted_documentation | LIKE LINE OF it_formatted_documentation, |
| ld_with_sapscript_documentation | TYPE RPYBOGF-FLAG , |
| it_sapscript_documentation | TYPE STANDARD TABLE OF RPYBOSD , |
| wa_sapscript_documentation | LIKE LINE OF it_sapscript_documentation. |
The function module reads the definition of an object type from the
business object repository.
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RPY_OBJECTTYPE_READ or its description.