on 01-27-2017 9:34 AM
Hi
I have a requirement where I need to capture the value of fields when the status of Quote is set to Approved. but when the approver clicks on Approve(tick) button no backend logic in sdk is triggered. So where exactly we can put a logic when quote status is getting approved.
HI team,
Can we get the approvers name in sdk.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would say yes it is possible but not via direct BO persistence as "Approval" details are not directly stored at the ServiceRequest or its associations. Same has also been explained here: https://answers.sap.com/questions/260934/unable-to-fetch-approvers-from-approval-tab-in-ser.html
However, you can still use data source BTMAPPV01 to get the details within PDI. To do that:
1. Expose this data source as OData.
2. "Build OData Queries" to pull the data from the generated OData.
3. Create an external REST-based integration scenario for the OData Generated.
4. Finally call this OData in ABSL to get the required details.
Note: This solution is not recommended if you plan to do this Synchronously(using AfterModify or BeforeSave ) due to obvious performance reasons. Rather you should do this in the workflow Asynchronously as a background scheduled job.
Hi
But by the time you will reach in Event After Modify status of Quote automatically changes to NotStarted.
Thanks
Saruchi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case as Horst mentioned you should code in AfterModify.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst
Yes I checked Event After modify does not got triggered
. @Saurabh: I checked this event but the issue is that I have few custom field details which I need to populate as soon as user click on Approve. This validation on Save will not give me any write access. Also once quote is Approved and I open it till then no event is triggered but as soon as I edit it and event AfterModify gets triggered. but at that point of time Approval Status is changed to Not Started.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use event mentioned by Horst or additionally you can use "Action validation: Approve" as attached. This will trigger everytime when a quote is getting approved and you can control if it has to be approved or reject based on some validation but other fields will be in read only mode.
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Saruchi,
If the status is changed to "Approved" the AfterModify method of the Root node should be called.
Did you add this ABSL exit to your Extension BO?
Bye,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.