SAP Function Modules

HR_99S_GET_PROC_CLASS_VALUE SAP Function module - HR-SE: Returns the value of a given Processing Class in a given Wage Typ







HR_99S_GET_PROC_CLASS_VALUE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HR_99S_GET_PROC_CLASS_VALUE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HR99S00_PAYROLL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HR_99S_GET_PROC_CLASS_VALUE - HR 99S GET PROC CLASS VALUE





CALL FUNCTION 'HR_99S_GET_PROC_CLASS_VALUE' "HR-SE: Returns the value of a given Processing Class in a given Wage Type
  EXPORTING
*   p_molga =                   " t500l-molga   Country Grouping
*   p_lgart =                   " t512w-lgart   Wage Type
    p_proc_class =              " t52d1-prcls   Processing class
*   p_keydate =                 " sy-datum      Date and time, current (application server) date
*   p_t512w =                   " t512w         Wage Type Valuation
  IMPORTING
    p_value =                   " t52d2-prclv   Specification for Processing Class
    p_return_code =             " sy-subrc      Return value, return value after ABAP statements
    .  "  HR_99S_GET_PROC_CLASS_VALUE

ABAP code example for Function Module HR_99S_GET_PROC_CLASS_VALUE





The ABAP code below is a full code listing to execute function module HR_99S_GET_PROC_CLASS_VALUE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_p_value  TYPE T52D2-PRCLV ,
ld_p_return_code  TYPE SY-SUBRC .


SELECT single MOLGA
FROM T500L
INTO @DATA(ld_p_molga).


SELECT single LGART
FROM T512W
INTO @DATA(ld_p_lgart).


SELECT single PRCLS
FROM T52D1
INTO @DATA(ld_p_proc_class).

DATA(ld_p_keydate) = '20210129'.
DATA(ld_p_t512w) = '20210129'. . CALL FUNCTION 'HR_99S_GET_PROC_CLASS_VALUE' EXPORTING * p_molga = ld_p_molga * p_lgart = ld_p_lgart p_proc_class = ld_p_proc_class * p_keydate = ld_p_keydate * p_t512w = ld_p_t512w IMPORTING p_value = ld_p_value p_return_code = ld_p_return_code . " HR_99S_GET_PROC_CLASS_VALUE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_p_value  TYPE T52D2-PRCLV ,
ld_p_molga  TYPE T500L-MOLGA ,
ld_p_return_code  TYPE SY-SUBRC ,
ld_p_lgart  TYPE T512W-LGART ,
ld_p_proc_class  TYPE T52D1-PRCLS ,
ld_p_keydate  TYPE SY-DATUM ,
ld_p_t512w  TYPE T512W .


SELECT single MOLGA
FROM T500L
INTO ld_p_molga.


SELECT single LGART
FROM T512W
INTO ld_p_lgart.


SELECT single PRCLS
FROM T52D1
INTO ld_p_proc_class.

ld_p_keydate = '20210129'.
ld_p_t512w = '20210129'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HR_99S_GET_PROC_CLASS_VALUE or its description.