SAP RPY_DATA_MODEL_READ Function Module for









RPY_DATA_MODEL_READ is a standard rpy data 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 data model read FM, simply by entering the name RPY_DATA_MODEL_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function RPY_DATA_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_DATA_MODEL_READ'"
EXPORTING
* CICO_MODE = 'R' "Checkin / checkout mode
* WITH_SUCCESSOR_ENTITY_INFOS = ' ' "Read with subordinate entity types?
* WITH_ALIASES = ' ' "Read with alias names?
* WITH_ATTRIBUTES = ' ' "Read with attributes?
* WITH_INGOING_SPECIALIZATIONS = ' ' "Read with ingoing specializations?
* WITH_OUTGOING_SPECIALIZATIONS = ' ' "Read with outgoing specializations?
* WITH_INGOING_RELATIONSHIPS = ' ' "Read with ingoing relationships?
* WITH_OUTGOING_RELATIONSHIPS = ' ' "Read with outgoing relationships?
* WITH_OUTGOING_SPEC_CATEGORIES = ' ' "Read with outgoing specializations?
* WITH_ASSIGNED_TABLES_OR_VIEWS = ' ' "Read with tables / view assigmnents?
* WITH_WHERE_USED_LISTS = ' ' "Read with where-used-lists?
* CICO_REQUEST_NO = ' ' "Checkin / check out administration number
DATA_MODEL_ID = "ID of the data model to be read
* LANGUAGE = SY-LANGU "Language for reading the descriptions
* LEVELS = 1 "Number of hierarchy levels (' '=999)
* WITH_FORMATTED_DOCUMENTATION = ' ' "Read with formatted documentation?
* WITH_SAPSCRIPT_DOCUMENTATION = 'X' "Read with SAPscript documentation?
* WITH_PARTS_LISTS = 'X' "Read with hierarchy information?
* WITH_SUCCESSOR_MODEL_INFOS = ' ' "Read with subordinate data model?

IMPORTING
MODEL_INFO = "Basic information about the data model

TABLES
ERRORS = "Error information
* OUTGOING_SPECIALIZATIONS = "Outgoing specializations
* INGOING_RELATIONSHIPS = "Ingoing relationships
* OUTGOING_RELATIONSHIPS = "Outgoing relationships
* OUTGOING_SPEC_CATEGORIES = "Specialization Types
* ASSIGNED_TABLES_OR_VIEWS = "Tables / view assignments
* WHERE_USED_LISTS = "Where-used lists
* FORMATTED_DOCUMENTATION = "Documentation in formatted form
* SAPSCRIPT_DOCUMENTATION = "Documentation in SAPscript form
* PARTS_LISTS = "Hierarchy information
* SUCCESSOR_MODEL_INFOS = "Subordinate data model
* SUCCESSOR_ENTITY_INFOS = "Subordinate entity types
* ALIASES = "Aliases
* ATTRIBUTES = "Attributes
* INGOING_SPECIALIZATIONS = "Ingoing specializations
.



IMPORTING Parameters details for RPY_DATA_MODEL_READ

CICO_MODE - Checkin / checkout mode

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

WITH_SUCCESSOR_ENTITY_INFOS - Read with subordinate entity types?

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

WITH_ALIASES - Read with alias names?

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

WITH_ATTRIBUTES - Read with attributes?

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

WITH_INGOING_SPECIALIZATIONS - Read with ingoing specializations?

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

WITH_OUTGOING_SPECIALIZATIONS - Read with outgoing specializations?

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

WITH_INGOING_RELATIONSHIPS - Read with ingoing relationships?

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

WITH_OUTGOING_RELATIONSHIPS - Read with outgoing relationships?

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

WITH_OUTGOING_SPEC_CATEGORIES - Read with outgoing specializations?

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

WITH_ASSIGNED_TABLES_OR_VIEWS - Read with tables / view assigmnents?

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

WITH_WHERE_USED_LISTS - Read with where-used-lists?

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

CICO_REQUEST_NO - Checkin / check out administration number

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

DATA_MODEL_ID - ID of the data model to be read

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

LANGUAGE - Language for reading the descriptions

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

LEVELS - Number of hierarchy levels (' '=999)

Data type: RPYDMGF-LEVELS
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_FORMATTED_DOCUMENTATION - Read with formatted documentation?

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

WITH_SAPSCRIPT_DOCUMENTATION - Read with SAPscript documentation?

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

WITH_PARTS_LISTS - Read with hierarchy information?

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

WITH_SUCCESSOR_MODEL_INFOS - Read with subordinate data model?

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

EXPORTING Parameters details for RPY_DATA_MODEL_READ

MODEL_INFO - Basic information about the data model

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

TABLES Parameters details for RPY_DATA_MODEL_READ

ERRORS - Error information

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

OUTGOING_SPECIALIZATIONS - Outgoing specializations

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

INGOING_RELATIONSHIPS - Ingoing relationships

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

OUTGOING_RELATIONSHIPS - Outgoing relationships

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

OUTGOING_SPEC_CATEGORIES - Specialization Types

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

ASSIGNED_TABLES_OR_VIEWS - Tables / view assignments

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

WHERE_USED_LISTS - Where-used lists

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

FORMATTED_DOCUMENTATION - Documentation in formatted form

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

SAPSCRIPT_DOCUMENTATION - Documentation in SAPscript form

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

PARTS_LISTS - Hierarchy information

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

SUCCESSOR_MODEL_INFOS - Subordinate data model

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

SUCCESSOR_ENTITY_INFOS - Subordinate entity types

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

ALIASES - Aliases

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

ATTRIBUTES - Attributes

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

INGOING_SPECIALIZATIONS - Ingoing specializations

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

Copy and paste ABAP code example for RPY_DATA_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:
lt_errors  TYPE STANDARD TABLE OF RPYGSER, "   
lv_cico_mode  TYPE RPYDMGF-CICOMODE, "   'R'
lv_model_info  TYPE RPYDMDM, "   
lt_outgoing_specializations  TYPE STANDARD TABLE OF RPYDMSP, "   
lv_with_successor_entity_infos  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_aliases  TYPE RPYDMGF-FLAG, "   SPACE
lt_ingoing_relationships  TYPE STANDARD TABLE OF RPYDMRL, "   
lv_with_attributes  TYPE RPYDMGF-FLAG, "   SPACE
lt_outgoing_relationships  TYPE STANDARD TABLE OF RPYDMRL, "   
lt_outgoing_spec_categories  TYPE STANDARD TABLE OF RPYDMSC, "   
lv_with_ingoing_specializations  TYPE RPYDMGF-FLAG, "   SPACE
lt_assigned_tables_or_views  TYPE STANDARD TABLE OF RPYDMTV, "   
lv_with_outgoing_specializations  TYPE RPYDMGF-FLAG, "   SPACE
lt_where_used_lists  TYPE STANDARD TABLE OF RPYDMHI, "   
lv_with_ingoing_relationships  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_outgoing_relationships  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_outgoing_spec_categories  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_assigned_tables_or_views  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_where_used_lists  TYPE RPYDMGF-FLAG, "   SPACE
lv_cico_request_no  TYPE RPYDMGF-CICOREQUNO, "   SPACE
lt_formatted_documentation  TYPE STANDARD TABLE OF RPYDMFD, "   
lv_data_model_id  TYPE RPYDMDM-MODEL_ID, "   
lt_sapscript_documentation  TYPE STANDARD TABLE OF RPYDMSD, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_parts_lists  TYPE STANDARD TABLE OF RPYDMHI, "   
lv_levels  TYPE RPYDMGF-LEVELS, "   1
lt_successor_model_infos  TYPE STANDARD TABLE OF RPYDMDM, "   
lt_successor_entity_infos  TYPE STANDARD TABLE OF RPYDMEN, "   
lv_with_formatted_documentation  TYPE RPYDMGF-FLAG, "   SPACE
lt_aliases  TYPE STANDARD TABLE OF RPYDMAL, "   
lv_with_sapscript_documentation  TYPE RPYDMGF-FLAG, "   'X'
lt_attributes  TYPE STANDARD TABLE OF RPYDMAT, "   
lv_with_parts_lists  TYPE RPYDMGF-FLAG, "   'X'
lt_ingoing_specializations  TYPE STANDARD TABLE OF RPYDMSP, "   
lv_with_successor_model_infos  TYPE RPYDMGF-FLAG. "   SPACE

  CALL FUNCTION 'RPY_DATA_MODEL_READ'  "
    EXPORTING
         CICO_MODE = lv_cico_mode
         WITH_SUCCESSOR_ENTITY_INFOS = lv_with_successor_entity_infos
         WITH_ALIASES = lv_with_aliases
         WITH_ATTRIBUTES = lv_with_attributes
         WITH_INGOING_SPECIALIZATIONS = lv_with_ingoing_specializations
         WITH_OUTGOING_SPECIALIZATIONS = lv_with_outgoing_specializations
         WITH_INGOING_RELATIONSHIPS = lv_with_ingoing_relationships
         WITH_OUTGOING_RELATIONSHIPS = lv_with_outgoing_relationships
         WITH_OUTGOING_SPEC_CATEGORIES = lv_with_outgoing_spec_categories
         WITH_ASSIGNED_TABLES_OR_VIEWS = lv_with_assigned_tables_or_views
         WITH_WHERE_USED_LISTS = lv_with_where_used_lists
         CICO_REQUEST_NO = lv_cico_request_no
         DATA_MODEL_ID = lv_data_model_id
         LANGUAGE = lv_language
         LEVELS = lv_levels
         WITH_FORMATTED_DOCUMENTATION = lv_with_formatted_documentation
         WITH_SAPSCRIPT_DOCUMENTATION = lv_with_sapscript_documentation
         WITH_PARTS_LISTS = lv_with_parts_lists
         WITH_SUCCESSOR_MODEL_INFOS = lv_with_successor_model_infos
    IMPORTING
         MODEL_INFO = lv_model_info
    TABLES
         ERRORS = lt_errors
         OUTGOING_SPECIALIZATIONS = lt_outgoing_specializations
         INGOING_RELATIONSHIPS = lt_ingoing_relationships
         OUTGOING_RELATIONSHIPS = lt_outgoing_relationships
         OUTGOING_SPEC_CATEGORIES = lt_outgoing_spec_categories
         ASSIGNED_TABLES_OR_VIEWS = lt_assigned_tables_or_views
         WHERE_USED_LISTS = lt_where_used_lists
         FORMATTED_DOCUMENTATION = lt_formatted_documentation
         SAPSCRIPT_DOCUMENTATION = lt_sapscript_documentation
         PARTS_LISTS = lt_parts_lists
         SUCCESSOR_MODEL_INFOS = lt_successor_model_infos
         SUCCESSOR_ENTITY_INFOS = lt_successor_entity_infos
         ALIASES = lt_aliases
         ATTRIBUTES = lt_attributes
         INGOING_SPECIALIZATIONS = lt_ingoing_specializations
. " RPY_DATA_MODEL_READ




ABAP code using 7.40 inline data declarations to call FM RPY_DATA_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 CICOMODE FROM RPYDMGF INTO @DATA(ld_cico_mode).
DATA(ld_cico_mode) = 'R'.
 
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_successor_entity_infos).
DATA(ld_with_successor_entity_infos) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_aliases).
DATA(ld_with_aliases) = ' '.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_attributes).
DATA(ld_with_attributes) = ' '.
 
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_ingoing_specializations).
DATA(ld_with_ingoing_specializations) = ' '.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_outgoing_specializations).
DATA(ld_with_outgoing_specializations) = ' '.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_ingoing_relationships).
DATA(ld_with_ingoing_relationships) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_outgoing_relationships).
DATA(ld_with_outgoing_relationships) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_outgoing_spec_categories).
DATA(ld_with_outgoing_spec_categories) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_assigned_tables_or_views).
DATA(ld_with_assigned_tables_or_views) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_where_used_lists).
DATA(ld_with_where_used_lists) = ' '.
 
"SELECT single CICOREQUNO FROM RPYDMGF INTO @DATA(ld_cico_request_no).
DATA(ld_cico_request_no) = ' '.
 
 
"SELECT single MODEL_ID FROM RPYDMDM INTO @DATA(ld_data_model_id).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
"SELECT single LEVELS FROM RPYDMGF INTO @DATA(ld_levels).
DATA(ld_levels) = 1.
 
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_formatted_documentation).
DATA(ld_with_formatted_documentation) = ' '.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_sapscript_documentation).
DATA(ld_with_sapscript_documentation) = 'X'.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_parts_lists).
DATA(ld_with_parts_lists) = 'X'.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_successor_model_infos).
DATA(ld_with_successor_model_infos) = ' '.
 


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!