SAP Function Modules

HR_FR_N4DS_BUILD_STMOD_SENTX SAP Function module







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

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


Pattern for FM HR_FR_N4DS_BUILD_STMOD_SENTX - HR FR N4DS BUILD STMOD SENTX





CALL FUNCTION 'HR_FR_N4DS_BUILD_STMOD_SENTX' "
  EXPORTING
    iv_service =                " pfrds_emet-emsrv
    iv_test =                   " pfrds_emet-emenv
    iv_abkrs =                  " t549a-abkrs
    iv_decl_nature =            " pfrds_decl-denat
    iv_percod =                 " pfrds_decl-deper
    iv_fraction =               " rpldadf0-fraction
    iv_frac_tot =               " rpldadf0-frac_tot
    iv_decl_type =              " pfrds_decl-detyp
*   iv_perbeg =                 " rpldadf0-perbeg
*   iv_perend =                 " rpldadf0-perend
    iv_sbegda =                 " sy-datum
    iv_sendda =                 " sy-datum
*   iv_b2atext =                " pc_b2a_vartx
*   iv_tmtst =                  " rpl4dsf0-tmtst
*   iv_siren =                  " p06_siren
*   iv_numic =                  " p06_numic
  IMPORTING
    ev_stmod =                  " char25
    ev_sentx =                  " pc_b2a_sentx
    ev_vartx =                  " pc_b2a_vartx
    .  "  HR_FR_N4DS_BUILD_STMOD_SENTX

ABAP code example for Function Module HR_FR_N4DS_BUILD_STMOD_SENTX





The ABAP code below is a full code listing to execute function module HR_FR_N4DS_BUILD_STMOD_SENTX 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_ev_stmod  TYPE CHAR25 ,
ld_ev_sentx  TYPE PC_B2A_SENTX ,
ld_ev_vartx  TYPE PC_B2A_VARTX .


DATA(ld_iv_service) = some text here

DATA(ld_iv_test) = some text here

SELECT single ABKRS
FROM T549A
INTO @DATA(ld_iv_abkrs).


DATA(ld_iv_decl_nature) = some text here

DATA(ld_iv_percod) = some text here

DATA(ld_iv_fraction) = Check type of data required

DATA(ld_iv_frac_tot) = Check type of data required

DATA(ld_iv_decl_type) = some text here

DATA(ld_iv_perbeg) = some text here

DATA(ld_iv_perend) = some text here
DATA(ld_iv_sbegda) = '20210129'.
DATA(ld_iv_sendda) = '20210129'.
DATA(ld_iv_b2atext) = '20210129'.

DATA(ld_iv_tmtst) = some text here
DATA(ld_iv_siren) = '20210129'.
DATA(ld_iv_numic) = '20210129'. . CALL FUNCTION 'HR_FR_N4DS_BUILD_STMOD_SENTX' EXPORTING iv_service = ld_iv_service iv_test = ld_iv_test iv_abkrs = ld_iv_abkrs iv_decl_nature = ld_iv_decl_nature iv_percod = ld_iv_percod iv_fraction = ld_iv_fraction iv_frac_tot = ld_iv_frac_tot iv_decl_type = ld_iv_decl_type * iv_perbeg = ld_iv_perbeg * iv_perend = ld_iv_perend iv_sbegda = ld_iv_sbegda iv_sendda = ld_iv_sendda * iv_b2atext = ld_iv_b2atext * iv_tmtst = ld_iv_tmtst * iv_siren = ld_iv_siren * iv_numic = ld_iv_numic IMPORTING ev_stmod = ld_ev_stmod ev_sentx = ld_ev_sentx ev_vartx = ld_ev_vartx . " HR_FR_N4DS_BUILD_STMOD_SENTX
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_ev_stmod  TYPE CHAR25 ,
ld_iv_service  TYPE PFRDS_EMET-EMSRV ,
ld_ev_sentx  TYPE PC_B2A_SENTX ,
ld_iv_test  TYPE PFRDS_EMET-EMENV ,
ld_ev_vartx  TYPE PC_B2A_VARTX ,
ld_iv_abkrs  TYPE T549A-ABKRS ,
ld_iv_decl_nature  TYPE PFRDS_DECL-DENAT ,
ld_iv_percod  TYPE PFRDS_DECL-DEPER ,
ld_iv_fraction  TYPE RPLDADF0-FRACTION ,
ld_iv_frac_tot  TYPE RPLDADF0-FRAC_TOT ,
ld_iv_decl_type  TYPE PFRDS_DECL-DETYP ,
ld_iv_perbeg  TYPE RPLDADF0-PERBEG ,
ld_iv_perend  TYPE RPLDADF0-PEREND ,
ld_iv_sbegda  TYPE SY-DATUM ,
ld_iv_sendda  TYPE SY-DATUM ,
ld_iv_b2atext  TYPE PC_B2A_VARTX ,
ld_iv_tmtst  TYPE RPL4DSF0-TMTST ,
ld_iv_siren  TYPE P06_SIREN ,
ld_iv_numic  TYPE P06_NUMIC .


ld_iv_service = some text here

ld_iv_test = some text here

SELECT single ABKRS
FROM T549A
INTO ld_iv_abkrs.


ld_iv_decl_nature = some text here

ld_iv_percod = some text here

ld_iv_fraction = Check type of data required

ld_iv_frac_tot = Check type of data required

ld_iv_decl_type = some text here

ld_iv_perbeg = some text here

ld_iv_perend = some text here
ld_iv_sbegda = '20210129'.
ld_iv_sendda = '20210129'.
ld_iv_b2atext = '20210129'.

ld_iv_tmtst = some text here
ld_iv_siren = '20210129'.
ld_iv_numic = '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_FR_N4DS_BUILD_STMOD_SENTX or its description.