Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Class that checks switch status in s4hana (Cloud and OP)

0 Kudos

Hi Experts,

I have a requirement to check the switch status. So i have directly written query to SFW_SWITCH_STATE table to know the status and then followed by error messages if user is not authorised. So is there any other way to check status of switch??

Thank in Advance

Ravi

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

Did you check with class CL_ABAP_SWITCH?

rgore
Advisor
Advisor
0 Kudos

Check the class CL_COS_UTILITIES.

Sandra_Rossi
Active Contributor
0 Kudos

Which errors do you have when you "query this table" ? Is it a compiler error or at run time? Is it because of the "package check" ?

0 Kudos

Can you please read the question properly

Sandra_Rossi
Active Contributor
0 Kudos

Sorry, I read again, and I still don't see the answers to my questions. You say you have "error messages if user is not authorised", but you didn't paste the texts nor the technical IDs (which are useful to search for answers). I'm still not able to understand whether it's a compiler error or an error at run time.