Regarding program running in background

Hi experts,
     I have one program which will give me ALV output, But since there are many records it is going for a TIME OUT ERROR.
I found one solution:-
I will keep a check box in the selection screen, if I select this check box the program need to be executed in back ground mode and the data need to be stored in application server.
Since the requirement is we need to store the data in Application server.
So can any one give any example how to implement this?
Thanks in advance,
Suresh

Hi,
This is code which will help u schedule a program in background via code.
Submit report as job(i.e. in background)
Job open
  call function 'JOB_OPEN'
Insert process into job
SUBMIT zreport and return
                with p_param1 = 'value'
                with p_param2 = 'value'
                user sy-uname
                via job jobname
                number jobcount.
  if sy-subrc > 0.
                                       "error processing
  endif.
Close job
    call function 'JOB_CLOSE'
If you want to execute a Program in Background,
Go to SE38--> Write Z program name ---> execute it -
> Enter inputs in selection Screen ( if there) -> then Press F9 or Select Program in Menu bar--> select Execute in Back Ground.
You can also use  T Code SM36 and SM37.
Thanks & Regards,
ShreeMohan
Edited by: ShreeMohan Pugalia on Jul 16, 2009 8:04 PM

Similar Messages

  • How do I delete programs running in background on old I phone iOS 5

    How do delete programs running in background on old I phones

    On iOS 5 double-click home button, touch an hold on an app icon until a "-" appears. Touch this to remove the App.

  • How do I download mozzikla 3.5 ?? Mozzilla 3.6 takes up to much space and has a program running in background storing crashed files.

    how do I download mozzikla 3.5 ?? Mozzilla 3.6 takes up to much space and has a program running in background storing crashed files.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30729; .NET CLR 3.5.30729; msn OptimizedIE8;ENUS)

    That crash appears to be casued by the Facebook plug-in.
    Create a new account (systempreferences -> accounts or Users & Groups on 10.7 and 10.8), make a new Library in that account, import some shots  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.

  • New operating system..... How do I close programs running in background

    How do you close programs running in background with new op system?

    Sherylewyatt wrote:
    How do you close programs running in background with new op system?
    It's an often misunderstood topic.  The programs that are "running" (and where they are actually using data and battery) can be found in "Notifications" and "Background App Refresh."

  • File generated when program run in background

    Hi,
    I have program that generates a report & all the data in the report output is down loaded to a file .please somebody make it clear:
    if I run the report in background will the file still be generated.
    thanks,
    reddy.

    Hi,
    If the program has logic to transfer the data to appliacation layer, then it works. Other wise it is not possible to download the data into your desktop by running in Background.
    Regards,
    Ashok

  • How to debug a program running in background ?

    How do we debug a prorgram running in the background ?
    Is BREAK-POINT statement is used for this or ne other method exists
    I have gone thr the standard documentation help for BREAK-POINT Statement, but not getting it.
    Regards,
    Nitin

    Hi Nitin, try to do this:
    1. use the following code instead of break-point:
       data a type c.
       do.
         if a = 'X'.
           exit.
         endif.
       enddo.
    2. while the program is running in background, launch transaction SM50.
    3. select the program in the list and choose Program/Mode -> Program -> Debugging
    4. at this point the program should stop in the infinite loop. to exit from the loop, set the variable a to 'X'
    Best regards, Manuel

  • Program running in background

    one program is running in background.But we want to see the selection screen and the final output. How to get this.

    hi,
    do this way ...
    Execute the report from SE38 and in the selection screen Program-> Execute in Background ...and the output will be sent to the spool which you can view via SP01..
    Regards,
    Santosh

  • How to make a program run in background?

    Is there any ways to make an invisible program with java? a program that is running in background but the user cannot see it and it's not in the Start bar and the user cannot close it.

    There are also 3rd party software that lets you install a java program as a service in winnt/2k/xp so that you can start/stop it from the service manager, doesnt even matter if the java program is gui based or not, as there are options (in win2k at least) in the service manager that allows the program to interact (think show gui) or not...one software called JNT comes to mind..
    Anyway, if you're using win98/me equivalent, then just use javaw.exe like suggested by previous posters.

  • Programs running in background

    I noticed some of the programs running in the background of my computer are using up a lot of memory so I was wondering if it is it a good idea to quit mdimport, pipedaemon, pbs and/or ATSServer? What would happen if i did.

    Welcome to the Forums!
    Not a good idea, no. What is "a lot of memory"? In general, the Mac OS is very good at memory management. mdimport is for system indexing (Spotlight) and ATSServer manages type (fonts), you need to leave those running. pipedaemon is apparently part of the HP printer driver package, I have no idea what pbs is.
    Having said that, on my system none of these processes use more than 10-12 MB each, of my 2 GB total - that's pretty insignificant.

  • Program running in background and force shutdown

    I have a Pavillion s5220f desktop. I quite frequently get the message that there is a program running in the background and do I want to force a shut down. I have always chosen to force the shutdown. How can I find the program that is running in the background? Also, could this background program cause a more than five minute startup?

    Next time it happens take note of what you are doing and what programs are open.
    One thing you could do, which will also speed up your start time is to keep non-essential programs from loading when Windows first starts up. Using the Microsoft Configuration Utility, you can selct what programs and processes load at startup.
    I don't know which operating system you are using, but here is an HP Support document on using MSCONFIG in Windows 7, the steps are similar for other versions of Windows:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01853706&cc=us&dlc=en&lc=en
    Also, here is an HP video that gives an overview of MSCONFIG:
    http://www.youtube.com/watch?v=zz30zAnRx8A
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • How do i turn off programs running in background with current updated software?

    How do i stop the apps running in background on updated iphone software?

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • How do I turn off programs running in background

    With the upgrade to i0s 6, my ipad is using up battery quickly and I can't turn off the programs running in the background

    Double click the home button, touch and hold an app along the bottom until they all start to jiggle and get a red circle with a minus sign, touch each red circle and that app will be dismissed...do that for each app.

  • Regarding program execution in background

    Hi ALL,
    I have a report with more than 255 columns if i execute in foreground no problem but if i execute in background  it is displaying upto 255 columns only it is not displaying completely. (My report has 340 columns) . So please anyone tell me how could i display more than 255 columns in background .
    Thanks & Regards
    K. Naveen Kumar

    search for the OSS Note.
    In 4.6C you need to create a Z program ( code given in OSS Note ), it will take the spool number as parameter.
    Further you also need to crate a new page format ( Xn SPAD) by copying a standard one ...like Z_65_340
    That also need to be attached with the printer device type ..for local SAPWIN.
    While specifying the job in SM36, in print specification , specify the new wider page format.
    Further , aftre the job is run , check our the spool number created and then see the spool using the OSS - Z program.
    No guarantee though
    Cheers,
    Ram
    cheers,
    Ram
    Message was edited by: Ram Manohar Tiwari

  • Withholding taxes not updated when program run in background

    Hi,
    in a z1 report i do:
      SUBMIT z2
      VIA JOB lc_jobname
       NUMBER v_jobcount
         WITH p_fecha  = p_fecha                               
         WITH p_file   = v_file_in
         WITH p_e_file = p_efile 
         WITH p_client = p_client
         WITH p_test   = p_test  
          AND RETURN.
    within this z2 report i do:
              PERFORM mrm_invoice_create_call(saplmrm_bapi)     USING     s_rbkpv
                                                           tab_frseg[]
                                                           tab_co[]
                                                           tab_ma[]
                                                           c_rbstat_posted
                                                           space
                                                 CHANGING  invoicedocnumber
                                                           fiscalyear
                                                           return[]
                                                           f_subrc.
              IF test IS INITIAL.
                COMMIT WORK AND WAIT.
              ELSE.
                ROLLBACK WORK.
              ENDIF.
    the question is that if i run z1 report online there is no problem but if
    i run z1 report in background, withholding taxes are not calculated.
    After debugging this is what i´ve found out:
    1.- in PERFORM mrm_invoice_create_call(saplmrm_bapi) there is a call to fm FI_WT_POST IN UPDATE TASK
    2.- in FI_WT_POST table WITH_ITEM is updated
    i guess this could be due to a delay in updating the table so i´m considering doing a WAIT UP TO X SECONDS.
    why is it working in online mode but not in background mode?
    any idea?
    Best regards.

    Hi,
    in case someone is interested this is how i solved the question:
    i had badi MRM_WT_SPLIT_UPDAT implemented.
    in this badi implementation i had this code (among other checks too):
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
    this code avoided the background job case.
    It seems that In a background job sy-tcode is empty.
    so i just needed to add this:
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7' OR  sy-batch = 'X'.
    and then withholding taxes reappeared again.
    (so sad, so true... one day of debugging,  sigh)
    Best regards.
    Edited by: Pablo Casamayor on Feb 2, 2012 4:53 PM

  • Layout Change when program run in background.

    Hi All,
    I have a layout field on the selection screen. When I run the program in foreground, iam able to see the change in the layout in the output. When I select a layout name and run the report in background, Iam sending a file to the application server. Now, when I give the layout and run the report in background, the file iam sending to the app server should have the same layout which i have selected in the selection screen.
    Please help with some example code.
    Thanks,
    Guru Charan.

    Hi Amit,
    Thanks for the reply. The program can be run both the ways. When it is run in the foreground, Iam changing the layout with the help of REUSE_ALV_GRID_DISPLAY. It is working.
    But when iam running in the background, I have to send a file to application server with the same layout.
    thanks,
    Guru Charan.

Maybe you are looking for

  • Key Reports for Customers (Follow-Up from P2P)

    Currently, we are working intensively on enhancing the reporting area in B1 and XL Reporter. Our ambition is to reach a situation where most of the required reports will be installed automatically. We would like to know your opinion about your prefer

  • Start up disc question

    Hi Tonight I've installed a new hard drive into my 2007 Mac Pro Using Carbon Copy Cloner the files have been copied from the original 250GB to the new 2TB. Everything appears to be working correctly (and faster!), the computer is booting correctly fr

  • IPhoto slide show music remotely through airtunes?

    I have an iPhoto slide show, and music for the slide show is set up through itunes (an itunes play list). itunes it set to play through speakers though airtunes, which works for regular itunes playlist playing. Can i get my slide show to play though

  • Installing elements 12 software on second machine

    I have Elements 12 installed on desktop but now buying a laptop and want to install it on that.  My software is registered with Adobe.  How do I do that? 

  • Error in patch 2669606

    Patch 2669606 Mistake appeared when performing patch: Error updating the master archive In logfile: Writing Undo archive /d01/2669606/backup/VISION/rapidcrm/java ERROR: I/O or zip error while attempting to read entry oracle/apps/ams/list/AmsListactio