SAP CNV_MBT_DEX_PREIMP_FOLDER Function Module for collect all information's from a folder for preimport step
CNV_MBT_DEX_PREIMP_FOLDER is a standard cnv mbt dex preimp folder SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for collect all information's from a folder for preimport step 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 cnv mbt dex preimp folder FM, simply by entering the name CNV_MBT_DEX_PREIMP_FOLDER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_MBT_DEX_FILE
Program Name: SAPLCNV_MBT_DEX_FILE
Main Program: SAPLCNV_MBT_DEX_FILE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNV_MBT_DEX_PREIMP_FOLDER 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 'CNV_MBT_DEX_PREIMP_FOLDER'"collect all information's from a folder for preimport step.
EXPORTING
* IM_PATH = "Logical path name
* IM_EXPATH = "Physical path name
* IM_WORK_MODE = ' ' "work mode (CL_CNV_MBT_DEX_READ_FILE2TAB=>CS_WORK_MODE...)
IMPORTING
EX_RC = "Return value, return value after ABAP statements
TABLES
EXT_DIRFILE = "DEX: Table of files in folder
* EXT_DIRFILEOS = "DEX: Table of files in folder OS infos
* EXT_DIRFILETABS = "DEX: Table of files in folder Table content
* EXT_MSG_LOG = "Return parameter table
IMPORTING Parameters details for CNV_MBT_DEX_PREIMP_FOLDER
IM_PATH - Logical path name
Data type: PATHINTERNOptional: Yes
Call by Reference: Yes
IM_EXPATH - Physical path name
Data type: PATHEXTERNOptional: Yes
Call by Reference: Yes
IM_WORK_MODE - work mode (CL_CNV_MBT_DEX_READ_FILE2TAB=>CS_WORK_MODE...)
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CNV_MBT_DEX_PREIMP_FOLDER
EX_RC - Return value, return value after ABAP statements
Data type: SYSUBRCOptional: No
Call by Reference: Yes
TABLES Parameters details for CNV_MBT_DEX_PREIMP_FOLDER
EXT_DIRFILE - DEX: Table of files in folder
Data type: CNVMBTDEXDIRFILE_TABOptional: No
Call by Reference: Yes
EXT_DIRFILEOS - DEX: Table of files in folder OS infos
Data type: CNVMBTDEXDIRFILEOS_TABOptional: Yes
Call by Reference: Yes
EXT_DIRFILETABS - DEX: Table of files in folder Table content
Data type: CNVMBTDEXDIRFILETABS_TABOptional: Yes
Call by Reference: Yes
EXT_MSG_LOG - Return parameter table
Data type: BAPIRET2_TOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CNV_MBT_DEX_PREIMP_FOLDER 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_ex_rc | TYPE SYSUBRC, " | |||
| lv_im_path | TYPE PATHINTERN, " | |||
| lt_ext_dirfile | TYPE STANDARD TABLE OF CNVMBTDEXDIRFILE_TAB, " | |||
| lv_im_expath | TYPE PATHEXTERN, " | |||
| lt_ext_dirfileos | TYPE STANDARD TABLE OF CNVMBTDEXDIRFILEOS_TAB, " | |||
| lv_im_work_mode | TYPE CHAR1, " ' ' | |||
| lt_ext_dirfiletabs | TYPE STANDARD TABLE OF CNVMBTDEXDIRFILETABS_TAB, " | |||
| lt_ext_msg_log | TYPE STANDARD TABLE OF BAPIRET2_T. " |
|   CALL FUNCTION 'CNV_MBT_DEX_PREIMP_FOLDER' "collect all information's from a folder for preimport step |
| EXPORTING | ||
| IM_PATH | = lv_im_path | |
| IM_EXPATH | = lv_im_expath | |
| IM_WORK_MODE | = lv_im_work_mode | |
| IMPORTING | ||
| EX_RC | = lv_ex_rc | |
| TABLES | ||
| EXT_DIRFILE | = lt_ext_dirfile | |
| EXT_DIRFILEOS | = lt_ext_dirfileos | |
| EXT_DIRFILETABS | = lt_ext_dirfiletabs | |
| EXT_MSG_LOG | = lt_ext_msg_log | |
| . " CNV_MBT_DEX_PREIMP_FOLDER | ||
ABAP code using 7.40 inline data declarations to call FM CNV_MBT_DEX_PREIMP_FOLDER
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_im_work_mode) | = ' '. | |||
Search for further information about these or an SAP related objects