cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to trigger an custom event

Former Member
0 Kudos

hai experts,

i created a subtype of BUS2012 and added a custom event which exports ekpo tablei delgated the object,

i want to check wether event is triggering or not

i have written a code in whicih i have used 'SWE_EVENT_CREATE function moudle to trigger the event i am filling the ekpo paramter , but when i check in the event trace i am unable to see the triggered event , even though funciton module is executign properly am i missing something , i am haiving doubt that i should instantantiate the object and then call this FM

please suggest if any thign wrong

m.a

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Did you wrote statement COMMIT WORK after the function module??

If not then workflow will not trigger.

Prashant

Former Member
0 Kudos

hi

i have tried that too but not possible to trigger the event

m.a

Former Member
0 Kudos

Hi,

Do one thing, place COMMIT WORK in the code. Activate the event in the workflow.

Then goto transaction SWU0 - Simulate Event. Pass the key fields to the event and check the result. If every thing is correct at your end then this will return your workflow number saying atleast 1 receiver found .

If you don't get result then goto business object check whether the object is properly delegated or not. And set status of the event released.

Then check the workflow.

Please test it and let me know if still it is not working.

Prashant

Former Member
0 Kudos

hai

my requirment is that when sales order is created i want to tirgger soem event and so i cant go and add this in the existing transaction as some things are already in place for that reason i am trying in some test server where if i am able to here then i can include in the code

m.a

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

you go to tcode -SWUE and give your business object name and event name. if objectkey is there give it and

click on the create event button.

now u can check whether any entry came in the swels log.

thanks and regards

P.Pramod

Former Member
0 Kudos

hai, thanx for ur reply

i am able to generate standard events

i am closign the thread

m.a

Former Member
0 Kudos

HI MA,

Could you please explain the procedure how u have solved your problem so that the other people can know the solution and can be able to search for the solutions in future.

Regards,

Sre.