WFA_EMPLOYEE_SAVE_DB 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_EMPLOYEE_SAVE_DB into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WFA_EMPLOYEE_SAVE
Released Date:
Not Released
Processing type: Start update immediately (start immed)
CALL FUNCTION 'WFA_EMPLOYEE_SAVE_DB' "Save employee data on data base
EXPORTING
is_employee_data = " wfa_ts_employee_save WFM Employee save structure
* it_obj_occurrences = " wfa_tst_object_occurrences Sorted table for object occurrences
* iv_call_in_upd_task = ABAP_TRUE " wfa_boolean Boolean ( True = 'X', False = ' ')
EXCEPTIONS
ERROR_FOUND = 1 " Error found during save
. " WFA_EMPLOYEE_SAVE_DB
The ABAP code below is a full code listing to execute function module WFA_EMPLOYEE_SAVE_DB 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_is_employee_data) = 'Check type of data required'.
DATA(ld_it_obj_occurrences) = 'Check type of data required'.
DATA(ld_iv_call_in_upd_task) = 'Check type of data required'. . CALL FUNCTION 'WFA_EMPLOYEE_SAVE_DB' EXPORTING is_employee_data = ld_is_employee_data * it_obj_occurrences = ld_it_obj_occurrences * iv_call_in_upd_task = ld_iv_call_in_upd_task EXCEPTIONS ERROR_FOUND = 1 . " WFA_EMPLOYEE_SAVE_DB
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
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_is_employee_data | TYPE WFA_TS_EMPLOYEE_SAVE , |
| ld_it_obj_occurrences | TYPE WFA_TST_OBJECT_OCCURRENCES , |
| ld_iv_call_in_upd_task | TYPE WFA_BOOLEAN . |
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_EMPLOYEE_SAVE_DB or its description.
WFA_EMPLOYEE_SAVE_DB - Save employee data on data base WFA_EMPLOYEE_QUALIFICATION_GET - Retreive employee Qualifications WFA_EMPINT_SR_MODIFY_TEMP - Saves schedule rules WFA_EMPINT_SR_MODIFY_PERM - Saves schedule rules WFA_DSV_EXT - Used for DSV report WFA_DRIVER_STATS_GETTEST - TEST_DRIVER_STATS_GET