RPY_BOM_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_BOM_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SIBM
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'RPY_BOM_READ' "Read Business Object Model of a Component
EXPORTING
comp_id = " df14l-fctr_id Component whose bo-model is to be read
* langu = SY-LANGU " sy-langu Language of the texts and docu to be read
* with_objdef = 'X' " rpybogf-flag Requires attrib., meth., events, keys, interf.
* with_form_docu = 'X' " rpybogf-flag Requires formatted documentation
* with_sapscript_docu = 'X' " rpybogf-flag Requires SAPScript documentation
IMPORTING
error_occured = " rpygsgf-err_exist Tells whether an error has occured
processing_status = " rpygsgf-proc_stat Tells what has been done
TABLES
bom_nodes = " rpybom140 Business Object Model
bom_connections = " rpyborl Type of connections between the objects
errors = " rpygser Info-structure upon possible errors
bo_type_info = " rpybobs Object spec (from table TOJTB)
* bo_interfaces = " rpyboif ifparams required (i.e. with_verbs = 'X')
* bo_keyfields = " rpyboke if verbs required (i.e. with_verbs = 'X')
* bo_attributes = " rpyboat if verbs required (i.e. with_verbs = 'X')
* bo_methods = " rpybome if verbs required (i.e. with_verbs = 'X')
* bo_mparams = " rpybomp if parameters required (i.e. with_params = 'X')
bo_mexceptions = " rpyboex if method exceptions required
* bo_events = " rpyboev if verbs required (i.e. with_verbs = 'X')
* bo_evparams = " rpyboep if paramters required (i.e. with_params = 'X')
* bo_formdocu = " rpybofd if formatted docu required (with_formdodu = 'X')
* bo_sapscriptdocu = " rpybosd if SAPScript-docu required
EXCEPTIONS
NOT_FOUND = 1 "
PERMISSION_ERROR = 2 "
. " RPY_BOM_READ
The ABAP code below is a full code listing to execute function module RPY_BOM_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_error_occured | TYPE RPYGSGF-ERR_EXIST , |
| ld_processing_status | TYPE RPYGSGF-PROC_STAT , |
| it_bom_nodes | TYPE STANDARD TABLE OF RPYBOM140,"TABLES PARAM |
| wa_bom_nodes | LIKE LINE OF it_bom_nodes , |
| it_bom_connections | TYPE STANDARD TABLE OF RPYBORL,"TABLES PARAM |
| wa_bom_connections | LIKE LINE OF it_bom_connections , |
| it_errors | TYPE STANDARD TABLE OF RPYGSER,"TABLES PARAM |
| wa_errors | LIKE LINE OF it_errors , |
| it_bo_type_info | TYPE STANDARD TABLE OF RPYBOBS,"TABLES PARAM |
| wa_bo_type_info | LIKE LINE OF it_bo_type_info , |
| it_bo_interfaces | TYPE STANDARD TABLE OF RPYBOIF,"TABLES PARAM |
| wa_bo_interfaces | LIKE LINE OF it_bo_interfaces , |
| it_bo_keyfields | TYPE STANDARD TABLE OF RPYBOKE,"TABLES PARAM |
| wa_bo_keyfields | LIKE LINE OF it_bo_keyfields , |
| it_bo_attributes | TYPE STANDARD TABLE OF RPYBOAT,"TABLES PARAM |
| wa_bo_attributes | LIKE LINE OF it_bo_attributes , |
| it_bo_methods | TYPE STANDARD TABLE OF RPYBOME,"TABLES PARAM |
| wa_bo_methods | LIKE LINE OF it_bo_methods , |
| it_bo_mparams | TYPE STANDARD TABLE OF RPYBOMP,"TABLES PARAM |
| wa_bo_mparams | LIKE LINE OF it_bo_mparams , |
| it_bo_mexceptions | TYPE STANDARD TABLE OF RPYBOEX,"TABLES PARAM |
| wa_bo_mexceptions | LIKE LINE OF it_bo_mexceptions , |
| it_bo_events | TYPE STANDARD TABLE OF RPYBOEV,"TABLES PARAM |
| wa_bo_events | LIKE LINE OF it_bo_events , |
| it_bo_evparams | TYPE STANDARD TABLE OF RPYBOEP,"TABLES PARAM |
| wa_bo_evparams | LIKE LINE OF it_bo_evparams , |
| it_bo_formdocu | TYPE STANDARD TABLE OF RPYBOFD,"TABLES PARAM |
| wa_bo_formdocu | LIKE LINE OF it_bo_formdocu , |
| it_bo_sapscriptdocu | TYPE STANDARD TABLE OF RPYBOSD,"TABLES PARAM |
| wa_bo_sapscriptdocu | LIKE LINE OF it_bo_sapscriptdocu . |
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:
| ld_error_occured | TYPE RPYGSGF-ERR_EXIST , |
| ld_comp_id | TYPE DF14L-FCTR_ID , |
| it_bom_nodes | TYPE STANDARD TABLE OF RPYBOM140 , |
| wa_bom_nodes | LIKE LINE OF it_bom_nodes, |
| ld_processing_status | TYPE RPYGSGF-PROC_STAT , |
| ld_langu | TYPE SY-LANGU , |
| it_bom_connections | TYPE STANDARD TABLE OF RPYBORL , |
| wa_bom_connections | LIKE LINE OF it_bom_connections, |
| ld_with_objdef | TYPE RPYBOGF-FLAG , |
| it_errors | TYPE STANDARD TABLE OF RPYGSER , |
| wa_errors | LIKE LINE OF it_errors, |
| ld_with_form_docu | TYPE RPYBOGF-FLAG , |
| it_bo_type_info | TYPE STANDARD TABLE OF RPYBOBS , |
| wa_bo_type_info | LIKE LINE OF it_bo_type_info, |
| it_bo_interfaces | TYPE STANDARD TABLE OF RPYBOIF , |
| wa_bo_interfaces | LIKE LINE OF it_bo_interfaces, |
| ld_with_sapscript_docu | TYPE RPYBOGF-FLAG , |
| it_bo_keyfields | TYPE STANDARD TABLE OF RPYBOKE , |
| wa_bo_keyfields | LIKE LINE OF it_bo_keyfields, |
| it_bo_attributes | TYPE STANDARD TABLE OF RPYBOAT , |
| wa_bo_attributes | LIKE LINE OF it_bo_attributes, |
| it_bo_methods | TYPE STANDARD TABLE OF RPYBOME , |
| wa_bo_methods | LIKE LINE OF it_bo_methods, |
| it_bo_mparams | TYPE STANDARD TABLE OF RPYBOMP , |
| wa_bo_mparams | LIKE LINE OF it_bo_mparams, |
| it_bo_mexceptions | TYPE STANDARD TABLE OF RPYBOEX , |
| wa_bo_mexceptions | LIKE LINE OF it_bo_mexceptions, |
| it_bo_events | TYPE STANDARD TABLE OF RPYBOEV , |
| wa_bo_events | LIKE LINE OF it_bo_events, |
| it_bo_evparams | TYPE STANDARD TABLE OF RPYBOEP , |
| wa_bo_evparams | LIKE LINE OF it_bo_evparams, |
| it_bo_formdocu | TYPE STANDARD TABLE OF RPYBOFD , |
| wa_bo_formdocu | LIKE LINE OF it_bo_formdocu, |
| it_bo_sapscriptdocu | TYPE STANDARD TABLE OF RPYBOSD , |
| wa_bo_sapscriptdocu | LIKE LINE OF it_bo_sapscriptdocu. |
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_BOM_READ or its description.
RPY_BOM_READ - Read Business Object Model of a Component RPY_BOM_MULTI_READ - Read Business Object Models of multiple Application Components RPY_BOM_GRAPHIC - Graphical Display of an Business Object Model RPY_BM_HIERARCHY_READ_30 - Read Business-Navigator hierarchy RPY_BM_CALL_TRANSACTION - Executes the ABAP/4 command CALL TRANSACTION RPY_BMSZ_MULTI_UPDATE_30 - Update scenarios