cancel
Showing results for 
Search instead for 
Did you mean: 

Event Linkage - Container element from Event to Workflow

Former Member
0 Kudos

Hello,

I have a Material Master workflow u2018BUS1001006u2019 in the event linkage it works fine if I check/filter the plant in Event Linkage condition and execute the workflow accordingly for certain plants only but due to the change in requirement I have to do something for all plants and some of only specific plants. So I created a element in workflow container(Werks) and passed the Event Container element(Plant) to Workflow Container Element(Werks). When I check this Workflow Container Element(Werks) it is always blank i.e I am not getting value for Event Container element(Plant) passed to Workflow Container Element(Werks).

My event linkage shows fine and it is green.

Am I going in the right path, can someone say what could be wrong or what is that I can do to get the value or current material plant that has been created/extended.

Thanks in advance

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

vikram shah : Binding from event container to WF container is defined and It is a standard event

Ajay Deshmukh : Binding exits between Event and WF and binding exits for WI_Object_ID of the task and WF.

Raj Karunanidhi : I did not create my own event parameter. It was there with the Bus Object. I see that it is there as part of event parameter.

Pavan Bhamidipati : Container element that I have created is import and export. For the event container It does not show up of any option for import/export and the data type is same.

Thanks you all for you effort in helping me.

Former Member
0 Kudos

Hi Nani,

Firstly, are you trying to get the Workflow container (Plant) value from a method programetically?

I guess you are trying to pass this value from Event container i.e. from Basic data.

As i suggested in my earlier post, fetch the value from standard table and pass it from Method -> Task -> Workflow container.

Also try to remove buffer thr' SWU_OBUF.

Hope it helps.

--

AD

bpawanchand
Active Contributor
0 Kudos
I created a element in workflow container(Werks) and 
passed the Event Container element(Plant) to Workflow Container Element(Werks). 
When I check this Workflow Container Element(Werks) it is always blank i.e 
I am not getting value for Event Container element(Plant) passed to 
Workflow Container Element(Werks).

My view on the issue is that you are passing the Plant----->WERKS i;e from event container to workflow conatiner.

  • First thing check the properties of the event conatiner element , I mean make it as Import and export Enabled.

  • Secondly I assume that you are doing some manipulation to the plant in the method of the BO so make sure that you set the to the plant from BO method by using the SWC_SET_ELEMENT .

  • Make the Proper binding between the Plant and Werks and make sure that both belong to the same Data Type.

former_member193382
Active Contributor
0 Kudos

Hi Nani,

Have you created your own event parameter. How are you passing the value to the event parameter/ event container? Check if the value is getting populated in the event container. Then check the binding. Also check the compatibility of the event container with the workflow container.

Let me know if you have any queries.

Regards,

Raj

Former Member
0 Kudos

Hi Nani,

The only reason for the WF container to be blank could be the Event-Workflow binding missing.

But if you need the Plant in the WF container to be used further, you can create a subtype of BUS1001006, a Z method in this and in the program of this Z method, you can fetch the Plant form the standard table. This will surely work. Ensure one thing, in the WF-Task binding, bind the std. BO with WI_Object_ID of the task.

Let me know if you have any queries.

Hope this helps.

--

AD

Former Member
0 Kudos

check whether the binding from event container to WF container is defined or not.

if you are triggering the event using a FM then you need to set the event container elements explicitly.