SAP Function Modules

HR_PL_PY_GET_FEP_FACTOR SAP Function module







HR_PL_PY_GET_FEP_FACTOR 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_PL_PY_GET_FEP_FACTOR into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM HR_PL_PY_GET_FEP_FACTOR - HR PL PY GET FEP FACTOR





CALL FUNCTION 'HR_PL_PY_GET_FEP_FACTOR' "
  EXPORTING
    pernr =                     " persno
    aper =                      " pc2aper
    class81 =                   " char2
*   tmunit =                    " c
  TABLES
    p0516 =                     " p0516
*   rt =                        " pc207
*   wpbp =                      " pc205
  CHANGING
    source =                    " pc207
    fact_data =                 " pplpl_fact_data
  EXCEPTIONS
    RT_MISSING = 1              "
    WPBP_MISSING = 2            "
    OTHER_ERROR = 3             "
    .  "  HR_PL_PY_GET_FEP_FACTOR

ABAP code example for Function Module HR_PL_PY_GET_FEP_FACTOR





The ABAP code below is a full code listing to execute function module HR_PL_PY_GET_FEP_FACTOR 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:
it_p0516  TYPE STANDARD TABLE OF P0516,"TABLES PARAM
wa_p0516  LIKE LINE OF it_p0516 ,
it_rt  TYPE STANDARD TABLE OF PC207,"TABLES PARAM
wa_rt  LIKE LINE OF it_rt ,
it_wpbp  TYPE STANDARD TABLE OF PC205,"TABLES PARAM
wa_wpbp  LIKE LINE OF it_wpbp .

DATA(ld_source) = 'Check type of data required'.
DATA(ld_fact_data) = 'Check type of data required'.
DATA(ld_pernr) = 'Check type of data required'.
DATA(ld_aper) = 'Check type of data required'.
DATA(ld_class81) = 'Check type of data required'.
DATA(ld_tmunit) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p0516 to it_p0516.

"populate fields of struture and append to itab
append wa_rt to it_rt.

"populate fields of struture and append to itab
append wa_wpbp to it_wpbp. . CALL FUNCTION 'HR_PL_PY_GET_FEP_FACTOR' EXPORTING pernr = ld_pernr aper = ld_aper class81 = ld_class81 * tmunit = ld_tmunit TABLES p0516 = it_p0516 * rt = it_rt * wpbp = it_wpbp CHANGING source = ld_source fact_data = ld_fact_data EXCEPTIONS RT_MISSING = 1 WPBP_MISSING = 2 OTHER_ERROR = 3 . " HR_PL_PY_GET_FEP_FACTOR
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_source  TYPE PC207 ,
ld_pernr  TYPE PERSNO ,
it_p0516  TYPE STANDARD TABLE OF P0516 ,
wa_p0516  LIKE LINE OF it_p0516,
ld_fact_data  TYPE PPLPL_FACT_DATA ,
ld_aper  TYPE PC2APER ,
it_rt  TYPE STANDARD TABLE OF PC207 ,
wa_rt  LIKE LINE OF it_rt,
ld_class81  TYPE CHAR2 ,
it_wpbp  TYPE STANDARD TABLE OF PC205 ,
wa_wpbp  LIKE LINE OF it_wpbp,
ld_tmunit  TYPE C .

ld_source = 'Check type of data required'.
ld_pernr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p0516 to it_p0516.
ld_fact_data = 'Check type of data required'.
ld_aper = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_rt to it_rt.
ld_class81 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wpbp to it_wpbp.
ld_tmunit = 'Check type of data required'.

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_PL_PY_GET_FEP_FACTOR or its description.