Ansicht
Dokumentation

WFMTM_SCHEDRULE_UPDATE_EE - Employee Updates Schedule Rule, Avail

WFMTM_SCHEDRULE_UPDATE_EE - Employee Updates Schedule Rule, Avail

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function is used for employee to change his/her own schedule rule and save into temporary tables. The change request in temporary table will be either moved into schedule rule tables or be deleted depending on manager's review status. Status 02 stands for approval and 03 stands for rejection.

The execution of this function will raise event MSWFD_TM.SCHEDRULECHANGED, which will trigger workflow to start, if you have created workflow listening to this event. Business partner name, ID, organization name, ID and date will be passed to this event as parameters.

To utilize email function to notify manager or employee, you can use the SAP Business Workplace Inbox in workflow. If you want to use external email system, such as MS Outlook, the external email addresses of employee and manager will be passed to event and to export parameters as well. So you can either use the external email in workflow or in the UI application. Business partner's external email address is maintained using transaction BP. SAP user's external email address is maintained in user's profile.

This function can be called from any UI, e.g. WebDynpro, Java/JSP, SAPGUI, etc.

This function can work with WFMTM_TEMP_SCHEDRULE_GET, where you can get import parameters from.

Example

You can create an application using WebDynpro, which uses 2 RFCs in data model (WFMTM_TEMP_SCHEDRULE_GET and WFMTM_SCHEDRULE_UPDATE_EE). When employee launches the WebDynpro UI from ESS Poral, WFMTM_TEMP_SCHEDRULE_GET will be called to retrieve the individual schedule rule data. Then the employee can make some changes on his/her own schedule rule. When this employee tries to save the schedule rule changes, RFC WFMTM_SCHED_UPDATERULE_EE will be called and event MSWFD_TM.SCHEDRULECHANGED will be raised.

If you've already created a workflow listening to this event, this workflow will be triggered to notify manager to review employee's schedule rule change.

Notes

Further information





Parameters

ES_EMPLOYEE
ET_BOSS
ET_RETURN
IS_APPLIED_TEMPLATES
IS_CONTR_RULES
IT_AVAIL
IT_PREF
IT_ROTATION
IT_SETSHIFT
IT_WORKRULES
IV_END_DATE
IV_ORG_OBJID
IV_PARTNER
IV_START_DATE
IV_TEMP_FLAG

Exceptions

Function Group

WFMTM_ESS

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2707 Date: 20240523 Time: 133331     sap01-206 ( 62 ms )