Hello Friends,
I have requirement to save workflow log to a Z table. After lot of analysis we found a enhancement spot in the FM "SWW_WI_LOG_WRITE_SUCCESS" and wrote a logic here to update the Z table.
The entire logic and whole functionality is working fine even when workflow is triggered from ECC SAP inbox and also from NWBC - Portal.
But the problem I am facing is delay - the workflow status of the work item are 1 step behind in the ZTABLE compare to what is stored standard SAP log. If if process the work item to next step then the previous status gets updated.
In Std Work item ID : 2380284 - > Completed, But In Z table the same is 2380284 -> Ready
2380285 - > Completed, But In Z table the same is 2380285 - > Ready
The updates in Z tables are 1 step behind. Please let me know any suggestion to improve this. I have written commit work after the z table is modified.
Please help me.