SAP Function Modules

HR_INDVAL_CALL_MODULE SAP Function module







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

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


Pattern for FM HR_INDVAL_CALL_MODULE - HR INDVAL CALL MODULE





CALL FUNCTION 'HR_INDVAL_CALL_MODULE' "
  EXPORTING
*   module =                    " padiv_module
*   module_spec =               " padiv_module_spec
*   molga =                     " molga
    begda =                     " begda
*   tclas = 'A'                 " tclas
    pernr =                     " pernr_d
    infty =                     " infty
    lgart =                     " lgart
*   lgart_tab =                 " padiv_lgart_tab
    valuation_input =           " padiv_valuation_strct
*   values_tab =                " padiv_values_tab
  IMPORTING
    valuation_output =          " padiv_valuation_strct
    subrc =                     " sysubrc
* TABLES
*   pnnnn_tab =                 " prelp_tab
*   temporary_values =          " pinit
  CHANGING
    endda =                     " endda
    .  "  HR_INDVAL_CALL_MODULE

ABAP code example for Function Module HR_INDVAL_CALL_MODULE





The ABAP code below is a full code listing to execute function module HR_INDVAL_CALL_MODULE 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_valuation_output  TYPE PADIV_VALUATION_STRCT ,
ld_subrc  TYPE SYSUBRC ,
it_pnnnn_tab  TYPE STANDARD TABLE OF PRELP_TAB,"TABLES PARAM
wa_pnnnn_tab  LIKE LINE OF it_pnnnn_tab ,
it_temporary_values  TYPE STANDARD TABLE OF PINIT,"TABLES PARAM
wa_temporary_values  LIKE LINE OF it_temporary_values .

DATA(ld_endda) = 'Check type of data required'.
DATA(ld_module) = 'Check type of data required'.
DATA(ld_module_spec) = 'Check type of data required'.
DATA(ld_molga) = 'Check type of data required'.
DATA(ld_begda) = 'Check type of data required'.
DATA(ld_tclas) = 'Check type of data required'.
DATA(ld_pernr) = 'Check type of data required'.
DATA(ld_infty) = 'Check type of data required'.
DATA(ld_lgart) = 'Check type of data required'.
DATA(ld_lgart_tab) = 'Check type of data required'.
DATA(ld_valuation_input) = 'Check type of data required'.
DATA(ld_values_tab) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pnnnn_tab to it_pnnnn_tab.

"populate fields of struture and append to itab
append wa_temporary_values to it_temporary_values. . CALL FUNCTION 'HR_INDVAL_CALL_MODULE' EXPORTING * module = ld_module * module_spec = ld_module_spec * molga = ld_molga begda = ld_begda * tclas = ld_tclas pernr = ld_pernr infty = ld_infty lgart = ld_lgart * lgart_tab = ld_lgart_tab valuation_input = ld_valuation_input * values_tab = ld_values_tab IMPORTING valuation_output = ld_valuation_output subrc = ld_subrc * TABLES * pnnnn_tab = it_pnnnn_tab * temporary_values = it_temporary_values CHANGING endda = ld_endda . " HR_INDVAL_CALL_MODULE
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_endda  TYPE ENDDA ,
ld_valuation_output  TYPE PADIV_VALUATION_STRCT ,
ld_module  TYPE PADIV_MODULE ,
it_pnnnn_tab  TYPE STANDARD TABLE OF PRELP_TAB ,
wa_pnnnn_tab  LIKE LINE OF it_pnnnn_tab,
ld_subrc  TYPE SYSUBRC ,
ld_module_spec  TYPE PADIV_MODULE_SPEC ,
it_temporary_values  TYPE STANDARD TABLE OF PINIT ,
wa_temporary_values  LIKE LINE OF it_temporary_values,
ld_molga  TYPE MOLGA ,
ld_begda  TYPE BEGDA ,
ld_tclas  TYPE TCLAS ,
ld_pernr  TYPE PERNR_D ,
ld_infty  TYPE INFTY ,
ld_lgart  TYPE LGART ,
ld_lgart_tab  TYPE PADIV_LGART_TAB ,
ld_valuation_input  TYPE PADIV_VALUATION_STRCT ,
ld_values_tab  TYPE PADIV_VALUES_TAB .

ld_endda = 'Check type of data required'.
ld_module = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pnnnn_tab to it_pnnnn_tab.
ld_module_spec = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_temporary_values to it_temporary_values.
ld_molga = 'Check type of data required'.
ld_begda = 'Check type of data required'.
ld_tclas = 'Check type of data required'.
ld_pernr = 'Check type of data required'.
ld_infty = 'Check type of data required'.
ld_lgart = 'Check type of data required'.
ld_lgart_tab = 'Check type of data required'.
ld_valuation_input = 'Check type of data required'.
ld_values_tab = '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_INDVAL_CALL_MODULE or its description.