cancel
Showing results for 
Search instead for 
Did you mean: 

Terminating event for contract alert workflow

bhakti2
Active Participant
0 Kudos
139

hi

Contract Alert wf is trigered using bus2000113-GOING_TO_EXPIRE event

this workflow is different than the main approval workflow, it sends alerts to users UWL (WS10400022)

But there is no terminating event for this workflow so I need to put it

I need to use /SAPSRM/CL_WF_PDO_CTR-READY_FOR_WORKFLOW as terminating event

(bcoz this is the event that gets triggered in the system when user changes contract upon receiving the alert)

So I created a contrainer element of type abap class /SAPSRM/CL_WF_PDO_CTR and put parellel wait step for /SAPSRM/CL_WF_PDO_CTR-ready_for_workflow

But my question is , how do I instantiate this class /SAPSRM/CL_WF_PDO_CTR  in my workflow ? because unless I do that, it wont catch the event 

it gives runtime error of no valid object ID

If I observe in SWEL for the /SAPSRM/CL_WF_PDO_CTR-READY_FOR_WORKFLOW then object key is the GuID of the contract.

So im trying to use the GUID of BUS2000113 available in the workflow container to instantiate it but its not working

Need yr help – any suggestions ? there has to  be some way to use this event in the workflow……

thanks

bhakti

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Bhakti,

I am trying to understand why you have to terminate this workflow.

The purpose of this workflow is to generate a Alert and let the user process the Contract for Renewal.

It should end after creating the alert for the Purchaser.

Please let me know why you want to terminate the workflow.

Regards

bhakti2
Active Participant
0 Kudos

hi Sushil,

I need terminating event to remove the alert workitem created in the users UWL

WS10400022 and the dialog task TS10407926 stays in process.

thanks

bhakti