Show TOC

Maintain InfoSets

ABAP Query allows you to evaluate data stored in the SAP R/3 system. As the logical databases, tables and sequential datasets in the system contain several hundred thousand fields, it would not be practical to display all of these when creating queries. You can restrict the number of fields by creating functional areas.

Functional areas contain the data which can be evaluated in a query. Functional areas faciliate query creation.

Maintaining functional areas in Human Resources (HR) differs from the general procedure because data fields are already grouped through the use of infotypes.

When creating a functional area in HR, take the following into account:

This database stores the infotypes for HR master data (0000 to 0999) and time management data (2000 to 2999).
This database stores the infotypes for HR master data (1000 to 1999).
Choose one of the following three scenarios available:
Scenario 1
If you want to create a functional area only for HR master data or time data, choose database PN and application P.
Scenario 2
If you want to create a functional area for personnel planning data, choose database PC and application H.
Scenario 3
If you want to create a functional area for HR master data based on a personnel planning organizational structure, choose database PC and application H, as it refers to database PN and application P.
Note
Since customer infotypes (9000 to 9999) can be stored on both databases, you must decide which database to use each time when you want to evaluate customer infotypes.
Note
You cannot change the selected infotypes once you have created the functional area. A functional area may not contain more than 99 infotypes.
Note
For a detailed description of this function, refer to the R/3 library documentation by by choosing Basis -> ABAP Workbench -> ABAP Query.
The HR standard system contains the following predefined functional groups and functional group IDs:
Assign an infotype field to a functional group by specifying the appropriate functional group ID.
Specific fields for HR have already been assigned to functional groups in the standard R/3 System. The assigned fields are not mandatory and can be changed.
Recommendation

When changing a functional area, take the following into account:

When you change a functional area, you cannot change the selected infotypes or the assigned database.
Note
If you delete fields from functional groups of an existing functional area, the system issues an error message if these fields are already being used in a query.

Activities

To create a functional area, proceed as follows:

1. In the Functional Areas: Initial Screen, enter a one to four character alphanumeric name for the functional area.
2. Choose Functional area -> Create or the Create function.
You jump to the Functional Area <NAME>: Title and Database screen.
3. Enter a description of the functional area.
This description is displayed as the long text when you create a query.
4. Assign an authorization group to the functional area, if necessary.
5. In the Functional area for logical database box, enter the desired database and application.
6. Choose Goto -> Functional groups or the Functional groups function.
You jump to the HR Query: Functional Area Generator screen.
7. Specify the infotypes that should be included in the functional area.
Note
You cannot change the selected infotypes once you have chosen the Execute function.
8. Choose the Execute function to fill the functional area with data.
The functional area is then filled with the fields of the selected infotypes. You then jump to the Change Functional Area <Name> screen.
All infotypes you included in the functional area are listed in the Tables of logical database/Join box.
9. Specify which fields should be included in the functional groups by selecting the name of an infotype.
All fields from this infotype are then stored in the table under Fields.
The standard R/3 System contains several functional groups listed under Functional groups which have been given an abbreviation. You can modify the selection and names.
10. Assign the functional group abbreviation to a field in order to include the field in this functional group.
The fields of one infotype should be assigned to one functional group. Key fields are an exception.
11. Here you can also define additional fields and assign additional tables.
The procedure for defining additional fields and assigning additional tables for one functional area is the same as in all other applications. For more information, refer to the online documentation in the R/3 library by choosing Basis -> ABAP Workbench -> ABAP Query.

To change a functional area, proceed as follows:

1. In the Functional Areas: Initial Screen, enter the functional area and select Change.
You jump to the Change Functional Area <Name> screen. You cannot change the database or the selected infotypes.
2. Make the necessary changes.
You can:
For more information, refer to the online documentation in the R/3 library by choosing Basis -> ABAP Workbench -> ABAP Query.
Note
If you delete fields from functional groups af areas which are already used in a query, the system issues an error message.

Warning

Before you can use a functional area in a query, you must

To generate the functional area, use the Generate function.
To assign user groups to the functional area, return to the Functional Areas: Initial Screen and choose the Assign user groups function. In the screen which appears, choose the desired user groups.

Additional information

For more information on ABAP Query, refer to the online documentation in the R/3 library by choosing Basis -> ABAP Workbench.