cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in triggering the event based workflow.

Former Member
0 Kudos
364

Hi All,

I need to trigger the workflow on the processing of an customized output type. I have created the event creation program which is executed succesfully with genration of event id. I 've also mainatained the settings of event and workflow in SWE2 and the binding in workflow.

But, the issue is my workflow is not getting triggered. Please suggest.

Thanks,

Neha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Check the follwoing:

1.) In T-CODE SWE2 , what is the Check function module ? Whether any custom FM is used there ? If yes then check the conditions.

2.) In workflow Template the Event binding has been done correctly or not ?

3.) Try to debug the program where you have written logic to trigger workflow. If it is configured in output type the do system debugging and check the sy-subrc return.

4.) After the execution please check the RFC staus in Transaction SWU2.

5.) Please check and confirm whether other workflows get triggered succesfully or not ? If yes then check the configuration in Transaction SWU3.

Please reward if its useful.

Reagards,

Prakash

Former Member
0 Kudos

this is the message which I recieve on double click

TID 0A01C20B02F64F0AAE4C0D35 not found

the line item appears as

WF-BATCH SWE_EVENT_CREATE WORKFLOW_LOCA 09.01.2012 09:07:24 Transaction recorded 0A01C20B02F64F0AAE4C0D36 sandiego SAPMSSY1

thanks

nabheetscn
Active Contributor
0 Kudos

When you are raising the event are you passing the correct object id and along with object type..? Use SAP_WAPI_CREATE_EVENT ....

In Receiver you should see the workitem id as point by rick..

What is message on first screen you see...? No receiver entered or what?

Nabheet

Former Member
0 Kudos

I am using the F.M SWE_EVENT_CREATE

the object Id and type are correct.

I am getting the sales order no in the key in SWEL.

data in SWEl

Event instance ID 4929436

Object type ZCRDT_MEMO

Key 0060001005

Event ZCRDT_EVENT

User WF-BATCH

Main program SAPMSSY1

Date 09.01.2012

Time 06:52:12

UTC 20.120.109.065.213

Receiver type WS90100026

Receiver ID

Receiver FM SWE_EVENT_CREATE

Receiver type FM

Check function

Status Receiver started correctly

RFC status

Thanks

nabheetscn
Active Contributor
0 Kudos

Please check in SWETYPV make sure have maintained receiver function module as SWW_WI_CREATE_VIA_EVENT_IBF plus RFC destination should also come in reciver section

Is the RFC destination defined in SWU3? Means workflow configuration has been doen completely

Nabheet

Edited by: nabheetmadan09 on Jan 9, 2012 3:11 PM

Former Member
0 Kudos

Thanks to all for the help and the responses.

I was using the different F.M in SWE2. It is working fine now.

Thanks and Regards,

Neha Jindal

former_member185167
Active Contributor
0 Kudos

Hello,

You should use SAP_WAPI_CREATE_EVENT, not SWE_EVENT_CREATE. Always use SAP_WAPI* when you can.

Your SWEL output is very different to mine. Which version are you on?

What did you have instead of SWW_WI_CREATE_VIA_EVENT_IBF ?

I'm glad it got resolved.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi,

Thank you for the help and response.

Our is SAP 4.6C version. the F.M which I used is SWW_WI_CREATE_VIA_EVENT.

Regards,

Neha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Regards.

Former Member
0 Kudos

Hi Vikram,

We have already configured the output type in NACE and event ID is also created via program. I've done the linkage in SWE2 but still workflow is not triggered.

Thanks,

Neha

nabheetscn
Active Contributor
0 Kudos

What do you see in SWEL?

Nabheet

Former Member
0 Kudos

Hello,

You are triggering your event if you are having your customize output type? Check in SWEL. Did any event get raised?

Regards.

Former Member
0 Kudos

Its is successful and the workflow is shown as triggered in SWEL.

The explicit execution of workflow is also correct. but there is no output with event.

Edited by: neha jindal on Jan 6, 2012 12:43 PM

Former Member
0 Kudos

Hello.

But there is no output with event ? What does it mean. Please clarify?

Regards.

Former Member
0 Kudos

Hi,

When I try to create the credit memo , the output type is triggered successfully with the creation of event as well. The data in SWEL seems to be ok. But there is output for the workflow( the workflow is not triggered). but, If I check the workflow by executing it explicitly it is working fine. So I am not able to identify the problem

Thanks

nabheetscn
Active Contributor
0 Kudos

In SWEL if you see receiver started correctly along with your workflow id then check in workflo log in SWIa what is happening.

Nabhete

Former Member
0 Kudos

Hello,

I Hope you define the workflow at header level as general?

Regards.

Former Member
0 Kudos

There is no work item in SWIA

Former Member
0 Kudos

Hello,

Is there any dump created in ST22?

Regards

Former Member
0 Kudos

I've done the workflow setting as general task in agent assignment attribute. Also, there is no dump in ST22

nabheetscn
Active Contributor
0 Kudos

What do you see in event trace ..?

Nabheet

former_member185167
Active Contributor
0 Kudos

Hello,

You do not have to set the workflow to General Task if it is being started by an event.

"Its is successful and the workflow is shown as triggered in SWEL."

So the workflow is started.

"There is no work item in SWIA"

I would check again. Double-click on the entry in SWEL and it will tell you the workitem id.

Fill that in to SWI1 (or SWIA). The workflow log will tell you what happened and why you're

not getting "output".

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hello,

I get the event trace Id in SWEL, From where can I check the work item id..

thanks,

former_member185167
Active Contributor
0 Kudos

Hello,

As I said: double-click on the entry in SWEL.

You should see something like:

Object Type WORKITEM

Object Key 000011534

000011534 is the workitem id. You can fill that in to tx SWI1.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

There is no work item in SWI1 or SWIA with this ID in SWEL

Former Member
0 Kudos

Please suggest , if there are any other parameters which i can check.

nabheetscn
Active Contributor
0 Kudos

There in SWEL you will see work item id next to object key..Use that id in swia

Nabheet