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

Rick Sample Rick.Sample at gbe.com
Wed Mar 2 17:43:26 EST 2005


Got both. Thanks! 
I save useful things myself. Must of hit delete verses archive on this mail though. 

While I am thinking of this issue:
We don't trigger events from the CDHDR table. It is massive and expensive to 
do any thing with this table. Heavy usage. But here is what I am thinking about trying. 
(Anyone can chime in.)

Use existing CFM for my WF->Change event on BUS2032. 
Sleep or Loop x number of times in CFM to allow changes in CDHDR to commit and update table. 
SELECT from the CFM to the CDHDR and get the t-code from there. 

Sound doable? Any opinions? 



>>> Laura.Paez at valero.com 3/2/2005 16:19:18 >>>
I have a copy of things I think may help sometime...Hope this is the one...

Get t-code of the program that raise an event...
a:
-you can pick up the transaction code if the event is raised by a change document.  You need to include the change document object class (CDHDR-OBJECTCLAS), object id (CDHDR-OBJECTID) and change number (CDHDR-OBJECTID) as event parameters. 
 In your check function module, you can access these event parameters and check CDHDR-TCODE.
-Now why on earth had I never thought of event parameters as a rather obvious way to find an event's change document before? 
-The event raise via the BUS2032 object CHANGED event. 


Laura Páez
210.345 2513


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Rick Sample
Sent: Wednesday, March 02, 2005 3:59 PM
To: SAP-WUG at MITVMA.MIT.EDU 
Subject: Get t-code of the program that raise an event?


Someone responded to this question but I accidentally deleted the message. Sorry! 
I searched the archives but could not find it. Strange...

Could the kind person that responded to this about getting the t-code from the CDHDR please resend to me. 
Thanks!

======================
Can I get the t-code of the program that triggered and event on an object and if so how? 

Example: 
BUS2032 change event triggered. How do I know what t-code triggered the event? 

If I could get this calling t-code I could put some logic in my CFM to process steps if called from VA02 / 01. 
Otherwise I could just ignore it and not start a WF. 

Any help is appreciated.
4.6C

Rick Sample
SAP Workflow / Developer
Graybar, Inc.
11885 Lackland Rd.
63146-4208
314.573.5822
Rick.Sample at GBE.com _______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu 
http://mailman.mit.edu/mailman/listinfo/sap-wug 

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu 
http://mailman.mit.edu/mailman/listinfo/sap-wug 






More information about the SAP-WUG mailing list