on 06-15-2012 6:58 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.