Show TOC

Assign Additional Table Fields to New InfoSets

An additional table field is assigned to a functional area so that you can also display the long text belonging to the field concerned when you create a query for certain fields. This is in addition to the key stored on the database. Allowing a user, who is not familiar with the number keys, to work with ABAP/4 query.

The HR applicatin has a special option which allows you to assign an additional table field to several functional areas.

Before you assign a new table field to a functional area, get an idea of what table fields already exist and then consider which infotype you are going to assign the table field to.

You assign a new table field by carrying out the following two steps:

These entries are used to read table for the additional table fields that have been assigned. The appropriate parameter (datafield and/or literal) must be assigned to all the key fields in the table that is to be read.

Because the new table field is assigned to an infotype, it can only be used in a query if the functional area has been created using this infotype.

In the screen Change functional area <name>, the new table field will be displayed as a field within this infotype and is assigned to the corresponding functional group. (The other fields from the additional table are also displayed but have not been assigned to a functional area).

Note

If you have assigned a table field using the procedure described above, you cannot include it in a functional area that already exists.

Example

In the infotype 0001 (Organizational Assignment), the company code is stored in the field P0001-BUKRS with the corresponding key. You will find the long text for this field in the table T001 in the field T001-BUTXT. One of the fields that belongs to this key field, is the field T001-BUKRS. You should use the variable values that have been stored in the field P0001-BUKRS to read this key field.

In the first step, you assign the field T001-BUTXT to the infotype 0001 (Organizational Assignment ). Enter the additional field type T and the desired application key.

In the second step, enter the table name of the additional table field T001 and the necessary key field BUKRS. In the field Parameter, enter the data field P0001-BUKRS.

Then create a new functional area using the infotype 0001 (Organizational Assignment ). The additional table field will be displayed on the screen Change functional area <name> as one of this infotype's fields and will be assigned to the appropriate functional area.

Standard Settings

In the standard SAP system, several additional fields have already been assigned to the infotypes.

Recommendation

SAP recommends that you when you are assigning new table fields, you use the SAP standard entries as a reference.

Activities

1. In the pop up window, choose Additional table fields HR Query.
You branch into the view Additional table fields HR Query.
2. Choose the menu path Edit -> New entries or use the function New entries .
You are now at the bottom of the table. You can maintain your new entries here.
3. In the column Field name, enter the technical field name of the table field that is to be read.
This name is made up of the table name, that the table field is assigned to in the database and the technical field name of the table field.
4. Assign the table field to an infotype.
Please note, that a table field can only be assigned to one infotype.
5. In the column Additional field type, enter the key T for the table field.
6. In the column Application, enter one of the three keys for the applications permissible in HR.
7. Save your entries.
8. Go back and in the pop up window, choose Table access for HR Query.
You branch into the view Table access for HR Query.
In this view, you specify the key that is used to read the table which contains the information on the new table field.
9. Choose the menu path Edit -> New entries.
10. In the field Table name, enter the name of the table which contains the information on the new table field.
11. In the field Field name, enter the technical name for this table's key field.
12. In the field Parameter, assign a suitable parameter (datafield or literal) to the respective key field.
If the table of the table fields to be read contains several key fields. carry out the above steps for each key field. You must assign a parameter to every key field.
13. Save your entries.

Further Notes

The ABAP/4 Query, when delivered, contains a number of table fields for the views Additional table fields HR Query and Table access for HR Query for the HR application.