DevOps and System Administration Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to check if Work Process is in PRIV mode using Remote Function Module

OhMySAP33
Explorer
0 Likes
2,248

Hello,


Wondering if there is a way to check if any Work Process is running in PRIV mode using a Remote Function Module? I was thinking something like TH_WPINFO might have it but couldn't find anything in the output (any "PRIV" field). Maybe there is some other Remote Function Module which might provide this type of info?

PS: I will pull this data using RFC, hence it has to be a Remote Function Module.

Thanks in advance!

4 REPLIES 4
Read only

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert
2,179

This is not an RFC question, it's a Kernel question.

Let's assume, you want to now, what's the telephone number of somebody. Would you ask the factory that's producing the copper cables used for the telephone lines? They would not know the telephone numbers of all the millions of people, who have a telephone (and use their cables)...

Similarly in this case: RFC is only a communication protocol (the "copper cable"...). The RFC team can explain to you, how it works, or how to use it from an ABAP/Java/etc. program, but we don't know all the millions of remote-enabled function modules that various SAP applications and basis components have created over the last 30 years... 🙂

You should add more tags to this question, e.g. for SAP_BASIS, Kernel or TaskHandler, so that it gets the attention of people with the required knowhow.

Read only

OhMySAP33
Explorer
0 Likes
2,179

Thanks ulrich.schmidt

I have added the Basis Technology tag as per the tags mentioned here: https://answers.sap.com/tags.html

Couldn't find the Kernel/Task Handler ones but hopefully someone from Basis side can help. I wish there was a tag dedicated for Function Modules 🙂
I know how to get this as an Basis Admin (ex: SM50) but the main focus here is a Remote Function Module that gives this info so that I can call it using JCo.

Read only

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert
0 Likes
2,179

In case you can't find any, but you can create ABAP code in your backend system, you could try the following:

  • check the code of SM50 to see, how it determines these values
  • create your own remote-enabled Z-function and copy the code from SM50
    (if SM50 gets the data from a not-remote-enabled FM, you could simply create a copy of that FM and make it remote-enabled... But sometimes these transactions are quite complicated and it could take a few days to understand, what the ABAP code is doing... Then this would probably not be feasible... 🙂 )
Read only

S_Sriram
Active Contributor
0 Likes
2,179

Hi Sunjit,

1. Regarding the Remote Function Module you can check in the transaction code ST03 to monitor the workload, and active users on the SAP system.

2. Priv mode you can check online in SM50 or SM66 global work process of the SAP system.

Regards

SS