Ansicht
Dokumentation

RM06IV70 - Archiving of Purchasing Info Records: Preprocessing Program

RM06IV70 - Archiving of Purchasing Info Records: Preprocessing Program

BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

This pre-processing program is used to determine if purchasing info records can be archived, based on certain criteria.

Prerequisites

Features

The program when displayed shows three sections.

In the first section, you can choose from any of the three selection criteria:

  • If you select Purchasing Info Record:
  • You should also add details like purchasing info record number, info record category, supplier, material, material group, purchasing organization, and plant.

  • If you select Material Master:
  • You should also add details like cross plant material status, plant specific material status, procurement type, and material type.

  • If you select Vendor Master:
  • You should also specify if the purchasing info records are deleted at the purchasing organization level or at the sub-range purchasing organization level.

In the second section, you can select further deletion criteria:

  • Last changed or referred date: Enter the last changed or referred date, all the purchasing info records that were last changed or referred either on or before the date you specify here are considered for deletion.
  • Include General data when all Purchasing Org data is marked for deletion: If this box is checked, all general data of the deleted purchasing organization data is also considered for archival.
  • Include Purchasing Org data when General data is marked for deletion: If this box is checked, all purchasing organization data of the deleted general data is also considered for archival.

In the third section, you can select processing options:

  • Test mode: If selected, the purchasing info records are checked for errors as per the validations, but the database is not updated.
  • Production mode: If selected, the purchasing info records are deleted as per the validations, if not deleted the reason is displayed in the log.
  • Detail Log: From this drop-down button, you can define how the output is displayed by selecting either of these four options: No detail log, No success messages, Only success messages, or Complete.
  • Log Output: From this drop-down button, you can define how the output is displayed by selecting either of these three options: List, Application log, List and application log.

Selection

Standard Variants

Output

Activities

The program when executed performs the following actions:

  • Considers purchasing info records from the EINA and EINE tables, that were not changed after the date entered in the Last changed or referred date field.
  • Considers the POs from EKPO and PRs from EBAN table where the above fetched info records were used. The info records are passed to the EKPO-INFNR and EBAN-INFNR respectively.
  • While considering the POs and PRs, the POs are verified if they have not been changed after the last changed or referred date (the date from the selection is passed to EKPO-AEDAT and EBAN-ERDAT respectively).
  • While processing the Info records, it is checked that EINA-LASTCHANGEDDATE should be less than or equal to the last changed or referred date.
  • BAdI: ARC_MM_EINE_CHECK is implemented and enabled for adding custom validations.
  • Once the EINE record passes through all the validations, then EINE-LOEKZ field is updated with the value ‘X’.
  • If all the records of EINE are deleted, then the program checks if the checkbox Gen. data of deleted Purg data is selected, then the header record of EINA are also marked with deletion indicator.
  • If the records of EINA are deleted, then program checks if the checkbox Purg data of deleted Gen. data is selected, then the item records of EINE are also marked with deletion indicator.

Example






PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5016 Date: 20240520 Time: 073509     sap01-206 ( 69 ms )