Function C_SAPGPARAM not working to get  rdisp/plugin_auto_logout value...

Hi folks,
   I have this abap code where I am trying to get the value for the timeout parameter..'rdisp/plugin_auto_logout'...but it does not seem to work it comes back with 0 whereas the system has a value of 900 (verified using rz11)....thanks...
  <%
    data: name TYPE String.
    data: timeoutStr type String.
    data: value type i.
    data: timeout type i.
    name = 'rdisp/plugin_auto_logout'.
    call 'C_SAPGPARAM' id 'NAME'  field name
                       id 'VALUE' field value.
    timeout = value - 780.
    timeout = timeout * 1000.
    timeoutStr = timeout.
    %>
Thanks,
Venkatesh

Thanks for the reply,
The code works perfect when written as a standalone abap program,
but when I have it in the document_body.htm file in the BSP application
hap_document (for priorities in ESS) I get an error saying..thx for your help though..
Access is Denied..
and it does not work in the bsp page...here is my code....
<script type="text/javascript">
     alert("You have just wasted 10 seconds of your life.");
function remind() {
var msg = "Your Session will be timed out in 5 minutes";
alert(msg);
</script>
<htmlb:content design="design2003" >
  <%
    DATA: NAME TYPE TPFYDOC-PARANAME.
DATA: TIMEOUTSTR TYPE STRING.
DATA: VALUE TYPE I.
DATA: TIMEOUT TYPE I,
      USR_PARVALUE(60),
      SHM_PARVALUE(60).
NAME = 'rdisp/plugin_auto_logout'.
CALL 'C_SAPGPARAM' ID 'NAME'    FIELD NAME
                   ID 'VALUE34' FIELD USR_PARVALUE
                   ID 'VALUE44' FIELD SHM_PARVALUE.
MOVE USR_PARVALUE TO VALUE.
TIMEOUT = VALUE - 820.
TIMEOUT = TIMEOUT * 1000.
TIMEOUTSTR = TIMEOUT.
%>
  </htmlb:content>
<script type="text/javascript">
   setTimeout("remind()",<%=TIMEOUT %>);
</script>

Similar Messages

  • MinList function is not working in Date or datetime values in DRM

    Hi,
    We have a custom property End Date with data type as Date. We want to calculate the minimum end date across all the children of a particular node.
    While using the below function it is giving blank value as output.
    MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.NO_ALL_ALL_ENDDATE),[comma],#,true),#,date)
    If we remove the MinList part and only evaluate ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.NO_ALL_ALL_ENDDATE),[comma],#,true), we are getting an output like 12/31/2019#12/31/2018.
    Why DRM is not able to extract the min value? Does DRM not support this kind of use of this function?
    We have even tried with a date time property, but the result is same.
    If by using the above mentioned method it is not possible to get the min date value, what alternative approach can be taken for achieving this?
    Any help on this is much appreciated.
    Thanks
    Sudipta

    I found this useful, check if it helps,
    Using MinList and MaxList with Date Or DateTime Values In DRM (Doc ID 1967005.1)
    Hyperion Data Relationship Management - Version 11.1.2.3.000 and later
    Information in this document applies to any platform.
    GOAL
    Example: How can we calculate the minimum end date across all the children of a particular node?
    You have a custom property End Date with data type as Date. You have tried using MinList in conjunction with ListNodePropValues thus:
    MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.EndDate),[comma],#,true),#,date)
    This gives a blank value as output.
    SOLUTION
    The most robust way of doing this using formulas is to format the date property as a string in ISO 8601 format. In yyyy-mm-dd format, alphabetic order is also date order. Add a helper String property like this:
    FormattedDate(Custom.EndDate),yyyy-mm-ddThh:mm:ss) -- omit the time from the 'T' on if desired. Note that the format string is case sensitive.
    Then the MinList function
      MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.Helper),[comma],#,true),#,string)
    will work.
    Note that the functions MinList and MaxList return a blank value if the list contains any members that are not of the specified data type. Using ReplaceStr will implicitly convert the dates into strings, causing MinList and MaxList to fail if you specify DateTime.

  • Copy Function is Not Working properly In Order Management

    Hi,
    Description-
    When an order with remnant model is copied, it copied only the topple model line and they include items attached to the top model line. It doesn’t copy the
    option class lines and the option item lines (unshipped and shipped).
    Example-
    Enter an order with for pd-pto-model. See order#21231.The ordered quantities and structure of the model is shown below:
    pd-pto-model 5 qty
    pd-std-item1 (included item) 5 qty
    pd-pto-oc (option class) 5 qty
    pd-std-item1 (included item with rfr checked) 5 qty
    pd-std-item2 (option item with rfr checked) 5 qty
    pd-std-item3 (option item) 5 qty
    Booked the order and pick relased the order. While shipconfirming only shipped 5 qty of pd-std-item3 and staged the rest. On querying the sales order, the line status is seen correctly as follows:
    pd-pto-model Closed
    pd-std-item1 (included item) Picked
    pd-pto-oc (option class) Closed
    pd-std-item1 (included item with rfr checked) Picked
    pd-std-item2 (option item with rfr checked) Picked
    pd-std-item3 (option item) Partially Interfaced to receivables
    Copied this order from the order header. The new order# is 21232.On querying the order, I see only 2 lines as follows:pd-pto-model.
    Anyone can help me on this issue.
    Thanks,
    Chinna

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Select() function is not working properly in solaris 10.

    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.
    Thanks a lot.
    Regards,
    Srikanth.

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Palm Desk Top 6.2 Address Look Up Function Does Not Work In Windows 7

    I recently upgraded my desk top computer's operating system from Windows Vista Home Premium to Windows 7 Home Premium.  I synchronize with a Palm Tx PDA.  HP PalmOS customer support Chat helped me work through a compatibility issue that was preventing display of Address, Calendar, Memo and To Do items on my desk top computer via the Palm Desk Top 6.2 application.  I now find that the address look up function does not work (although it worked fine when I was running Vista).  Without success, I tried running the repair tool as well as reloading the software (both overlay and clean reinstall).  I would appreciate any help or suggestions to fix?
    Post relates to: Palm TX

    Hi,
    844869 wrote:
    CREATE TABLE TEST_EMPLOYEES
    FIRST_NAME VARCHAR2(26 CHAR),
    GRADE VARCHAR2(5 CHAR)
    INSERT INTO TEST_EMPLOYEES (FIRST_NAME, GRADE) VALUES ( 'William', 45 ); ...Thanks for posting the CREATE TABLE and INSERT statements; that's very helpful.
    William&45     1
    Robin 43     1
    Raymond          43     1
    Richard          43     1
    Karen          28     1
    Michelle               1
    Jonathan               1
    Mark               1
    Ann               1You may have noticed that this site normally doesn't display multiple spaces in a row.
    Whenever you post formatted text (such as query results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    This is one of the many helpful things found in the forum FAQ {message:id=9360002}
    Are the results above what you're getting with some existing query, or are they the results you want? 
    If those are your current results, post your query.  In that case, what are the results you want?  Do you want this?FIRST_NAME GRADE RNK
    William 45 1
    Robin 43 2
    Raymond 43 2
    Richard 43 2
    Karen 28 5
    Michelle 6
    Jonathan 6
    Mark 6
    Ann 6
    Edited by: Frank Kulash on Feb 21, 2013 2:39 PM
    I see you've added the desired results to your original message.
    Here's one way to do that:SELECT first_name
    ,     grade
    ,     RANK () OVER (ORDER BY grade NULLS FIRST)     AS rnk
    FROM     test_employees
    ORDER BY grade          DESC     NULLS LAST

  • Brightness function is not working

    i have hp pavilion 14-n201tx notebook.i am using it from february.from yesterday its brightness function is not working.what should i do

    Hi narendra1k,
    Welcome to the HP Support Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I see that you are having an issue with your brightness. I will be happy to help you with that. Let me start by getting your operating system. I would start with a Hard Reset to see if a clean restart gets you going again.
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • F11 Functionality is not working

    Hi,
    I am working on 11.5.10.2 version.
    In the Oracle Payables Invoice screen the F11 functionality is not working
    For other screens like supplier entry / payment batches..etc, the F11 functionality is working.
    When i enter the Invoice screen, i am pressing F11 and it comes to query mode.
    I am giving the values and percentage, pressing Ctrl+F11 but its not showing the invoice data.
    Error Notification given: "FRM-40301: Query caused no records to be retrieved. Re-enter."
    Earlier its working fine...suddenly its giving me this trouble. I am able to query same thing in my friends system.
    I know its quite silly issue but its really giving me a trouble. Could anyone give the solution for this. Is there any specific functionality am need to set for this?
    Thanks,
    Ram.

    The query is working if you are getting the message "FRM-40301: Query caused no records to be retrieved. Re-enter." You need to query for something that is in the tables which is usually case sensitive.
    Or, use the Query/Find screen by clicking the Find button (flashlight icon) on the toolbar.

  • Excel Functions Do Not Work When Data Source is BW

    Hello,
    My platform is, BOBJ BI 4.0. Data source is SAP BW. BW is connected to XCelsius with BEx. My problem is, excel functions do not work when data source is BW. For example, Excel cell A1=quantity1  B1= quantity2   C1= excel function "=A1+B1" When data source is Excel, for example A1=5, B1=9 C1 automatically equals to 14. (There is no problem when data source is Excel) But, in BW, for example when BW set values to A1=5, B1=9, the system does not calculate C1. C1 always equals to initial value, the system does not care any excel calculation when data source is BW.  Any guess for my problem? Thank you for your effort.

    Hi,
    As you are using very simple formula,it will work no matter which source you are consuming.As mentioned,try to place a simple component(Eg:spreadsheet),just to check whether you are getting the right calculated value or not.
    As you are using BW as source,the Preview option will not show the runtime data,so you need to publish in Portal to check whether the calculation happened or not.
    As far as I know only few fromulas are supported in Xcelsius,but these kind of simple formulas are very much supported.
    Rgds,
    Murali

  • Search menu function is not working

    Hi
    Search menu function is not working in one of my HRMS 9.1 (PT: 8.52.09 application.
    Verity installed and executed the build registry search index aswell.
    Please let me know if I miss something on configuring the search menu function.
    Thanks
    Soundappan

    Personally I did not have to make any psappsrv.cfg changes for this particular 9.1 env or any other changes that I can remember. Is PS_HOME = PS_CFG_HOME though?
    If you didn't specifically set PS_CFG_HOME to PS_HOME it defaults to something like $HOME/psft and the files would need to be there instead.
    If you run psadmin what's it show as the Config Home?
    If I unset PS_CFG_HOME i get
    PSADMIN -- Tools Release: 8.52.07
    Copyright (c) 1996, 2011, Oracle. All rights reserved.
    PeopleSoft Server Administration
      Config Home:  /home/psoft/psft/pt/8.52And the files would need to be there rather than $PS_HOME/data/....
    Now you could override that in your psappsrv.cfg file with
    EMPLOYEE=PS_HOME/data/search PS_HOME I dont think can be used here as a variable... it needs to be the full path. the location here must lead directly to the EMPLOYEE directory
    In 8.52 there are also some alternatives to this older style above.
    See this peoplebook for 8.52 http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tsvt/book.htm?File=tsvt/htm/tsvt10.htm%23g037ee99c9453fb39_ef90c_10c791ddc07_102b for details.
    In the past I've used shares or nfs mounts to have the process scheduler write directly to the appserver. But you could check out the new search server option too.
    Let me know.

  • The Open URL or File function is not working when I publish as a exe?

    The Open URL or File function is not working when I publish as a exe.  I have tried putting the exe in the same location as the files with no luck.  How do I get the buttons to function properly with a exe file.

    Have you set the Publish folder as a trusted location in Flash Global Security?
    If not, please read this post:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    It may explain your issue.

  • Paste functionality suddenly not working

    I currently use Captivate 3.  I have been working on a project where I have been editting the background image in Photoshop and pasting the editted version as a background to the original slide. Captivate is no longer pasting the image as a background. I do recieve the warning message, but when I click OK,  the old image is not replaced. I also tried it on a blank slide and the slide remained blank.
    As I was trouble shooting I realized the paste as image functionality is not working either.
    I am able to save images, import them to the library and then replace the background using the slide properties,,, but this takes way too long when you have 50 slides to edit.
    Any thoughts as to what is happening?
    Thanks-

    Hi there
    Perhaps try restarting Captivate. Sometimes it gets tangled in memory and needs a kick in the pants to straighten itself out.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work.

    Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work neither when chosen after pressing the button nor chosen in the apple menu..

    I have had the same problem but on another forum it was suggested that disabling internet sharing would solve this. This fix seems to work on my machine - why it works I do not understand

  • "Open In.." function is not working

    Hi, "Open In.. " function is not working on my iPad since the first time I recieve it..
    it once worked twice, and it took a long time to load PDF file, but never worked again
    the apps list is there, but when I click the app, nothing happened.
    please do help,
    thanks

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    Also close all apps completely : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I just bought an iPhone 4s. Now the search iphone function is not working. When I swipe the screen to the left, the search box appears but when I type what I want to search for, there is no action. Please help.

    I just got an iphone 4s. Now the search iphone function is not working. When I swipe the start screen, the search box shows up. But when I type what I want to search, there is no action. Please help.

    Try this...
    You will Not Lose Any Data...
    Turn the Phone Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... (But can take Longer...)
    Release the Buttons...
    Turn the Phone On...

  • How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    Sorry I had to reply through your profile Gail from Maine, my PC has java issues. In any event, when I delete them directly from my device everything is perfect and cool. However, in the rare instance I want to add new music that I actually buy in stores (I know, quite the unique and old-fashioned idea...but hey Im an audiophile) once I upload the tunes, everytime I sync my library it re-adds everything that I spent hours deleting. In a perfect world, I thought I could maintain a massive iTunes Library, and add or delete (remove) songs from my iPhone to save both memory or keep my iPhone selections more current/apt to my musical "tastes" at that time. I know about the whole playlist thing, but thought there might be an easier way. ie - checking/un-checking the little box next to the song name, and then doing a sync. Again, everytime I do this however, whether everything is checked or un-checked it adds the entire library! So frustrating. Any suggestions. Thank you graiously in advance for your help.

Maybe you are looking for

  • Recording from a stereo

    How do I set up a voice memo recorder to record from my stereo? It should be possible (as the manual on the voice memo recorder briefly notes, and Apple confirms), by switching the button behind the microphone from "mic" to "line." But so far I've on

  • Creating ascii art in Illustrator

    Hello, This is my first time posting and I'm hoping you can help me. I'd like to color letters of a text so that from afar the colored letters look like an image. The perfect example is ascii art - each character is colored appropriately so that as a

  • Problem with Linksys PAP2T-eu

    Hello. First, sorry for my english I bought pap2teu today, configuration with my VoIP provider - OK, everything is working ok. But in SYSTEM -> User Password I wrote password and I can't now login into my device. How can i reset my device  or what mu

  • DB Adapter repeating first child record multiple times

    We are using DB Apdater in BPEL process with master and child relationship setup using wizard. Correct XSD is generated. However when we execute webservice, 1st child record is repeated multiple times (based on total child records) Other child record

  • I have installed new HDD in macbook pro model mid 2010 , my laptop restarts after sometime, why ?

    i have purchased a laptop from friend , its MACBOOK PRO core i5 2.53(520M) , 500 GB , 4 gb , model mid 2010 , he took the hDD and i installed the new one made by toshiba sata HDD 2.5inches , the problem is laptop restarts after some time and to varif