Show TOC

  Conversion Class

Definition

Class that converts screen structures to structures that can be interpreted by the business logic (processing logic).

Use

Screen structures contain all interface-relevant fields of an infotype that can be displayed or edited on the user interface.Therefore, the fields of an infotype structure must be converted to a relevant format. This function is taken on by the conversion class (see example).

Conversion classes serve two purposes:

  • Input and output conversion

    The conversion classes contain infotype-specific implementations for converting input and output values or filling input helps.

  • Screen control functions such as determining the field attributes of screen fields.

The conversion class for an infotype is called at runtime by the various applications such as the XSS adapter for the self-service scenarios or the adapter for HR Administrative Services . Each infotype uses at least one conversion class. Different country versions use different conversion classes.

There are two types of conversion class that have interfaces with different conversion method parameters:

  • Standard conversion classes that use the interface IF_HRPA_UI_CONVERT_STANDARD

    This interface contains standard conversion methods that transfer the individual infotype structures Pnnnn (primary infotype), Pnnnn2 (secondary infotype), and PREF (cost center assignment).

  • Enhanced conversion classes that use the interface IF_HRPA_UI_CONVERT_ADVANCED

    This interface contains enhanced conversion methods that transfer the entire infotype container. These methods also have the same function as the standard conversion methods.

For detailed information about using conversion classes, see the sections on Conversion Classes .

You must specify which conversion class should be used for each screen structure.

You make the assignment in view V_T588UICONVCLAS (Assignment of Screen Structure to Conversion Class). For more information, see Assigning Conversion Classes to Screen Structures .

Naming Convention

The general naming convention for conversion classes is as follows:

  • Standard conversion class

  • Customer-specific conversion class

Example

Conversion of the date for output on forms, for example, in three separate fields:

  • Current Date

  • Name of month

  • Year