Show TOC

 Using Pushbuttons

Use

Certain infotypes feature pushbuttons, which enable them to perform additional functionality – for example, to populate fields with values, or to execute external reports. Broadly speaking, any pushbutton enables an infotype to perform one of two functions, namely:

  1. Either to perform an action that depends on the user interface – for example, to navigate elsewhere.

  2. Or to call business logic that does not depend on the user interface – for example, to compute values.

Procedure

If you wish to perform the first type of function, then you must apply a corresponding user interface and provide the source code there yourself – for example, by extending a model access class. To this end, you may wish to review the user interface programming guidelines that apply to Personnel Administration infotypes created in this (or any subsequent) release.

Generic support is available for the second type of function; to avail yourself of this support and to introduce such functions in your infotype, perform the following procedure.

  1. Modify the Infotype Operations view (V_T582ITOPER) to create a suitable infotype operation.

  2. Modify the Infotype Operations view to declare the infotypes, subtypes and country-specific versions for which the infotype operation may be implemented. In other words, if your infotype is able to process a certain operation, then you must modify this separate view (V_T582ITVOPER) to declare that the operation is indeed valid for that infotype.

  3. Modify method SPECIFIC_ACTION_COMPUTATIONS in the applicable infotype-specific check class(es) to provide source code with suitable handling instructions. To implement the operation, we recommend that you apply a “CASE operation” statement to distribute processing among the various operations. We also recommend that you use a separate method for each value of the case operation.