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.

Similar Messages

  • 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

  • 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

  • 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."

  • When MRP run through background process in MDBT open PR and PO not comming?

    Hi,
    When MRP run through backgroung process in MDBT open PR and PO not coming in MDBT result.
    Pls advise accordingaly.
    Regards
    rk

    Ram,
    Either I am totally misunderstanding your statements, or your business people are misinformed.  
    The output of MD01 (MRP total run in foreground) and the output of MDBT (MRP total Run in Background) ARE IDENTICAL, provided you have selected the same parameters.  
    Neither output contains a discrete listing of open Purchase orders and Purchase requisitions.
    Standard output of both MD01 and MDBT are:
    1.  List of materials processed, with exception messages
    2.  Statistics
    In addition, both of these programs also write MRP records to the MRP databases, provided that the "Display Material List" parameter is set.  In this case, both of these programs will produce data that can be further reviewed and managed in MD05 and MD06. MD06 is the tool that most planners use to process the MRP database info.
    If you wish to see a listing of the entire MRP results (either MD01 or MDBT), then execute transaction MDLD.  This will produce either a spoolfile or a printed document.
    For the PO or PR listings, review my earlier suggestions.
    Rgds,
    DB49

  • Less coloumns displayed when report run in background

    Hi,
    There is a problem, when i run a report in background last few columns are not displayed. But when i run it in foreground all the columns are displayed properly.. Bt since the report hs to be run background, I need to fix this issue..
    Cn anyone explain why this is happenin and wht i cn do to rectify it?
    Thanks
    Keshi

    Hi,
    Use REUSE_ALV_GRID_DISPLAY and you will be able to run the report in foreground or background.
    If you must use OO ALV controls, you won't be able to run the program in background. In this scenario, I would check SY-BATCH and if it is set, I run REUSE* FM and if not I do CALL SCREEN..
    If you are using the ABAP Grid Control (OO object), you can still create the ALV list as a spool listing for the background job.
    The easiest way to do this is to put all the create object statements and method calls for the custom container and ALV grid object inside a subroutine (for example, present_grid).
    All that is required is a simple check of the sy-batch variable to determine if the program is being executed in the foreground or background.
    e.g. if sy-batch is initial.
    call screen 0100.
    else.
    perform present_grid.
    endif.
    In a PBO module of screen 0100, the subroutine present_grid is also performed.
    The set_table_for_first_display method will be invoked in the routine present_grid, however, due to the job being executed in the background, the ALV list output will be written as spool output for the background job.
    Regards,
    Srini

  • 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.

  • Default Layout for a report running in background

    Dear Friends,
    I have created a layout for report ME2L and set as default layout  (for every user)....
    Foreground execution picked the DEFAULT layout but when am trying to execute the same report in background, default layout is not picked but the STANDARD layout is shown in the spool
    Could you please suggest me how can i use same report layout for foreground as well as background
    Thanks in Advance
    Ana

    Atanu dey,
    If you wnat to download excel in back ground
    You have to download in application server only.
    EX:
    DATA :  v_filepath(80)     VALUE '/data/sapdata/inc/error_log/pme_br/',
      c_coma     VALUE ',' .
    OPEN DATASET v_filepath FOR OUTPUT IN TEXT MODE.
        IF sy-subrc EQ 0.
         LOOP AT i_errors_bat.
         CONCATENATE i_errors_bat-plant c_coma
                                 i_errors_bat-zzvendor c_coma
                           INTO v_string.
            TRANSFER v_string TO v_filepath.
          ENDLOOP.
       CLOSE DATASET v_filepath.
    Note : you can download in presentation server also.
    but it requires lot of authorizations and have to use
    FTP commands.
    Reason is Apllication server in back ground has to
    recognize the from which system request came.
    Better go for OPEN DATA sets.
    Don't forget to reward if useful.....

  • Some events are not dispatched when app runs in background

    My Android app has a TIMER event which fires once every second to connect a TCP socket (class flash.net.Socket) and send a request.
    A packet sniffer confirms that a socket is in fact connecting, request is sent, reply comes back and connection is closed, all happening once per second.
    Clearly, even with the app in the background, the TIMER event is occurring every second, because the timer handler is initating every socket.
    But not every closing connection causes a CLOSE event to dispatch, because my close handler is called less frequently.  Sometimes once in 3 seconds, 8 seconds or even longer.
    The CLOSE dispatches correctly once per second when the app is in the foreground.
    Why are CLOSE events being missed when the app is in the background?  What is the difference between a TIMER event and a CLOSE event, causing one to dispatch correctly but not the other?
    Thanks.

    I've narrowed my problem down by chopping pieces of code until it works, and I think I have it narrowed down to the code that uses FlexGraphing but need to check a bit more...
    It's odd that it works in Flex3 builder though, and there are no errors when I run in as AIR. In fact, the app RUNS, since it is in the task manager, but it won't appear.

  • Data is missing in Even Page when report running in background (spool)

    Hi
    I have this weird problem in my report. The report would run in background convert the data in to PDF from spool and then email it to people.
    Now when the PDF has more then 1 page the error occurs.
    It drops the last row from the even page. The total at the end and every thing shows correctly. If there r more than 2 pages then on page 3 the last row is not dropped and its all fine but again on page 4 it drops one record and on page 5 again its working fine.
    One thing is it also puts an extra line(horizontal line which is not in the code) on those pages where its unable to put the record and its always the last one on the even page. I also looked up the spool. Its doing it in the spool too. So i think its not the PDF converter its when the spool is getting created for some reason its droping the rows for the even pages...
    Did any one else encountered some thing like this? please help.
    Thanks
    Message was edited by:
            Anwarul Kabir

    is there any problem with Background spools with SAP? We are running R3 here. And looks like its the spool background job that's creating the error. When i execute the report it shows all the record in print preview or if i print it.
    Please Help!

  • 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.

  • How to change which programs run at start up

    Hello,
    I am just trying to speed up and clean up my machine.  I would like to know how to control which programs run at start up.  Also any other suggestions on how to keep everything running smoothly and effifiently.  General maintenance type stuff.
    Thanks, Jason

    How to maintain a Mac
    1. Make redundant backups, keeping at least one off site at all times. One backup is not enough. Don’t back up your backups; make them independent of each other. Don’t rely completely on any single backup method, such as Time Machine.
    2. Keep your software up to date. In the Software Update preference pane, you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis. This is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” “extenders,” “cleaners,” “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” or "utilities." With very few exceptions, this kind of material is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    The only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Never install any third-party software unless you know how to uninstall it.
    The free anti-malware application ClamXav is not crap, and although it’s not routinely needed, it may be useful in some environments, such as a mixed Mac-Windows enterprise network.
    4. Beware of trojans. A trojan is malicious software (“malware”) that the user is duped into installing voluntarily. Such attacks were rare on the Mac platform until recently, but are now increasingly common, and increasingly dangerous.
    There is some built-in protection against downloading malware, but you can’t rely on it — the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness — not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must be acquired directly from the developer. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from a web page without your having requested it should go straight into the Trash. A website that claims you have a “virus,” or that anything else is wrong with your computer, is rogue.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most users don't.
    5. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” “rebuilding the directory,” “running periodic scripts,” “deleting log files,” “scanning for viruses,” or “repairing permissions.” Such measures are for solving problems as they arise, not for maintenance.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • 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.

Maybe you are looking for

  • How to display result of a query in browser?

    I have to write a simple application where I use EJB to access a database and then use Servlet/JSP to display the data to a browser. can anyone help me out please?

  • Splitting Invoices according to VAT conditions

    HI All, We have a requirement that if a sales order has 2 materials and if one of the material is relevent for tax and the other is not then when the invoice is being created there should be seperate invoices created, any ideas?

  • Can't get Live mail

    I just got this MBP. The mail feature set up accounts for my gmail and Windows Live accounts, but I'm only receiving gmail mail. Although my inbox shows a Windows Live account, I don't get any mail for that account. Is there something I didn't do whe

  • No taxes on sales/purch.are allowed for account 800500 0001, A1 is not allo

    Hi all, Iam getting this error  while iam dng invoicing.how to slove this problem,i contacted some of FICA guys ,but they didnt solve..this.. can any one explain step by step process to slove this, it will more rewardable... Cheerss.......

  • DVD SP 4 and AC3 Files

    I've been fighting the problem of exporting directly from FC Express to Compressor 2 and ending up with silent AC3 files. In searching the previous discussions, people advise using A.pack to convert a .aiff file. As far as I can tell A.pack is not sh