cancel
Showing results for 
Search instead for 
Did you mean: 

Event to workflow binding

Former Member
0 Kudos

Hi Experts,

I have a doubt.

I want my workflow to be triggered when an Idoc comes in forom an external system. i am using an event for it, Idocmatmas - INPUTFINISHED. My doubt is how do i pass the idoc number and material number from the event to the workflow? I know it is done during binding, but in the workflow section, i am not geting the idoc number , material number variables for binding. Any idea where i can declare it?

&_EVT_OBJKEY& binding to &WFC_IDOCNUMBER&

Where do i have to declare &WFC_IDOCNUMBER& ?

Correct answers will be given points.

Thanks & Regards,

Priti Rani Patnaik

Accepted Solutions (1)

Accepted Solutions (1)

former_member193382
Active Contributor
0 Kudos

Hi Priti,

Are you able to get those values in event container. If no, you need to create event container. Go to SWO1,create a subtype of your BO. Then click on event which you are using to trigger your workflow and create parameters for that. Then pass the values to this event container using FM that creates events, i.e; SAP_WAPI_CREATE_EVENT or SWE_CREATE_EVENT. Then create two workflow containers similar to event container with import export parameters. Then do the binding as as guided y saumya govil.

Let me know if you have any queries.

Regards,

Raj

Edited by: Raj Karunanidhi on Dec 19, 2008 11:47 AM

Answers (4)

Answers (4)

former_member208981
Contributor
0 Kudos

Thank you for the guidance.

saumya_govil
Active Contributor
0 Kudos

Hi Priti,

You need to add the Business Object event as the triggering event of the workflow. Also, add the binding between the event and the workflow container. Do this by following the below mentioned steps:

1. Go to t-code SWDD and open your workflow template.

2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8

3. Go to Start Events tab.

4. In the Object type enter your BO name, in Event of object enter the BO event.

5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement. Pass the idoc number and the material number from event to the container.

6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).

6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.

7. Save the changes made and activate your workflow.

Regards,

Saumya

surjith_kumar
Active Contributor
0 Kudos

Hi,

Once you configure the DOC to event, When ever the DOC is Received the Event will be triggered you can see that in SWEL.

In Workflow in normal way you include the BO and Map the event. It will trigger automatically.

Regards,

Surjith

Former Member
0 Kudos

Hi Priti,

Go to SWDD - . Left Pane -> Workflow Containers -> double click to create a new container

Enter the Details -> go to properties -> Check import/export-> click transfre

now in the binding u will b able to see the WF container

Let me know if u still have any issues

Regards,

Kanika