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

EVENT PARAMETER VALUES.

Former Member
0 Likes
1,202

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
840

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...

4 REPLIES 4
Read only

Former Member
0 Likes
841

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...

Read only

0 Likes
840

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.

Read only

0 Likes
840

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

Read only

0 Likes
840

Thanks a lot.

Cudn't test it but feel ur solution will solve my prob.

SuB.