Ansicht
Dokumentation

SAPF058 - FI: Archiving Program for Vendor Master Data

SAPF058 - FI: Archiving Program for Vendor Master Data

Vendor Master (General Section)   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Description

The SAPF058 program archives vendor master records and writes the archiveable master records to an archiving file.

You can limit the number of master records to be archived by selecting:

  • Vendor numbers
  • Company codes if FI data is to be considered
  • Purchasing organization if MM data is to be considered
  • System conditions (see criteria below).

Requirements

Program Modes

The program can be run in three different modes:

  1. Only general data is archived (so-called 'A' segments)
  2. Only application-specific data is archived (so-called 'B' segments)
  3. General data and application-specific data is archived.

Archiveability Check

Mode 1: The selected 'A' segments must have a deletion flag. There must not be any accompanying 'B' segments remaining. For example, company code data for a vendor may not still exist if the general data is to be archived.

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

  • FI: You can delete company code data if neither special general ledger figures nor transaction figures exist and neither open items nor cleared items exist. The deletion flag must also be set at company code level.
  • MM: You can delete purchasing orgnization data if the deletion flag has been set at this level.

Mode 3: The 'A' segments or 'B' segments selected must have a deletion flag. A record will be deleted in the 'A' segment and in the 'B' segment if the deletion flag is set in the 'A' segment. You may only delete 'B' segment records if the deletion flag is set in the 'B' segment (in this case, the 'A' segment is simply copied into the archive). The application-specific data must also fulfill the criteria from Mode 2.

The 'A' segments are archived after all accompanying 'B' segments have been archived and the vendor is not referenced elsewhere. If this is not the case, the 'A' segments will be copied into the archive.

For all modes: Vendors can basically not be archived if they are referenced by another vendor at general level or at company code level (for example, via fiscal address or alternative payee). This check can, however, be switched off (by means of the "FI link validation off" field) if you know that all vendors who refer back to this original vendor are also to be archived in either this run or in a subsequent one.

Requirements

Customizing for the Object

As for any archiving object, SAP supplies a default setting for the object in question FI_ACCPAYB. 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 'A' segment record will not be deleted from the database but will be copied into the new archive. This can lead to multiple versions of a vendor in the database and in the archive which you should bear in mind when reloading at a later date. A warning or an error with the general data can mainly be explained using application-specific details.

If a general section cannot be archived due to FI, this will be explained in the FI section of the log.

The entries which can be archived then follow.

Summarized log

An additional summarized log is also 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 (SAPF058) is separated from deletion (SAPF058D) as is the case with other archiving objects. SAPF058 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 SAPF058 using transaction SE38, the SAPF058D deletion program will not be started automatically because the system will recognize it as a test case).

If you are starting this archiving program for the first time and you would like to have the validation check carried out (required setting), then you must start program SAPF047 before archiving in order to generate the link information.






General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 5139 Date: 20240531 Time: 173607     sap01-206 ( 100 ms )