Background Report

Hi,
  I am running 1 report in background.
In selection screen for company code i am giving only one company code. and scheduled the report for background execution.
After this I am debugging the Background job which i scheduled in background.
I found that, In debugging, S_BUKRS which is select-option in selection screen, is taking some 500 company codes, instead of 1 i have given in selection screen.
What may be the problem , y it is taking 500 company codes instead of 1 i have given in Selection screen.
Urgent please given ans if any one know about this.

hello Praveen-
First check the varient you are passing to the submit report.If the varient is pulling 500 company codes instead 1 try in a different way.
Code...
First step delete the existing varient by FM 'RSAQ_DELETE_ONE_VARIANT'.
Second  step create new varient by FM 'RS_CREATE_VARIANT'.
dont forget to commit work after creating the varient.
later submit this varient to the job.
Cheers,
~Srini....

Similar Messages

  • Running background reports

    guys,i need to run background reports and want the outcome in a soft copy....can you provide the printer settings for this? When I look up /Nsp01 I get a message WAITING and when I checkup /nSM37, I get the msg FINISHED.......I suspect something is wrong with the printer settings....

    Hi,
    You have posted too many threads for the same question. Unfortunately, this forum is for SAP Business One users. Your question is not belonging here. Please close your thread.
    Thanks,
    Gordon

  • GL account balance when running background report

    Hi Friends,
    I run a report in background to fetch GL acct balance (using FAGLL03) and choose particular "doc type" using dynamic selections
    the doc type does not reflect in the report that is getting generated. also few other columns which i get to see in a foreground run are missing.
    nor am i able to choose layout.
    bascially i need to see the reports in same fashion as it were during regular execution and choose various layouts based on needs.
    is there a way that i can even choose the layout of background report before executing it in background
    Many thanks
    Sanjay

    Hi,
    In the selection screen of FAGLL03, give the "layout" in the bottom and then execute in background.
    Then the spool with get the output in that layout format.
    Regards,
    SDNer

  • Closing the Background report engine

    I use a menu that can call several reports, and when they open, the Reports Background Engine runs. I understand why it is useful to keep this open while the main app is on, but it does not close out automatically when the app closes. Is there a command that will do this?
    Thanks,
    Sara

    I Guess,
    Add_Parameter(pl_id, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'YES') will do (pl_id is the parameter list that you must have created to run each individual report)

  • Background report list download to excel

    I run an ALV hierarchical sequential report in background. Then when I download the report output ( thro SM37 ) to excel, the whole output of the report comes in one cell ( excel ). In other words the columns of the report will not appear in excel.
    for example:
    I have 3 columns and 4 rows as the report output ( in SM37 ). When I download it to excel, the excel will have only 1 column and 4 rows.
    I need info on making the excel output to look same as the report output; in terms of column.

    Hi Amit,
    Actually I do have a similar issue. I have a report which output is in the form of excel sheet. I developed using ole2 objects. I have a lot of customization like colors, heading and different margins. Is there any way can I run it in background. I cannot save it in shared folders su01 because it does not support ole objects. Actually, If I run this program in foreground now, The form gets loaded with all the data, it saves the file in the given path , and then closes the file. But, when I run it in as a background job, the data is not getting loaded. Is there any other way to run this in background.
    Krishna.

  • Background report save as PDF or excel

    Hello Guru's,
    I have a requirement my user execute one report in background now the output is appearing in ALV
    He wants now that is output should save as PDF or excel & send email to respective persons.
    Can we do this if yes please guide.I will be executing report in background.
    Regards
    Edited by: ABHUT on Oct 13, 2008 10:40 AM

    get them spool no and pass it to standard  report  RSTXPDFT4
    to convert to pdf and for sending mail use f.m
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
          document_data = doc_chng
          put_in_outbox = 'X'
          commit_work = 'X'
          TABLES
          packing_list = objpack
          contents_txt = objtxt[]
          contents_bin = so_ali[]
    *contents_hex = so_ali[]
          receivers = reclist[]
          EXCEPTIONS
          too_many_receivers = 1
          document_not_sent = 2
          document_type_not_exist = 3
          operation_no_authorization = 4
          parameter_error = 5
          x_error = 6
          enqueue_error = 7
          OTHERS = 8.
    shan.

  • BACKGROUND Report option

    We're running 10gAS. We use web.show_document to run our reports from Forms. We have some reports that need to be ran asynchronously. We set the background=yes parameter in the URL when we run the report, but we get an error message stating that the "background" parameter has been deprecated.
    The documentation for 9iAS states that the "BACKGROUND" command-line parameter has been deprecated, but it doesn't mention the new preferred method of running reports asynchronously. Also, the Reports Statement of Direction document for 10g lists "yes" and "no" as valid values for the "background" parameter using rwservlet.
    So is "background" deprecated or not? If so, what is the new method of running reports asynchronously?
    Thanks.

    Hi,
    The BACKGROUND command line keyword is NOT deprecated. It is fully supported. Here is what Publishing Reports says about the keyword:
    Description BACKGROUND specifies whether a report on the server should be run synchronously (NO) or asynchronously (YES).
    Syntax BACKGROUND=YES
    Note: The BACKGROUND system parameter is deprecated in Oracle Reports. BACKGROUND is used only on the command line.
    So only the system parameter is deprecated. What this is means is: if you open the report in the Report Builder, and in the Object Navigator, click Data model > System parameters, you will see the BACKGROUND parameter.
    If you specify the parameter=yes here, it is ignored (deprecated since Oracle Reports9i).
    It is still very much supported on the "command line" as written in Publishing Reports.
    Similarly, the Reports Statement of Direction document says that the BACKGROUND keyword can be used on the command line with rwservlet, rwcgi and rwclient. It is deprecated only for rwrun.
    Here is the reason for deprecating it: in 6i, if you specify BACKGROUND=yes with rwrun, it would not launch a UI, and thus run in the background. However, since 9i, there is no UI associated with rwrun, so there is no use for this parameter.
    Navneet.

  • How to get the output of a background report to be shown on the screen

    When we run the background process it goes to spool request. my requirement is to show it on the screen may be after some time to the user. how can we do that. Thanks in advance

    Hello Varun,
    You cqan submit the report as a JOB and export the out put to memory, once the job is complete you can read the list to display the output.
    Cheers,
    Mano
    Cut & Paste form SAP help.
    Submit report ....
    EXPORTING LIST TO MEMORY
    Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".

  • Background Report Program with Variants to be Overwritten

    I have an Following Scenario.
    I have an Report program with the Selection Screen displaying an Input Parameter of date type sy-datum.This particular program is scheduled as an Background Job.
    Now when i execute the program  in background  the existing variant date must be overwritten with any new values . So please provide an solution for this.
    Thanks
    K.Nadesh Kumar

    hi nadesh,
    enter date on your selection screen , then save variant.
    tick the selection variable check box i.e L.
    now click on pushbutton SELETION VARIABLE.
    Then select type D and select the criteria current date or whatver of your choice.
    if you are not clear then search for the thread "daily background job". I think you will get the answer from there.
    Regards
    Abhinesh

  • Leave statment with spool on background report.

    Hi,
          I coding ABAP report using leave statment than when i execute report in background.
    I found on 'SM37'  background job not have spool number but i try comment the leave statement only,
    the background job have spool number appeered. 
    My sourcecode like this:
           if flag = 'X'.
                   APPEND 'PRIN' TO current_scr-excl.
                   APPEND 'ONLI' TO current_scr-excl.
                   MESSAGE i999.
                  LEAVE TO CURRENT TRANSACTION.
          else.
                 perform select_data.
                 perform display_data.
          endif.

    Hi..
    You can not use
    LEAVE.. to transaction
    CALL transaction..
    in background processing.
    Check the condition whether its foreground or background processing and u can use the statement (sy-batch = 'x' for back ground processing)
    Hope this helps
    Nag

  • PI error meessage background report

    Hi all,
    I have a requirement that i need to fetch all the error message failures from PI monitor transaction(SXMB_MONI) and this will be a background and send the details for the configured EMAIL address .I need few information on this
    1)where this error message will be stored , is there any data base table in which this details are stored .I need to retrive this messages for my report.
    2)The program must send mail to configurable Email IDs.how can i configure that e-mail is send to the paticular E-mail ID.
    3)This is a background program must able to take parameter for filtering the error message based on the service names.
    4) How can i mkae the program to extract the error details for a configurable durations.
    This is the requirement , please kindly help me out in this . I dont have any functional consultant to help out this .
    Regards,
    Sriram

    Hello Sriram
    Do you need to configure alerting or do you have a requirement for functionality outside that already provided by SAP?
    See the link below for details on how to configure alerting (also there are many SDN blogs and threads about this, have you searched for these before opening this thread?).
    Configuring Message-Based Alerting 
    http://help.sap.com/saphelp_nw70/helpdata/en/5b/5d1741b393f26fe10000000a1550b0/content.htm
    Regards
    Mark

  • Supress heades on background report

    When I run a standard ALV report in the background, the spool list has header information after every page break.  Is there a way to suppress this so that I have only the header information on the first page, and not on subsequent pages.  This is causing an issue with verly large reports that would time out if run in the foreground.  Further, the user wants to be able to extract the spool list ot Excel and not have do manually delete all the header rows.
    Thanks

    What is the question?

  • Comma and space as seperators in background report ??

    Hello Experts,
    Hope I am posting in a correct group. I am having an issue when I run a report in the background. When I download the report from spool in SM37 into Excel file, the number appears for example:
    value 19,999.00$ would show 19 999,00.
    This makes it difficult to manipulate/ analysis data further.. I appreciate if anyone would share solutions on this.
    Monica

    Hello,
    Download and manipulate the same in excel,
    If you want you can put $ otherwise you can remove.
    Check for excel "Options"
    Regards,
    Ravi

  • Background reports

    Hi all,
    Is there any other method to run a report in the background other than defining it in sm36...like any function module.
    thank you all,
    santosh Kotra.

    you have two option  :
    1) se38 run the report to the selection screen
    put the relevant variant  ,
    and than choose from the manu "run in background"
    2) in other program insert the following code
      call function 'JOB_OPEN'
           exporting
                jobname          = jobname
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                others           = 4.
    call function 'JOB_SUBMIT'
      exporting
       authcknam                         = 'FI-BATCH'
        jobcount                          = jobcount
        jobname                           = jobname
        language                          = 'B'
        report                            = report
        variant                           = variant
      exceptions
        bad_priparams                     = 1
        bad_xpgflags                      = 2
        invalid_jobdata                   = 3
        jobname_missing                   = 4
        job_notex                         = 5
        job_submit_failed                 = 6
        lock_failed                       = 7
        program_missing                   = 8
        prog_abap_and_extpg_set           = 9
        others                            = 10.
      call function 'JOB_CLOSE'
        exporting
          jobcount               = jobcount
          jobname                = jobname
          strtimmed              = 'X'
       exceptions
         cant_start_immediate              = 1
         invalid_startdate                 = 2
         jobname_missing                   = 3
         job_close_failed                  = 4
         job_nosteps                       = 5
         job_notex                         = 6
         lock_failed                       = 7
         others                            = 8.
    hope it help you

  • Hi........... Background reports

    HI,
    Just a small clarifications.. Is there any limitations when reports are excuted in background mode, like the field catalog information is not taken into consideration or anything????????
    Any idea?
    Thanks
    Keshi

    Hi...
    There is nolimitations for the field catalog.
    But we have some limitations in background like
    1. we cant make it as drill drown
    2. Report width
    3. some short of formatting things.
    Regards,
    Arjun.

Maybe you are looking for