Getting SY-TCODE from an event

Michael Pokraka workflow at quirky.me.uk
Mon Dec 6 13:46:23 EST 2004


... and if you'd use 'Reply' to answer posts then I would have spotted th=
is
detailed answer before I wrote my somewhat sparse and belated reply. :-)
Cheers
Mike
 
 
Mark Pyc wrote:
> G'day Rick,
>
> Due to the event raise being decoupled (via RFC calls) from the event
> receiver no information is available other than what is delivered with =
the
> event container. You can't access any memory of the raising program (su=
ch as
> the SY structure). If you need to know which transaction raised an even=
t,
> the event would need to be designed with a parameter for tcode. The rai=
se
> would also have to fill this parameter.
>
> With a bit more info about what you're trying to do, there may be other
> options though.
>
> For example if the event is raised via Change Docs you can interogate t=
able
> CDHDR to determine which transaction was used to make the change.
>
> Have fun,
> Mark
>
>
 


More information about the SAP-WUG mailing list