FW: Get t-code of the program that raise an event?

lianghuan.x.hu@accenture.com lianghuan.x.hu at accenture.com
Wed Mar 2 17:13:59 EST 2005


Rick:

I guess that you want Mark Pyc's email as below.

Larry Hu
302-830-6386


-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Michael Pokraka
Sent: Monday, December 06, 2004 1:46 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Getting SY-TCODE from an event

... and if you'd use 'Reply' to answer posts then I would have spotted
this
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
(such as
> the SY structure). If you need to know which transaction raised an
event,
> the event would need to be designed with a parameter for tcode. The
raise
> 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
table
> CDHDR to determine which transaction was used to make the change.
>
> Have fun,
> Mark
>
>


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.



More information about the SAP-WUG mailing list