Hello SAP Sourcing experts,
For one of our clients, we are facing following issue (we are using SAP Sourcing 7):
We have created one Project Phase Definition in the following way:
- In Creation
- In Approval Subgroup
- Approved by Subgroup
- In Approval Level 2
- Approved
- Rejected
In case of no rejection is executed by any approver, the phase movement is the following one: In Creation -> In Approval Subgroup -> Approved by Subgroup -> In Approval Level 2 -> Approved
The phases with the workflow are:
- In Approval Subgroup --> Retrieve current approver from custom field ZAPPROVER1
- In Approval Level 2 --> Retrieve current approver from custom field ZAPPROVER2
Phase Approved by Subgroup is an intermediate phase used by the current approver to introduce a new approver which will be used for phase In Approval Level 2.
For this case, scripts and workflows have been reduced to the simplest ones.
Then, the steps to reproduce the issue are:
- Project owner creates a new Project. Fill all mandatory fields and change phase to In Creation.
- Project owner fill in custom field ZAPPROVER1 and sent this project to the approval flow (changing phase to In Approval Subgroup)
- Document is locked by the system due to it has been sent for approval.
- Current approver log in into the system and goes to his/her Current Approvals List. Open the project and approve it (filling in approval comments).
- Approval level is completed and screen comes back from the approval screen to the project which is still showing the message that it is locked by the system. It is because standard doesn't refresh the screen and document needs to be reloaded to shown current status.
- Then, due to current approver needs to fill in custom field ZAPPROVER2 and send this document for the second approval level, he/she reload document from Recent Items just right after he/she has approved it (i.e.: document has been reload right after he has approved first approval level and screen has come back from approval comments to project screen).
- Result: Document is still showing lock message and EDIT button is not displayed.
Checking Background Task List (Today's daemons) and NWA logs, there is not any error raised by custom code.
Indeed, depending on how fast current user tries to reload the document, in some of the cases following error is registered into the NWA log:
From our point of view we think that due to the performance of the system, it is not ready to do this action as quick as we are doing it.
Therefore:
- Could you please confirm us if there is a way to improve performance of the system?
- Could you please confirm us if maybe there is no way to improve it and indeed this behavior is raised due to standard code needs time to be executed (which means that project cannot be reload until unlocking of the document is executed)?
- Have you ever faced same problem in other developments?
Thanks in advance for the time and support.
Best regards,
Isaac