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



User Exit for SAPDBADA
Central data retrieval and formatting of data for assets takes place in the logical database ADA of the Asset Accounting (FI-AA) component. One of the data fields is the field ANLN0 (12 characters). This field contains the main asset number.

However, you can change this using this SAP enhancement. For example, you could have the system list the inventory number, rather than the main asset number, in all standard reports that use the logical database.


Follow these steps:

  1. Modify function module EXIT_SAPDBADA_002. Enter your own code in the included program ZXBADU02.
  2. Activate a customer project using SAP enhancement BADA0002 (transaction CMOD).


The asset master data (I_ANLAV) is available as transfer parameter to function module EXIT_SAPDBADA_002.

The expected return value (E_CUSANLN1) is the replacement value for the

  • EXIT_SAPDBADA_002: Customer-Specific Asset Number