Scheduling queries in background

How do I schedule Queries in background?
Thanks

Shika
other option is You could do this using RSCRM_BAPI.
See this weblogs
https://websmp103.sap-ag.de/~sapdownload/011000358700004400232004E/HowToRSCRM_BAPI.pdf
/people/durairaj.athavanraja/blog
One more option is using Reporting Agent
Hope this helps
Thnaks
Sat

Similar Messages

  • Similar report for Account Balance display which could be scheduled in the background

    Hi SAP gurus,
    As we know to display GL Account Balance Display we have std report "FAGL_ACCOUNT_BALANCE" But we can not run this in background as it is ALV report.
    So I would like to know a similar report which could be scheduled in the background.
    Thanks in advance
    Regards,
    -Chetan

    Hi,
    As division is not header field of invoice it is not available in accounting document header as well. Thus it will not be available in any standard reports showning items per account. I'm affraid you need to develop your own report or try to extend existing using user-/customer-exits.
    You can find more information in OSS note 13131.
    Regards,
    Marcin

  • Scheduling report in background and passing the necessary parameters

    Hi all,
    Using code (in a report1) ...i want to execute a report (report2) in background.....but at the same time i want to pass data (an internal table and a variable) to that report2.
    is it possible to pass data like internal table to a executable report and at the same time pass the data to that report.
    Thanks in advance.
    Thanks and Regards,
    Sushil.

    Jonathan,
    you mean to say that .....  report1 will place the file on application server with all the data that is required for report2...
    and after scheduling report2 in background ,...... the report 2 must read the file and then delete it,,,,,
    the data is extensive,,, i want to pass on 1,00,000 records to that report ,... so passing it via a dataset,,,wont hamper performance..??
    Is there any other direct way to do it,,,,,,,??
    Thanks ,
    Best Regards,
    Sushil.

  • How to schedule BW Statistical queries in background

    Hi,
    My requirement is to schedule the BW Statistics queries in the background and send the report as an email to a group of persons.BW version is used is 3.5
    Could you please tell me how this could be achieved.
    Thanks and Regards,
    Apparao
    Message was edited by:
            Apparao Nagandla

    Hi,
    Could you please send me some docs or url on how to configure information broadcasting.
    e-mail is [email protected]
    Thanks and Regards,
    Apparao

  • Schedule job in background and ftp the data to non-sap system

    Hello All,
    I have a requirement where in i have to write a program(with selection screen) to download 2 files into application server(frequency: end of each day i.e daily at 23:59), and then in turn i need to put those two files into FTP server using FTP script.
    i guess my flow of the code should be
    1. write the program with selection screen and
    2. get the data from corresponding tables and put it into internal tables.
    3. then i have download the data into application server
    my question is : how i will schedule the job in background to download the data into application server daily? using job_open, job_submit, job_close?
    4. then how i need to move the files from application server to FTP server using FTP SCRIPT?
    Also my doubt is once i execute the program ONLY, the background job is triigred (because i wrote job_open, job_submit and job_close inside my program). then how will i input the data into screen daily and download the data into application server in background automatically???? i am confused ...
    Please help me to solve the above issues
    thanks
    sangeetha

    >
    sangeetha s k wrote:
    How my data in application server will be transfer to another system using above FM? Because i am not passing application server file path in SAP to that FM. Could you please explain ?
    So the path name and the file name are always the same? In that case you could simply create a SM49 entry with hard coded file & path name.
    An easy example for the COPY command under WINDOWS OS:
    Create a command in SM49 called ZCOPY with following data:
    Operating System = Windows NT
    OS command: cmd
    Parameters for os command: /C copy  "C:\tmp\my_file.txt" "z:\tmp\my_file_copy.txt"
    Additional parameters allowed: (leave blank)
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 2  parameters:
         commandname                  = 'ZCOPY'     
         operatingsystem               = 'Windows NT'
    In the case that the file name and the path are not fixed you would set the following in the SM49 definition:
    Additional parameters allowed: X
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 3  parameters:
         commandname                   = 'ZCOPY'     
         operatingsystem                = 'Windows NT'
         additional_parameters       = params  "<== fill in the path and file name during run time into this variable

  • Job Name of a Program scheduled as a Background Job

    Hi,
    In our production system. We have a program which is scheduled to run in the background by various job names. At runtime, I need the program to figure out under which Job Name is it running. I dont think there is any system field which stores the Job Name of the background job.
    Any inputs?

    Hi,
    It will run in default with <b>the name of the program</b>.
    Goto SM36 and put a * in job name u will see all the jobs that are schedule, if u specify the program name for the job schedule u will get that list alone.
    U can differentiate by seeing the time the job was scheduled.
    http://www.sap-img.com/ab007.htm
    Please reward and close the thread if u got the info.
    Message was edited by: Judith Jessie Selvi

  • Certain Maintenance Plan not getting scheduled in the background job

    Hi Gurus,
    I am facing an issue here.
    A weekly background job (RISTRA20) runs every weekend and schedules the maintenance plans.
    But we have noticed that some maintenance plans are not getting scheduled. i.e no orders or schedule is getting generated.
    When I run IP30 manually for these plans then the schedule gets generated and orders get called.
    I have checked up the background job and it is running fine.
    Also, i have noticed a similarity in all these plans which are not getting scheduled. There schedule has been restarted (through IP10) at somepoint or the other.
    But i don't see any direct impact of this?
    Can any of you provide some help on this?? Points will be rewarded.
    Thanks and regards,
    Nitin Saini

    Hi Narender,
    Thanks for replying.
    The message number for 'Groups don't match' is ME303.
    I think this does not have anything to do with the restart as i have done further investigation.
    Whenever I run IP30 with sortfield input as AS02*, i get the error as mentioned above for a certain number of maintenance plans while the remaining plans get scheduled.
    If i run IP30 for any other sort fields, it runs fine and i don't encounter the error
    mentioned above.
    If you send me ur email address, i could forward you screen-shots of the issue.

  • Can we schedule BDC in Background Mode - SM37

    Hi Guru,
    Can we schedule our BDC in background - SM37 . Upload file will be on Local Sustem - C drive.
    Regards
    Durgesh
    Moderator message: background/GUI problems = FAQ, please search before posting.
    locked by: Thomas Zloch on Oct 6, 2010 2:14 PM

    GUI functions (like GUI_UPLOAD) will not work in background, they need an actual Gui active.
    There are plenty of threads on  this subject, search also in the wiki for threads/guide like [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles] or [Communication to Presentation Server in Background Mode|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true] or [Working with FTP Server |http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server]
    (To execute a BDC in background use report RSBDCSUB.)
    Regards,
    Raymond

  • Schedule ME2L in background and send output to email address

    Hi,
    Our Client has a requirement to schedule ME2L (particular variant) in background.
    The report should run every day in background and output should get emailed to particular email address.
    Any ideas??? Pleae let me know.

    Thanks for the information. Very useful.
    I am just facing one road block at the moment.
    I am now able to schedule the ME2L Report and email it as attachment.
    But, we have created a particular layout for this report, which we want should get emailed.
    But when we schedule the report in the background (or run it in background manually), it only picks the standard layout!
    I cannot find any layout option in ME2L Selection Screen as well. (I could have saved it in the variant then)
    Can you help?

  • Schedule program in background & send output list as group email

    Hello all,
    I have a requirement where I have to schedule a job in background. If there happen to be an output, this output needs to be sent to the email id's stored in a Z Table.
    Please let me know how to proceed.
    Regards,
    Salil

    Hi ,
    yes you can do that..
    see the belwo steps...
    if sy-batch = 'X'.         "this means report is running in Background
    NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.     "creating spool request
      WRITE : / text-s32.
      ULINE.
      LOOP AT t_ouputdata INTO wa_ouputdata.
        WRITE : /  wa_ouputdata.
      ENDLOOP.
      WRITE : / text-s33.
      NEW-PAGE PRINT OFF.                                        "closing spool request
    * To fetch the spool number from TSP01 table
      SELECT rqident
             FROM tsp01
             INTO w_rqident
             UP TO 1 ROWS
             WHERE rq2name = wa_pri_params-plist.
      ENDSELECT.
    * Function Module to Convert Spool to PDF file
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid     = w_rqident
          no_dialog       = 'X'
          dst_device      = 'LP01'
          pdf_destination = 'X'
        TABLES
          pdf             = t_pdf.
    "Call function and send the t_pdf data which contains output to email...
    "SO_NEW_DOCUMENT_SEND_API1 - Sending express mail ( SAP office )
    "RS_SEND_MAIL_FOR_SPOOLLIST - Send message from ABAP/4 program to SAPoffice.
    "SO_NEW_DOCUMENT_ATT_SEND_API1 - SAPoffice: Send new document with attachments via RFC
    ELSE.
    "call alv or normal display if you run report foreground..
    endif.
    Regards,
    Prabhudas

  • Schedule SP01 in background, how to?

    Hello together,
    does anybody have an idea, how to schedule TA SP01 in background?
    My first solution thought was, to call SP01 from a small program, but, because SP01 is a module-pool program, it can only called via "call transaction". Immediate after output, SP01 returns to the caller and the result list of SP01 is
    not viewable as spool. It works fine in dialog processing.
    My second idea was, to make a copy of SP01, the underlying module pool  and so on, modify the menu so that it contains the variant-functionality fcodes. But to
    do so, i need to switch the report type from "Modulepool" to "Executable program" and i didn't know exactly, if this will work.
    I would be grateful if someone can help me further!
    Have a nice day
    Jens

    Hi!
    What's your point, what are you going to do with SP01?
    For example we are retrieving data from the spooler like this:
    1. Reading table TSP01 for the spooler contents
    2. Downloading the required requests (identified by a special name) with the function module CONVERT_ABAPSPOOLJOB_2_PDF, or CONVERT_OTFSPOOLJOB_2_PDF.
    Regards
    Tamá

  • PASS DATA TO A REPORT BEING SCHEDULED AS A BACKGROUND JOB

    Moderator message: please do not use ALL CAPITALS in your subject
    Hi All,
    I need to pass some data to a Zreport_submit which I would be calling using SUBMIT statement from another Zreport_main. The report being called through the SUBMIT statement i.e. Zreport_submit will be scheduled as a backgroung job i.e. using addition VIA JOBNAME xx JOBNUMBER yy.
    How can I pass data from Zreport_main to Zreport_submit. There are 2 values that are required to be passed.
    Thanks-
    Harmeet,
    Edited by: Matt on Dec 16, 2008 11:26 AM

    Hi Harmeet,
    What I get from your question is
    is that u need to call a program using SUBMIT statement in the background and u need to feed some values into the program may be into the selection-acreen so u can use
    SUBMIT <prog name>
    with parameter1 = value1 .
    where parameter1 is the part of selection-acreen of the prog which was calld.
    Thnks
    Sahil

  • Scheduling program in background

    Hi All
       I have scheduled a program with selection screen in background.
       I have scheduled it to run every minute . when I go to sm37 and check it shows the job my job name and against it it say 'Released' .
      Why doesn't my program start in background.
    Kindly help me resolve this issue.

    Hi
    This is how to do it through code
    data: lv_job_name like tbtco-jobname,
    lv_job_nr like tbtco-jobcount,
    lv_job_released type c,
    lv_job_start_sofort type c,
    lv_print_parameters type pri_params.
    lv_job_name = 'Z_test'. " your background program name
    call function 'JOB_OPEN'
    exporting
    jobname = lv_job_name
    importing
    jobcount = lv_job_nr
    exceptions
    cant_create_job = 1
    invalid_job_data = 2
    jobname_missing = 3
    others = 4.
    if syst-subrc = 0.
    *submit job with all the selection screen params...
    submit (lv_job_name)
    with applfile = applfile
    with p_lines = p_lines
    with rfc_dest = rfcdest
    with p_selmtd = lv_selmtd
    with px_shsim = px_shsim
    with px_sherr = px_sherr
    user syst-uname
    via job lv_job_name number lv_job_nr and return.
    if sy-subrc = 0.
    call function 'JOB_CLOSE'
    exporting
    jobcount = lv_job_nr
    jobname = lv_job_name
    strtimmed = 'X'
    importing
    job_was_released = lv_job_released
    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.
    if syst-subrc <> 0.
    message i162(00) with
    'An error occured while closing the background job.'.
    stop.
    endif.
    endif.
    endif.
    skip 1.
    write: / 'Background process', lv_job_name ,
    'called successfully' no-gap.
    write: / 'You can check the job in transaction SM37'.
    Use Sm36 and SM37 Transaction
    http://help.sap.com/saphelp_nw04s/helpdata/en/73/69ef5755bb11d189680000e829fbbd/frameset.htm
    <b>Reward if usefull</b>

  • Periodic Scheduling of sequencial background job

    I schedule monthly & weekly planning jobs. These jobs are scheduled one after another in a sequence. frequency of running these jobs is fix hence I want to schedule it on periodic basis. It possible for me to schedule single background job periodically but I don't know how to schedule sequncial backgorund jobs on periodic basis.
    Regards,
    Chetan

    Dear Siva,
    Thanks for your reply.
    for execution of single job periodically I am following the same procedure mentioned by you.
    I scheduled background jobs one after another by clicking on start condition & in pop-up select "After job". this way I schedule 7 to 8 jobs one after another.
    So in first scheduled job you will find 7 to 8 successor jobs.
    Now if I try to make it periodic, then only first job becomes periodic & successor jobs doesn't get released periodically.
    I want to make entire chain of jobs to be scheduled peiodic.
    Regards,
    Chetan

  • How to schedule lsmw in background

    hai all,
               can any one tell me how can lsmw for a transaction can be background scheduled.

    use the program  /sapdmc/sap_lsmw_interface.
    create a variant with your project name, sub project name, etc..
    you can schedule this program for background execution...
    else, can call it from another program..
    just pseudocode...
    L_JOBNAME = some name for job.  "'PURCHASEINFODL'.
      L_SELECTION_SET = your variant name . "  'PURCH_INFO_DEL'.
      CONCATENATE L_JOBNAME SY-UNAME SY-DATUM
            INTO L_JOBNAME SEPARATED BY '_'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          JOBNAME          = L_JOBNAME
        IMPORTING
          JOBCOUNT         = L_JOBNO
        EXCEPTIONS
          CANT_CREATE_JOB  = 1
          INVALID_JOB_DATA = 2
          JOBNAME_MISSING  = 3
          OTHERS           = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
    *            DESTINATION = 'KJAT'
                  DESTINATION    = SY-PDEST
                   COPIES         = 0
                   IMMEDIATELY    = ' '
                   RELEASE        = ' '
                   NEW_LIST_ID    = 'X'
                   LINE_SIZE      = '255'
                   LINE_COUNT     = '65'
                   SAP_COVER_PAGE = ' '
                   COVER_PAGE     = ' '
                   RECEIVER       = SY-UNAME
                   NO_DIALOG      = 'X'
              IMPORTING
                   OUT_PARAMETERS = PRINT_PARAMETERS.
        SUBMIT /SAPDMC/SAP_LSMW_INTERFACE
                                USING SELECTION-SET L_SELECTION_SET
                                TO SAP-SPOOL
                                SPOOL PARAMETERS PRINT_PARAMETERS
                                WITHOUT SPOOL DYNPRO
                                VIA JOB L_JOBNAME NUMBER L_JOBNO
                                AND RETURN.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = L_JOBNO
              JOBNAME              = L_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
              INVALID_TARGET       = 8
              OTHERS               = 9.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            MESSAGE ID 'BT' TYPE 'I' NUMBER 156 WITH L_JOBNAME.
          ENDIF.
        ENDIF.
    WHILE BJOB_FINISHED IS INITIAL.
          WAIT UP TO 1 SECONDS.
          CALL FUNCTION 'BP_JOB_CHECKSTATE_SM37B'
            EXPORTING
              DIALOG                             = 'N'
              JOBCOUNT                           = L_JOBNO
              JOBNAME                            = L_JOBNAME
              OK_JOB                             = 0
              NOT_OK_JOB                         = 0
           IMPORTING
    *      STATUS_ACCORDING_TO_DB             = L_JOBSTATUS
              ACTUAL_STATUS                      = L_JOBSTATUS
    *      OK_JOB                             =
    *      NOT_OK_JOB                         =
           EXCEPTIONS
             CHECKING_OF_JOB_HAS_FAILED         = 1
             CORRECTING_JOB_STATUS_FAILED       = 2
             INVALID_DIALOG_TYPE                = 3
             JOB_DOES_NOT_EXIST                 = 4
             NO_CHECK_PRIVILEGE_GIVEN           = 5
             READY_SWITCH_TOO_DANGEROUS         = 6
             OTHERS                             = 7.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CASE L_JOBSTATUS.
              WHEN 'F'.
                MOVE 'F' TO BJOB_FINISHED.
                MESSAGE I903. " WITH TEXT-R07.
              WHEN 'R'.
                CLEAR BJOB_FINISHED.
              WHEN 'C'.
                MOVE 'C' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN 'A'.
                MOVE 'A' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN OTHERS.
                CLEAR BJOB_FINISHED.
            ENDCASE.
          ENDIF.
        ENDWHILE.

Maybe you are looking for

  • Iphone shows black & white photo's & video when connected to HD TV?

    I bought the Apple composite A/V cables to connect my iphone 3GS to my HD TV. While both photo's and video do play on the TV, they are in black & white. Does anyone know why? Is there a setting in the iphone that allows color? I'm sure it's not a set

  • Is this jsp or oracle issue

    Hi , I have published a view as jsp link(using a in-house applcation) but i got the following error : An error occurred while fetching the results. Error Message : ORA-29925: cannot execute acctA.STRINGAGGTYPE.ODCIAGGREGATEINITIALIZE note : i am usin

  • What are the steps doing a performance tuning for pertcular program

    What are the steps doing a performance tuning for pertcular program

  • Textedit won't open .rtf files

    My boss wants me to open some .rtf files and convert them to word documents, but when I try to open the files text edit says it can't open them. What could be wrong?

  • Why won't my MacBook Pro Apps work properly?

    I've brought a brand new MacBook Pro Mid-2012, its only 8 months old and already I'm having problems. FaceTime won't open at all, it just bounces a few times and that's it, the App store opens, but doesn't load anything; and whenever I click on a tab