SAP RPY_BO_MODEL_READ Function Module for









RPY_BO_MODEL_READ is a standard rpy bo model read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rpy bo model read FM, simply by entering the name RPY_BO_MODEL_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: SIBO
Program Name: SAPLSIBO
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RPY_BO_MODEL_READ pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RPY_BO_MODEL_READ'"
EXPORTING
BO_MODEL_ID = "Name of business object model
* WITH_FORMATTED_DOCUMENTATION = ' ' "Read formatted documentation too?
* WITH_SAPSCRIPT_DOCUMENTATION = 'X' "Read SAPscript documentation too?
* LANGUAGE = SY-LANGU "Language in which texts and docu are to be read
* CICO_MODE = 'R' "Checkin/checkout mode
* CICO_REQUEST_NO = ' ' "Number of CICO request
* WITH_RELATIONSHIPS = 'X' "Read relationships too?
* WITH_VERBS = 'X' "Read verbs too?
* WITH_PARAMETERS = 'X' "Read parameters too?
* WITH_EXCEPTIONS = 'X' "Read exceptions too?
* WITH_TEXTS = 'X' "Read short texts too?

TABLES
* OBJECTTYPE_INFOS = "Basic data of object types
* RELATIONSHIPS = "Relationships between object types
* FORMATTED_DOCUMENTATION = "Formatted documentation
* SAPSCRIPT_DOCUMENTATION = "SAPscript documentation
* INTERFACES = "Interfaces supported
* KEYFIELDS = "Key fields of object types
* ATTRIBUTES = "Attributes of object types
* METHODS = "Methods of object types
* METHODPARAMS = "Method parameters
* METHODEXCEPTIONS = "Method exceptions
* EVENTS = "Events of object types
* EVENTPARAMS = "Event parameters

EXCEPTIONS
NOT_FOUND = 1 PERMISSION_ERROR = 2
.



IMPORTING Parameters details for RPY_BO_MODEL_READ

BO_MODEL_ID - Name of business object model

Data type: RPY_DMODEL-MODEL_ID
Optional: No
Call by Reference: No ( called with pass by value option)

WITH_FORMATTED_DOCUMENTATION - Read formatted documentation too?

Data type: RPYBOGF-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_SAPSCRIPT_DOCUMENTATION - Read SAPscript documentation too?

Data type: RPYBOGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGUAGE - Language in which texts and docu are to be read

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

CICO_MODE - Checkin/checkout mode

Data type: RPYBOGF-CICO_MODE
Default: 'R'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CICO_REQUEST_NO - Number of CICO request

Data type: RPYBOGF-CICO_REQNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_RELATIONSHIPS - Read relationships too?

Data type: RPYBOGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_VERBS - Read verbs too?

Data type: RPYBOGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_PARAMETERS - Read parameters too?

Data type: RPYBOGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_EXCEPTIONS - Read exceptions too?

Data type: RPYBOGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_TEXTS - Read short texts too?

Data type: RPYBOGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RPY_BO_MODEL_READ

OBJECTTYPE_INFOS - Basic data of object types

Data type: RPYBOBS
Optional: Yes
Call by Reference: No ( called with pass by value option)

RELATIONSHIPS - Relationships between object types

Data type: RPYBORL
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORMATTED_DOCUMENTATION - Formatted documentation

Data type: RPYBOFD
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAPSCRIPT_DOCUMENTATION - SAPscript documentation

Data type: RPYBOSD
Optional: Yes
Call by Reference: No ( called with pass by value option)

INTERFACES - Interfaces supported

Data type: RPYBOIF
Optional: Yes
Call by Reference: No ( called with pass by value option)

KEYFIELDS - Key fields of object types

Data type: RPYBOKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ATTRIBUTES - Attributes of object types

Data type: RPYBOAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

METHODS - Methods of object types

Data type: RPYBOME
Optional: Yes
Call by Reference: No ( called with pass by value option)

METHODPARAMS - Method parameters

Data type: RPYBOMP
Optional: Yes
Call by Reference: No ( called with pass by value option)

METHODEXCEPTIONS - Method exceptions

Data type: RPYBOEX
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVENTS - Events of object types

Data type: RPYBOEV
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVENTPARAMS - Event parameters

Data type: RPYBOEP
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NOT_FOUND - Object type not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PERMISSION_ERROR - User does not have display authorization

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RPY_BO_MODEL_READ Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_not_found  TYPE STRING, "   
lv_bo_model_id  TYPE RPY_DMODEL-MODEL_ID, "   
lt_objecttype_infos  TYPE STANDARD TABLE OF RPYBOBS, "   
lt_relationships  TYPE STANDARD TABLE OF RPYBORL, "   
lv_with_formatted_documentation  TYPE RPYBOGF-FLAG, "   ' '
lt_formatted_documentation  TYPE STANDARD TABLE OF RPYBOFD, "   
lv_with_sapscript_documentation  TYPE RPYBOGF-FLAG, "   'X'
lt_sapscript_documentation  TYPE STANDARD TABLE OF RPYBOSD, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_interfaces  TYPE STANDARD TABLE OF RPYBOIF, "   
lv_permission_error  TYPE RPYBOIF, "   
lv_cico_mode  TYPE RPYBOGF-CICO_MODE, "   'R'
lt_keyfields  TYPE STANDARD TABLE OF RPYBOKE, "   
lt_attributes  TYPE STANDARD TABLE OF RPYBOAT, "   
lv_cico_request_no  TYPE RPYBOGF-CICO_REQNO, "   SPACE
lt_methods  TYPE STANDARD TABLE OF RPYBOME, "   
lv_with_relationships  TYPE RPYBOGF-FLAG, "   'X'
lv_with_verbs  TYPE RPYBOGF-FLAG, "   'X'
lt_methodparams  TYPE STANDARD TABLE OF RPYBOMP, "   
lv_with_parameters  TYPE RPYBOGF-FLAG, "   'X'
lt_methodexceptions  TYPE STANDARD TABLE OF RPYBOEX, "   
lt_events  TYPE STANDARD TABLE OF RPYBOEV, "   
lv_with_exceptions  TYPE RPYBOGF-FLAG, "   'X'
lv_with_texts  TYPE RPYBOGF-FLAG, "   'X'
lt_eventparams  TYPE STANDARD TABLE OF RPYBOEP. "   

  CALL FUNCTION 'RPY_BO_MODEL_READ'  "
    EXPORTING
         BO_MODEL_ID = lv_bo_model_id
         WITH_FORMATTED_DOCUMENTATION = lv_with_formatted_documentation
         WITH_SAPSCRIPT_DOCUMENTATION = lv_with_sapscript_documentation
         LANGUAGE = lv_language
         CICO_MODE = lv_cico_mode
         CICO_REQUEST_NO = lv_cico_request_no
         WITH_RELATIONSHIPS = lv_with_relationships
         WITH_VERBS = lv_with_verbs
         WITH_PARAMETERS = lv_with_parameters
         WITH_EXCEPTIONS = lv_with_exceptions
         WITH_TEXTS = lv_with_texts
    TABLES
         OBJECTTYPE_INFOS = lt_objecttype_infos
         RELATIONSHIPS = lt_relationships
         FORMATTED_DOCUMENTATION = lt_formatted_documentation
         SAPSCRIPT_DOCUMENTATION = lt_sapscript_documentation
         INTERFACES = lt_interfaces
         KEYFIELDS = lt_keyfields
         ATTRIBUTES = lt_attributes
         METHODS = lt_methods
         METHODPARAMS = lt_methodparams
         METHODEXCEPTIONS = lt_methodexceptions
         EVENTS = lt_events
         EVENTPARAMS = lt_eventparams
    EXCEPTIONS
        NOT_FOUND = 1
        PERMISSION_ERROR = 2
. " RPY_BO_MODEL_READ




ABAP code using 7.40 inline data declarations to call FM RPY_BO_MODEL_READ

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single MODEL_ID FROM RPY_DMODEL INTO @DATA(ld_bo_model_id).
 
 
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_formatted_documentation).
DATA(ld_with_formatted_documentation) = ' '.
 
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_sapscript_documentation).
DATA(ld_with_sapscript_documentation) = 'X'.
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
 
"SELECT single CICO_MODE FROM RPYBOGF INTO @DATA(ld_cico_mode).
DATA(ld_cico_mode) = 'R'.
 
 
 
"SELECT single CICO_REQNO FROM RPYBOGF INTO @DATA(ld_cico_request_no).
DATA(ld_cico_request_no) = ' '.
 
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_relationships).
DATA(ld_with_relationships) = 'X'.
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_verbs).
DATA(ld_with_verbs) = 'X'.
 
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_parameters).
DATA(ld_with_parameters) = 'X'.
 
 
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_exceptions).
DATA(ld_with_exceptions) = 'X'.
 
"SELECT single FLAG FROM RPYBOGF INTO @DATA(ld_with_texts).
DATA(ld_with_texts) = 'X'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!