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á

Similar Messages

  • 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

  • My mac book pro login screen background wont show and only shows a light white/blue as the background how do i fix it ?

    my mac book pro mountion lion system  login screen background wont show and only shows a light white/blue as the background how can i fix it ? i tried everything from loginox to onyx and it still wont solve the problem. instead of the default dark grey startup screen  the background is white with a blue tint to it. the only time that the default background shows is when i log off and relog in

    Welcome to the Apple Support Communities
    I think that your Mac detects your hard disk, but the problem is that your new hard disk doesn't contain any operating system, so your Mac doesn't find any bootable partition and you see a question mark.
    If your Mac came with DVDs, insert the Mac OS X Install DVD and hold the C key while your Mac is starting. Then, just install Mac OS X. If the hard disk isn't prepared to install Mac OS X, you will have to erase it using "Mac OS Extended (Journaled)". See > http://pondini.org/OSX/DU1.html

  • I got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this?

    i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get my information back?

    Every backup replaces the old one, so, unless you included the backup folder in your computer backup routine, you can't get back your calendar info.
    The only time iTunes will not replace a backup is, when you use it to restore from, this one will stay in the backup list in iTunes.
    More info on backups here: http://support.apple.com/kb/HT1766

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

  • How to schedule FPOP in background daily

    Good day All.
    I would like to schedule FPOP daily in background mode. Has anyone done it before.
    thanks in advance.
    Regards
    Makoro Manyathela

    Hai...
    Definitely you can do that by using the Option of Process Chains, It can be scheduled as per your requirement.
    which is present in RSA1.
    There you create your own Process according to your requirement. sequence can also be maintained with conditions.
    Regards
    KHS

  • How to Change the name of the Job scheduled in the background.

    Hi,
    I hava a program that has can run many reports based on the selection screen report selected. and this program runs in the background.
    When I run the  program in the background for seprate report selected in the selection screen.. the background job name is same(as it is the same program) .
    I would like to have difrent job name based on the report id selected in the background
    Is it possible..if yes then do guide me.
    Regardd
    Senthil

    Hi
    You can change the Job names based on the selection screen.Check in ur program where they are naming the background Job.
    For Eg:In FM JOB_OPEN.
    That would be something like
    If REPID = '1'.
    Background Job name = '1'
    ELSEIF REPID = '2'.
    Background Job name = '2'
    ELSEIF REPID = '3'.
    Background Job name = '3''
    ENDIF.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = Background JOBNAME
    IMPORTING
    JOBCOUNT = JOBNUMBER
    EXCEPTIONS
    CANT_CREATE_JOB = 01
    INVALID_JOB_DATA = 02
    JOBNAME_MISSING = 03
    Thanks & Regards
    Jyo

  • 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

  • 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

  • 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

  • Scheduler and the background jobs page

    I have just added a job to the sling scheduler, I thougt once added i was be shown in the background jobs page in the tools of cq5.
    Does Sling scheduler nothin to do with that? how could add a job background to the background jobs page in the tools of cq5??
    Thanks.

    For your use case you should be able to see at http://localhost:4502/system/console/events
    For the background jobs ex:- [1] will be displayed in tools.
    [1]   http://localhost:4502/system/bgservlets/test.html?sling:bg=true&cycles=1

Maybe you are looking for

  • BI server is not running in obiee 11g

    Hi Experts, I am getting error when i am trying to start bi server from opmnctl command i tried like this C:\Oracle\Middleware\instances\instance1\bin>opmnctl status Processes in Instance: instance1 ---------------------------------------------------

  • When trying to update apps the phone tries to sign in under my wife's email address, how do I change it???

    After updating when I try to update apps, my wifes email show's up instead of mine.  How do I change it back to mine???

  • Slow Performance with large OR query

    Hi All; I am new to this forum... so please tread lightly on me if I am asking some rather basic questions. This question has been addressed before in this forum more than a year ago (http://swforum.sun.com/jive/thread.jsp?forum=13&thread=9041). I am

  • Error sender comm.channel

    R/3 sends the idoc to the file folder in UNIX, created file adapter to pick the file was given the file path correctly but in communication channel throws out the following error. ( i have to do any configuration ) 3/15/07 2:33:46 PM Retry interval s

  • Background images look rough

    I looked around but didn't find a post on this or, missed it, if it's posted. My situation is this. When I open my site in every other browser (ie., firefox, opera, safari, camino, and flock) the background image shows up correctly. When I open it in