Ansicht
Dokumentation

SAPF056 - FI: Archiving Program for Customer Master Data

SAPF056 - FI: Archiving Program for Customer Master Data

ROGBILLS - Synchronize billing plans   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Description

The SAPF056 program archives customer master records and writes the archivable master records to an archiving file.

The number of master records to be archived depends on the following selections:

  • Customer numbers
  • Company codes (if FI data is to be taken into consideration)
  • Sales organization (if SD data is to be taken into consideration)
  • System conditions (see criteria below).

Note that company code data and sales area data cannot be archived in one program run. When you make your selections, you can only choose either company code or sales area data.

Note that only that master data is taken into account that is marked for deletion (see below).

Requirements

Program Modes

This program can be run in three different modes:

  1. Only general master data is archived
  2. Only application-specific data is archived
  3. Both general data and application-specific data is archived.

Check on Whether Data can be Archived

Mode 1: The selected general data must have been marked for deletion. There must be no accompanying company code data. For example, company code data for a customer must not still exist if the general data is to be archived.

Furthermore, you cannot archive the general data if the customer is a business partner of another customer or one of his contact persons is also assigned to another customer as a contact person (table KNVP: Customer Master Partner Functions)

Mode 2: The selected application-specific data must fulfill the following application criteria:

  • FI: You can delete company code data provided the following do not exist:
  • Special G/L figures

  • Transaction figures

  • Open items

  • Cleared items.
    The deletion flag must also be set at company code level.

  • SD: You can delete sales area data if the customer for the sales area is not active in a customer hierarchy (table KNVH) and the customer and his contact person are not active as a partner in sales documents (VBPA). The sales document check can also be switched off for performance reasons.

Mode 3: The general data or company-code specific segments selected must be flagged for deletion. Both the general data and the company code-specific data will be deleted if the deletion flag is set in the general data part of the record. You may only delete company code-specific data if the deletion flag is set in the company code data section of the master record (in which case the general data is simply copied into the archive). The application-specific data must also fulfill the criteria for mode 2.

The general data is archived after all accompanying company code-specific data has been archived and the customer is not referenced elsewhere. If this is not the case, the general data is copied into the archive.

Requirements

Customizing for the Object

As for any archiving object, SAP supplies a default setting for the object in question FI_ACCRECV. You can implement modifications, such as new archive file names, file paths, maximum size of the files, etc. using transaction "SARA".

Output

Detail log

If you have selected "Detail log" on the selection screen, several lists will be output displaying all non-archived master records sorted according to general data and application-specific data. The reason as to why each record could not be archived is also displayed.

A warning message is also possible for general data: In this case, the general data record will not deleted from the database but copied into the new archive. This can lead to multiple versions of a customer in the database and in the archive and must therefore be borne in mind during subsequent reloading. The application-specific entries can normally shed further light on errors within the general data.

The archiveable entries are then listed.

Summarized log

An additional summarized log is always output. Its first section provides information regarding the number of files read and those which can be archived, followed by statistics on the various different applications. General data on the archiving run, such as user name and selection, are provided at the end of the list.

Miscellaneous

The archiving function (SAPF056) is separated from deletion (SAPF056D) as is the case with other archiving objects. SAPF056 automatically starts the deletion process if this was specified in technical Customizing. You can also start the deletion process separately, especially after a system termination.
(Note: If you start program SAPF056 using transaction SE38, the SAPF056D deletion program will not be started automatically because the system will assume you are running a test case).

If you start this program for the first time and have carried out the link check (default setting), you need to start program SAPF047 prior to archiving in order to generate the link information.






General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 5658 Date: 20240531 Time: 041203     sap01-206 ( 105 ms )