SAP RPY_DYNPRO_INSERT Function Module for









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

Function Group: SIFP
Program Name: SAPLSIFP
Main Program: SAPLSIFP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RPY_DYNPRO_INSERT 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_DYNPRO_INSERT'"
EXPORTING
* SUPPRESS_CORR_CHECKS = ' ' "
* CORRNUM = ' ' "Correction Number
* SUPPRESS_EXIST_CHECKS = ' ' "
* SUPPRESS_GENERATE = ' ' "
* SUPPRESS_DICT_SUPPORT = ' ' "
* SUPPRESS_EXTENDED_CHECKS = ' ' "
HEADER = "
* USE_CORRNUM_IMMEDIATEDLY = ' ' "
* SUPPRESS_COMMIT_WORK = ' ' "

TABLES
CONTAINERS = "Screen: Container Attributes (External Representation)
FIELDS_TO_CONTAINERS = "Screen: Single fields for a container (external represent.)
FLOW_LOGIC = "
* PARAMS = "

EXCEPTIONS
CANCELLED = 1 ALREADY_EXISTS = 2 PROGRAM_NOT_EXISTS = 3 NOT_EXECUTED = 4 MISSING_REQUIRED_FIELD = 5 ILLEGAL_FIELD_VALUE = 6 FIELD_NOT_ALLOWED = 7 NOT_GENERATED = 8 ILLEGAL_FIELD_POSITION = 9
.



IMPORTING Parameters details for RPY_DYNPRO_INSERT

SUPPRESS_CORR_CHECKS -

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

CORRNUM - Correction Number

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

SUPPRESS_EXIST_CHECKS -

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

SUPPRESS_GENERATE -

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

SUPPRESS_DICT_SUPPORT -

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

SUPPRESS_EXTENDED_CHECKS -

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

HEADER -

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

USE_CORRNUM_IMMEDIATEDLY -

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

SUPPRESS_COMMIT_WORK -

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

TABLES Parameters details for RPY_DYNPRO_INSERT

CONTAINERS - Screen: Container Attributes (External Representation)

Data type: DYCATT_TAB
Optional: No
Call by Reference: Yes

FIELDS_TO_CONTAINERS - Screen: Single fields for a container (external represent.)

Data type: DYFATC_TAB
Optional: No
Call by Reference: Yes

FLOW_LOGIC -

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

PARAMS -

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

EXCEPTIONS details

CANCELLED - Canceled by user in correction dialog box

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

ALREADY_EXISTS - Screen already exists

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

PROGRAM_NOT_EXISTS -

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

NOT_EXECUTED - Unable to save screen

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

MISSING_REQUIRED_FIELD -

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

ILLEGAL_FIELD_VALUE -

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

FIELD_NOT_ALLOWED -

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

NOT_GENERATED -

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

ILLEGAL_FIELD_POSITION -

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

Copy and paste ABAP code example for RPY_DYNPRO_INSERT 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_cancelled  TYPE STRING, "   
lt_containers  TYPE STANDARD TABLE OF DYCATT_TAB, "   
lv_suppress_corr_checks  TYPE C, "   ' '
lv_corrnum  TYPE E071-TRKORR, "   SPACE
lv_already_exists  TYPE E071, "   
lt_fields_to_containers  TYPE STANDARD TABLE OF DYFATC_TAB, "   
lt_flow_logic  TYPE STANDARD TABLE OF RPY_DYFLOW, "   
lv_program_not_exists  TYPE RPY_DYFLOW, "   
lv_suppress_exist_checks  TYPE C, "   ' '
lt_params  TYPE STANDARD TABLE OF RPY_DYPARA, "   
lv_not_executed  TYPE RPY_DYPARA, "   
lv_suppress_generate  TYPE C, "   ' '
lv_suppress_dict_support  TYPE C, "   ' '
lv_missing_required_field  TYPE C, "   
lv_illegal_field_value  TYPE C, "   
lv_suppress_extended_checks  TYPE C, "   ' '
lv_header  TYPE RPY_DYHEAD, "   
lv_field_not_allowed  TYPE RPY_DYHEAD, "   
lv_not_generated  TYPE RPY_DYHEAD, "   
lv_use_corrnum_immediatedly  TYPE C, "   ' '
lv_suppress_commit_work  TYPE C, "   ' '
lv_illegal_field_position  TYPE C. "   

  CALL FUNCTION 'RPY_DYNPRO_INSERT'  "
    EXPORTING
         SUPPRESS_CORR_CHECKS = lv_suppress_corr_checks
         CORRNUM = lv_corrnum
         SUPPRESS_EXIST_CHECKS = lv_suppress_exist_checks
         SUPPRESS_GENERATE = lv_suppress_generate
         SUPPRESS_DICT_SUPPORT = lv_suppress_dict_support
         SUPPRESS_EXTENDED_CHECKS = lv_suppress_extended_checks
         HEADER = lv_header
         USE_CORRNUM_IMMEDIATEDLY = lv_use_corrnum_immediatedly
         SUPPRESS_COMMIT_WORK = lv_suppress_commit_work
    TABLES
         CONTAINERS = lt_containers
         FIELDS_TO_CONTAINERS = lt_fields_to_containers
         FLOW_LOGIC = lt_flow_logic
         PARAMS = lt_params
    EXCEPTIONS
        CANCELLED = 1
        ALREADY_EXISTS = 2
        PROGRAM_NOT_EXISTS = 3
        NOT_EXECUTED = 4
        MISSING_REQUIRED_FIELD = 5
        ILLEGAL_FIELD_VALUE = 6
        FIELD_NOT_ALLOWED = 7
        NOT_GENERATED = 8
        ILLEGAL_FIELD_POSITION = 9
. " RPY_DYNPRO_INSERT




ABAP code using 7.40 inline data declarations to call FM RPY_DYNPRO_INSERT

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.

 
 
DATA(ld_suppress_corr_checks) = ' '.
 
"SELECT single TRKORR FROM E071 INTO @DATA(ld_corrnum).
DATA(ld_corrnum) = ' '.
 
 
 
 
 
DATA(ld_suppress_exist_checks) = ' '.
 
 
 
DATA(ld_suppress_generate) = ' '.
 
DATA(ld_suppress_dict_support) = ' '.
 
 
 
DATA(ld_suppress_extended_checks) = ' '.
 
 
 
 
DATA(ld_use_corrnum_immediatedly) = ' '.
 
DATA(ld_suppress_commit_work) = ' '.
 
 


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!