Sapass

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



Index

AISA0001

User Exit for Asset Master Data Maint.
In Release 4.5A, you can assign an inventory number automatically when creating an asset master record.

Activities

Carry out the following steps:

  • Modify function module EXIT_SAPLAISA_001 to meet your own requirements (see example).
  • Activate SAP enhancement AISA0001 using the function Project Management of SAP Enhancements (CMOD).

Parameters

Function module EXIT_SAPLAISA_001 provides the following parameter for user-defined inventory number assignment:

  • I_ANLA - Master data of the asset being created

An inventory number (E_INVNR) should be returned.

Include ZXAISU02 is already provided in this function module. You have to create this included report yourself and provide the code required for your inventory number allocation.

Example

The following is a simple example of how function module EXIT_SAPLAISA_001 can be implemented:


*---------------------------------------------------------------------*
* INCLUDE ZXAISU02 *
*---------------------------------------------------------------------*
* Inventory number allocation dependends on the last 8 digits of the
* main asset number and is preceded by prefix I-
E_INVNR+0(2) = 'I-'
E_INVNR+2(8) = I_ANLA-ANLN1+4(8).

Function/Program:
  • EXIT_SAPLAISA_001: Assign Inventory Number

02-Oct-2005