Ansicht
Dokumentation

SAPFP50L - HR Wage Type Checks

SAPFP50L - HR Wage Type Checks

rdisp/max_wprun_time - Maximum work process run time   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Description

The form pool SAPFP50L contains the routines for checking wage
types, that can be called up externally. These routines are used
by the module pool for HR infotypes.

The routines' tasks are:

- to check, whether a wage type is allowed for an infotype.

- to check, whether a wage type is allowed for a plant category
and a payroll category of an employee.

- to check, whether the combination for entering amount, number
and unit is allowed.

- to check the entry of month of payment. To convert the entry
in a vector, that is 12 bytes long.

- to convert the vector that is 12 bytes long and has been saved
to the month of payment in the format that is used externally.






Overview of the functions.
--------------------------

Function name Task

CHECK_LGART_INPUT Checks the permissibility of the entry
of amount, number and unit for the
wage type.

CONVERT_TO_ZLZPT Converts the month of payment entered
in the saved format of the month of
payment.

CONVERT_FROM_ZLZPT Converts the internal format for the
month of payment to the external
format.

GET_EITXT Reads the external unit keys for
internal keys.

GET_ZEINH Reads the internal unit keys according
to the generic entry of the external
unit keys.

LGART_ALLOWED Checks the permissibility of the
wage type.


FORM CHECK_LGART_INPUT USING INFKL INFTY DATE LGART BETRG
--------------------------------------------- ANZHL ZEINH.
-------------

Wage type entries are checked against the entries in table T511.

If the entry isincorrect, the appropriate error message is
given.

Parameter:

--> INFKL: Info class, for which the check is taking place.

INFTY: Infotype, for which the check is taking place.

LGART: Wage type

BETRG: Amount of wage type.

ANZHL: Number of wage type.

ZEINH: Internal unit for the wage type.




FORM CONVERT_TO_ZLZPT USING ZLZPX ZLZPT BEGDT ENDDT.
---------------------------------------------------

The month of payment can be entered by the user in the
following format:

m1/s1,m2/s2,...

mi is a month (1 <= mi <= 12) and si is a one-digit
symbol (i=1,2,...), for example,

1/S,2,6/R,3/E,8

This value is transferred in the routing CONVERT_TO_ZLZPT to ZLZPX
The string is converted into a vector that is 12 bytes long
(1 Byte for each month) and saved in ZLZPT. For the
above example, you receive:

'S*E R * '.

As you can see from the example, '*' is used as the symbol, if
a month was not given a symbol.

Parameter:

--> ZLZPX: String that is 60 bytes long, with the months of
payment in the format month1/symbol1,.. (see the
above explanation).

BEGDT: Start date of the infotype record with these
months of payment.

ENDDT: End date of the infotype record with these
months of payment

<-- ZLZPT: Vector that has been converted to 12 bytes long
(see the above explanation).




FORM CONVERT_FROM_ZLZPT USING ZLZPT ZLZPX.
-----------------------------------------

This routine is the opposite of CONVERT_TO_ZLZPT.
In the example for CONVERT_TO_ZLZPT

'S*E R * '.

is converted into

1/S,2,3/E,6/R,8

Parameter:

--> ZLZPT: Vector that is 12 bytes long (see CONVERT_TO_ZLZPT).

<-- ZLZPX: String that is 60 bytes long with months of payment
(see CONVERT_TO_ZLZPT).




FORM GET_EITXT USING ZEINH EITXT.
---------------------------------

You can obtain unit texts for internal unit keys from
T538T.

Parameter:

--> ZEINH: Internal unit key.

<-- EITXT: External unit key.


FORM GET_ZEINH EITXT ZEINH.
--------------------------

You can obtain the internal unit key using the generic entry
of a unit text from table T538.

Parameter:

--> EITXT: Unit text entered (generic).

<-- ZEINH: Internal unit key.




FORM LGART_ALLOWED USING INFKL INFTY DATE.
-----------------------------------------

Firstly, table T511 checks whether the wage type is allowed
for the infotype to be edited.

Then the employee's plant category and payroll category is
determined. The plant category is taken from table T001P by
means of the combination company code, plant and plant section
which is taken from the employee's current work center data. The
payroll category is taken from table T503 by means of the employee's
person group/person subgroup.

It is presupposed that the current work center has been read into
the structure P0007.

If the wage type is not valid, the appropriate message is sent,
otherwise, the valid entry is in table T511.

Parameter:

--> INFKL: Info class, for which the entry is to be checked.

INFTY: Infotype, for which the entry is to be checked.

LGART: Wage type to be checked.

DATE: Date that is to be checked.

Other data:

--> PSYST: The employee's work center data that is current for the
period DATE has to be read in by the program called
up.

<-- T511: The entry belonging to the wage type is read in to
table T511.






CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 6761 Date: 20240531 Time: 091631     sap01-206 ( 64 ms )