cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Distinguish calls from SAP GUI, WEB GUI, slipstream engine

2,162

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

Accepted Solutions (0)

Answers (4)

Answers (4)

alicegavanelli
Participant
0 Likes

Hello,

I have the same prooblem.Did anyone solve it?

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes

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.

eedens
Participant
0 Likes

Along these lines, there's also the Web Server Statistics in ST03n, that can help narrow down who, where, and what transactions have been called through which host and port. We've looked at creating a usage report based on this, since it's a very useful bit of info to have for development.

Former Member
0 Likes

You can use

session.info.guiType

The documentation for that says:

Provides the GUI runtime in which the current script is executed. Values are:

  • 0 (= SAP GUI for Windows)
  • 1 (= SAP GUI for Html)
  • 2 (= SAP GUI for Java)
  • 3 (= SAP Screen Personas Slipsteam Engine)

0 Likes

Thanks a lot for your answer but I need the information in the backend (ABAP).

Would be great if such a guiType Flag also exists in the backend.

Does it?

Former Member
0 Likes

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?

swapan_sarkar1
Participant
0 Likes

One option is to use FM ITS_PING to figure out if being called from ITS.

HTH