Ansicht
Dokumentation

DX_SPLIT_FILE_CHECKS - Teilen einer Quelldatei in mehrere Zieldateien

DX_SPLIT_FILE_CHECKS - Teilen einer Quelldatei in mehrere Zieldateien

ABAP Short Reference   BAL Application Log Documentation  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book
Split Data Transfer File into smaller files

Funktionalität

This function module allows user to split a data file into smaller files depending on the user's requirements. The split can be based on:

a. A user-specified number of record sets in each file.
b. A user-specified number of line items in each file.
c. A user-specified number of files.
Performance

The speed of spliting data file is a aproximately 1,200 lines per sec for BAPI file and 20 lines per sec for BINP and DINP files. (This is based on our testing environment).

Limitation
Data file could only be splitted into a maximum of 99 split files in one operation. This is due to the constraint of the system. If you need to split the files into more then 99 files, you should split it in a few seperate operations.
If data records has to be splitted into more then 99 files due to the specification of spliting, the function module will know when the 99th file is opened and will not open another file (otherwise the system will short dump the function) and instead dump all the remaining data into the last file opened.

This function module also allows user to split three kinds of data files .

a. BAPI File.
The assumptions for BAPI file are:
i. It uses the structure EDI_DC40 or EDI_DC for the Header Record.
ii. Each completed set of BAPI record will have a header record and at least a Data Record.
b. Batch Input File. The assumptions for Batch Input File is that it always has a Session Header Record .
c. Direct Input File.

Beispiel

1. User could split a file Example.txt into files with 10 record sets. The last file will have the remainder number of records.
2. User could split a file Example.txt into files with less then 10 line items.
3. User could split a file Example.txt into 3 files with filenames filename1.txt, filename2.txt, and filename3.txt. The filenames have to be specificed by the user in the internal table T_split_files.





Parameter

DELSOURCE
DELTARGET
FILENAME
PROGTYPE
SPLITYPE
T_SPLIT_FILE

Ausnahmen

ERROR_AUTHORITY_CHECK
ERROR_CLOSE_FILE
ERROR_OPEN_FILE
ERROR_SPLIT_FILENAME
ERROR_WRONG_SPLITFILES_NUM
INVALID_PROGTYPE
INVALID_SPLITYPE

Funktionsgruppe

DX_TOOLS

Vendor Master (General Section)   General Data in Customer Master  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 3607 Date: 20240523 Time: 135304     sap01-206 ( 52 ms )