SAP Function Modules

WFA_EMP_DATA_GET SAP Function module - Retreive WFM Employee Specific Data







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

Associated Function Group: WFA_EMPLOYEE_INTERFACE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM WFA_EMP_DATA_GET - WFA EMP DATA GET





CALL FUNCTION 'WFA_EMP_DATA_GET' "Retreive WFM Employee Specific Data
  EXPORTING
    iv_emp_bpid =               " bu_partner    Business Partner Number
    iv_org_objid =              " hrobjid       Object ID
    iv_effective_week =         " wfa_date      Date
*   iv_temporary =              " wfa_boolean   Boolean ( True = 'X', False = ' ')
  IMPORTING
    es_emp_namea =              " wfas_bupa_getdtl  CRM BUPA details
    es_emp_attributes =         " wfas_emp_int_attributes  Employee Interface: Attributes
    es_emp_global_attributes =   " wfas_emp_int_global_attributes  Employee Interface: Global Attributes
    et_emp_workarea =           " wfat_emp_int_empwa  Employee Interface: Employee Work Area Assignments
    et_emp_rotations =          " wfat_emp_int_rotations  Employee Interface: Rotations
    et_emp_setshifts =          " wfat_emp_int_setshift  Employee Interface: Fix/Set Shifts
    et_emp_availability =       " wfat_emp_int_avail  Employee Interface: Availabilities
    et_emp_preferences =        " wfat_emp_int_pref  Employee Interface: Preferences
    et_emp_workrules =          " wfat_emp_int_workrules  Employee Interface: Work Rules
    es_contract_rules =         " wfas_emp_int_contract_rules  Employee Interface: Contract Rules
    et_emp_timeoffrequests =    " wfat_emp_int_timeoff  Employee Interface: Timeoff Requests
    et_return =                 " bapiret2_t    Return Parameter
    et_adtel =                  " bapiadtel_t   Table Type for BAPIADTEL
    et_adfax =                  " bapiadfax_t   Table Type for BAPIADFAX
    et_tax =                    " bus_tax_t     Table Category for BUS_TAX
    et_pager =                  " wfat_bapiadpag  pager table
    et_wr_rotations =           " wfat_wr_rotation  Work rule Rotation
    .  "  WFA_EMP_DATA_GET

ABAP code example for Function Module WFA_EMP_DATA_GET





The ABAP code below is a full code listing to execute function module WFA_EMP_DATA_GET 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_es_emp_namea  TYPE WFAS_BUPA_GETDTL ,
ld_es_emp_attributes  TYPE WFAS_EMP_INT_ATTRIBUTES ,
ld_es_emp_global_attributes  TYPE WFAS_EMP_INT_GLOBAL_ATTRIBUTES ,
ld_et_emp_workarea  TYPE WFAT_EMP_INT_EMPWA ,
ld_et_emp_rotations  TYPE WFAT_EMP_INT_ROTATIONS ,
ld_et_emp_setshifts  TYPE WFAT_EMP_INT_SETSHIFT ,
ld_et_emp_availability  TYPE WFAT_EMP_INT_AVAIL ,
ld_et_emp_preferences  TYPE WFAT_EMP_INT_PREF ,
ld_et_emp_workrules  TYPE WFAT_EMP_INT_WORKRULES ,
ld_es_contract_rules  TYPE WFAS_EMP_INT_CONTRACT_RULES ,
ld_et_emp_timeoffrequests  TYPE WFAT_EMP_INT_TIMEOFF ,
ld_et_return  TYPE BAPIRET2_T ,
ld_et_adtel  TYPE BAPIADTEL_T ,
ld_et_adfax  TYPE BAPIADFAX_T ,
ld_et_tax  TYPE BUS_TAX_T ,
ld_et_pager  TYPE WFAT_BAPIADPAG ,
ld_et_wr_rotations  TYPE WFAT_WR_ROTATION .

DATA(ld_iv_emp_bpid) = 'Check type of data required'.
DATA(ld_iv_org_objid) = 'Check type of data required'.
DATA(ld_iv_effective_week) = 'Check type of data required'.
DATA(ld_iv_temporary) = 'Check type of data required'. . CALL FUNCTION 'WFA_EMP_DATA_GET' EXPORTING iv_emp_bpid = ld_iv_emp_bpid iv_org_objid = ld_iv_org_objid iv_effective_week = ld_iv_effective_week * iv_temporary = ld_iv_temporary IMPORTING es_emp_namea = ld_es_emp_namea es_emp_attributes = ld_es_emp_attributes es_emp_global_attributes = ld_es_emp_global_attributes et_emp_workarea = ld_et_emp_workarea et_emp_rotations = ld_et_emp_rotations et_emp_setshifts = ld_et_emp_setshifts et_emp_availability = ld_et_emp_availability et_emp_preferences = ld_et_emp_preferences et_emp_workrules = ld_et_emp_workrules es_contract_rules = ld_es_contract_rules et_emp_timeoffrequests = ld_et_emp_timeoffrequests et_return = ld_et_return et_adtel = ld_et_adtel et_adfax = ld_et_adfax et_tax = ld_et_tax et_pager = ld_et_pager et_wr_rotations = ld_et_wr_rotations . " WFA_EMP_DATA_GET
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_es_emp_namea  TYPE WFAS_BUPA_GETDTL ,
ld_iv_emp_bpid  TYPE BU_PARTNER ,
ld_es_emp_attributes  TYPE WFAS_EMP_INT_ATTRIBUTES ,
ld_iv_org_objid  TYPE HROBJID ,
ld_es_emp_global_attributes  TYPE WFAS_EMP_INT_GLOBAL_ATTRIBUTES ,
ld_iv_effective_week  TYPE WFA_DATE ,
ld_et_emp_workarea  TYPE WFAT_EMP_INT_EMPWA ,
ld_iv_temporary  TYPE WFA_BOOLEAN ,
ld_et_emp_rotations  TYPE WFAT_EMP_INT_ROTATIONS ,
ld_et_emp_setshifts  TYPE WFAT_EMP_INT_SETSHIFT ,
ld_et_emp_availability  TYPE WFAT_EMP_INT_AVAIL ,
ld_et_emp_preferences  TYPE WFAT_EMP_INT_PREF ,
ld_et_emp_workrules  TYPE WFAT_EMP_INT_WORKRULES ,
ld_es_contract_rules  TYPE WFAS_EMP_INT_CONTRACT_RULES ,
ld_et_emp_timeoffrequests  TYPE WFAT_EMP_INT_TIMEOFF ,
ld_et_return  TYPE BAPIRET2_T ,
ld_et_adtel  TYPE BAPIADTEL_T ,
ld_et_adfax  TYPE BAPIADFAX_T ,
ld_et_tax  TYPE BUS_TAX_T ,
ld_et_pager  TYPE WFAT_BAPIADPAG ,
ld_et_wr_rotations  TYPE WFAT_WR_ROTATION .

ld_iv_emp_bpid = 'Check type of data required'.
ld_iv_org_objid = 'Check type of data required'.
ld_iv_effective_week = 'Check type of data required'.
ld_iv_temporary = 'Check type of data required'.

SAP Documentation for FM WFA_EMP_DATA_GET


You can use this RFC to retrieve WFM specific attributes for employees. The interface can retrieve: ...See here for full SAP fm documentation

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