on 2022 Dec 04 6:02 PM
Experts,
Once PO approval has been completed via standard Flexible workflow WS00800238, I would like to call a method in a custom class which will push data from S4 HANA to Cloud(SCP).
1) I see that programming exit tab is missing in the standard task TS00800531 for Approval of Purchase Order. I see that there are outcomes for this approval activity step. But I am not able to add a custom activity step in these outcomes. I added a new custom activity step in Flexible workflow step. But this activity gets created as a standard alone block and never gets called. My requirement is to call the custom class and method immediately after PO workflow is done.
2) I enabled event trace to check what event is triggered when the PO approval workitem is completed. I see that no event is raised. So I am not able to call a standalone custom workflow by using this event as my triggering event. I was expecting event RELEASED of class CL_MM_PUR_WF_OBJECT_PO to trigger when I approved the PO. But that is not happening
3) I checked SCN to see if there is any BADI for flexible PO workflow where I can add my custom logic. But I see that there is BADI only to influence agent determination.
Once PO is approved, EKKO-PROCSTAT field will have value '05'. Whenever this value is set, I have to call my custom class and method. Can you please let me know how this can be achieved.
Thanks
Bharath
Request clarification before answering.
Hello Bharath,
You should try doing this in the post method of PO_CUST Badi. This gets called just before the status is updated to 05.
Regards,
Sheena
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.