cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize srm portal homepage

Former Member
0 Kudos

Hi Experts, 

     I have a requirement to show the server time and date in homepage of SRM portal.

When i run bbpstart service SICF, i gets the login page and then after login it lands to home page.

BBPGLOBAL & CL_SRM_ICF_BASIC_LOGIN i used to edit the login page.

But for home page how & where to change it ? how to get server time in homepage ?

Please help.

Thanks in advance,

John

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi John,

I have done something similar to your job.

I called a custom method in the method of HTM_CHANGE_PASSWD of the class CL_ICF_BASIC_LOGIN (it is the superclass of CL_SRM_ICF_BASIC_LOGIN).

This method receives as input the same input  of HTM_CHANGE_PASSWD and it produces the html output. In this method I concatenated the html, javascript and css code and I took some useful info from system variable.

I hope this could be useful.

Regards,
Laura.

Former Member
0 Kudos

Hi Laura,

   Thanks for the helpful reply,

Here i will have to change the homepage, not login page.

I want to know which class i will have to modify for homepage.

If that class is available then i can try to write some code to fetch the server time.

Also is it possible to use system varible(ABAP) inside javascript ?

Example : Date var1 = new Date("'sy-datum'") something like this ?

Please help

Regards,

John

0 Kudos

I have concatenated Javascript and html code in a string.

(Pay attention to separate by space the javascript code in the string)

eg.

data    cr_lf       type   ABAP_CR_LF.
data:   html        type   STRING,
alert       type   STRING.
cr_lf = CL_ABAP_CHAR_UTILITIES=>cr_lf .

concatenate:
'<html>'
  '<head>'
    '<title>' l_title '</title>'
'<link rel="stylesheet" ... >'
     cr_lf  '<script .... >'
cr_lf  '<script .... >'
cr_lf  '<script .... >'
       .... 
cr_lf 'function do(it){'
cr_lf '....'
cr_lf 'var user = ' sy-uname ';'
cr_lf '}'
....
cr_lf 'alert(" 'alert '");'
...

into html separated by space.

Former Member
0 Kudos

Hi Laura,

   Thanks for the update,

Can you please tell me which class i should update for homepage modification ?

Regards,

John

0 Kudos

Unfortunately I don't know.

Redards,

Laura

Answers (0)