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: 

Can users be routed to a specific transaction upon logging in?

Former Member
0 Kudos

Hi

Is it possible make users see a specific transaction when they log in to SAP?

I know that I can route users to a specific start menu, and that users can set their own start transaction. I thought it would be possible to do a mass update to make users all see the same t-code upon logging in, but it doesn't appear to be as straightforward as I thought.

Any advice appreciated.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

if you want to create an ABAP you can use FM NAVIGATION_SET_START_TCODE. The start transaction is just stored in a table. It´s quite simple.

BR, André

10 REPLIES 10

Former Member
0 Kudos

Yes, the users can set their own start transactions via the session manager menu Extras - Set start transaction.

It will execute when they logon and a SAPGui session is attached. It will be bypassed via RFC and HTTP-logins.

You can also set it for them, but will need to create a little program of your own to call the function module. The user name is exposed to it's interface.

Cheers,

Julius

0 Kudos

Thanks Julius

I'm not a programmer so was relying on standard tools, it may be simpler to prompt users to set their own start transactions!

Cheers

0 Kudos

Yes, you could prompt them for it.

But remember that it is something they can control and change themselves, or if you set it earlier during the login procedure then they will not be able to use it for anything else.

But it could work for your purpose.

May I ask what the requirement is for, as I have done it a few times and sometimes there are better ways. There are also worse ways..

Cheers,

Julius

0 Kudos

We have a number of light SAP users that only login for timesheet recording purposes. The request therefore came to me to see whether we can make CAT2 their default screen when they login, as this is the only transaction they ever access.

I wrongly thought that there would be something standard in SU10 to let me do this.

Thanks again

0 Kudos

>

> We have a number of light SAP users that only login for timesheet recording purposes.

>

A standard way of doing it would be to switch the users or even force them into seeing the user menu of their roles. As they would only have this one roles and CAT2 would be the only transaction they can see in the menu. They might want to click around a bit into the blue pond on the right or add imaginary friends to the favourites... but clicking on the only object in the menu is the only thing which is going to do anything.

However you can also set the start transaction for them, which will then start CAT2 when they logon already. It would be a very simple task to an ABAPer to create a tool for you to select the users of the role and loop through them calling the function module.

I cannot offhand remember the name of the function module, but it is very easy to find if you debug the "Start Transaction" popup.

Cheers,

Julius

WolfgangJanzen
Product and Topic Expert
Product and Topic Expert
0 Kudos

You might also consider to use SAPGUI Shortcuts (but you should not store userID and password in the shortcut file).

0 Kudos

The problem with that is how to distribute the shortcut to the user in a safe way (?) as it needs to be launched on the client side.

See [SAP Note 1397000|https://service.sap.com/sap/support/notes/1397000] ...

Cheers,

Julius

WolfgangJanzen
Product and Topic Expert
Product and Topic Expert
0 Kudos

Well, you can automate the start of the ABAP transaction - but normally the user is still required to "operate" the transaction (providing values to input fields, pressing some buttons, etc).

But you are right: it could be possible to automate also the input provisioning (including the "o.k. code field").

That would be a kind of "SAPGUI XSRF attack", then.

Thus my advice: ensure that the user will be prompted to provide valid credentials when starting the transaction via Shortcut (i.e. not storing UID/PWD in the shortcut file and not using SNC).

0 Kudos

The problem happens when the user already is logged on, or is only confronted by the login prompt without knowing which transaction, program or command is in the file and which function is set on the ok-code field, nor (reasonably) where the file is coming from.

The solutions described in the note protect the perimeter of the network and client of the user so if one wanted to "send" them the start transaction then a backdoor would need to be left open. There is also a subsequent server side option to block (at least) the skipscreen option on the server side but I have not tried that yet.

Where I have seen this technique used (for this same requirement) it was generally a URL sent in a mail or a shortcut saved in a recurring calendar appointment. But I have also seen some html stuff with pictures to click on. Some nice girls might simply be too tempting for the basis guys...

My personal favourite (for this requirement) would be some basic training and a role menu with the one transaction in it.

Cheers,

Julius

Former Member
0 Kudos

Hi,

if you want to create an ABAP you can use FM NAVIGATION_SET_START_TCODE. The start transaction is just stored in a table. It´s quite simple.

BR, André