SAP Program SAPF019 - Deleting Master Data

Description
This program deletes master data in Financial Accounting and isdesigned for preparing the system for productive startup. It deletes:

  • Customer master data

  • Vendor master data

  • G/L account master data

  • You can run this program in three different ways:
    Deleting general master data (in G/L accounts in one chart of accounts)
    Deleting master data dependent on company code
    Deleting general master data and master data dependent on company code
    For each deletion run, you can specify whether or not the system shouldtake into account the deletion flag in master records ("Delete perdeletion flag only"). If it takes into account deletion flags, it usesthe following standard logic:
    Option 1: The "All areas" deletion flag must be set.
    Option 2: The "Specified co. code" deletion flag must be set.
    Option 3: It is sufficient to have the "All areas" deletion flag set.
    Note: Deletion blocks are always checked at general data and companycode-dependent data level. If there is a block at companycode-dependent data level, then the general data is not deleted either.The deletion block takes precedence over the deletion flag.
    General master data in Financial Accounting can also be used in otherSAP applications:
    • Customer master data in Sales and Distribution

    • Vendor master data in Purchasing

    • G/L accounts as primary cost elements in Cost Accounting

    • The program deletes the following:
      • Change documents for master data

      • SAPscript text files

      • The following data is deleted for customers:

      • General master data
        Bank details
        VAT registration numbers
        Addresses
        Classifications
        Credit management: across control areas
        Credit management: centrally
        Unloading points
        Tax indicators
        Contact persons
        Licenses
        Partner function limit
        Shipping data
        Master data in the company code
        Dunning data
        Linked data
        • The following data is deleted for vendors:

        • General master data
          Bank details
          Contact persons
          VAT registration numbers
          Addresses
          Classifications
          Master data in the company code
          Dunning data
          Linked data
          • The following data is deleted for G/L accounts:

          • General master data in the chart of accounts
            Names in the chart of accounts
            Key word list in the chart of accounts
            Master data in the company code
            Sample accounts, if selected
            For customer and vendor contact persons, the addresses are notdetermined from central address management until the actual runtime.Therefore differences can arise as to the number of addresses in thedetail log between the test run and the update run.
            Automatic worklists for customers and vendors are also deleted with thegeneral master data. Matchcodes are always deleted.
            You may have to fix the number ranges after the program run.
            The system makes changes to the database in the update run only. Itwill then also write a system log entry for documentation.
            Precondition
            General master data can only be deleted if no other application makesreference to the account. Use the resetting programs from
            • Sales and Distribution (customer master data)

            • Purchasing (vendor master data)

            • Cost Accounting (G/L account master data)

            • If you want to delete only general master data, master data dependenton company code cannot have been created in Financial Accounting.
              If you want to delete master data in a test company code, master datadependent on company code cannot have been created in any other companycode except the test company code. The productive indicator cannot beset for the company code.
              If a customer or vendor is referenced by another customer or vendor(for example, via fiscal address or alternative payee), you can onlydelete the referenced master record by deleting the referencing masterrecord at the same time.
              Furthermore, you can only delete master data in Financial Accounting ifno transactions have been posted to the corresponding accounts. Ifthere are transaction figures in one of the selected accounts, you haveto manually access and run program SAPF020 (reset transaction data froma company code) before you can delete that account.

              Output
              The log lists every table which is processed in the program selection.
              You can also create a detail log for each account type to find out whycertain data cannot be deleted. The detail logs show you what othercompany codes and applications use the data and how customers andvendors are linked to one another.

              Note
              Since deleting or displaying even smaller volumes of data can result inruntime problems, you should run this program as a background job.Currently, the program individually deletes matchcodes for each masterrecord in the database. Several match code IDs refer to each matchcode.This can place a considerable load on the database.
              You cannot delete transaction data in individual accounts.
              Important: The archiving programs in Financial Accounting are designedfor the productive system.
              If you are running this deletion program for the first time, then youmust start program SAPF047 before deletion in order to generate linkinformation.

372214BD18: Short dump TABLE_INVALID_INDEX