Ansicht
Dokumentation

OHARU_FORS031 - Example with Old Procedure

OHARU_FORS031 - Example with Old Procedure

TXBHW - Original Tax Base Amount in Local Currency   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Note: The procedure outlined here is still supported. However, with new forms, you should proceed as outlined in Example with New Procedure

You want to print an employee's leave entitlement for the leave type Standard annual leave (01) for the current year. Employees' leave data for the current year is stored in the table VACYA. The current entitlement to standard leave is stored in the field ASP01. Leave entitlement should only be printed on the first page, in line 16, from column 69.

In this case, the following entry is required:

Page type  Position  Table    Table field   Print length
    FP     16/069    VACYA    ASP01         10

The contents of the leave tables can be derived from the following table names:

Abbreviation Meaning
VAC Leave
Y (in 4th place) Year
P (in 4th place) Period
P (in 5th place) Previous
A (in 5th place) Current
* (in 5th place) All

The following combinations are possible:

  • VACY* (all years)
This table contains the cumulated leave data for all employees since the start of their employment in the enterprise. This data is differentiated according to leave type.

  • VACYA (Current year)
This table contains the leave data for the current year for all employees. The data is differentiated according to leave type.
  • VACYP (Previous years)
This table contains cumulated leave data for all employees for the previous years. The data is differentiated according to leave type.
  • VACPA (Current period)
This table contains leave data for all employees for the current period. The data is differentiated according to leave type. The table does not contain fields for remaining leave days (RSA, RSG, RST).

The field names of these tables have five characters and are composed of two elements.

The first three places, which constitute the first element, define the leave type more clearly. The following aspects are possible:

  • ATR,,Number of leave days requested
  • GLT,,Number of leave days compensated
  • ASP,,Existing leave entitlement
  • RSA,,Number of deductible leave days remaining
  • RSG,,Number of leave days that can be compensated
  • RST,,Number of existing leave days remaining (= RSA + RSG)

Places 4 and 5, which constitute the second element, contain the key for the relevant leave type (for example, "01" for standard leave). If you want to display total leave instead of a value for a specific wage type, enter the place holder "**".

* (in 5th place)
  1. In the form editor, choose Individual fields -> Create.
  2. Complete the fields as described in the example.
* (in 5th place)

If you want to print the text for a leave type, you must enter 01 in the Conversion field. As a result, the relevant text (for example, Leave entitlement) is printed instead of the leave type key (for example 01).






CL_GUI_FRONTEND_SERVICES - Frontend Services   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 4762 Date: 20240523 Time: 193049     sap01-206 ( 54 ms )