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: 

Modify the ABAP Logon Page / Query why i logon with User XYZ

Former Member
0 Kudos

Hi there,

i have a question.

Is it possible to change the ABAP Logon Page so that a Query comes up when i Logon with User Test123?

What i exactly need is:

When i go to the Logon page and logon with user XYZ i want that i come normal into the system.

When i logon with User TEST123, i want that a popup with a Query comes up:

Why you logon with user TEST123

There must then a field where i can give input. After i click OK i want that the Input i gave the system is stored in a table eg. ZQUERY

And then the system let me in.

Is it possible? And eventually can ypou explain how this will work?

18 REPLIES 18

Former Member
0 Kudos

SAP has provided a facility called as GUIXT which can change the way we see the guis....

Try getting in touch with someone or search for some notes on the same ...

I hope it wil help you...

0 Kudos

Sorry that helps not..

Can anybody else help here?

0 Kudos

Hi,

Have you checked this enhancement SUSR0001(User exit after logon to SAP System). Check in TCODE SMOD.

Regards

0 Kudos

Thanks,

i found the enhancement in SMOD.

Iam not a programmer. I just want to try out some things in our dev system.

So can youtell me eventually what i have to do that the enhancement will start after login etc...?

Or is this description to long for a post?

Thanks for your help

0 Kudos

Hi,

A example is provided in SMOD itself. After you display SUSR0001 in SMOD click on components (SHIFTF11). Put the cursor on function module name and click on sample code (CTRLF2).

To manage enhancements you need to create project in TCODE CMOD and assign the enhancement SUSR0001 .

Search the forum about CMOD for more details

Regards

0 Kudos

Thanks,

i found now a tutorial that explains how this works.

http://sap.niraj.tripod.com/id62.html

But in the tutorial at point 6 it stucks:

6) Double click on the include ZXUSRU01 .If it will ask to create the include say yes .

That do now work for me. When i double click on the include the following Message appears:

-


Program names ZX... are reserved for includes of exit function groups

Message no. DS027

Diagnosis

You attempted to create a program name beginning with ZX but this name range is reserved only for includes of exit function groups (function groups containing only function exits).

If you want to create a program ZXaaabbb, note the following for program type I (Include).

1. The program is an include of the function group Xaaa:

In this case, the INCLUDE ZXaaabbb statement should not be inserted in the main program SAPLXaaa, but in the program ZXaaaZZZ .

2. The program is not an include of the function group Xaaa:

Since the syntax check for includes of this name range searches for the global data in the program LXaaaTOP (not ZXaaaTOP), you may not be able to check the include in isolation (--> check main program).

Procedure

Choose a different program name.

-


I dont know what this means. Can you tell me what i have here to do?

Thanks

0 Kudos

OK Thats solved.. i pressed ENTER

But now the next Error occurs. I generated now the Inlcude: ZXUSRU01

And put the following Code in:


*&---------------------------------------------------------------------*
*&  Include           ZXUSRU01
*&---------------------------------------------------------------------*

DATA W_TEXT(30)  TYPE C.
DATA W_DATE(10)  TYPE C.
WRITE sy-datum TO W_DATE DD/MM/YYYY.
CONCATENATE  ' Date is '  W_DATE  INTO W_TEXT.
CALL FUNCTION 'POPUP_TO_INFORM'
  EXPORTING
    titel         = 'Willkommen auf dem XI Integrationssystem'
    txt1          = 'Test'
    txt2          =  W_TEXT
*   TXT3          = ' '
*   TXT4          = ' '

But when i want to save it tells me that there where errors. When i click on "Process Errors" I see the following:

Include ZXUSRU01

The last statement is not complete (period missing)

Can you tell me what i have to do here?

Thanks

Edited by: bjoern bayerschmidt on Apr 23, 2009 2:51 PM

0 Kudos

Hello,

CALL FUNCTION 'POPUP_TO_INFORM'
  EXPORTING
    titel         = 'Willkommen auf dem XI Integrationssystem'
    txt1          = 'Test'
    txt2          =  W_TEXT. "-->"Put a "period" here
*   TXT3          = ' '
*   TXT4          = ' '.

Suhas

matt
Active Contributor
0 Kudos

>

>

> But when i want to save it tells me that there where errors. When i click on "Process Errors" I see the following:

>

> Include ZXUSRU01

> The last statement is not complete (period missing)

>

>

> Can you tell me what i have to do here?

All ABAP statements end with a period. i.e. a full-stop. I.e. one of these .........

All posters - please note. This is an excellent example of how to ask a basic question, without expecting to be spoonfed.

Edited by: Matt on Apr 23, 2009 3:01 PM

0 Kudos

Hello Matt,

May be Bjoern did not understand "period" )

Suhas

0 Kudos

Thanks to you all. That works great.. now i become a message when i logon to my SAP System. Perfect.

Can you eventually tell me how the code have to look when i want that a POP UP Occurs with a line where i can write Something in.

Why you logon: (INPUT FIELD)

I write then: Because i want to work.

After i click on OK i want that the text is saved in a TABLE:

ZTEST or so...

I would be very happy if you can help here

@ Suhas Saha

Yes.. i am not a programmer.. i thought that means that there was code missing or so.. i dont know thet he only wants a "." ... ^^

Edited by: bjoern bayerschmidt on Apr 23, 2009 3:10 PM

matt
Active Contributor
0 Kudos

If I were you, at this point, I'd get a professional in. Mucking around with the logon screens can leave you with a system that you can't log into.

Also, while I can see why you would want such a popup, it is not possible to make it mandatory. As soon as you've logged in, you can start new sessions, by clicking in the top left of the gui.

matt

0 Kudos

From the main menu, you can go:

Extras -> Set start transaction

This will bring up any transaction you want when you logon.

Rob

0 Kudos

Thanks,

but can you eventually tell me how this will work?

Because i want to learn it. So this is a TEST System... it runs here in a VM Ware..

I want this. because the Admins have 2 Users.. one for Adminstration.. and one with SAP_ALL

User1 (Administration)

User1n (has SAP_ALL)

If user with SAP_ALL logs in i want that it will be written in a table.. so i can checl when i Admin with SAP_ALL logged in.

So please can you help here?

0 Kudos

What i found out too is when i write the code so:


*&---------------------------------------------------------------------*
*&  Include           ZXUSRU01
*&---------------------------------------------------------------------*

IF  SY-UNAME = 'BJTEST'.




DATA W_TEXT(30)  TYPE C.
DATA W_DATE(10)  TYPE C.
WRITE sy-datum TO W_DATE DD/MM/YYYY.
CONCATENATE  ' Date is  '  W_DATE  INTO W_TEXT.
CALL FUNCTION 'POPUP_TO_INFORM'
  EXPORTING
    titel         = 'Willkommen auf dem XI Integrationssystem'
    txt1          = 'TEST'
    txt2          =  W_TEXT.
*   TXT3          = ' '
*   TXT4          = ' '

ENDIF.

Then the message only occurs if i log in with user: BJTEST

Thats good. So i now only need to know how to create the table with the right fields and how the code looks like for a POP UP with a line where i can write in

As i sayed.. its a Testsystem in a VM Ware.. if i have then a system where i cannot log in anymore.. i copy the over the backup..

Edited by: bjoern bayerschmidt on Apr 23, 2009 3:27 PM

Edited by: bjoern bayerschmidt on Apr 23, 2009 3:28 PM

matt
Active Contributor
0 Kudos

OK, it's a VM. Good idea!

But you've still got the issue that it's not possible to enforce the filling in of the "reason".

If you go to SE37, and search for function modules containing "POPUP", you should find one that suits your needs to capture the reason into a variable. ->edit POPUP_TO_GET_ONE_VALUE

You can then use the standard db commands - INSERT, MODIFY etc. to update a db table with your log. Or OPEN DATASET, TRANSFER to write a log file.

Use SE11 to create a table. Read the ABAP help on the other commands to see how to use them.

matt

Edited by: Matt on Apr 23, 2009 3:38 PM

0 Kudos

Thanks,

i think i check how to create a table and fields etc...

Also the DB Commands.. i hope i checked this

But i do not understand the FM:

---

If you go to SE37, and search for function modules containing "POPUP", you should find one that suits your needs to capture the reason into a variable. ->edit POPUP_TO_GET_ONE_VALUE

---

I have it.. but i dont know how to handle it. Do you have a code snippet or something for me. so that i can see how it works?

That would be really great

Former Member
0 Kudos

solved