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
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
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).
| 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 . |
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 . |
You can use this RFC to retrieve WFM specific attributes for employees.
The interface can retrieve:
...See here for full SAP fm documentation
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.
WFA_EMP_DATA_GET - Retreive WFM Employee Specific Data WFA_EMP_AVAIL_HOURS_GET - Estimated Payroll Calculation for an emp for a week WFA_EMPTIME_MAP - Employee Time Transactional Data Mapping WFA_EMPTIME_INIT - Emplyee Time Transactional Data Initial Upload WFA_EMPTIME_BWQ - BW Updating BW Queue WFA_EMPLOYEE_SAVE_DB - Save employee data on data base