I have created new custom workflow(SWDD) and custom business objects(SWO1) as well activated the same on both.
I have done event linkage(SWU3).
If i execute business object individually, value is getting as per my logic.
Now, I have to call WF from custom program its keep on giving message "Event created - at least one receiver found". Please suggest me what i need to do further to pass custom values.
LV_OBJTYPE TYPE SWR_STRUCT-OBJECT_TYP VALUE 'ZBUSOBJ1',
LV_EVENT TYPE SWR_STRUCT-EVENT VALUE 'EMPDTL',
LV_OBJKEY = P_PERNR.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
OBJECT_TYPE = LV_OBJTYPE
OBJECT_KEY = LV_OBJKEY
EVENT = LV_EVENT
COMMIT_WORK = 'X'
EVENT_LANGUAGE = SY-LANGU
LANGUAGE = SY-LANGU
USER = SY-UNAME
EVENT_ID = LV_EVENTID
INPUT_CONTAINER = LT_INPUT_CONTAINER
MESSAGE_LINES = LT_MESSAGE_LINES
MESSAGE_STRUCT = LT_MESSAGE_STRUCT.
IF SY-SUBRC EQ 0.
Thanks in Advance,