cancel
Showing results for 
Search instead for 
Did you mean: 

workflow for VK11 tcode

Former Member
0 Kudos

Dear Experts,

I am putting a condition record entry in VK11 tcode. Then i press save button. I have turned on my event trace. I want to know which BO is getting triggered for that tcode so that i can develop a Workflow using that as stating event. But no entry comes in SWEL. In that case is it not possible to create any workflows(standard or custom) and trigger it when i press save. Also in swo1 i tried to find a BO for condition record. But there seems to be no standard BO.

Edited by: bharath padmanabhan on Jul 22, 2009 8:06 AM

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos

I think there is no standard BOR for your case but i suggest you to make use of the BAdi SD_COND_SAVE_A

1. Create a Customized workflow.

2. Trigger the workflow from this BAdi's Interface method by using standard SAP FM SAP_WAPI_START_WORKFLOW, by simply passing the workflow template number.

Former Member
0 Kudos

Dear Pavan,

Thanks a lot for your reply. In that BADI interface method i have included the SAP_WAPI_START_WORKFLOW fm. for that FM i have passed my workflow name' WS90000006' as input. In that workflow i just have a user decision step for which i have specified agent as wf_initiator. But when i activate that BADI and put an entry in VK11 and press save i am not getting any entry in SWI1. But as per the BADI it should trigger my workflow and a user decision step should have come to initiator inbox.? Is there something else that i have to do.

Edited by: bharath padmanabhan on Jul 22, 2009 8:53 AM

bpawanchand
Active Contributor
0 Kudos

Things to be Noted while triggering workflow from BADi

1. First make the Workflow termplate as General TAsk from PFTC Txn.

2. From the BAdi you are using the FM SAP_WAPI_START_WORKFLOW , in this FM you have a parmater DO_COMMIT pass Space to this parameter.

then try it will work.

Former Member
0 Kudos

Dear Pavan,

Thanks again for your useful reply. As u had said i went to PFTC and made it as general task. Also while calling the FM i passed DO_COMMIT as ' ' (space). But even now when i go to VK11, put an entry and press save button i am not getting an entry in swi1. As per my workflow design i have a simple user decision step where in case of approval or rejection i send a mail to initiator. that's it from workflow side. If all are working fine i should have got an entry in SWI1 tcode displaying Please approve user decision step. But that is not happening. Can you please tell me what i have missed out. Also in the workflow i have given no start events to trigger workflow. I think from BADI as we are calling the workflow using Fm there is no need for a separate start event. Am i right? or is it necessary to add any start event?

Edited by: bharath padmanabhan on Jul 22, 2009 9:25 AM

bpawanchand
Active Contributor
0 Kudos

So try to insert a break point in the method and try to create a dummy condition and check if the control stops at break point or not.

Answers (0)