cancel
Showing results for 
Search instead for 
Did you mean: 

Flag for ITS-Mobile

Private_Member_19084
Active Contributor
0 Kudos

Hi experts,

I would like to differ my code for ITS-Mobile and SAP Gui.

So, if a transaction is called via SAP Gui it should have another logic like ITS mobile.

So I would like to implement an if statement like "if sapgui is not initial....

But my problem is, that I don't know, how to find out, is a program called via GUI or via ITS.

There is no flag in SYST-Structure.

Is there a FM, which gives me back, where from a transaction is called?

Thx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christian,

You can access transactions of SAPgui ABAP by Web.

You can configure the Transaction calling at Service in SICF Transaction.

You put the Parameter at GUI Options of the Service:

~transaction = SE38

When you access this service it will enter directly in Transaction SE38 by WEB.

Anyway you can configure in this service parameters options like screen format and customized login screen and other.

Regards

Maikel

Private_Member_19084
Active Contributor
0 Kudos

Hi Maikel,

but I don't want to go the SE38.

What I want, is to call (for example) a transaction called ZTEST and in this program I would like implement an IF-Statement which says for example:


if lv_sapgui is not initial.
lv_result = 1+ 1.
else.
lv_result = 1+2.
endif.

So if the transaction is called via sapgui the result should be 2 and if the transaction is called via ITS Mobile the result should be 3.

But my problem is, that I don't get a flag or anything like this, which shows, is the TA called via SAPGui or via ITSMobile.

Rember: above this is only an example:

Former Member
0 Kudos

Hello!

I've tried this: Note 648354 - How to get version of SAPGUI from ABAP code

And if you execute it from SAP GUI for HTML you'll get NULL, otherwise you get the version.

Maybe there's simpler way...This is one option...

Cheers,

Diego.

Private_Member_19084
Active Contributor
0 Kudos

Hi Diego,

thx for answer.

As this is a way to get the required info, I close this thread.

Thx again

Regards

Christian

Answers (0)