SAP CNV_MBT_DEX_EXP_DATA_FILE Function Module for DMIS Data Extract - Data File Export
CNV_MBT_DEX_EXP_DATA_FILE is a standard cnv mbt dex exp data file SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DMIS Data Extract - Data File Export 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 exp data file FM, simply by entering the name CNV_MBT_DEX_EXP_DATA_FILE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_MBT_DEX
Program Name: SAPLCNV_MBT_DEX
Main Program: SAPLCNV_MBT_DEX
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNV_MBT_DEX_EXP_DATA_FILE 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_EXP_DATA_FILE'"DMIS Data Extract - Data File Export.
EXPORTING
IM_DEXID = "DMIS PCL Data Extract ID
* IM_FILE_SEQNO = '000000' "DMIS Data extract File Sequence number
* IM_SIMULATION = ' ' "General flag
IMPORTING
EX_SUBRC = "Return value, return value after ABAP statements
EX_FILESIZE = "Length of a file in bytes
TABLES
* EXT_MSG_LOG = "Return parameter table
EXCEPTIONS
EXTRACT_ID_NOT_DEFINED = 1 NO_RFC_FOUND = 2 NO_DATA_FOUND = 3 NO_EXPORT_PATH = 4
IMPORTING Parameters details for CNV_MBT_DEX_EXP_DATA_FILE
IM_DEXID - DMIS PCL Data Extract ID
Data type: CNV_MBT_DEXIDOptional: No
Call by Reference: Yes
IM_FILE_SEQNO - DMIS Data extract File Sequence number
Data type: CNV_MBT_DEXFILESEQNODefault: '000000'
Optional: Yes
Call by Reference: Yes
IM_SIMULATION - General flag
Data type: FLAGDefault: SPACE
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for CNV_MBT_DEX_EXP_DATA_FILE
EX_SUBRC - Return value, return value after ABAP statements
Data type: SYSUBRCOptional: No
Call by Reference: Yes
EX_FILESIZE - Length of a file in bytes
Data type: FILESIZEOptional: No
Call by Reference: Yes
TABLES Parameters details for CNV_MBT_DEX_EXP_DATA_FILE
EXT_MSG_LOG - Return parameter table
Data type: BAPIRET2_TOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
EXTRACT_ID_NOT_DEFINED -
Data type:Optional: No
Call by Reference: Yes
NO_RFC_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_EXPORT_PATH -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CNV_MBT_DEX_EXP_DATA_FILE 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_subrc | TYPE SYSUBRC, " | |||
| lv_im_dexid | TYPE CNV_MBT_DEXID, " | |||
| lt_ext_msg_log | TYPE STANDARD TABLE OF BAPIRET2_T, " | |||
| lv_extract_id_not_defined | TYPE BAPIRET2_T, " | |||
| lv_ex_filesize | TYPE FILESIZE, " | |||
| lv_no_rfc_found | TYPE FILESIZE, " | |||
| lv_im_file_seqno | TYPE CNV_MBT_DEXFILESEQNO, " '000000' | |||
| lv_im_simulation | TYPE FLAG, " SPACE | |||
| lv_no_data_found | TYPE FLAG, " | |||
| lv_no_export_path | TYPE FLAG. " |
|   CALL FUNCTION 'CNV_MBT_DEX_EXP_DATA_FILE' "DMIS Data Extract - Data File Export |
| EXPORTING | ||
| IM_DEXID | = lv_im_dexid | |
| IM_FILE_SEQNO | = lv_im_file_seqno | |
| IM_SIMULATION | = lv_im_simulation | |
| IMPORTING | ||
| EX_SUBRC | = lv_ex_subrc | |
| EX_FILESIZE | = lv_ex_filesize | |
| TABLES | ||
| EXT_MSG_LOG | = lt_ext_msg_log | |
| EXCEPTIONS | ||
| EXTRACT_ID_NOT_DEFINED = 1 | ||
| NO_RFC_FOUND = 2 | ||
| NO_DATA_FOUND = 3 | ||
| NO_EXPORT_PATH = 4 | ||
| . " CNV_MBT_DEX_EXP_DATA_FILE | ||
ABAP code using 7.40 inline data declarations to call FM CNV_MBT_DEX_EXP_DATA_FILE
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_file_seqno) | = '000000'. | |||
| DATA(ld_im_simulation) | = ' '. | |||
Search for further information about these or an SAP related objects