You can make the following settings in this Customizing activity:
Defining additional fields enables you to obtain derived information. Derived information is, for example, data on a person's age derived from the date of birth that is stored in the database. Additional fields make it possible to determine and display information that is not explicitly stored in a database using the data in the database fields.
The HR application offers you the added option of defining an additional field for multiple functional areas.
The standard system delivers additional fields (hereafter referred to as standard additional fields) for a number of infotypes. These are contained in the structure Pnnnn_AF (nnnn = infotype number).
This structure is the one you use for customer-specific additional fields too. You enter your own fields in the substructure CI_Pnnnn_AF, which is contained in Pnnnn_AF.
In addition, you have the option of excluding standard additional fields when functional areas are created. (This also excludes them from use generally. You can use your own retrieval routines for standard additional fields if required.
There are three steps involved in setting up additional fields and the associated data retrieval routines:
(These three steps correspond to the Customizing activities you can call from the following Customizing nodes.):
You specify additional fields by including them in the structure CI_Pnnnn_AF. This is a substructure of the structure Pnnnn_AF (nnnn = infotype number) that contains the standard fields for the pertinent functional group (i.e. infotype).
In the ABAP Dictionary you have to assign the additional field either to an appropriate data element or create a new data element especially for it. Once you have made the required changes in the ABAP Dictionary, you must activate the structure.
In this step, you program your own function module used for data retrieval for the additional fields. You can use existing function modules of the type RPAQ_GET_AFnnnn as a reference to copy from.
You assign the additional field to an infotype and enter the name of the function module.
Since new additional fields are assigned to an infotype, it is only possible to use the new additional field in a Query if a functional area has been created for this infotype.
The new additional field then appears as one of the fields for the infotype on the Change Functional Area <Name> screen and is assigned to the pertinent functional group by default.
When you define an additional field in this way, you cannot later include it in another existing functional area.
The standard system already contains a number of additional fields defined for infotypes. These additional fields are contained in the structure Pnnnn_AF.
SAP recommends that you use the standard entries to guide you when you create new additional fields.
If you want to specify that a standard additional field is not to be proposed when a functional area is created, you must complete the fields 'Table name' and 'Field name' and leave the '+' field blank in the activity "Determine data retrieval routines and standard add'l fields".
The ABAP Query in the standard system already contains a number of tables and additional fields in the structures Pnnnn_AF.