cancel
Showing results for 
Search instead for 
Did you mean: 

Change Document event triggered, but logic not executed

pieps69
Explorer
0 Kudos

I have created a change document event. When I test the event via SWUE, the event gets triggered and all the logic is executed.

However if the event is triggered from the program that actually creates the change document, the event gets triggered, but the logic is not executed.

I call BI_EVENT_HANDLER_STATIC~ON_EVENT and from there I call a static method in a class to execute the logic. In this method I submit a report with selection screen table via a job. In the end of the method I do a COMMIT WORK AND WAIT.

Obviously it has something to do with LUW's / Dialog /Background etc. Does anyone have a good tip?

tx

Petra

egor_malov
Contributor
0 Kudos

Hi, Petra

I would try SWEL\SWELS event log (comparing traces from good and bad runs might give some hint).

Also I would run this with authorization trace on.

Accepted Solutions (0)

Answers (2)

Answers (2)

pieps69
Explorer
0 Kudos

I fixed the problem

StephaneBailleu
Active Contributor
0 Kudos

Hi

Have you set up the change document and event link in transaction SWEC ?

This shall trigger the event for the business object (class or BOR) and then if you have a workflow as receiver for this event it shall start.

If not then using SWEL/SWELS shall allow you to see if your event is triggered or if there is an issue with your receiver (workflow)

Cheers

Stephane