A Continuous running function in webdynpro

hi all,
I wanted to know if a continoussly running function in the background can be run in webdynpro. For eg in my view if i enter in the morning a label should say "good morning" and afterwards a function should be running in the background which will change the caption of label to "good afternoon" when its afternoon and something like that. so in brief an event should always be fired without user interaction.
Regards,
Jayant

hi Jayant,
You can use timed trigger UI element. Write the function you want to run in an action and map it to the onAction of TimedTrigger and that will be executed after the time specified in the delay property of this UI element.
Regards,
Jaydeep

Similar Messages

  • Passing data from a subvi to the top level with continuously running loops

    Hi All,
    This is a very simple question, for some reason the data available at a subvi indicator is not making it to the top level vi. I think it might be something to do with the while loop I am using but I cant figure it out, any help will be appreciated. I don't think I fully understand how the data gets out of a continuously running loop.
    GPSdisplay runs a driver called GPS.vi (im not worried about my event structure just yet which might be wrong, but I am yet to test that bit yet) Probe 1 should have the values from GPSCluster
    Loop within GPS.vi. GPSCluster (Probe 2) is being updated correctly
    I cant work out why the data is not being passed to GPSCluster in the top vi
    Solved!
    Go to Solution.

    Hi bennymacca,
    I think you are on the right track with an FGV. You can do this fairly easily with the GPS vi that you have.
    Before I go any further, your GPS while loop will only return the last reading, and because the "Read" boolean output state is FALSE, it will not stop. Do you see it exit at all? From the logic I read, once entering this while loop it won't stop until told to.
    There are a 3 options you can try.
    1) Use an FGV, as you are looking into. To do this you will need to change the state boolean to TRUE and put shift registers in for the GPSCluster - to parse the information around, holding it each time the vi is called and exited. Outside the while loop you will wire up the Cluster to the indicator that you wish to collect (OR, you could have it inside the case statement where it is read - be careful here, though). 
    2) in the main code, above the sequence frame you can place the GPS vi while loop (the "Read" one), having the state boolean wired to a Stop button local variable. This while loop will start depending on how LV feels, so wire an error line to both the While loop and Frame start (indicating that both are to run in a parallel fashion), OR you can put it in a case statement and say 'go' when you want to start reading. With this while loop, you can then output the Read data directly into your Cluster variable as it is generated.
    But, with (2) you are moving yourself away from the purpose of the GPS vi, which would be to bring all functionality of the GPS functionality into one sub vi - which is a good idea.
    3) put a condition on the "Read" case statement boolean state - only make it TRUE when you wish to stop reading data (do you have a time or condition you can refer to here?). Even doing so, you would/may still need shift registers on your while loop to retain data for each iteration.
    I hope all of that helps. Cheers. David.

  • Continue run MDX Query

    I want to execute a query which can continue run till 2 minutes .
    For Example- If I run below query, that should be run for 2 minutes with completion or Fail
    SELECT [Date].[Calendar Year].FirstChild on 0
    FROM [Adventure Works];
    Please Help
    -Ashish

    Hi David,
    This query hardly takes 2 second to complete. But I want that this should be continued  until it completes 2 minutes. Means - session of this query continue till 2 minutes instead it gets complete.
    Hi Ashishsingh,
    As Olaf said, we can use SQL. However, based on my research it seems there is no such a functionally to workaround this in MDX currently. If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that
    they can be, Microsoft might consider to add this feature in the following release after official confirmation.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Running Function Module in Background with Update Task is not working

    Hello Friends,
    I have a "Z" Report Program where I am running this Report in Background using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE. I am calling this in BADI.
    In this Report I am calling another Function Module PRICES_POST which is a standard Function Module and in this FM there is another FM 'CKML_UPDATE_MATERIAL_PRICE IN UPDATE TASK'. Now when I am running the BADI these values are not being updated.
    Friends I would like to know whether can we run Function Modules which are  included with UPDATE TASK as Background Job program?
    Kindly help me in providing your valuable suggestions in proceeding further.
    Thanks and Regards
    Pradeep Goli

    Usually the sequence of CALLs in your report should look like
      CALL FUNCTION 'CM_F_INITIALIZE'
        EXPORTING
          msg_on_screen = c_x.
      CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.
      CALL FUNCTION 'PRICES_CHANGE'
        EXPORTING
          actual_bdatj = f_matpr-pp-bdatj
          actual_poper = f_matpr-pp-poper
          bukrs        = p_bukrs
          budat        = p_date
          xblnr        = p_xblnr
        TABLES
          t_matpr      = t_matpr.
      READ TABLE t_matpr WITH KEY pp-xerror = ' '
                                TRANSPORTING NO FIELDS.
      IF sy-subrc <> 0.
        MESSAGE i046(ckprch).
      ELSE.
        CALL FUNCTION 'PRICES_POST'
          EXPORTING
            i_bktxt    = p_bktxt
            bukrs      = p_bukrs
            lis_update = 'X'
          TABLES
            t_matpr    = t_matpr.
      ENDIF.
      COMMIT WORK.
    If you forget the COMMIT-WORK each and every FM called in UPDATE TASK will not be triggered.
    Regards,
    Raymond

  • What's the authorization to run function CSAP_MAT_BOM_OPEN

    let's say, i wrote a report to change the structure of a BOM, using function CSAP_MAT_BOM_OPEN to open the bom, followed by function CSAP_BOM_ITEM_MAINTAIN and CSAP_MAT_BOM_CLOSE to change the bom and close the bom.
    well, I could use this report while other could not.
    When I used others sap account to run function CSAP_MAT_BOM_OPEN in SE37, I was warned I didn't have the authorization to run this function.
    so i want to know the authorization to use this function.
    best regards.
    Jim

    Hi,
    The std. authorization objects for BOM will be checked (C_STUE_BER, C_STUE_WRK etc).
    Regards,
    Vivek

  • ABAP routine in infopackage that runs function in ECC

    Hi All
    I need to have dynamic filter in the info package
    I have program in ECC that brings me the value that I need to filter in my info packege
    I want to use  ABAP routine in infopackage that runs function in ECC and brings the value that was received from the ECC function
    Is that possible?
    Thanks

    Hi All
    my CTO found the following option
    function module that is "remote-enabled module "
    then you call CALL FUNCTION 'Y_FM_IDOC_CATSDB' DESTINATION 'SAP4.7E'
    you need to define it in SM59
    code example
    data: BEGIN OF IT_SOBSL OCCURS 0,
          SOBSL(2),
          END OF IT_SOBSL.
    DATA: ls_range type STANDARD TABLE OF rssdlrange WITH HEADER LINE.
    SELECT /BIC/ZSPEPROCI FROM /BIC/SZSPEPROCI INTO TABLE IT_SOBSL
                          WHERE /BIC/ZSPEPROCI NOT BETWEEN 'AA' AND 'ZZ'
                          AND /bic/zspeproci ne '' .
    BREAK-POINT.
    LOOP AT IT_SOBSL.
    ls_range-IOBJNM = 'SOBSL'.
    ls_range-LOW = IT_SOBSL-SOBSL.
    ls_range-SIGN = 'I'.
    ls_range-OPTION = 'EQ'.
    APPEND ls_range .
    ENDLOOP.
    loop at ls_range.
      append ls_range to l_t_range.
    endloop.

  • The new version of firefox does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    Firefox automatically loaded a new version recently. The new version does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • How to run functions when changing states?

    Hi everybody
    I want to run function when changin states
    For example I change my state and write something on Panels title and when this state appears i want to read my title and to do smth
    How can I do it. Where is my mistake?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle"
        width="340" height="250"
        layout="absolute"
    currentStateChange="StateChangez();">
    <mx:Script>
    <![CDATA[
    public function StateChangez():void
    if (currentState=='a')
    //Alert.show('a');
    if (Panel1.title=='New')
    Alert.show('New');
    else
    Alert.show('Edit');
    else
    Alert.show('b');
    ]]>
    </mx:Script>
    <mx:states>
      <mx:State name="a">
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button2}"/>
       <mx:AddChild position="lastChild">
        <mx:Panel x="0" y="40" width="340" height="210" layout="absolute" id="Panel1">
        </mx:Panel>
       </mx:AddChild>
       <mx:RemoveChild target="{button3}"/>
      </mx:State>
      <mx:State name="b">
       <mx:RemoveChild target="{button2}"/>
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button3}"/>
       <mx:AddChild position="lastChild">
        <mx:Label x="10" y="222" text="b"/>
       </mx:AddChild>
      </mx:State>
    </mx:states>
    <mx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </mx:Script>
    <mx:Button label="New" x="10" y="10" id="button1" click="currentState='a';Panel1.title='New';"/>
    <mx:Button x="68" y="10" label="Edit" id="button2" click="currentState='a';Panel1.title='Edit';"/>
    <mx:Button x="10" y="218" label="b" click="currentState='b';" id="button3"/>
    <mx:Button x="265" y="10" label="Read" click="StateChangez()"/>
    </mx:Application> 
    Message was edited by: AtomicRussian

    Hi,
    I think your event handler "StageChangez()" is called before your Panel title is set. Try first change title, then change currentState.
    Oh yes my mistake, you are adding it when state changes. You can put your Panel's title change in StageChangez() and after that you can do some actions.
    Regards,
    Adrian
    Message was edited by: AdrianWiecek

  • Error when running function

    I'm using Oracle XE Beta 1.
    I can create and deploy .NET stored procedures without any errors or warnings.
    But when I run the function from ODT I get the following errors:
    Run Function - [email protected]
    ORA-20100: The parameter is incorrect.
    ORA-06512: at "SYS.DBMS_CLR", line 143
    ORA-06512: at "HR.ADD99", line 7
    ORA-06512: at line 1
    The code that I used for my stored procedure I borrowed from a webcast and it compiled and deployed just fine.
    public class Class1
              public static int Add99(int val)
                   return val+99;
    The return and parameter datatypes that I specified in the deployment wizard are both BINARY_INTEGER. So I don't see why I am getting this error.

    Jimmy,
    There's a bug where if you have .NET 2.0 installed on the same machine as the database you will get this error. If that is the case, you'll need to uninstall .NET 2.0 on that machine until the next release of XE comes out.
    (This will also affect Oracle Standard and Enterprise on windows)
    Christian

  • Pop up window doesnt closing during continuous run

    i have developed pop up window for my application... im getting the pop up window to condition in my application... im facing the problem in closing the the pop up window during continuous run, wen i click ok its not closing in continuous run... can any one help me.. im attaching my file please check and give me the solution
    Attachments:
    POP MAIN.vi ‏11 KB
    POP SUBVI.vi ‏6 KB

    ok..If you carefully look at the vi you will come to know the answer for your question.
    The reason is because when the value of the slider becomes greater than 8 the pop up will appear and when you close, it will close (for say i=1). Now again the pop up will appear and close when you hit the close button. (say for i=2).
    This operation will continue unless and until some one will change the value of the slider to be less than 8. or the vi is aorted
    Also do not use the contineous run button unless and until you are debugging something. Instead use a while loop.
    A better approach would be to use a event structure wired with a valus change event for the slider.
    Regards
    Guru (CLA)

  • RUN FUNCTION PANEL error

    Hi, experts,
    I'm trying to execute "RUN FUNCTION PANEL" on CVI. During constructing driver, I checked the function panel by this command, but it was failed with error message, Interactive Execution error - Unresolved symbol: _Math_Average.
    I do the material in the basic CVI text, and it is very simple function. And additionally, it ran correctly when I completed the driver, then I believe that programming should be correct.
    So I'm struggling with editing any settings, but I could not find the solution.
    Does anybody have any solution or hint?
    Thanks,
    Solved!
    Go to Solution.

    Hello TetsuyaU!
    The most obvious solution for this problem would be to enable the Interactive Execution window environment options found in Options » Environment » Interactive Window. These options specify whether project files or loaded instrument drivers are used by the Interactive Execution window. Otherwise, if the corresponding option isn't enabled, the Interactive Execution window fails to link with the symbol from your instrument driver, and you get an unresolved symbol error.
    Does this work for you?
    Best regards!
    - Johannes

  • Running function mdule CUSTOMER_UPDATE

    I am running Function Module CUSTOMER_UPDATE to update the payment block field in the customer master. I am populating the following fields in the FM;
    KUNNR
    BUKRS
    ZAHLS
    I leave the other fields blank. But when I run the FM, it removes the values from the other fields in the customer master since I left it blank in the FM.
    How can I stop that from happening?

    dear friend,
    you would use t-code XD99 to block / unblock customers...
    regards,
    P.S. regarding that particular FM i would recommend to try just one customer (until you upadet it successfully) trying
    to fill more than 3 fields..say, did you populate MAN (client) field?

  • How to Run Function Modules.

    Hi folks.
    How do you run function modules?
    e.g.
    The function module
    RSBB_URL_PREFIX_GET will show information on URL prefix, path and server name in order to configure for web reports.
    I am trying to figure out  how to carry out the task step by step on BW system.
    Thank you.
    Kara.

    Hi:
    Test run in BW -
    go to transaction SE37
    RSBB_URL_PREFIX_GET
    give this info when you hit Test/Execute
    Handler class: CL_RSR_WWW_HTTP
    Protocal:
    Message Server: X
    Hit execute again.
    Chamarthy

  • I am trying to send items to the Trash but it is continually running and will not complete.

    I am trying to send items to the Trash but it is continually running and will not complete.

    Relaunch the Finder, then from the Finder menu bar, select
              Finder ▹ Preferences... ▹ Advanced
    and uncheck the box marked
              Empty Trash securely
    Try again to empty the Trash.

  • How to use HOST call DOS continuous running problem but NOT hold Forms scre

    In my Forms, I have a Button a start a MP3 recorder program to record voice, I use HOST command to init the program successfully. However, since the MP3 recorder program in continuous running, the HOST command hold my Forms screen until the MP3 program stop.
    I have try to use Open_form to open another form to start this MP3 program. It still hold the whole Forms system.
    Is there any solution to start a continuous running DOS program but NOT hold the Forms screen?
    Thank You !

    You didn't provide your host-command, so i simply guess its something like
    HOST('"c:\Program Files\mp3.exe" someoptions');instead of calling the program directly, you could use a commadn batch along with the start-command, for this should launch the program asynchronously:
    HOST('cmd /c start "c:\Program Files\mp3.exe" someoptions');hope this helps.

Maybe you are looking for

  • New iSync 2.2 still not working with Nokia 6230

    I was very pleased to see iSync 2.2 come out yesterday and have support for the series 40 phones - however after Installing 10.4.6 on my new MacBook Pro, and opening iSync, the phone is found by Add Device, but when I go to add it I get the message:

  • Hyperlink in PDF changed

    the Rev is adobe reader x 10.1.4, in the company internal website,after I downloaded some  PDF files ,the hyperlinks indise the files are all pointed to my PC disk, why not the website address like before?

  • Using class files with applets

    I've converted a college project, a calculator, into an applet for a website resume. When the html file that loads the applet is opened on a machine with a JVM, the applet works fine. When I tested it on a machine that doesn't have a JVM, the applet

  • Error message at loop point of main menu...

    Anyone ever get this message when building a DVD? http://www.reflexive-cinematics.com/miscimages/errormessage.jpg I keep getting this damn messages with Every adobe application. I was having tons of issues with encore 1.0 so I upgraded and bought 2.0

  • HT4759 iCloud Control Panel on Windows XP

    Are there any workarounds to be able to download & use the iCloud Control Panel on Windows XP?