Ansicht
Dokumentation

AINT0004 - Change amount posted for certain areas

AINT0004 - Change amount posted for certain areas

ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Using this SAP enhancement, it is possible to change the amount of the line items, during posting to assets, by means of a user exit. However, this does not apply to the following transactions:

  • write-up
  • complete retirement
  • complete transfer

When you change amounts by means of a user exit, all of the same steps are carried out as are carried out for a manual change of the amount. You can also change the depreciation areas that are offered for change in the function "Dep. areas" in the posting transaction.

To use this user exit, follow the procedure below:

  1. Maintain the Include ZXAPCU05 (until 4.0B ZXINTU05) and create source code for changing the amount, depending on the type of the current transaction (acquisition, retirement, and so on - see the example below).
  2. Create a customer project using SAP enhancement AINT0004, and activate it (transaction CMOD).

The following parameters are available in include ZXAPCU05:

  • Structure I_RLAMBU, which contains the current posting information
  • Structure I_ANTS, which contains the most important asset master data
  • Table T_ANEPI, which contains the line items that are normally created and that can be changed
  • Table M_ANEPI, which accepts the line items you have changed. Don't forget that you have to fill the depreciation area as well as the amount.

Example


*----------------------------------------------------------------------*
* INCLUDE ZXAPCU05
*----------------------------------------------------------------------*
*During acquisitions, depreciation area 20 should not receive an amount.
IF I_RLAMBU-BWASL = '100.
    M_ANEPI-AFABE = '20'.
    M_ANEPI-ANBTR =  0.
    APPEND M_ANEPI.
endif.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2183 Date: 20240328 Time: 171418     sap01-206 ( 31 ms )