Programme SAP HKRCDTA0 - Preliminary Program - Data Medium Exchange for Several Payment Runs

Description
Report HKRCDTA0 is used for creating a dataset from the bank transfersof a payroll run which is used as input for the payment print and tapegeneration program. The PCL2 data, in particular table BT for banktransfers, is the original data material for HKRCDTA0.
The program can also be used by customers who at different timesperform two or more payment runs per payroll period.
If the parameter 'Set flag for transfers' has been selected, the timeat which the transfer occurs (date on and time at which the payment runcommences) is written to transfer table BT on database PCL2 for eachtransfer that is effected. This provides subsequent transfer runs withinformation regarding which entries in table BT have already beentransferred. It also enables you to separate payment runs by specifyingthe appropriate wage type. You could, for example, effect a wagetransfer before allowing the remaining transfers to be performed.
The payment methods from T042Z are permitted.

The report performs the following steps for each transfer:
The currency key is read from table T001.
If necessary, the payee key is converted using table T521B.
The text keys are read for the DME C record.
Germany:
The information is stored in T520S.
A search is performed under the appropriate wage type key for the textkey. Wage types '/558' and '/559' are used for transferring net pay.The modifier from table T001P is taken into account when access occurs.A 'J' must be entered as the last character for capital formation textkeys. The program replaces the character with the second character ofthe year for which the capital formation payment is transferred, ie.PN/PABRJ+3(1).
Example: Text key 5400J is in table T520S.
For transfers in 1993, this results in 54003,
For transfers in 1994, this results in 54004,
Determine bank data and account data for the sender using feature DTAKT(transaction PE03).
Please specify a decision tree for the field DTAKT and then defineDtakt=nnnnn/mmmmm, in which respect
nnnnn is the bank ID in table T012 and
mmmmm is the account ID in table T012K.
Example
Dependency on the company code and the first three characters of thebank number:
Variable key DOperations
DBUKRS
**** &DTAKT=DB /GIRO ,
0001 DBANKL(3)
0001 *** &DTAKT=DB /GIRO ,
0001 600 &DTAKT=COM /TG ,
The "Purpose" field
If field VERWZ (purpose) has been specified, such as for externaltransfers or capital formation payments, it is transferred to the DMEpurpose field. If field VERWZ has not been specified, such as for abank connection, and the type of capital formation investment has notbeen filled, the following text is used as the purpose for the DMErecord:
'Wage/salary', personnel number, payroll accounting period
The following text is printed for pensioners:
'Pension', personnel number, payroll accounting period
The "Purpose" field is printed in the account statement. If the abovetext is not to your liking, please customize the main program HKRCDTA0.
Read file BNKA
The bank number is determined from the file BNKA.
------------------------------------------------------------------------
In TEST mode 'X', the transfers read for all of the persons selectedand the resulting SETH records are displayed. In TEST mode ' ', all ofthe incorrect transfers are listed together with the reason for theerror. If one transfer is incorrect for one particular person, none ofthe transfers pertaining to that person is carried out.
The records are transferred to the data medium generation program,which finally creates the data carrier. The parameters

  • Program run date

  • Identification feature

  • must be filled from the bank transfer time of HKRCDTA0. The transferdate must be entered in the program run date field, and the time in theidentification feature field. In this respect the last character of theidentification feature must be a 'P'.

    C A U T I O N : R E S T A R T
    If HKRCDTA0 is run without the "Set flag for transfers" parameter beingselected, the report can be run again without any further changes beingnecessary. If the above parameter has been selected, however, you musttake note of the following. If HKRCDTA0 must be run again, theparameter "Repeat run: Date" and "Repeat run: Time" must be filled sothat records already marked as transferred are selected again. In thisrespect, the date and time stored in the transfers must be specified inthe parameters.
    If you need to repeat a specific HKRCDTA0 run, the parameter "Flaggedrecords only" must also be selected. If HKRCDTA0 must be run againbecause the program was previously cancelled, the parameter "Flaggedrecords only" must not be set. If the parameter were set, records wouldbe selected for the transfer for which no transfer time has beenspecified in addition to the records whose transfer time is compatiblewith the time set by the parameters.

    • Wage type

    • This enables you to restrict a payment run to specific wage types. Inthis way, several payment runs can be performed for each payrollperiod.
      • TEST

      • = ON : No data transfer to the data medium generation program
        PCL2 is not updated
        The transfers to be effected are printed
        = OFF: Data transfer to the data medium generation program
        PCL2 is updated
        • Set flag for transfers

        • If this parameter is flagged, the transfer date (the date on whichHKRCDTA0 was run) is written together with the transfers when thetransfer data is saved in PCL2. If payroll accounting is repeated(HKRCALC0), the records marked with one date are not overwritten.Instead, the payroll program performs an accounting run to determinedifferences.
          • Repeat run: Date

          • An entry should only be made for a repeat run. If a date is entered,records are selected for the payment run whose transfer time coincideswith the date and time set by the parameters in addition to the recordswhich have yet to be transferred.
            • Flagged records only

            • An entry should only be made for a repeat run. If the date of therepeat run has been specified and this parameter has been set, onlythose records are selected whose transfer time coincides with the datespecified for the repeat run.