Scheduling same program inbackground after reading values.

Hi,
I have a sel screen, where user is entering the file path,on click of a button , i am reading this file.
I have a check after at sel-screen, that if sy-batch NE 'X', then some code(do in foreground).
else (background) it will go to start-of-selection event, where i am manipulating with the file.
But if after reading the file, user executes this program in background, the file data is getting refreshed.
Please help.
OR - i would like to put in simple words.
Is it possible to execute a program in background from F9 and in foreground using a pushbutton on screen. (after reading values and manipulating them on at-selection screen event)
Regards
Manu
Edited by: Manu on Sep 25, 2010 6:23 PM

If you save the data in a Database table, then in the background the program can do a SELECT to recover data.
or
Why you don't create a second program for backgroup, then ...
1st Program for Read, process and store data (foreground)
2nd Program to process data (to be exec in background)
In the 1st program you can use a checkbox for launch the second program (in background) :
  - Using the command SUBMIT you can pass values from the first program to the second program
    or
  - Creating a JOB for call the second program (functions JOB_OPEN, JOB_SUBMIT and JOB_CLOSE)
Regards.
JMV

Similar Messages

  • Recently i started getting repeated download of the same email even after reading it and often after moving it to trash.

    i have outlook accounts. sometimes it works properly. sometime i get repeat download on one account, sometimes two or rarely three. this is new within the past few weeks. i run win8.1 up to date. thunderbird is up to date. i have made no configuration changes on my thunderbird settings. this is driving me crazy. i use norton internet security. i tried turning off email scanning. made no difference. it seems that the only sure way is to empty my trash, which i like to delay. sometimes i don't have to empty the trash...

    i continue to have this problem and it is driving me nuts. i get the same messages repeated. somehow there is a failure in communication between TB and my outlook account. everything seems to be configured appropriately.
    your suggestion to uninstall TB and do a new install seems wise. i don't want to lose any saved messages, etc. is there an easy way to backup the TB data?

  • I have the same problem and after reading all of these posts I still don't see an answer! HELP

    Same problem "Set the PC to start scanning:  Need an answer, no help so far.

    Hi, thecooktooo!
    So that the Community can help you better, we will need to know exactly which model of printer or scanner you're using, operating system is running on your computer, and which applications you're trying to scan with. That, and any other details you'd like to give will help the Community better understand your issue!
    If this is a time-sensitive matter, our US-based technical support team is standing by, ready to help 24/7 via Email at http://bit.ly/EmailCanon or by phone at 1-800-OK-CANON (1-800-652-2666) weekdays between 10 AM and 10 PM ET (7 AM to 7 PM PT).
    Thanks and have a great day!

  • Use AO and AI in the same program

    Hello,
    I like write a program to use AO and AI in the same program.
    In this program write a timer a voltage to a AO port and after then it should read a voltage.
    I know how I write voltage to a AO port and read a voltage on a AI port, but not in a the same program.
    The read- and the write-Task, should work as soon as possible (<=1ms). 
    (My timer have 100us ticks) 
    what should I inilize for the PCI6229 card, to use AO and AI and in which order?
    Can I have a example or pseudocode?
    Best regards
    Heiko Mayer 

    Hi Heiko-
    There is very little overlap between the AO and AI examples, so you should be able to piece the code together pretty easily.  I would offer these suggestions:
    1.  These lines should only be executed once, and they should be done before any AI or AO specific initialization is done:
    configureTimebase (board);
    pllReset (board);
    analogTriggerReset (board); 2.  It does not matter which order you perform the AI or AO initialization, but I would recommend waiting to unground the AO reference (by   board->AO_Calibration.writeAO_RefGround (kFalse) until all of the AI and AO init is done.  This will help to avoid any glitching on the AO lines.  The only steps that should be saved until after ungrounding the reference are the Start operations for AI and AO (depending on the AO mode you use, there may not be a specific Start operation to call.  Consult the MHDDK examples for more info about the required steps).
    Hopefully this helps-
    Tom W
    National Instruments

  • Create spool in a program and read spool in same program

    hi all,
    i have a requirement like i have to create a spool in a program and should read that spool and send a email in same program.
    i m done with creating spool and sending email but the problem is when i execute a program the spool is created only after total program execution, is there a way to create a compleate spool before finishing the report execution.
    thanks,

    Solution:
    call function 'GET_PRINT_PARAMETERS'
          exporting
            destination    = 'LP01'
            copies         = count
            list_name      = 'ZTEST'
            list_text      = 'ZTESTSPOOL'
            immediately    = ' '
            release        = 'X'
            new_list_id    = 'X'
            expiration     = days
            line_size      = 90
            line_count     = 65
            layout         = 'X_PAPER'
            sap_cover_page = 'X'
            receiver       = 'SAP*'
            department     = 'System'
            no_dialog      = 'X'
          importing
            out_parameters = params
            valid          = valid.
        new-page print on parameters params no dialog.
    write : hi this is the test for spool.
    new-page print off.
        commit work.
    write : / sy-spono.   "system variable for spool no
    solved thanks
    anupama.

  • How to schedule job to execute after 5 seconds gap using the program

    Hi ALL,
    How to schedule the program to run after 5 seconds to execute using JOB_OPEN,JOB_CLOSE,SUB_SUBMIT function modules in which parameter I should give this 5 secnods?
    Regards
    mahesh

    Hi,
    You can use the import parameters of function module JOB_CLOSE
    SDLSTRTDT & SDLSTRTTM
    to pass the required start date and time (respectively) of your background job. That is, if you want the job to be scheduled and start at a fixed time (as in your case 5 seconds in the future), you can determine the start date and time as 5 seconds ahead of sy-uzeit and pass the resultant values to the mentioned importing parameters.
    Cheers,
    Aditya

  • Scheduling of Concurrent Program stops after completed successful.

    Hi
    I need to create a check or procedure to create a alarm, which helps in checking the scheduling of all those concurrent programs whose scheduling has been stopped after completing successful. There has been lot of occurrences in our environment that led to programs not running for next run.
    Aviral

    If you have a trace, then just post the tkprof output here (put the tag before and after it).
    Hopefully you've traced the session with WAIT EVENTS, so we can see where much time is being spent.
    If not, I suggest you first trace the session again with WAIT EVENTS.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to schedule a program in background after 5 or 10 sec

    Hi All,
           Can anyone tell me how to schedule a program after 5 or 10 sec in background after the transaction is completed.
    It is not a custom transaction. I want to execute a Z program in background  in a BADI
    Regards
    Yathish
    Message was edited by:
            Yathish Gundlupet

    Programattically?   You can add this code to the end of your transaction(if it is custom, of course).
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'THIS_JOB'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit <your_program_name
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Kick job off 10 seconds from now.
      sdate = sy-datum.
      stime = sy-uzeit + 10.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                sdlstrtdt = sdate
                sdlstrttm = stime
    Regards,
    RIch Heilman

  • How can I get my new mac to open same programs after reboot

    I now have a new imac with 10.6.7
    Is there any way like a pc to have it open the same programs and files as it had open before like windows does with windows updates. I need this mainly for my browsers and tabs and mike outlook 2011 email.

    In Mac OS X 10.7 Lion, not yet released to non-developers, this may be achieved with this new functionality:
    Resume
    Resume in Lion allows users to restore your app exactly where they were prior to logging out or restarting. Apps that were last running launch automatically and all open document windows return to where they were. The system automatically manages apps and conserves resources by closing apps that are not being used.

  • Same Execution plan But different consistent read values

    hi,
    my db version 10.2.0.3
    os version solaris 10.
    i have a query which has same execution plan but with diffrenet consistent read values when optimizer_mode is RULE and CHOOSE.
    what may be the cause of that?
    thanks,
    Here is the query:
    SELECT *
    FROM XXX
    WHERE id = 4567
    RULE based:
    | Id | Operation | Name |
    | 0 | SELECT STATEMENT | |
    | 1 | TABLE ACCESS BY INDEX ROWID| XXX|
    | 2 | INDEX RANGE SCAN | XXX_INX_ID |
    Note
    - 'PLAN_TABLE' is old version
    - rule based optimizer used (consider using cbo)
    Statistics
    1 recursive calls
    0 db block gets
    5 consistent gets
    0 physical reads
    0 redo size
    1973 bytes sent via SQL*Net to client
    492 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    COST Based:
    | Id | Operation | Name | Rows | Bytes | Co
    st (%CPU)|
    | 0 | SELECT STATEMENT | | 1 | 107 |
    4 (0)|
    | 1 | TABLE ACCESS BY INDEX ROWID| APPOINTMENT | 1 | 107 |
    4 (0)|
    | 2 | INDEX RANGE SCAN | APPO_INX_MASTERAPPOID | 1 | |
    3 (0)|
    Note
    - 'PLAN_TABLE' is old version
    Statistics
    0 recursive calls
    0 db block gets
    48120 consistent gets
    0 physical reads
    0 redo size
    1973 bytes sent via SQL*Net to client
    492 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed

    873792 wrote:
    hi,
    my db version 10.2.0.3
    RULE based:
    The Rule Based Optimizer is NOT supported for V10+

  • How to make labview program to get average value of 200 reading from multimeter (by using loop)

    Hello
    How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter  but I like to get average value of all of 200 reding how can I do that?
    Thanks
    Wee
    Solved!
    Go to Solution.

    Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the  History Data.
    1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
    2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
    3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
    Easiest running average ever.
    Message Edited by Broken Arrow on 04-07-2010 11:36 AM
    Richard
    Attachments:
    EasyAvg.jpg ‏8 KB

  • Good morning , I bought my mac pro 13 ' in 2011 (OX 10.10) , in March 2014 I had to replace the video card , fortunately under warranty. Today, after only eight months starting with the same problems ! I read online that some mac products in 2011 wer

    Good morning , I bought my mac pro 13 ' in 2011 (OX 10.10) , in March 2014 I had to replace the video card , fortunately under warranty.
    Today, after only eight months starting with the same problems !
    I read online that some mac products in 2011 were put on the market defective , you can get a warranty extension or even a replacement mac?

    dubem747 wrote:
    It looks like your phone has a some virus, use your computer to scan and remove it.
    not possible for it to have a virus and a PC would not know how to scan the OS as its protected
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • HT3680 where can i find this program after reading the whole story?

    where can i find this program after reading the whole story?

    could this knowledge base article be what your looking for?:
    HT3680

  • SPOOL_INTERNAL_ERROR spool overflow when submitting the same program

    I am submitting the same program via job with different seletion screen values after JOB_OPEN, and then SUBMIT statement and JOB_CLOSE FM. But this job get cancelled with message "ABAP/4 processor: SPOOL_INTERNAL_ERROR" . The submit is as follows:
    SUBMIT (sy-repid) USER sy-uname
             VIA JOB 'ZTP_SAl_REG_MONITOR_JOBS'
             NUMBER l_jobcount
             TO SAP-SPOOL
             SPOOL PARAMETERS fp_user_print_params
              NEW LIST IDENTIFICATION 'X'
             WITHOUT SPOOL DYNPRO
             WITH rb_monit EQ 'X'
             WITH s_jobcnt IN s_jobcnt
             WITH p_date EQ p_date
             WITH rb_row EQ rb_row
             WITH rb_col EQ rb_col
             AND RETURN.
    Is it possible to use the same program to be scheduled....Let me include that the submit is happening with rb_monit = X and it has separate branch...so infinite looping can not happen.

    Hi Sumit,
    I hope that the flag is ensuring that it doesnt go into infinite loop. You may wish to check that once bcz Spool overflow seems to be bcz of infinite loop or bcz of layout issue.
    Goto SP01 in the same client where you have scheduled the job.
    Check the spool no. which was generated bcz of the job.
    Double click on the STATUS of the spool ( it should be in red background color).
    System will give a popup with status details.
    Again double click on the status. System will again give a popup.
    The popup will give the details of why the spool ran into errors.
    Also check the layout.
    Thanks,
    Best regards,
    Prashant

  • UIWebView cause "Program exited with status value:101"

    My application uses both imagepickercontroller and UIWebView as subviews. it crashes frequently, I guessed the reason was related to imagepickercontroller at first, but after doing more testing , I found it is UIWebView cause crash and exit silently problem with message in console "Program exited with status value:101". I tried to write a simple test app which contains only a window and an UIWebView as subview to load pages with javascripts like maps.google.com, it exit silently always after opening such pages after a while. I also tested UICatalog on iPhone, get the same result. any ideas on this issues??

    Error 101 means iPhone runs out of Memory and ends your application.
    Set a breakpoint to the "applicationDidReceiveMemoryWarning" function or however it is called exactly.
    Also if you check object allocations and leaks with instruments you should be able to see a big memory footprint of your application.

Maybe you are looking for

  • Italian withholding tax report

    Hi all, Does anyone knows about a standard SAP withholding tax report specifically used to meet Italian requirements? kind regards, Camilla

  • How to resolve failures in picture transfers?

    When saving scanned pictures into iPhoto library, occasionally the picture will not transfer after I click Save. How can I resolve this occasional failure to transfer? Message was edited by: Moderator

  • SAP GUI for HTML

    Hello Everyone, I have successfully implemented XSS on our portal. Also, UWL is configured and working correctly. However, upon trying to access SAP GUI for HTML through the UWL, I get an error. This is an example of an error: Transaction SWNWIEX+CUR

  • How to acheive this scnerio in PL/SQl using collections

    Hi All, In my apllication we are handling two types of procedures which runs based on the jobs. Due to some problem few records where got missed in prouduction. We have tried to run this jobs manaually one by one and it is taking time to execute.. I

  • Can't find the toolbar

    Hello to the Community, i'm new here so i have a (simple?) question. I doesnt find the toolbar anymore (see picture). I have since 2 years photoshop so i know a little bit about adobe programs, but i cant find it in dreamweaver CS6. It shouldnt be so