SAP RV_DYNPRO_FIELD_INSERT Function Module for NOTRANSL: Insert von einem Feld in die Dynprofields
RV_DYNPRO_FIELD_INSERT is a standard rv dynpro field insert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Insert von einem Feld in die Dynprofields processing and below is the pattern details for this FM, 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 rv dynpro field insert FM, simply by entering the name RV_DYNPRO_FIELD_INSERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: V12A
Program Name: SAPLV12A
Main Program: SAPLV12A
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RV_DYNPRO_FIELD_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 'RV_DYNPRO_FIELD_INSERT'"NOTRANSL: Insert von einem Feld in die Dynprofields.
EXPORTING
DFI_HEADER = "Field Name
DFI_FIELDNAME = "Field name
DFI_FIELD_ATTR = "Attributes of field
DFI_FIELD_CONTROL = "Field Insert
DFI_TABNAME = "Table name
DFI_TEXT_ATTR = "Attributes of text
DFI_TEXT_CONTROL = "Text Insert (short, heading, and s
DFI_TRUNCATE = "Okay to truncate
* DFI_TRY_FOREIGN_KEY = ' ' "
IMPORTING
DFI_COLN_FIELD = "Column of field
DFI_COLN_TEXT = "Column of text
TABLES
DYNP_FIELDS = "Screen definition
DYNP_MATCHC = "Screen matchcodes
EXCEPTIONS
FIELD_NOT_FOUND = 1 NOT_DYNPRO_FIELD = 2 NOT_ENOUGH_SPACE = 3
IMPORTING Parameters details for RV_DYNPRO_FIELD_INSERT
DFI_HEADER - Field Name
Data type: D020SOptional: No
Call by Reference: No ( called with pass by value option)
DFI_FIELDNAME - Field name
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DFI_FIELD_ATTR - Attributes of field
Data type: D021SOptional: No
Call by Reference: No ( called with pass by value option)
DFI_FIELD_CONTROL - Field Insert
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DFI_TABNAME - Table name
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DFI_TEXT_ATTR - Attributes of text
Data type: D021SOptional: No
Call by Reference: No ( called with pass by value option)
DFI_TEXT_CONTROL - Text Insert (short, heading, and s
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DFI_TRUNCATE - Okay to truncate
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DFI_TRY_FOREIGN_KEY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RV_DYNPRO_FIELD_INSERT
DFI_COLN_FIELD - Column of field
Data type: D021S-COLNOptional: No
Call by Reference: No ( called with pass by value option)
DFI_COLN_TEXT - Column of text
Data type: D021S-COLNOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RV_DYNPRO_FIELD_INSERT
DYNP_FIELDS - Screen definition
Data type: D021SOptional: No
Call by Reference: No ( called with pass by value option)
DYNP_MATCHC - Screen matchcodes
Data type: D023SOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FIELD_NOT_FOUND - Field is not available in dictiona
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_DYNPRO_FIELD - Field is not suited for screen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_ENOUGH_SPACE - Space is not sufficient
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RV_DYNPRO_FIELD_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_dfi_header | TYPE D020S, " | |||
| lt_dynp_fields | TYPE STANDARD TABLE OF D021S, " | |||
| lv_dfi_coln_field | TYPE D021S-COLN, " | |||
| lv_field_not_found | TYPE D021S, " | |||
| lt_dynp_matchc | TYPE STANDARD TABLE OF D023S, " | |||
| lv_dfi_coln_text | TYPE D021S-COLN, " | |||
| lv_dfi_fieldname | TYPE D021S, " | |||
| lv_not_dynpro_field | TYPE D021S, " | |||
| lv_dfi_field_attr | TYPE D021S, " | |||
| lv_not_enough_space | TYPE D021S, " | |||
| lv_dfi_field_control | TYPE D021S, " | |||
| lv_dfi_tabname | TYPE D021S, " | |||
| lv_dfi_text_attr | TYPE D021S, " | |||
| lv_dfi_text_control | TYPE D021S, " | |||
| lv_dfi_truncate | TYPE D021S, " | |||
| lv_dfi_try_foreign_key | TYPE D021S. " SPACE |
|   CALL FUNCTION 'RV_DYNPRO_FIELD_INSERT' "NOTRANSL: Insert von einem Feld in die Dynprofields |
| EXPORTING | ||
| DFI_HEADER | = lv_dfi_header | |
| DFI_FIELDNAME | = lv_dfi_fieldname | |
| DFI_FIELD_ATTR | = lv_dfi_field_attr | |
| DFI_FIELD_CONTROL | = lv_dfi_field_control | |
| DFI_TABNAME | = lv_dfi_tabname | |
| DFI_TEXT_ATTR | = lv_dfi_text_attr | |
| DFI_TEXT_CONTROL | = lv_dfi_text_control | |
| DFI_TRUNCATE | = lv_dfi_truncate | |
| DFI_TRY_FOREIGN_KEY | = lv_dfi_try_foreign_key | |
| IMPORTING | ||
| DFI_COLN_FIELD | = lv_dfi_coln_field | |
| DFI_COLN_TEXT | = lv_dfi_coln_text | |
| TABLES | ||
| DYNP_FIELDS | = lt_dynp_fields | |
| DYNP_MATCHC | = lt_dynp_matchc | |
| EXCEPTIONS | ||
| FIELD_NOT_FOUND = 1 | ||
| NOT_DYNPRO_FIELD = 2 | ||
| NOT_ENOUGH_SPACE = 3 | ||
| . " RV_DYNPRO_FIELD_INSERT | ||
ABAP code using 7.40 inline data declarations to call FM RV_DYNPRO_FIELD_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.| "SELECT single COLN FROM D021S INTO @DATA(ld_dfi_coln_field). | ||||
| "SELECT single COLN FROM D021S INTO @DATA(ld_dfi_coln_text). | ||||
| DATA(ld_dfi_try_foreign_key) | = ' '. | |||
Search for further information about these or an SAP related objects