Ansicht
Dokumentation
SAPLC130 - EHS: Export/Import - Parser
Fill RESBD Structure from EBP Component Structure TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
Description
This function group contains modules that import data to the system in
exchange format.
General note to function module C130_IMPORT_PARSER (03.03.97)
The function module distinguishes two main processing types. One is the
'dialog mode' and the other is the 'batch mode'.
Exchange files are checked in the 'dialog mode'. A checking table that displays the correct sequence of the segments is constructed.
This table is initialized according to the way the function module is ca called, that is, import phrases, sources, or substances.
The corresponding methods of calling the function module (phrases, sources, substances) are checked
in separate 'branches' of the parser. The results show if and how many syntax errors there are in the exchangefiles.
The exchange files are imported in 'batch mode'. First, syntax errors are checked in 'dialog mode'.
If there are no syntax errors in the exchange files, the data is imported to the internal table. This import is carried out later, as it is carried out in batch.
Procedure:
When calling the C130_IMPORT_PARSER function module, the calling method must be transferred. Possible calling methods are:
PD - Phrases Dialog
PB - Phrases Batch
RD - References Diaolg
RB - References Batch
SD - Substance Dialog
SB - Substance Batch
The file name and path are determined according to the calling method. These are then stored in the function module as constants.
The checking table is intialized according to the calling method. The checking table is structured as follows (ls_checktab):
name - table name
stat - status NEC/OPT (must/can)
num - number of repetitions 1/N
segrep - table name for segment repetition
segind - line number in checking table for 'segrep'
grprep - table name for group repetition
grpind - line number in checking table for 'grprep'
Sample phrases:
name stat num segrep segind grprep grpind |
---|
$TCG61 NEC 1
$TCG62 OPT N
$TCG63 NEC 1
$TCG64 OPT N
$ESTPH NEC 1
$ESTPP NEC N $ESTPH 04 $TCG63 02
$ESTPO OPT N $ESTPH 04 $TCG63 02
$ESTPJ OPT N
This checking table shows the sequence of segments. If there are entries the 'segrep' or 'grprep'
fields, this means that either the subsequent tables or tables in the corresponding field can follow.
The fields 'segind' and 'grpind' indicate which line in the table you shouldstart at if the corresponding tables appear in the 'segrep' or 'grprep fields.
After the log file has been initialized and supplied with header data, the management data in the
exchange file is read, checked and converted (system code page, for example). This is carried out for
all calling methods. The following checks and the import of the exchange file depend on the calling method and are carried out in separate 'channels
Requirements
Output
Example
RFUMSV00 - Advance Return for Tax on Sales/Purchases BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 3703 Date: 20240520 Time: 050920 sap01-206 ( 50 ms )