on 12-10-2007 10:53 PM
While Event handling I register a new event handler for same event. Like BC401/BC404 the event handler is appended to sequence and will be called. This works only when more than one event handler is registered. If only one event handler is registered before raising event the new handler is not called although it is appended to calling sequence. What can I do get the handler called in the same sequence ?
Hello Sebastian
Perhaps a <i>work-around</i> may be useful. Obviously you know how many event handlers have been registered. Then you may try the following approach:
IF ( <number of registered event handlers = '1' ).
" register 2nd event handler AND call event handling method directly
SET HANDLER:
go_2nd_handler->handle_method FOR ....
CALL METHOD go_2nd_handler->handle_method
IMPORTING
...
ELSE.
" register event handler only
SET HANDLER:
go_2nd_handler->handle_method FOR ....
END.
Regards,
Uwe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Uwe,
thanks for your answer.
That was my first approach. But at this point the logic gets confused. That is why
i register a second event handler.
What i do in the moment is to register once a dummy event handler but problem still is the very first run.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.