‎2011 Feb 14 5:20 AM
Hi ,
Query 'X' uses an infoset 'Y' .The report program generated by the query has two Tcodes. I am doing an sy-tcode authorization check in INITIALIZATION of the infoset. How can I cpature the actual Sy-tcode of the report program in the debugging mode? Plz help me with some FM or process which will do this task for me.
Thanks and Regards,
Sinu Mathew.
‎2011 Feb 14 5:27 AM
‎2011 Feb 14 6:48 AM
This is to get the generated report name. I already have this in hand. I need to find the TCODE which is running this query.
‎2011 Feb 14 6:01 AM
What value does sy-tcode have in the debugger and why isn't it useful for your purposes?
matt
‎2011 Feb 14 6:36 AM
Sy-tcode is displaying the Infoset transaction code 'SQ02' and not the report tcode.
Regards,
Sinu.
‎2011 Feb 14 6:50 AM
I want to perform authorization check on the Tcode.
If the sy-tcode eq 'X1'
perform auth-check for tcode X1.
elseif sy-tcode eq 'X2'
perform auth-check for tcode X2.
endif.
Hope you understood my requirement.
Regards,
Sinu.
‎2011 Feb 14 3:37 PM
Hmmmm...if the transaction were defined like a query transaction should be, you should get 'START_REPORT' as the SY-TCODE value, not SQ02. Why does that need to be checked in the infoset? Wouldn't you already have an S_TCODE check performed against the user profile when the user executes the transaction?
‎2011 Feb 15 5:38 AM
Report program has two tcodes associated with it, So I need to verify which Tcode is actually executing the query transaction in the infoset.This is how my coding will go in the infoset's Initialization.
*If tcode1 then perform auth_check1.*
*else perform auth_check2.*
Kindly help if you are familiar with these concepts.
Regards,
Sinu.
‎2011 Feb 15 9:09 AM
Yes, we understand what you are trying to achieve and we are well aware of the concepts involved, but your question doesn't make sense to us. The transaction for running queries is based on START_REPORT not SQ02.
I've a suspicion I've got the solution to your problem, but I'm not going to suggest it until I fully understand why you're talking about SQ02. Sometimes a question needs clarification - simply repeating what you've already posted isn't helping.