Scheduling z tcode in background

Hi ,
How to schedule a ztcode to run in background and collect a report every fortnightly.
Thanx in advance,
Robert

Hello Robert,
Why it goes for print?
As per my understandinf there are two option to execute
1. Run zmb5s - enter the value in selection screen- execute in forground and export the output into excel
2 Run zmb5s - enter the value in selection screen- execute in background-Enter the Printer name-continue- then enter the start time and date as per your requirement
It will generate the spool request and you can export into excel from your spool request
Regards
Subhash

Similar Messages

  • How to schedule a report in background

    could anybody inform me
    how to schedule a report in background
    if possible plz send the entire step by step process
    thanx
    regards
    kals.

    HI,
    Use transaction SM36
    For step by step process refer this link...
    http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Hope this helps!!
    Cheers
    Alfred

  • Scheduling a report in background and passing data for processing

    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.

    hi
    regarding  Scheduling a report in background check the below thread
    SCHEDULE THE ZREPORT IN BACKGROUND DYNAMICALLY
    regards
    chandra

  • How to schedule BDC program in background when we use GUI_UPLOAD

    Hi,
    I need to run the BDC program in the back ground. But my flat file is in presentation server and i am using GUI_UPLOAD F.M to upload data into I.T. How to schedule BDC program in background.
    Will anybody help me in this regards.
    Thanks in advance,
    Mythily

    You will either have to put your data file on the application server or make the directory of the presentation server available as part of the file system so that the background job will have access to it via OPEN DATASET... TRANSFER... CLOSE DATASET.

  • Write a program that would schedule another program in background multipul

    Hi All,
              I need to write a program that would schedule another program in background multipul times according to input we provided on different application servers.
    For ex:- In  table FKKVKP, i am having 2.1 millons contract accounts. I need to write a program(A) that should take 5000 contract accounts at a time as a input and schedule another program(B) in background with input of 5000 contract accounts. And program A ,again schedule program B on differrent application servers , till 2.1 millions contract accounts get used.
    Thanx in advance.
    Regards,
    Dilip Kushwah

    hi,
    1) Carry out the recording for the required transaction using SHDB.
    2) Use batch input method to create session this is done by three FMs
    bdc: open_group, bdc_insert, close_group.
    3) A session is created , which can be seen in transaction SM 35.
    4) Use the standard program RSBDCSUB to configure the session created in SM35.
    This way you can achieve your requirement.
    Check this links too for more information
    Batch input [http://help.sap.com/saphelp_nw04/helpdata/en/fa/097015543b11d1898e0000e8322d00/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/content.htm]
    Thanks
    Sharath

  • Process Steps to schedule the job in background

    What are the process Steps to schedule the job in background?
    Sai.

    You can set up the different step while schedule the back ground job. Each step will have the program name, variant.
    You can do his using transaction SM36 -> JOB WIZARD.
    Thanks,
    Srinivas

  • How will you schedule the job in background?

    How will you schedule the job in background?

    Pls go to this link
    http://help.sap.com/saphelp_bw33/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/frameset.htm
    Step by Step
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/content.htm
    An example of a complex process:
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/63073c52619459e10000000a114084/frameset.htm
    process chains
    process chains
    Process chains
    http://help.sap.com/saphelp_bw30b/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    Re: Ho to make a variable mandatory or optional?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    Thanks & regards
    nath..........

  • Scheduling /VIRSA/RE_DNLDROLES in background Mode

    Hi,
    I need to shcedule the job to download all the roles in the background mode for /VIRSA/RE_DNLDROLES, as I am not able to complete the execution by running it in foreground. Apparently in the batch mode this tcode does not write the required files to the folder nor does it generate any spool. I checked the note 1252032 it also seems to suggest that we should be running this in the background.
    Any ideas why the files wont download in the batch mode.
    Thanks!
    Chinmaya

    Hi Barath
              if you are not using any gui_download function module then u can schedule a job by hitting F9 in the selection screen...
    to schedule a job u will use sm36 and schedule ..
    check this link :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm

  • Schedule report MM60 as background job and send out in Excel format

    Hi there,
    I would like to schedule a background job for report MM60, then send to the user in Excel format.
    I know that we can enter the recipient in the job setting(SM36) but the report is send in HMTL format.
    Is it possible to send in Excel format?
    Thanks,
    Janice

    Hi,
    I think it's not possible from SM36 you better get help from ABAPer to get the require output.
    Also visit below thread for same issue:
    mail, output of spool as an excel attachment
    Regards;

  • Scheduled function module in background job

    HI all,
    I have created a function module(RFC) & Now I need to schedule it in background job, i have used fm job_open ,job_close  But through there i can only scheduled Reports  so pls gide me how to scheduled fm .
    regards,
    Anuj

    Hi Anuj,
    Check this one:
    Re: can i scheddule a function module(rfc)  in background
    Regards,
    Chandra Sekhar

  • 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

  • Error after scheduling a job in background....

    Hi All,
    I'm trying to schedule background job and i m using code for scheduling  that job for ex-
    CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = g_name
          IMPORTING
            jobcount         = number
          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.
        ENDIF.
        IF sy-subrc EQ 0.
          SUBMIT zrb_cc_clc_n_copy VIA JOB g_name NUMBER number TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    WITH DESTINATION = 'HPMISPRT'
    WITH IMMEDIATELY = SPACE
    WITH KEEP_IN_SPOOL = 'X' AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount                          = number
            jobname                           = g_name
           sdlstrtdt                         = sdate
           sdlstrttm                         = stime
            strtimmed                         = 'X'
    IMPORTING
      JOB_WAS_RELEASED                  =
    CHANGING
      RET                               =
         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.
        ENDIF.
    Still i am getting error message in job overview status cancelled
    Thanx in advance
    N.s

    check in transaction SM37 why this particular job was cancelled

  • Problems when scheduling a report in background

    Hi Guys
    I have a report that has a lot of columns so i have created a display variant with 22 cols. When I run this report online (foreground) It picks up my variant and I can see all 22 cols. The problem is when I schedule this in background it does not display all the cols, the last three cols get cut off.
    Any idea why this is happening?
    Thanks
    Sameer

    you have to change the format in SPAD.  
    Go to transaction SPAD -> FULL ADMINISTRATION -> DEVICE TYPES -> FORMAT TYPES and there you can see all the available formats. Create a new format Z_65_700 in the similar manner with X_255... with a different number of columns (700) and save it.
    Then in the tab DEVICE/SERVERS go to OUTPUT DEVICES and type your printer -> ENTER -> then from the Menu GOTO device type -> then there is a button FORMATS where you can see all the existing formats (plus the one you have just ctreated). Find it and choose it. Then save.
    Now you have attached the new format to your printer.
    The next step is simple.
    You can do it the way you described, but there is also another way. Run your program with F9 and not F8 from the selection screen. It will ask you for printers, formats etc. There you will first select the appropriate printer and then (after ENTER) you have to go down to formats and select the new format. Do not print it immediatelly, click only the NEW SPOOL REQUEST checkbutton. This will create a new spool request.
    If you go to SP01 you will find the number of your finished job. If you click the abap list button it will only show you collumns with up to 255 characters.
    But if you take the spool number and put it as a parameters to the zzz program , it will show everything.
    Source:
    Spool List output display > 255 char when the rpt is run in Background

  • Tcode MIGO Background Job Not working

    Hi All,
    I am facing problem in TCode : MIGO for Background JOB of BDC Program with below details,
    CALL_TRANSACTION MIGO returncode: 1,001  RECORD:          0
    MIGO                 017 S
    The front end is not suitable for the transaction (see long text)
    DC                   006 S
    Control Framework: Fatal error - GUI cannot be reached
    00                   341 A
    Runtime error RAISE_EXCEPTION has occurred
    Please let me know above error what needs to be done.
    Thanks in Advance,
    Mahesh Devershetty

    I am facing the same problem while calling MIGO from RFC
    CALL_TRANSACTION MIGO returncode: 1,001 RECORD: 0
    MIGO 017 S
    The front end is not suitable for the transaction (see long text)
    DC 006 S
    Control Framework: Fatal error - GUI cannot be reached
    00 341 A
    Runtime error RAISE_EXCEPTION has occurred
    BDCMSGCOLL Returns the following :
    TCODE                   MIGO
    DYNAME               SAPLMIGO
    DYNUMB               0001
    MSGTYP               A
    MSGSPRA            E
    MSGID                  00
    MSGNR                341
    MSGV1                RAISE_EXCEPTION
    please help me as soon as possible
    giving thanks in advance
    goutam roy

  • Scheduling a program in background with after job condition

    Hi experts,
    Is there a way to schedule a background job wherein it will be run every after another job? I've tried defining it on sm36 > start condition> After job> I stated the job name >check start status dependent. But it only run once even if the job which it is dependent on is scheduled everyday.
    Thank you in advance!

    This is (or was)  a well known issue, the option "after job" cannot be set to periodic. Theres lots of threads about this and several alternatives solutions.
    Please search before posting
    Regards
    Juan

Maybe you are looking for

  • Printing List output

    Hi, i have a list output like this, i want to print this in an A4 size paper, how can i do this...                                                      page no : 1 Name : 111111111111 Occupation : 22222222 Country : 33333333333                       

  • Itunes 11.3 won't recognize ipod 5th generation

    Itunes will not respond to my ipod touch 5 generation after I installed the latest update for the itunes software/program (itunes 11.3). However, my computer (Windows 8 PC) is able to detect my ipod. I've been searching the forum like crazy and tryin

  • Maximum RFC connections in RFC

    Hi all, i am facing a problem while trying to send lots of messages from R3 to XI via RFC Sender Adapter: See the SM21 log in sender system: (R3): Communication error, CPIC return code 027, SAP return code 677 > CPI-C function: CMINIT(SAP)   anf if i

  • Photo Size

    Is there anyway you can change the size of iphoto's photo's. When i upload them from my camera no matter what size i have the photo size on my camera it always makes them the same size, and they are kinda small and was wondering if anyone knew a way

  • TCode to fill BAPI

    Hi all! I need to fill tree BAPI's using SE37 Tcode, for a test to PI scenario integration.  BAPI_SALESORDER_CREATEFROMDAT2 BAPI_CUSTOMERCONTRACT_CHANGE BAPI_SALESORDER_CREATEFROMDAT1. I have heard once about the way to fill BAPI using a Tcode that f