SAP DIC2DYN Function Module for
DIC2DYN is a standard dic2dyn 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 dic2dyn FM, simply by entering the name DIC2DYN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTOOL_DYNPRO
Program Name: SAPLFTOOL_DYNPRO
Main Program: SAPLFTOOL_DYNPRO
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DIC2DYN 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 'DIC2DYN'".
EXPORTING
* I_SAPTABNAME = "
* I_CUSTABNAME = "
* I_SAPCHECKFUNC = "
* I_CUSCHECKFUNC = "
* I_TITTEXT = "
* I_FIELDTYPES = "
* I_DISPLAY = ' ' "
IMPORTING
E_XSAPENTRY = "
E_XCUSENTRY = "
CHANGING
* C_SAPENTRIES = "
* C_CUSENTRIES = "
TABLES
* T_SAPOBLI = "
* T_CUSOBLI = "
EXCEPTIONS
ERROR = 1 PARAMETERS_WRONG = 2
IMPORTING Parameters details for DIC2DYN
I_SAPTABNAME -
Data type: DD02D-TABNAMEOptional: Yes
Call by Reference: Yes
I_CUSTABNAME -
Data type: DD02D-TABNAMEOptional: Yes
Call by Reference: Yes
I_SAPCHECKFUNC -
Data type: TFDIR-FUNCNAMEOptional: Yes
Call by Reference: Yes
I_CUSCHECKFUNC -
Data type: TFDIR-FUNCNAMEOptional: Yes
Call by Reference: Yes
I_TITTEXT -
Data type: RSMPE-TITTEXTOptional: Yes
Call by Reference: Yes
I_FIELDTYPES -
Data type:Optional: Yes
Call by Reference: Yes
I_DISPLAY -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for DIC2DYN
E_XSAPENTRY -
Data type: BOOLE-BOOLEOptional: No
Call by Reference: Yes
E_XCUSENTRY -
Data type: BOOLE-BOOLEOptional: No
Call by Reference: Yes
CHANGING Parameters details for DIC2DYN
C_SAPENTRIES -
Data type:Optional: Yes
Call by Reference: Yes
C_CUSENTRIES -
Data type:Optional: Yes
Call by Reference: Yes
TABLES Parameters details for DIC2DYN
T_SAPOBLI -
Data type: FPM_OBLIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_CUSOBLI -
Data type: FPM_OBLIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - Error during generation
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETERS_WRONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DIC2DYN 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_error | TYPE STRING, " | |||
| lt_t_sapobli | TYPE STANDARD TABLE OF FPM_OBLI, " | |||
| lv_e_xsapentry | TYPE BOOLE-BOOLE, " | |||
| lv_c_sapentries | TYPE BOOLE, " | |||
| lv_i_saptabname | TYPE DD02D-TABNAME, " | |||
| lt_t_cusobli | TYPE STANDARD TABLE OF FPM_OBLI, " | |||
| lv_e_xcusentry | TYPE BOOLE-BOOLE, " | |||
| lv_c_cusentries | TYPE BOOLE, " | |||
| lv_i_custabname | TYPE DD02D-TABNAME, " | |||
| lv_parameters_wrong | TYPE DD02D, " | |||
| lv_i_sapcheckfunc | TYPE TFDIR-FUNCNAME, " | |||
| lv_i_cuscheckfunc | TYPE TFDIR-FUNCNAME, " | |||
| lv_i_tittext | TYPE RSMPE-TITTEXT, " | |||
| lv_i_fieldtypes | TYPE RSMPE, " | |||
| lv_i_display | TYPE BOOLE-BOOLE. " SPACE |
|   CALL FUNCTION 'DIC2DYN' " |
| EXPORTING | ||
| I_SAPTABNAME | = lv_i_saptabname | |
| I_CUSTABNAME | = lv_i_custabname | |
| I_SAPCHECKFUNC | = lv_i_sapcheckfunc | |
| I_CUSCHECKFUNC | = lv_i_cuscheckfunc | |
| I_TITTEXT | = lv_i_tittext | |
| I_FIELDTYPES | = lv_i_fieldtypes | |
| I_DISPLAY | = lv_i_display | |
| IMPORTING | ||
| E_XSAPENTRY | = lv_e_xsapentry | |
| E_XCUSENTRY | = lv_e_xcusentry | |
| CHANGING | ||
| C_SAPENTRIES | = lv_c_sapentries | |
| C_CUSENTRIES | = lv_c_cusentries | |
| TABLES | ||
| T_SAPOBLI | = lt_t_sapobli | |
| T_CUSOBLI | = lt_t_cusobli | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| PARAMETERS_WRONG = 2 | ||
| . " DIC2DYN | ||
ABAP code using 7.40 inline data declarations to call FM DIC2DYN
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 BOOLE FROM BOOLE INTO @DATA(ld_e_xsapentry). | ||||
| "SELECT single TABNAME FROM DD02D INTO @DATA(ld_i_saptabname). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_xcusentry). | ||||
| "SELECT single TABNAME FROM DD02D INTO @DATA(ld_i_custabname). | ||||
| "SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_sapcheckfunc). | ||||
| "SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_cuscheckfunc). | ||||
| "SELECT single TITTEXT FROM RSMPE INTO @DATA(ld_i_tittext). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_display). | ||||
| DATA(ld_i_display) | = ' '. | |||
Search for further information about these or an SAP related objects