×

[PR]この広告は3ヶ月以上更新がないため表示されています。
ホームページを更新後24時間以内に表示されなくなります。




Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> UserExit>AINT0004



Index

AINT0004

User Exit for Posting to Fixed Assets
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.

Activities

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).

Parameter

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'.
Function/Program:
  • EXIT_SAPLAPCF_005: Change Posting Amount

02-Oct-2005