Sapass

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



Index

AAIR0003

User Fields for App. Req. Master Data
This enhancement is primarily intended for specifying the responsible work center to be entered in maintenance orders when you create maintenance orders from appropriation requests.

In the standard system, the system checks if equipment or functional locations are assigned to the appropriation request. If they are, then the system adopts the responsible work center, if one is entered in the equipment or functional location, from that object. Otherwise you can enter the work center in dialog mode.

Using this enhancement, you can establish a different method for determining the responsible work center. You can also use the enhancement to specify that it is not possible to change such a work center later in dialog mode.

Activating your enhancement:

  1. Include SAP enhancement AAIR0003 in an enhancement project (any key).
    To do so, use the Project Management of SAP Enhancements function (transaction CMOD).
  2. Create ABAP program ZXAIRU02 as an include program.
  3. Program the determination of the responsible work center in program ZXAIRU02.
  4. Generate program SAPLXAIR.

Parameters

The following parameters are available in program ZXAIRU02:

  • I_IMAK
    General data of an appropriation request
  • I_IMAKT
    Language-dependent short text of appropriation request
  • T_IMAKA
    This table contains the affected assets or equipment, if there are any assigned to the appropriation request.
  • T_IMAKPA
    Contains the percentage distributions to requesting cost centers, business areas and profit centers, if there are any.
  • T_IMAKPI
    Contains the percentage distributions to several investment reasons, if there are any.
  • T_IMAKPS
    Contains the percentage distributions to requesting divisions, if there are any.
  • T_IMAKPU
    Contains the percentage distributions to environmental investment reasons, if there are any.
  • T_IMAKPW
    Contains the percentage distributions to requesting material groups, if there are any.
  • X_VAWRK
    This field contains the plant for the responsible work center, which may have already been determined as a default in the standard system. It can be changed by this user exit.
  • X_VAPLZ
    This field contains the responsible work center, which may have
    Function/Program:
    • EXIT_SAPLAIA1_002: Assignment of Work Center when Creating PM Order from App. Req.

02-Oct-2005