SAP Function Modules

HR_SEN_PSF_EXIT_MILSERV_TITCPS SAP Function module







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

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


Pattern for FM HR_SEN_PSF_EXIT_MILSERV_TITCPS - HR SEN PSF EXIT MILSERV TITCPS





CALL FUNCTION 'HR_SEN_PSF_EXIT_MILSERV_TITCPS' "
  EXPORTING
    id_pernr =                  " prelp-pernr
*   id_seldate = SY-DATUM       " d
*   id_begda = '18000101'       " begda
*   id_endda = '99991231'       " endda
*   id_sel_value = SPACE        " psen_selvl
*   is_t525u =                  " t525u
*   id_autho = 'X'              " xfeld
  IMPORTING
    et_period_weight =          " hrsen00_weight_period
    et_date_duration =          " hrsen00_peak_dec
  EXCEPTIONS
    E_MISSING_AUTHORIZATION = 1  "
    E_CALCULATION_RULE = 2      "
    E_OTHERS = 3                "
    .  "  HR_SEN_PSF_EXIT_MILSERV_TITCPS

ABAP code example for Function Module HR_SEN_PSF_EXIT_MILSERV_TITCPS





The ABAP code below is a full code listing to execute function module HR_SEN_PSF_EXIT_MILSERV_TITCPS 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_et_period_weight  TYPE HRSEN00_WEIGHT_PERIOD ,
ld_et_date_duration  TYPE HRSEN00_PEAK_DEC .


DATA(ld_id_pernr) = Check type of data required
DATA(ld_id_seldate) = 'Check type of data required'.
DATA(ld_id_begda) = 'Check type of data required'.
DATA(ld_id_endda) = 'Check type of data required'.
DATA(ld_id_sel_value) = 'Check type of data required'.
DATA(ld_is_t525u) = 'Check type of data required'.
DATA(ld_id_autho) = 'Check type of data required'. . CALL FUNCTION 'HR_SEN_PSF_EXIT_MILSERV_TITCPS' EXPORTING id_pernr = ld_id_pernr * id_seldate = ld_id_seldate * id_begda = ld_id_begda * id_endda = ld_id_endda * id_sel_value = ld_id_sel_value * is_t525u = ld_is_t525u * id_autho = ld_id_autho IMPORTING et_period_weight = ld_et_period_weight et_date_duration = ld_et_date_duration EXCEPTIONS E_MISSING_AUTHORIZATION = 1 E_CALCULATION_RULE = 2 E_OTHERS = 3 . " HR_SEN_PSF_EXIT_MILSERV_TITCPS
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_et_period_weight  TYPE HRSEN00_WEIGHT_PERIOD ,
ld_id_pernr  TYPE PRELP-PERNR ,
ld_et_date_duration  TYPE HRSEN00_PEAK_DEC ,
ld_id_seldate  TYPE D ,
ld_id_begda  TYPE BEGDA ,
ld_id_endda  TYPE ENDDA ,
ld_id_sel_value  TYPE PSEN_SELVL ,
ld_is_t525u  TYPE T525U ,
ld_id_autho  TYPE XFELD .


ld_id_pernr = Check type of data required
ld_id_seldate = 'Check type of data required'.
ld_id_begda = 'Check type of data required'.
ld_id_endda = 'Check type of data required'.
ld_id_sel_value = 'Check type of data required'.
ld_is_t525u = 'Check type of data required'.
ld_id_autho = '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_SEN_PSF_EXIT_MILSERV_TITCPS or its description.