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

Function DX_SPLIT_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 'DX_SPLIT_FILE'".
EXPORTING
FILENAME = "File Name
* PROJECT = "Data Transfer Project
* SUBPROJECT = "Data Transfer Subproject
* RUNDEF = "Data Transfer - Run Definition
* RUNID = "Data Transfer Run
OBJECTTYPE = "Business object type
PROGTYPE = "Program Type
PROGNAME = "Program Name
SPLITYPE = "
* NUM_RECORD = "
* NUM_LINE = "
* DELSOURCE = ' ' "
* DELTARGET = ' ' "
IMPORTING
TOT_RECORD_NO = "
RETURN = "
TABLES
* T_SPLIT_FILE = "
* T_OPEN_FILE = "
IMPORTING Parameters details for DX_SPLIT_FILE
FILENAME - File Name
Data type: DXFILEN-FILENAMEOptional: No
Call by Reference: Yes
PROJECT - Data Transfer Project
Data type: DXATTRIB3-PROJECTOptional: Yes
Call by Reference: Yes
SUBPROJECT - Data Transfer Subproject
Data type: DXATTRIB3-SUBPROJECTOptional: Yes
Call by Reference: Yes
RUNDEF - Data Transfer - Run Definition
Data type: DXATTRIB3-RUNDEFOptional: Yes
Call by Reference: Yes
RUNID - Data Transfer Run
Data type: DXRUN-RUNIDOptional: Yes
Call by Reference: Yes
OBJECTTYPE - Business object type
Data type: DXATTRIB3-OBJECTTYPEOptional: No
Call by Reference: Yes
PROGTYPE - Program Type
Data type: DXATTRIB3-PROGTYPEOptional: No
Call by Reference: Yes
PROGNAME - Program Name
Data type: DXATTRIB3-PROGNAMEOptional: No
Call by Reference: Yes
SPLITYPE -
Data type: DXATTRIB3-SPLITTYPEOptional: No
Call by Reference: Yes
NUM_RECORD -
Data type: DXATTRIB3-OBJECTNOOptional: Yes
Call by Reference: Yes
NUM_LINE -
Data type: DXATTRIB3-LINESNOOptional: Yes
Call by Reference: Yes
DELSOURCE -
Data type: DXATTRIB3-DELSOURCEDefault: ' '
Optional: Yes
Call by Reference: Yes
DELTARGET -
Data type: DXATTRIB3-DELTARGETDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for DX_SPLIT_FILE
TOT_RECORD_NO -
Data type: DXATTRIB3-OBJECTNOOptional: No
Call by Reference: Yes
RETURN -
Data type: DXRETURNOptional: No
Call by Reference: Yes
TABLES Parameters details for DX_SPLIT_FILE
T_SPLIT_FILE -
Data type: DXFILENOptional: Yes
Call by Reference: Yes
T_OPEN_FILE -
Data type: DXFILENOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for DX_SPLIT_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_filename | TYPE DXFILEN-FILENAME, " | |||
| lt_t_split_file | TYPE STANDARD TABLE OF DXFILEN, " | |||
| lv_tot_record_no | TYPE DXATTRIB3-OBJECTNO, " | |||
| lv_project | TYPE DXATTRIB3-PROJECT, " | |||
| lv_subproject | TYPE DXATTRIB3-SUBPROJECT, " | |||
| lv_rundef | TYPE DXATTRIB3-RUNDEF, " | |||
| lv_runid | TYPE DXRUN-RUNID, " | |||
| lv_return | TYPE DXRETURN, " | |||
| lv_objecttype | TYPE DXATTRIB3-OBJECTTYPE, " | |||
| lt_t_open_file | TYPE STANDARD TABLE OF DXFILEN, " | |||
| lv_progtype | TYPE DXATTRIB3-PROGTYPE, " | |||
| lv_progname | TYPE DXATTRIB3-PROGNAME, " | |||
| lv_splitype | TYPE DXATTRIB3-SPLITTYPE, " | |||
| lv_num_record | TYPE DXATTRIB3-OBJECTNO, " | |||
| lv_num_line | TYPE DXATTRIB3-LINESNO, " | |||
| lv_delsource | TYPE DXATTRIB3-DELSOURCE, " ' ' | |||
| lv_deltarget | TYPE DXATTRIB3-DELTARGET. " ' ' |
|   CALL FUNCTION 'DX_SPLIT_FILE' " |
| EXPORTING | ||
| FILENAME | = lv_filename | |
| PROJECT | = lv_project | |
| SUBPROJECT | = lv_subproject | |
| RUNDEF | = lv_rundef | |
| RUNID | = lv_runid | |
| OBJECTTYPE | = lv_objecttype | |
| PROGTYPE | = lv_progtype | |
| PROGNAME | = lv_progname | |
| SPLITYPE | = lv_splitype | |
| NUM_RECORD | = lv_num_record | |
| NUM_LINE | = lv_num_line | |
| DELSOURCE | = lv_delsource | |
| DELTARGET | = lv_deltarget | |
| IMPORTING | ||
| TOT_RECORD_NO | = lv_tot_record_no | |
| RETURN | = lv_return | |
| TABLES | ||
| T_SPLIT_FILE | = lt_t_split_file | |
| T_OPEN_FILE | = lt_t_open_file | |
| . " DX_SPLIT_FILE | ||
ABAP code using 7.40 inline data declarations to call FM DX_SPLIT_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.| "SELECT single FILENAME FROM DXFILEN INTO @DATA(ld_filename). | ||||
| "SELECT single OBJECTNO FROM DXATTRIB3 INTO @DATA(ld_tot_record_no). | ||||
| "SELECT single PROJECT FROM DXATTRIB3 INTO @DATA(ld_project). | ||||
| "SELECT single SUBPROJECT FROM DXATTRIB3 INTO @DATA(ld_subproject). | ||||
| "SELECT single RUNDEF FROM DXATTRIB3 INTO @DATA(ld_rundef). | ||||
| "SELECT single RUNID FROM DXRUN INTO @DATA(ld_runid). | ||||
| "SELECT single OBJECTTYPE FROM DXATTRIB3 INTO @DATA(ld_objecttype). | ||||
| "SELECT single PROGTYPE FROM DXATTRIB3 INTO @DATA(ld_progtype). | ||||
| "SELECT single PROGNAME FROM DXATTRIB3 INTO @DATA(ld_progname). | ||||
| "SELECT single SPLITTYPE FROM DXATTRIB3 INTO @DATA(ld_splitype). | ||||
| "SELECT single OBJECTNO FROM DXATTRIB3 INTO @DATA(ld_num_record). | ||||
| "SELECT single LINESNO FROM DXATTRIB3 INTO @DATA(ld_num_line). | ||||
| "SELECT single DELSOURCE FROM DXATTRIB3 INTO @DATA(ld_delsource). | ||||
| DATA(ld_delsource) | = ' '. | |||
| "SELECT single DELTARGET FROM DXATTRIB3 INTO @DATA(ld_deltarget). | ||||
| DATA(ld_deltarget) | = ' '. | |||
Search for further information about these or an SAP related objects