Skip to Content
0
Former Member
Jul 23, 2009 at 08:03 PM

SWO1 basics "BUS1065"

151 Views

Hi All,

I had a standard BO. BUS1065. I copied it, implemented and released. I copied it as ZBUS10651. I added an event trigger_workflow to it. I made the parameters attached to it same as that to the other standard methods of this BO.

My question is I want employee name and emp. no. in the container element to be passed from BO to the container in the workflow. I am using FM to trigger the workflow

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = 'ZBUS10651'

objkey = objkey

event = 'TRIGGER_WORKFLOw' .............

So the fm does trigger the workflow, as a key i passed the emp. no. so what happens next .... does this also make the code in the BO execute. As I have not used any of the methods of the BO in the workflow I think container values would not get set.

What next am i supposed to do next. Implement some of the methods in the workflow? or do we link an event to an method? Or what next to get the employee name and emplyee number in the container elements

&_WI_RESULT.NUMBER&

&_WI_RESULT.NAME&

Am I using a wrong BO.?

I am kind of lost here.

Thanks,

Anu.