SAP Function Modules

HR_BE_DMFA_CHECK_CONS_ANSWER SAP Function module - List of Worker Record Accepted







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

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


Pattern for FM HR_BE_DMFA_CHECK_CONS_ANSWER - HR BE DMFA CHECK CONS ANSWER





CALL FUNCTION 'HR_BE_DMFA_CHECK_CONS_ANSWER' "List of Worker Record Accepted
  EXPORTING
    im_tsobj =                  " rptstype-tsobj  HR Temse Object
*   im_temse =                  " cl_hr99s00_temse
*   im_date =                   " d
*   im_pb2amgr =                " hrb2a_s_v_pb2amgr  HR-B2A: globale ObjektID
*   im_appl =                   " t5f99f0-appl  Subapplication
  IMPORTING
    ex_status_decl =            " c             Status of reported declaration
    ex_returncode =             " sy-subrc      Return Value, Return Value After ABAP Statements
* CHANGING
*   ch_tab_error =              " p99sf_tab_error
    .  "  HR_BE_DMFA_CHECK_CONS_ANSWER

ABAP code example for Function Module HR_BE_DMFA_CHECK_CONS_ANSWER





The ABAP code below is a full code listing to execute function module HR_BE_DMFA_CHECK_CONS_ANSWER 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_ex_status_decl  TYPE C ,
ld_ex_returncode  TYPE SY-SUBRC .

DATA(ld_ch_tab_error) = 'Check type of data required'.

DATA(ld_im_tsobj) = some text here
DATA(ld_im_temse) = 'Check type of data required'.
DATA(ld_im_date) = 'Check type of data required'.
DATA(ld_im_pb2amgr) = 'Check type of data required'.

SELECT single APPL
FROM T5F99F0
INTO @DATA(ld_im_appl).
. CALL FUNCTION 'HR_BE_DMFA_CHECK_CONS_ANSWER' EXPORTING im_tsobj = ld_im_tsobj * im_temse = ld_im_temse * im_date = ld_im_date * im_pb2amgr = ld_im_pb2amgr * im_appl = ld_im_appl IMPORTING ex_status_decl = ld_ex_status_decl ex_returncode = ld_ex_returncode * CHANGING * ch_tab_error = ld_ch_tab_error . " HR_BE_DMFA_CHECK_CONS_ANSWER
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_ch_tab_error  TYPE P99SF_TAB_ERROR ,
ld_ex_status_decl  TYPE C ,
ld_im_tsobj  TYPE RPTSTYPE-TSOBJ ,
ld_ex_returncode  TYPE SY-SUBRC ,
ld_im_temse  TYPE CL_HR99S00_TEMSE ,
ld_im_date  TYPE D ,
ld_im_pb2amgr  TYPE HRB2A_S_V_PB2AMGR ,
ld_im_appl  TYPE T5F99F0-APPL .

ld_ch_tab_error = 'Check type of data required'.

ld_im_tsobj = some text here
ld_im_temse = 'Check type of data required'.
ld_im_date = 'Check type of data required'.
ld_im_pb2amgr = 'Check type of data required'.

SELECT single APPL
FROM T5F99F0
INTO ld_im_appl.

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