Ansicht
Dokumentation

FI_ACEOBJS_PRE - Archiving Accruals: Preprocessing Program

FI_ACEOBJS_PRE - Archiving Accruals: Preprocessing Program

General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

Using this activity, you run the archiving preprocessing program for archiving accrual objects. This program sets an accrual object to the To Be Archived status based on conditions that are predefined in the system. If the conditions are met, it also fills the Business Completion Datein the accrual object with the date when the accrual object is set to status To Be Archived.

Integration

Whether it is necessary to run this program and how the predefined conditions are checked by this program before setting accrual objects to status To Be Archived,depends on the relevant application of the Accrual Engine you are using:

  • Manual Accruals (ACAC)
    All of the following conditions must be met before the program sets To Be Archived to accrual objects:
  • The current date must be later than the End of Lifedate of the accrual object.

  • No postings have been made for this accrual object for at least 200 days.

  • The accrual object has not been changed for at least 200 days.

  • Purchase Order Accruals (POAC)
    In most of cases, the program doesn’t have to be run for application component POAC, because the status of accrual objects has been set to be archived already in the preprocessing program run for the purchase order in Material Management (MM).
    However, you can run this program when a mismatch exists between a purchase order and a corresponding accrual object. For example, a purchase order has set to be archived in system while the accrual object has not. When you run this program, the status of the accrual object can be set to To Be Archived, too.

In addition, a generic check on accrual balance is done by the Accrual Engine before you run the activity. Make sure the balance is zero before running this program. You have to do this because an accrual object can be set to status To Be Archivedonly when all accruals are finished.

Note: For POAC, this generic check is done when the purchase order is set to be archived in MM.

Features

The BAdI BADI_ACE_ARCHIVING enables you to do the following:

  • Replace the application-specific checks.
    For example, for Manual Accruals, implement your own checks instead of checking whether the accrual object has been changed during the last 200 days.
  • Define your own logic about how to fill the Business Completion Date.
    For example, use the end of life date of the accrual object instead of the current calendar date.

Enhance Archiving Status

This Business Add-In (BAdI) is called by the system in the archiving preprocessing program. You can use this BAdI to change the result of the check that evaluates if it is ready to set status to To Be Archived for an accrual object.

The BAdI has the following methods:

  • Method CHECK_ARCHIVE_POSSIBLE
    Use this method to change the result of the check that evaluates if it is ready to set status to To Be Archived for an accrual object.
    The method provides the following parameters:
  • IS_SUBOBJ_KEY
    This importing parameter is a structure providing the key fields of an accrual object. The information can be used for selecting data of the accrual object from the database. This structure is read-only. You cannot change its content.

  • CB_ARCHIVE_POSSIBLE
    This variable is filled with the result of the standard archiving check. It is possible to perform an additional check and to change. CB_ARCHIVE_POSSIBLE accordingly

  • Method GET_LAST_CHANGED_ON
    Use this BAdI to change the business completion date. This date is used in ILM as the start date of the residence period.
    The method provides the following parameters:
  • IS_SUBOBJ_KEY
    This importing parameter is a structure providing the key fields of an accrual object. The information can be used for selecting data of the accrual object from the database. This structure is read-only. You cannot change its content.

  • CV_LAST_CHANGED_ON
    This variable is filled with the result of the standard logic for determining the business completion date. The date can be overwritten.

Example

  • Method CHECK_ARCHIVE_POSSIBLE
    It is possible to implement a check which ensures that the life end date of an accrual object has passed for a certain number of days.
  • Method GET_LAST_CHANGED_ON
    It is possible to set the business completion date to the life end date of the accrual object.





TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.

Length: 5562 Date: 20240531 Time: 173200     sap01-206 ( 85 ms )