SAP ABAP IMG Activity ACEPS_BAPIDOC_MODIFY (Change Document After Summarization)
Hierarchy
EA-FIN (Software Component) EA-FIN
   FI-GL-GL-ACE (Application Component) Accrual Engine
     ACE-PS (Package) Accrual Engine: Posting Server Basis
IMG Activity
ID ACEPS_BAPIDOC_MODIFY Change Document After Summarization  
Transaction Code S_ALN_01000252   (empty) 
Created on 20011127    
Customizing Attributes ACC_GL_ACE_K_U_A_A   Accrual Engine: Optional Activity, All Components 
Customizing Activity ACEPS_BAPIDOC_MODIFY   Change the BAPI Document Before Transfer to Accounting 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name FIGL_ACE_BAPIDOC_DC    

Use

This Business Add-In (BAdI) allows you to change the temporary accounting document or to add document lines to it after it is summarized but before it is transferred to Accounting.

When an Accrual Engine document is transferred to Accounting, the system performs the following processes:

  • Firstly, a temporary two-line accounting document is made up from the Accrual Engine in the form of BAPI structures.
  • Secondly, a number of these temporary two-line accounting documents are summarized before being transferred to Accounting. You can decide whether or not you want these temporary accounting documents to be summarized in IMG activity Define Posting Control.

The subsequent transfer to Accounting is carried out using BAPIs.

Note
You also have the option of making as many entries as you like in an EXTENSION table in order to change the accounting document. This table is given over to the BAPI. You can evaluate the table immediately after calling up the BAPI in Accounting. To do this, you have to activate enhancement ACBAPI01 using transaction CMOD. It can make sense to use the extension table if, for example, you want to fill user-defined fields in Accounting that are not available in the BAPI interface (in the BAPI structures).
However, SAP recommends that you change the accounting document directly using this BAdI, without using the extension table.

The BAdI uses the following parameters:

  • ID_TESTRUN
    Flag: This is a test run.
    No data is updated in the test run.
  • ET_EXTENSION1
    Extension table when BAPI is called up.

CS_BAPI_HEADER
Header data of the Accounting document.

  • CT_BAPI_ITEMS
    Items in the Accounting document, contains
    • two entries if summarization is not active in the Accrual Engine,
    • at least two entries if summarization is active in the Accrual Engine.
  • CT_BAPI_CURR
    Currency information for the items.

You can use BAdI ACEPS_BAPIPREDOC_MOD Change Document Before Summarization to change the Accounting document before summarization.

For general information about defining BadIs, see the SAP library under Basis -> ABAP Workbench (BC-DWB) -> Changes to the SAP Standard (BC) -> Business Add-Ins -> Defining a Business Add-In.

Requirements

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20031203 
SAP Release Created in 110