Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

question about raise event for workflow

Former Member
0 Likes
403

hi experts:

how to create instance when create event?

eg. I have a bor which key field is id, and has one attribute as name, and the event is 'test'

so when I call function to raise the event:

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

OBJTYPE = lt_objtype

OBJKEY = lt_objkey

EVENT = lt_event

in workflow builder, I bind EVTCREATOR_ to an instance object, and EVTCREATOR_ contains id and name, but now I can just get the value of id, can not get the value of name?

do I have to pass the value of name from container? I do not think so...

so my question is how can I directly get the the name via EVTCREATOR_? Now, I can just get parameter from event container, and can just get the key value from EVTCREATOR_, can not get the attribute....

many thanks

hi experts:

how to create instance when create event?

eg. I have a bor which key field is id, and has one attribute as name, and the event is 'test'

so when I call function to raise the event:

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

OBJTYPE = lt_objtype

OBJKEY = lt_objkey

EVENT = lt_event

in workflow builder, I bind EVTCREATOR_ to an instance object, and EVTCREATOR_ contains id and name, but now I can just get the value of id, can not get the value of name?

do I have to pass the value of name from container? I do not think so...

so my question is how can I directly get the the name via EVTCREATOR_? Now, I can just get parameter from event container, and can just get the key value from EVTCREATOR_, can not get the attribute....

many thanks

1 REPLY 1
Read only

Former Member
0 Likes
375

events are for a business object, when given a key they are instantiated, event-->workflow linkage mostly have a evt_object to a container of the same BO as the event in the WF definition.

For more info search the workflow forum