Ansicht
Dokumentation

RPCKGVD0_IN - ID No. Control Procedure Child Allowance: Import Response Files

RPCKGVD0_IN - ID No. Control Procedure Child Allowance: Import Response Files

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

You can use this report to import response files from the German Federal Central Tax Office (BZSt) in relation to the ID No. Control Procedure Child Allowance from the application server or using PC upload. The responses contained in these files are then saved to the database for further processing.

Integration

The response files from the BZSt may also contain rejections of the notification files you have sent. These are also imported into the SAP system using this report. If you receive a file rejection by e-mail, please use report Manually Record File Rejection (RPCKGVD0_REJECT_FILE_MANUALLY) instead.

Prerequisites

You used report Collecting Notifications in ID No. Control Procedure Child Allowance (RPCKGVD0_OUT) to create notification files and then transfer them to the BZSt using external tools. The BZSt sent you a response file for this notification file that you saved to the application server under the logical path HR_DE_KGID_IN or in a directory on your PC.

Required Customizing

If you want to use the application server as a processing platform for the response files, use transaction FILE or maintain two logical file paths in Customizing under Maintain Logical File Paths:

  • HR_DE_KGID_IN as an inbound directory for BZSt response files
  • HR_DE_KGID_PRO as a storage directory for processed response files

Note that the physical path behind both logical paths is different.

Define the associated logical file name:

  • HR_DE_KGID_IN: The field Phsyical File remains empty, select DIR as the data format, and HR as the work area. Write HR_DE_KGID_OUT in field Logical Path.
  • HR_DE_KGID_PRO: The field Phsyical File remains empty, select DIR as the data format, and HR as the work area. Write HR_DE_KGID_PRO in field Logical Path.

Features

Depending on the selection, the report looks for files that conform to the file name convention and that include the system and the client in their name as part of the File ID under the logical path HR_DE_KGID_IN on the application server or in the PC inbound directory specified.

The XML files found are parsed one after the other and the responses contained in these files are written to database table P01_KGID_EING. All responses have the status New.

If the response file contains information stating that the notification file sent could not be processed (can be seen in XML element <ELMAFEHLER>), all notifications in database table P01_KGID_MELD that were sent with the notification file are set to status Rejected and the database status before the notification file was sent is reconstructed. The corresponding file ID is given the status Rejected by the BZSt in table P01_KGID_FILEINF.

If a response file was processed successfully, depending on the selection, it is saved to the folder for processed files under the logical path HR_DE_KGID_PRO on the application server or in the PC storage directory specified.

Selection

In the Platform group box, you specify where the BZSt response files are saved:

  • Application Server
    The system searches for the inbound files on the application server under the logical path HR_DE_KGID_IN, and after they have been successfully processed, they are saved to the directory of the logical path HR_DE_KGID_PRO.
  • Work Center (PC)
    The system searches for the inbound files on the PC in the path entered under Inbound Directory, and after the files have been successfully processed, they are saved to the directory entered under Storage Directory. The paths for the inbound and storage directory must be different.

In the Program Control group box, there are two other optional settings:

  • Create Log
    If you select this checkbox, a detailed log is generated during the output. Otherwise the output only contains a summary of the statistics and any error or warning messages.
  • Database Update
    If you select this checkbox, the files found are saved to the storage directory after they have been successfully processed (application server or PC, depending on the selection), and the database operations described under key features are actually executed. Leave this field empty for a test run.

Standard Variants

Output

The report log is divided into the following sections:

  • Files Found
    All files that were found in the inbound directory specified and that were used for processing are listed here. This section is only displayed if the Create Log parameter was selected.
  • Responses Included
    In this section you can find all responses included in the files that are related to a responsibility/payment notification sent to the BZSt. If a response file contains the message that a whole notification file was rejected, there are no entries here. This section is only displayed if the Create Log parameter was selected.
  • Rejection of file <DateiId> by the BZSt
If the BZSt has rejected a file using a response file, detailed information about the reconstruction of the old database content is displayed here. For a more exact explanation of the individual points, see the documentation of report Manually Record File Rejection (RPCKGVD0_REJECT_FILE_MANUALLY).
  • General Messages
    All general error and warning messages that explain why a file could not be read are displayed in this section.
  • Statistics
    This section contains information about the number of files found and the number of files that were successfully processed. It also contains information about how many notification files were rejected by the BZSt and how many responses in relation to responsibility/payment notifications the files contained.

Activities

After the files have been successfully imported, you can assign the responses from the BZSt to the responsibility/payment notifications you sent using report ID No. Control Procedure Child Allowance: Assignment Responses -> Notification (RPCKGVD0_ASSIGN).

Example






RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 8346 Date: 20240520 Time: 115401     sap01-206 ( 141 ms )