cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Messages in the LOGON page

Former Member
0 Kudos

Hi All ,

we are working on mySAP SRM version 4.00. it has integrated ITS 6.40 in it. Now as an administrator i would like to flash some messages to all ITS users who ever goes to the logon page of the system .

can any one please tell me how this functionality can be implemented in ITS 6.40 .

Any documents or links relating to this would be highly appreciated .

Thanks and Regards

Iftekhar Alam

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Maybe not exactly what you want to do, but if you enter a message in transaction SM02 (in the sapgui) you will get that message first thing <b>after</b> login.

/Mats

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

You can customize the logon screen in the service configuation.

Transaction SICF, service sap/bc/gui/sap/its/bbpstart, "system logon configuration in the "error pages" tab.

Note that not all the options will be active as the logon screen is generated by a SRM specific class (CL_SRM_ICF_BASIC_LOGIN, method HTM_LOGIN). If you want to change the look and feel more than this, you have to change this class or overdefine the method.

Hope that help.

Pierre

Former Member
0 Kudos

Hi Pierre,

Thanks for the valuable input. I have gone through the class and i find many methods in it . Probably the method HTM_LOGIN is the place where i should have my customization done .

but i would like to know the condition on which i should flash the messages. the condition could be the SM02 messages active in the system but i doubt before logging to the system itself i could get to know the entries in SM02.

my requirement is we have interface with other system for material management and other things . Now it could be that the interface system is down but our system is still up and running .

The user can log into our system and try to create shopping cart or approve shopping cart which will throw errors because of the interfaces sytem or the backend system being down .

In that case we would lock all our users so that they do not perform any transaction in our sytem but still would like to flash messages in the logon page itself so that they are aware of the situation.

Thus we should have some condition based on which we can code in the method HTM_LOGIN for the flash messages layout.

There is another method in the same class HTM_SYSTEM_MESSAGE which shows sytem messages but that method is triggered when the user LOG in and before the home page is dispalyed .

any help or soem one has implemented this functionality please let me know .

waiting anxiously for any reply !!

Thanks and Regards

Iftekhar Alam

Former Member
0 Kudos

Hi Iftekhar,

In my opinion the best way should be to ask the admin team to mass lock the users when they put the system message. This way, the users will get the message on the logon page, and wont be abble to connect.

To be abble to do it correctly, and only lock the end users, you can define user groups to seperate admin from final user whan locking them.

Regards.

Vadim

Former Member
0 Kudos

HI Vadim,

i could not get any option to mass lock the user in the t-code SM02 when creating messages .

can you please elaborate in details the steps to be done to mass lock the users when creating system message .

i tried doing mass lock of all users except the admin users from the tcode SU10. and then i created the system messages using the admin id in T-code sm02. still i was not able to see the messages for the locked users in the LOGON page .

Please can you throw some further light on this .

regards

Iftekhar Alam

Former Member
0 Kudos

Hi,

Normally, the error message appears directly on the logon page, before the user tries to log on.

The process I described is exactly what you've done:

-create the message in SM02

-mass lock the users in SU10.

You're saying the message doesn't appear on the logon screen, it is really strange, it should work€ by default.

Regards.

Vadim

Former Member
0 Kudos

Hi Vadim ,

will the order make any difference . i first locked the users in SU10 and then created messages in SM02 .

and one more query after creating the system message i get the messages first time when i LOGS in .If i log any number of time after that even then message is active and well within the expiry date it doesnot show the message agaain and again .

is it designed that way ??

Former Member
0 Kudos

Unfortunatly, yes it is the it's designed (as in the SAP GUI, the message only appears once).

Former Member
0 Kudos

Hello,

the system message (SM02) is displayed only once:

- in the SRM home page for standalone ITS

- as a popup just after login in integrated ITS

Why only once ? because we won't popup the same message at each user clic.

Last point: if you block the users, they won't be able to login and see the system message....

Some customers are directly modiying or replacing the logon HTML template to put some urgent messages (this was easy with standalone ITS, modifying directly the template on ITS server).

Rgds

Christophe

Former Member
0 Kudos

HI ,

exactly !!! we also did the same thing for SRM 3.0 when we had the standalone ITS but now we have upgraded to SRM 4.00 with integrated ITS in that case how do we do the same functionality .

any one has implemented this please help me .

Regards

Iftekhar Alam

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

The logon page doesn't exist as a template anymore but is generated in class CL_SRM_ICF_BASIC_LOGIN, method HTM_LOGIN, the result is still an html page

I, SRM30, you was changing the template, since integrated ITS, change the method

Former Member
0 Kudos

i have changed the method HTM_LOGIN in the class CL_SRM_ICF_BASIC_LOGIN.

but still i ma not getting the message . please find below the part of coding that i have done . i would also like to know how can i put i breakpoint in this method . i would like to know the service in which i should put the parameter ~generatedynpro as 1.

the part of code is :

types:

T_TeMSG_TAB type standard table of temsg with default key .

data : lv_last_msg type temsg-id,

lv_count like sy-index. "#EC NEED

DATA : CALL_FROM_DYNP(4) VALUE 'C-Dy'. "#EC NOTEXT

data temsgs type t_temsg_tab.

data temsg type temsg.

call function 'SM02_GET_LAST_USREMSG_ID'

exporting

entry_type = call_from_dynp

importing

last_usr_emsg = lv_last_msg.

call function 'SM02_GET_UNREAD_MESSAGE'

exporting

entry_type = call_from_dynp

last_usr_emsg = lv_last_msg

importing

count = lv_count

tables

messages = temsgs.

read table temsgs index 1 into temsg.

if sy-subrc <> 0.

  • return.

else.

call function 'SM02_SET_LAST_USREMSG_ID'

exporting

last_usr_emsg = temsg-id.

concatenate rv_html

co_crlf '<DIV id=scroll01 style="LEFT: -640px; VISIBILITY: visible; WIDTH: 1280px; CLIP: rect(0px 980px 42px 640px); OVERFLOW: hidden;POSITION: absolute; TOP: 600px; HEIGHT: 42px">'

co_crlf '<TABLE height=42 cellSpacing=0 cellPadding=0 width=1280 border=0>'

co_crlf '<TR>'

co_crlf '<TD width=640 height=42><IMG height=42 src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/start/animation.gif")`" width=640 border=0 name="Test Flash Mesage"></TD>'

co_crlf '<TD width=640 height=42><IMG height=42 src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/start/animation.gif")`" width=640 border=0></TD>'

co_crlf '</TR>'

co_crlf '</TABLE>'

co_crlf '</DIV>'

into rv_html.

endif.

The condition to have scroll message in the logon page would be based on the SM02 message active in the system. otherwise the normal logon page.

i hope the HTML code is correct as i ahve got that code from the cureent layout page which has the scrolling message .

Former Member
0 Kudos

Hi All ,

In the method HTM_LOGIN can we use select statement or function module . it seems that these statements are not executed or the sy-subrc are never equal to 0 for these statements .

I have made changes to the HTM_LOGIN method and i ma able to get the desired result but i would like to have that effect only based on some condition . it could be an entry in Z table or SM02 message active .

can anyone let me know how could we do that ??

if i debug the function module from R/3 i am getting dump because the instance server are not getting instantiated .

urgent help is needed .

Regards

Iftekhar Alam

Former Member
0 Kudos

Hi Gurus,

PLease suggest any way to flash messages in logon page when required for integrated ITS

regards

Iftekhar

Former Member
0 Kudos

I was having the same problem some days ago which is now resolved:

The service must be designed to display system messages (transaction SICF).

Popup windows must be allowed or at least an exception for the respective URL must be defined in your browser.

The service must not be called in the URL with the ".../I?sap-system-login-basic_auth=X" parameter.

After that a SM02 message is displayed within a popup as "Guest" said more than 5 years ago.

Rgds, Heinrich