×

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




Sapass

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



Index

AAIR0004

App. Req. Drilldown: Cust. Enhancements
Background

Standard reporting for appropriation requests allows you to run reports based on a number of pre-defined master data characteristics.

If you want to use master data characteristics, which are not included in those pre-defined by SAP, in your drilldowns, you can use SAP enhancement AAIR0004. Using this enhancement, you can define any number of your own characteristics for drilldowns, and fill then from master data fields of appropriation requests, orders and projects.

A particular advantage is that you can generate your own user-defined characteristics for fields defined in the following master data enhancements:

  • AAIR0002 Appropriation requests
  • CNEX0004 Projects

This enhancement only applies to:

  • Drilldowns on the investment program (current data)

(see entry help for transaction IMD0)

You should also implement the related enhancement AAIP0003 if you are using:

  • Drilldowns for the investment program (current data)

(see entry help for transaction IME0).

Note:

For Business Warehouse (BW), you can add your user-defined fields to the extract structure for the InfoObject 0APPR_REQU without any problems (see BW Implementation Guide in OLTP Add On).

Activating and Programming SAP Enhancement AAIR0004
  1. Create and maintain enhancement structure CI_RIRASP_MDC.
    1. If it does not yet exist, create enhancement structure CI_RIRASP_MDC. Enter the fields for your user-defined characteristics.
    2. Also maintain the foreign key relationships for the existing check tables. The system provides automatic proposals here. You can use all of the fields of the RIRASP_MDC structure in the foreign key relationships.
    3. When you define the enhancement structure, you can also enter search helps for the F4 entry help.
    4. Activate the CI_RIRASP_MDC structure.

Example:

You want to report on orders using the order type as characteristic. To do so, define the ZZORDER_TYPE field to data element AUFART in the enhancement structure. When you maintain the foreign key relationship for the field, the system automatically proposes check table T003O and creates a proposal for the foreign key relationship. .

  1. Generating the definition of the characteristic for the drilldown
    1. Generate the characteristic definitions for your new user-defined fields, initially in test mode, using transaction IMDG.
    2. Take note of the messages in the log along with their long texts.
    3. Generate the characteristic definitions in update mode (transaction IMDG).
  2. EXIT_SAPLAIAJ_001 Supplying data to the characteristics (mandatory)
    1. Create the include to function module EXIT_SAPLAIAJ_001, if it does not already exist. Supply the new characteristics with data here.
    2. Use the example program code as a reference.
    3. Pay attention to the notes in the example program code.
  3. EXIT_SAPLAIPJ_003 Read texts for characteristics (optional)
    1. Create the include for function module EXIT_SAPLAIPJ_003, if it does not already exist. Supply the texts for the new characteristics here.
    2. Use the example program code as a reference.
    3. Pay attention to the notes in the example program code.
  4. EXIT_SAPLAIPJ_004 Check values for characteristics (optional)
    1. Create the include for fuction module EXIT_SAPLAIPJ_004, if it does not already exist. Implement the value checks for the new characteristics here.

    2. Function/Program:
      • EXIT_SAPLAIAJ_002: App. Req. Drilldown: Complete User-Defined Characteristics
      • EXIT_SAPLAIPJ_003: App. Req. Drilldown: Read Texts for User-Defined Characteristics
      • EXIT_SAPLAIPJ_004: App. Req. Drilldown: Check Values for User-Defined Characteristics

02-Oct-2005