SAP Function Modules

RPY_OBJECTTYPE_READ SAP Function module - Read object type







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
remote enabled module settings


Pattern for FM RPY_OBJECTTYPE_READ - RPY OBJECTTYPE READ





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

ABAP code example for Function Module 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).

DATA:
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 .


DATA(ld_objecttype_id) = some text here
DATA(ld_language) = 'Check type of data required'.

DATA(ld_cico_mode) = some text here

DATA(ld_cico_request_no) = some text here

DATA(ld_with_verbs) = some text here

DATA(ld_with_parameters) = some text here

DATA(ld_with_exceptions) = some text here

DATA(ld_with_texts) = some text here

DATA(ld_with_formatted_documentation) = some text here

DATA(ld_with_sapscript_documentation) = some text here

"populate fields of struture and append to itab
append wa_interfaces to it_interfaces.

"populate fields of struture and append to itab
append wa_keyfields to it_keyfields.

"populate fields of struture and append to itab
append wa_attributes to it_attributes.

"populate fields of struture and append to itab
append wa_methods to it_methods.

"populate fields of struture and append to itab
append wa_methodparams to it_methodparams.

"populate fields of struture and append to itab
append wa_methodexceptions to it_methodexceptions.

"populate fields of struture and append to itab
append wa_events to it_events.

"populate fields of struture and append to itab
append wa_eventparams to it_eventparams.

"populate fields of struture and append to itab
append wa_formatted_documentation to it_formatted_documentation.

"populate fields of struture and append to itab
append wa_sapscript_documentation to it_sapscript_documentation. . CALL FUNCTION 'RPY_OBJECTTYPE_READ' EXPORTING objecttype_id = ld_objecttype_id * language = ld_language * cico_mode = ld_cico_mode * cico_request_no = ld_cico_request_no * with_verbs = ld_with_verbs * with_parameters = ld_with_parameters * with_exceptions = ld_with_exceptions * with_texts = ld_with_texts * with_formatted_documentation = ld_with_formatted_documentation * with_sapscript_documentation = ld_with_sapscript_documentation IMPORTING objecttype_info = ld_objecttype_info * TABLES * interfaces = it_interfaces * keyfields = it_keyfields * attributes = it_attributes * methods = it_methods * methodparams = it_methodparams * methodexceptions = it_methodexceptions * events = it_events * eventparams = it_eventparams * formatted_documentation = it_formatted_documentation * sapscript_documentation = it_sapscript_documentation EXCEPTIONS NOT_FOUND = 1 PERMISSION_ERROR = 2 . " RPY_OBJECTTYPE_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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.


"populate fields of struture and append to itab
append wa_interfaces to it_interfaces.

ld_objecttype_id = some text here
ld_language = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_keyfields to it_keyfields.

ld_cico_mode = some text here

"populate fields of struture and append to itab
append wa_attributes to it_attributes.

ld_cico_request_no = some text here

"populate fields of struture and append to itab
append wa_methods to it_methods.

ld_with_verbs = some text here

"populate fields of struture and append to itab
append wa_methodparams to it_methodparams.

ld_with_parameters = some text here

"populate fields of struture and append to itab
append wa_methodexceptions to it_methodexceptions.

ld_with_exceptions = some text here

"populate fields of struture and append to itab
append wa_events to it_events.

ld_with_texts = some text here

"populate fields of struture and append to itab
append wa_eventparams to it_eventparams.

ld_with_formatted_documentation = some text here

"populate fields of struture and append to itab
append wa_formatted_documentation to it_formatted_documentation.

ld_with_sapscript_documentation = some text here

"populate fields of struture and append to itab
append wa_sapscript_documentation to it_sapscript_documentation.

SAP Documentation for FM RPY_OBJECTTYPE_READ


The function module reads the definition of an object type from the business object repository. ...See here for full SAP fm documentation

Contribute (Add Comments)

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.