on ‎2018 Aug 23 10:20 AM
Hi!
Is it possible at runtime to find out in ABAP whether call comes from SAP GUI, WEB GUI, slipstream engine? Perhaps a sy- variable is set?
Thanks a lot, best regards,
Sebastian
Request clarification before answering.
Hello,
I have the same prooblem.Did anyone solve it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no SY- variable that would tell you this, and I'm not aware of a simple way to find it out. However, some information is available in the backend, such as what you can see in SM04. There, the "Application Info" column contains the path of the service being used, and the "Type of User Session" column tells you whether the GUI or HTTP/HTTPS is active for the session.
So you could take the SM04 logic, but the problem is identifying which one is your current session. I looked into this once and made some headway but didn't have time to complete the analysis.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use
session.info.guiType
The documentation for that says:
Provides the GUI runtime in which the current script is executed. Values are:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry - I misunderstood the question. As far as I know, that information is not available in the ABAP backend as standard. You could take steps in the Personas flavour to put it there - perhaps by having a script put the value into a standard field in the transaction so that the ABAP can see it. Is this a custom transaction where you could add a new screen field?
One option is to use FM ITS_PING to figure out if being called from ITS.
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.