Getting SY-TCODE from an event

Rick Sample Rick.Sample at gbe.com
Thu Dec 2 08:21:28 EST 2004


I was wanting to know if the sy-tocde was being passed in the 
container already without making a new container value. 
That answered my question. 
 
Thanks!
 
 
 
 
 
>>> markpyc at hotmail.com 12/2/2004 3:35:06 >>>
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
 


More information about the SAP-WUG mailing list