SAP RPY_DATA_MODEL_UPDATE Function Module for









RPY_DATA_MODEL_UPDATE is a standard rpy data model update 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 update FM, simply by entering the name RPY_DATA_MODEL_UPDATE 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): Normal Function Module
Update:



Function RPY_DATA_MODEL_UPDATE 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_UPDATE'"
EXPORTING
CICO_REQUEST_NO = "
* CICO_DEV_CLASS = '$TMP' "Package
DATA_MODEL_ID = "
* LANGUAGE = SY-LANGU "
MODEL_INFO = "
* WITH_FORMATTED_DOCUMENTATION = ' ' "
* WITH_SAPSCRIPT_DOCUMENTATION = 'X' "
* WITH_PARTS_LISTS = 'X' "

TABLES
ERRORS = "Error Information
* FORMATTED_DOCUMENTATION = "
* SAPSCRIPT_DOCUMENTATION = "
* PARTS_LISTS = "Hierarchy information
.



IMPORTING Parameters details for RPY_DATA_MODEL_UPDATE

CICO_REQUEST_NO -

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

CICO_DEV_CLASS - Package

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

DATA_MODEL_ID -

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

LANGUAGE -

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

MODEL_INFO -

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

WITH_FORMATTED_DOCUMENTATION -

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

WITH_SAPSCRIPT_DOCUMENTATION -

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

WITH_PARTS_LISTS -

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

TABLES Parameters details for RPY_DATA_MODEL_UPDATE

ERRORS - Error Information

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

FORMATTED_DOCUMENTATION -

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

SAPSCRIPT_DOCUMENTATION -

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)

Copy and paste ABAP code example for RPY_DATA_MODEL_UPDATE 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_request_no  TYPE RPYDMGF-CICOREQUNO, "   
lv_cico_dev_class  TYPE RPYDMGF-CICODEVCL, "   '$TMP'
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_model_info  TYPE RPYDMDM, "   
lv_with_formatted_documentation  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_sapscript_documentation  TYPE RPYDMGF-FLAG, "   'X'
lv_with_parts_lists  TYPE RPYDMGF-FLAG. "   'X'

  CALL FUNCTION 'RPY_DATA_MODEL_UPDATE'  "
    EXPORTING
         CICO_REQUEST_NO = lv_cico_request_no
         CICO_DEV_CLASS = lv_cico_dev_class
         DATA_MODEL_ID = lv_data_model_id
         LANGUAGE = lv_language
         MODEL_INFO = lv_model_info
         WITH_FORMATTED_DOCUMENTATION = lv_with_formatted_documentation
         WITH_SAPSCRIPT_DOCUMENTATION = lv_with_sapscript_documentation
         WITH_PARTS_LISTS = lv_with_parts_lists
    TABLES
         ERRORS = lt_errors
         FORMATTED_DOCUMENTATION = lt_formatted_documentation
         SAPSCRIPT_DOCUMENTATION = lt_sapscript_documentation
         PARTS_LISTS = lt_parts_lists
. " RPY_DATA_MODEL_UPDATE




ABAP code using 7.40 inline data declarations to call FM RPY_DATA_MODEL_UPDATE

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 CICOREQUNO FROM RPYDMGF INTO @DATA(ld_cico_request_no).
 
"SELECT single CICODEVCL FROM RPYDMGF INTO @DATA(ld_cico_dev_class).
DATA(ld_cico_dev_class) = '$TMP'.
 
 
"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 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'.
 


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!