SAP Function Modules

HR_CL_DAQ_PROCESS_AFP SAP Function module - Obtains values from DAQ fields







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

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


Pattern for FM HR_CL_DAQ_PROCESS_AFP - HR CL DAQ PROCESS AFP





CALL FUNCTION 'HR_CL_DAQ_PROCESS_AFP' "Obtains values from DAQ fields
  EXPORTING
    im_daq =                    " p99sd_codaq   Control parameters
    im_tab_pay =                " table         Payroll result table
    im_tab_time =               " table         Payroll result time
*   im_tab_prelp =              " p99sg_tab_prelp  Infotype table
*   im_tab_user =               " table         User defined additional table
    im_form =                   " cl_hr99s00_daq  Data acquistion for forms
*   im_wafor =                  " p99sd_wafor   Process only selected sections
*   im_tab_fodat =              " p99sd_tab_fodat  Table with already computed fields of form
  IMPORTING
    ex_tab_value =              " p99sd_tab_value
    ex_returncode =             " sy-subrc      Return value, return value after ABAP statements
* CHANGING
*   ch_tab_error =              " p99sf_tab_error
*   ch_misc =                   " any
    .  "  HR_CL_DAQ_PROCESS_AFP

ABAP code example for Function Module HR_CL_DAQ_PROCESS_AFP





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

DATA(ld_ch_tab_error) = 'Check type of data required'.
DATA(ld_ch_misc) = 'Check type of data required'.
DATA(ld_im_daq) = 'Check type of data required'.
DATA(ld_im_tab_pay) = 'Check type of data required'.
DATA(ld_im_tab_time) = 'Check type of data required'.
DATA(ld_im_tab_prelp) = 'Check type of data required'.
DATA(ld_im_tab_user) = 'Check type of data required'.
DATA(ld_im_form) = 'Check type of data required'.
DATA(ld_im_wafor) = 'Check type of data required'.
DATA(ld_im_tab_fodat) = 'Check type of data required'. . CALL FUNCTION 'HR_CL_DAQ_PROCESS_AFP' EXPORTING im_daq = ld_im_daq im_tab_pay = ld_im_tab_pay im_tab_time = ld_im_tab_time * im_tab_prelp = ld_im_tab_prelp * im_tab_user = ld_im_tab_user im_form = ld_im_form * im_wafor = ld_im_wafor * im_tab_fodat = ld_im_tab_fodat IMPORTING ex_tab_value = ld_ex_tab_value ex_returncode = ld_ex_returncode * CHANGING * ch_tab_error = ld_ch_tab_error * ch_misc = ld_ch_misc . " HR_CL_DAQ_PROCESS_AFP
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_tab_value  TYPE P99SD_TAB_VALUE ,
ld_im_daq  TYPE P99SD_CODAQ ,
ld_ch_misc  TYPE ANY ,
ld_ex_returncode  TYPE SY-SUBRC ,
ld_im_tab_pay  TYPE TABLE ,
ld_im_tab_time  TYPE TABLE ,
ld_im_tab_prelp  TYPE P99SG_TAB_PRELP ,
ld_im_tab_user  TYPE TABLE ,
ld_im_form  TYPE CL_HR99S00_DAQ ,
ld_im_wafor  TYPE P99SD_WAFOR ,
ld_im_tab_fodat  TYPE P99SD_TAB_FODAT .

ld_ch_tab_error = 'Check type of data required'.
ld_im_daq = 'Check type of data required'.
ld_ch_misc = 'Check type of data required'.
ld_im_tab_pay = 'Check type of data required'.
ld_im_tab_time = 'Check type of data required'.
ld_im_tab_prelp = 'Check type of data required'.
ld_im_tab_user = 'Check type of data required'.
ld_im_form = 'Check type of data required'.
ld_im_wafor = 'Check type of data required'.
ld_im_tab_fodat = '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_CL_DAQ_PROCESS_AFP or its description.