‎2005 Aug 25 11:51 AM
Hi all!
Cud anyone guide me as to how to pass values to the event parameters created by me in a BUSINESS OBJECT.
To be more precise: I have created an event with some parameters in it in a Z-Object. Now thru Select query, want to assign values to the event parameters from DB-tables. But unable to access event parameters in the object-program thru object-(parameter-name).
Cud anyone guide me as to how to do the same else any other way out?
Regards,
Sudipto.
‎2005 Aug 25 12:06 PM
Hello,
You can use the FM SWE_EVENT_CREATE to trigger the event.
When calling you can use the tables parameter EVENT_CONTAINER to populate the event container.
With the macro below you initialize the event container
SWC_CREATE_CONTAINER event_contaier
with the macro below you add/set elements to the container
SWC_SET_ELEMENT event_container 'ELEMENT1' 'VALUE1'.
This must be it...
‎2005 Aug 25 12:06 PM
Hello,
You can use the FM SWE_EVENT_CREATE to trigger the event.
When calling you can use the tables parameter EVENT_CONTAINER to populate the event container.
With the macro below you initialize the event container
SWC_CREATE_CONTAINER event_contaier
with the macro below you add/set elements to the container
SWC_SET_ELEMENT event_container 'ELEMENT1' 'VALUE1'.
This must be it...
‎2005 Aug 25 12:13 PM
Actually event is getting triggered from MIGO User Exit. But I want the values of the Purchase Requisitioner's id to be passed to my workflow. So have to program the same in my Object's program .ie. ZMKPF's program. But unable to access the same in the obejct program.
So cud anyone suggest how to access the same.
‎2005 Aug 25 12:22 PM
Hi,
What you have to do then is, create an element in your event container of type BUS2105 (purch req).
then create an instance in your user exit for this purch req with
lv_objkey = purchreqnumber
SWC_CREATE_OBJECT lo_purchreq 'BUS2105' lv_objkey.
then pass this object to event container
‎2005 Aug 29 7:14 AM
Thanks a lot.
Cudn't test it but feel ur solution will solve my prob.
SuB.