cancel
Showing results for 
Search instead for 
Did you mean: 

Custom functionality in Flexible PO workflow

bharath_padmanabhan
Participant

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

Accepted Solutions (0)

Answers (0)