SAP ABAP IMG Activity BW_VARCMOD (Customer exit for variables)
Hierarchy
SAP_BW (Software Component) SAP Business Warehouse
   BW (Application Component) SAP Business Information Warehouse
     RS (Package) BW: General Business Information Warehouse
IMG Activity
ID BW_VARCMOD Customer exit for variables  
Transaction Code S_BR3_49000005   IMG Activity: BW_VARCMOD 
Created on 19990303    
Customizing Attributes BW_VARCMOD   Customer Exit for Variables 
Customizing Activity BW_VARCMOD   Customer exit for variables 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BW_VARCMOD    

Requirements

If you need to process a variable using a processing type other than than the manual entry/default value, replacement path or SAP exit processing type, you can use a customer exit to set up a processing type for variables that is tailored to your specific requirements.

You can process all variable types (characteristic value-, node-, hierarchy-, formula- and text variables) using the customer exit processing type. In variable maintenance, choose the customer exit processing type for the respective variable.

The customer exit is a preconceived enhancement, a kind of "modification shell", that you can structure with customer-specific logic.

Standard settings

The customer exit processing type allows you to determine the default values for variables using a function module exit. The function module involved is EXIT_SAPLRRS0_001.

Example

In an enterprise, different employees are responsible for different products. These employees should only carry out reporting for their own products. Therefore, only those products for which a particular employee is responsible are to be reported on in a query.

You use a variable in the query for the characteristic value of the "product" characteristic with processing type "customer exit" and determine the default values for this variable as being dependent on the user. When executing the query, the characteristic value variable "product" is replaced with the user master data for the respective employee using the customer exit.

Activities

Create a project in transaction CMOD. Choose the SAP enhancement RSR00001 and assign it to the enhancement project. Activate the project.

Detailled procedure:

If the functionality provided in SAP BW does not sufficiently cover your company structures, you can develop function enhancements with transaction CMOD. To do this, proceed as follows:

  1. In the Project field, enter a name for your enhancement project.
  2. Choose Project -> Create.
  3. Enter a short description for your project.
  4. Save the attributes (administration information) for the project by choosing Attributes -> Save.
  5. Choose function Goto -> SAP Enhancements.
  6. Im the Enhancement field, specify the name of the SAP enhancement that you want to edit. You can combine several SAP enhancements into one enhancement project. In order to display the SAP documentation on a SAP enhancement, place the cursor on the name of the SAP enhancement and choose function SAP Enhancements -> SAP Documentation.
  7. Save your entries.
  8. Go back to the start screen.
  9. Select the subobject Enhancement Components.
  10. Choose Change. The SAP enhancement you selected is displayed with the corresponding components. Place the cursor on the name of the component that you want to edit (for example, EXIT_SAPLRSAP_001), and choose Edit -> Component. You reach the ABAP Editor (display function module).
  11. When you double click on the INCLUDE row, you are asked to create the INCLUDE object. If you have already created this object, double click to branch directly to the ABAP Editor (display program). There you can write your own coding.
  12. If the object has not been created yet, you have to specify the program attributes first.
  13. Save the program attributes.
  14. Choose Goto -> Source Text. You get to the ABAP Editor.
  15. Enter coding for your program.
  16. Save the program.
  17. Go back to the start screen.
  18. Activate your enhancement project in Project -> Activate Project. The enhancement only comes into effect when you activate the project .

Further notes

For more information on working with the enhancement for global global variables in reporting, see the help documentation for the enhancement. Call transaction SMOD. Enter the name of the enhancement (RSR00001), choose Documentation and then Edit -> Display Subobject.

For general information on working with customer exits, see Help -> Extended help in transaction CMOD.

Business Attributes
ASAP Roadmap ID 262   Technical and Graphical Settings 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG BW_VARCMOD 0 ARS0000025 SAP Business Information Warehouse 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
CMOD L - Logical transport object CMOD BW_1CMODBR  
History
Last changed by/on SAP  20020708 
SAP Release Created in