Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert
0 Kudos
Description : Clock in/ out correction service under employee self service has a facility to use the workflow but there is no workflow available that can be readily used. SAP advises to copy the standard leave workflow (WS12300111) and use the same. There is an approval program available (Transaction PTCOR -> Approve Document) for administrator. Using the same program we will be creating an approval workflow.

You follow below simple steps to create similar functionality in the S4 HANA 2.0 system in case you are using positive time management or you have a need to correct clock in and out times post entry.

  1. Create  a custom transaction calling report program RPTCORAPP and selection screen 1000.(ZPT_APPROVE)

  2. Create another custom transaction(Z_APPROVE_CLINOUT) with following code.


  4. Using transaction sw01 create an object.  call the above transaction in the object created in step.

  5. Create a custom task with the above object and method (STEP 3) (There will be no parameter passed between the task container and the workflow as we are calling a transaction only)

  6. Create Copy of WS12300111 using transaction SWDD.

  7. Delete the step Process Request by Employee (TS12300116) from copied workflow.

  8. In the copied workflow in the Approval process instead of standard approval task use the custom task created in step 4.

  9. Activate the customized workflow which will generate a new ID starting WSXXXXXXXX.

  10. Under spro config please follow the link Personnel Management -> Employee Self-Services-> Service Specific Settings-> working time ->Clock in\out Corrections-> Processing Processes -> Define Processing Processes

Under workflow template select the checkbox Use SAP Business Workflow.

Provide the number of Custom Workflow activated in Step 9 in the following fields.

WF ID New Clock-In/Out Entries
WF ID for Deletion of Entries
WF ID: Changed Clock-In/Out Entries

Complete all the configuration that is provided in SPRO under clock in clock out correction.

Once you are done with this process then on entering the clock in/ out time the workflow will be received by the next agent defined in the rule / expression that is used in workflow.

The output will work according to the report (RPTCORAPP) if in case there is any need to make change then a copy of the classes can be created that are used in the approval report and customization can be achieved.

SAP in fiori provides a my time event service. (https://help.sap.com/fiori_bs2013/helpdata/en/19/e4f554b9b1b56ce10000000a44176d/frameset.htm)

This blog doesn't intend to provide any enhancement on the my time event service so be wise before adopting.