Ansicht
Dokumentation

SIMG_OHAX521 - Leave Data in a Window

SIMG_OHAX521 - Leave Data in a Window

ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This activity describes how to set up leave data for an employee.

For further information, refer to the sections "Line layout" or "Identifiers in window", or to the documentation on the form editor in the SAP Library.

Employee leave data can be set up in fixed positions or in a window.

This step describes how to set up employee leave data in a window.

The procedure for setting up leave data in a window differs from the procedure described for filling the fields Table and Table field in the step "Line layout", and from the procedure for filling the fields Table, Table field, and Identifier in the step "Identifiers in window".

Table/Table field (Line layout)

When setting up employee leave data, you may only specify fields which belong to the following tables:

  • VAC (Leave)
This table contains the leave data for all employees.
Example:
You wish to print existing leave entitlement. This is stored in the "ASP" field in table "VAC". In this case you must make the following entries in the Table and Table field fields:
VAC
ASP

Note on setting up text for a leave type

If you want to print a leave type text you must enter "VAC" as the table, "ART" as the table field, and conversion "01" in the Conversion field. This causes the system to print the text for the leave type (e.g. "Standard leave") instead of the key ("01").

Identifier (Leave types set up in identifiers in window)

Specify the leave type to be printed or whether the total of all leave types is to be printed in this field. Also specify a period (for example, current period) to which the leave aspect (for example, existing leave entitlement) refers.

Your entry here must consist of four characters. These should be as follows:

1st and 2nd characters:

  • Y* (all years)
This table contains cumulated leave data sorted by leave type for all employees as of the date when they joined the company.
  • YA (current year)
This table contains cumulated leave data sorted by leave type for all employees as of the date when they joined the company.
  • YP (previous years)
This table contains cumulated leave data for previous years for all employees sorted by leave type.
  • PA(current period)
This table contains leave data for the current period for all employees sorted by leave type.
3rd and 4th characters:
"Leave type", for example, "01" for leave type "Standard leave"
or
"**" for the total of all leave types

Example:

You wish to print the total of all leave types for the current year. To do this you must make the following entries in the Identifier field:

YA**

Example

You want to set up the employee's leave entitlement for the leave type "Standard leave" ("01") for the current year (window "F1", group "01", subgroup "05") for form "ZF01" as follows:

  • from column 00 the leave type key
  • from column 04 the leave type text
  • from column 30 the leave entitlement for the leave type

Line layout entries

In this case you must make the following entries for the line layout:

Step 1

In the form editor, choose "Change line layout" and make entries in the fields Line type and Column type.

LType CType
01 X

Step 2

You must also make the following entries in the dialog box "Add individual field in line layout ..." under the data groups Position data, Print data and Print options:

Column Table Table field ... Conversion
000 VAC ART
004 VAC ART   01
030 VAC ASP

Entries for identifiers in window

You must also make an additional entry for the leave type under identifiers in window. The identifiers are located in the dialog box "Change layout of group ..." in the form editor. Enter the following for group 01:

Sgrp Tab Id LType CType ...
05 VAC YA01 X

You must set up a suitable line layout for the line to be printed. In this case line type "01" and column type "X" have been selected. The fields in table VAC which contain the leave data for all employees must be specified as the field name. The default from the "Allowed field names" overview was usually selected as the output length. Entering conversion "01" in the middle line causes the system to print the text for the leave type instead of its key.

The entry in the Identifier field means that data on leave type "01" relating to the current year ("YA") is to be printed. When setting up leave data you must always enter "W" in the Table indicator field.

Abbreviations used

The following abbreviations were used in the above example:

Sgrp Subgroup number
Tab Table
Id Identifier (leave type)
LType Line type
CType Column type

Procedure

Make the required entries using the form editor. Choose the activity for the form editor.






BAL Application Log Documentation   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 8450 Date: 20240523 Time: 201344     sap01-206 ( 95 ms )