SAP ABAP IMG Activity BW_BADI_F4 (BAdI: Restricting the Value Help in the Variables Screen)
Hierarchy
SAP_BW (Software Component) SAP Business Warehouse
   BW-WHM (Application Component) Warehouse Management
     RSIMG (Package) IMG Texts and Release Notes
IMG Activity
ID BW_BADI_F4 BAdI: Restricting the Value Help in the Variables Screen  
Transaction Code S_BRA_16000017   (empty) 
Created on 20090129    
Customizing Attributes BW_BADI_F4   BAdI: Restricting the Value Help in the Variables Screen 
Customizing Activity BW_BADI_F4   BAdI: Restricting the Value Help in the Variables Screen 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name RSR_VARIABLE_F4_RESTRICT_BADI    

Use

You can use this BAdI to restrict input help for entry variables in the variable screen.

Requirements

Standard settings

The BAdI is filter-dependent. Create a separate implementation for each required InfoObject.

The BAdI is designed for multiple use.

Restricting input help without using hierarchies

To restrict input help for flat object lists without using hierarchies, use method Get_Restriction_Flat.

Method GET_RESTRICTION_FLAT

I_VNAM    Variable

I_IOBJNM    InfoObject

I_T_VAR_RANGE    Table of entries on the variable screen

I_T_COMPID     Table of participating queries

C_T_RANGE    Range table with other restrictions

C_INFOPROV    InfoProvider

C_F4_Mode    F4 mode

Entry parameters I_VNAM and I_IOBJNM return the names of the variables and the InfoObject that F4 help will be affected for. I_T_VAR_RANGE returns additional values from the variable screen entered before the call. These are returned in a range table that does not, however, return any information about variables that cannot be entered. I_T_COMPID is a list of participating BI queries.

If there is a single InfoProvider, entry and return parameter C_INFOPROV contains the InfoProvider for the participating queries, and can be overwritten in the implementation. Especially when you have just one MultiProvider, this allows you to restrict the input help to one of the physical InfoProviders if you also set the F4 mode to #D# (input help from dimension tables). The mode can only be set to #D# in conjunction with physical InfoProviders, as dimension values are otherwise not available. If you reference to a VirtualProvider that is based on a data transfer process, you always need to set mode #M# (input help from master data)

Return table C_T_RANGE is a range table of additional restrictions that can be used in the implementation. These restrictions are identical to restrictions that the system makes in the standard setting. It is therefore not possible to add to the list.

The following restrictions are permitted in C_T_RANGE:

  • Restrictions for InfoObject I_IOBJNM itself (for example using a specified range)
  • Restrictions to groups of InfoObjects (for example restriction of the fiscal year variant for fiscal years)
  • Restrictions by the InfoObject#s navigation attributes.

For technical reasons, pure display attributes cannot be used.

You can also make a restriction to physical InfoProviders. In this case, the input help is restricted to the specified physical InfoProviders. Field IOBJNM in table C_T_RANGE then has to be set to 0INFOPROV. In the case of a MultiProvider using physical InfoProviders with mode #D# (input help from dimension tables), the input help is built from all participating physical InfoProviders.

Entry and return parameter C_F4_MODE describes the retrieval method for the F4 help:

  • In mode #M#, the input help is built from the master data.
  • In mode #D#, the input help is built from the dimension tables of physical InfoProviders.

The choice of method is therefore always dependent on the choice of InfoProvider.

Restricting input help using hierarchies

To restrict input help for flat object lists using hierarchies, use method Get_Restriction_Node.

Method GET_RESTRICTION_NODE

I_VNAM    Variable

I_IOBJNM    InfoObject

I_T_VAR_RANGAE    Table of entries on the variable screen

I_T_COMPID     Table of participating queries

C_T_HIERARCHY    Table of possible hierarchies

C_T_NODE    Table with node restrictions

C_INFOPROV    InfoProvider

C_F4_Mode    F4 mode

On the whole, this method is the same as method GET_RESTRICTION_FLAT. Instead of a C_T_RANGE, the additional node restrictions can be submitted using table C_T_NODE.

C_T_HIERARCHY contains the hierarchies that can be used based on the existing query restrictions. If this table contains multiple entries, the system uses the first hierarchy in the standard setting. In a BAdI implementation, specific entries can be removed in order to select the required hierarchy.

Table C_T_NODE can be filled with individual nodes in order to restrict the hierarchy to the corresponding subtrees.

All other parameters are the same for Get_Restriction_Node as described above for method Get_Restriction_Flat.

Activities

For more information about implementing BAdIs for the enhancement concept, see the SAP Library for SAP NetWeaver, under BAdIs # Embedding in the Enhancement Framework..

Example

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 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20090129 
SAP Release Created in 720