Scheduling a job in another system

Hello,
I am looking for a FM or a report through which I can schedule a background job (a simple report program without a variant) in another system.
Frequency option should be available since I want this scheduled job to be executed every day.
Thanks,
Arvind...
Edited by: Arvind Arakotaram on Oct 30, 2009 4:01 PM

Hi,
You can use the below 2 BAPI's for background job's in external system.
bapi_xbp_job_add_ext_step or bapi_xbp_add_job_step
REgards
VEnk@

Similar Messages

  • How to schedule a job in another system.

    Hi,
    Now i have an ABAP program, which run in system ABC, client 001. i want to schedule a job in the program, with the function modules JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE. But this job should run in ABC/002.
    How to write code?
    Who can help me on the requirement, or provide me another new solution except event trigger?
    Thanks & Best Regards,
    Johnney

    Here is the code. It works fine..
    FUNCTION Z_F_TRIGGER_REPORT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_PROG) TYPE  D010SINF-PROG
    *"     VALUE(I_VARIANT) TYPE  VARIS-VARIANT
    *"     VALUE(I_MODE) TYPE  CHAR01
    *"  EXPORTING
    *"     VALUE(E_SUBRC) TYPE  SYST-SUBRC
    *"     VALUE(E_MSG) TYPE  CHAR80
    Functio ID :  Z_F_TRIGGER_REPORT
    TITLE      :  Report Trigger Tool
    Create Date:  15.03.2004
    Author     :  Denis Vieira
    Ownership : For the exclusive use of the Procter & Gamble Company
    Description:
    The purpose of this function module is to trigger programs
    requested remotely.
    AUTHORIZATION CHECKS
    OBJECT               AUTHORITY FIELDS         ABAP FIELDS
                     |                       |
    CHANGE HISTORY                                                      *
      DATE      |  Name  | Description                       | Reference *
    29.Jun.2006 | BA4513 | Unicode conversion and upgrade    | SPK290606
                |        | to My SAP ERP                     |
    **eject.
    Check if selected program exists in the destination file
      SELECT SINGLE  SUBC
             FROM    D010SINF
             INTO    D010SINF-SUBC
             WHERE   PROG    EQ  I_PROG
             AND     R3STATE EQ  C_A.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                                               TO E_SUBRC.
        MOVE 'Report does not exist in destination system'(M01) TO E_MSG.
        EXIT.
      ENDIF.
    Check if program request is an executable program
      IF D010SINF-SUBC NE C_1.
        MOVE  C_2                                               TO E_SUBRC.
        MOVE 'Report is not an executable program'(M02)         TO E_MSG.
        EXIT.
      ENDIF.
    Check if selected variant exists in the destination file
      SELECT COUNT( * )
           FROM  VARIS
           INTO  W_COUNT
           WHERE REPORT  EQ I_PROG
           AND   VARIANT EQ I_VARIANT
           AND   DYNNR   EQ C_1000.
      IF W_COUNT EQ C_0.
        MOVE  C_2                                                TO E_SUBRC.
        MOVE 'Variant does not exist in destination system'(M03) TO E_MSG.
        EXIT.
      ENDIF.
      IF I_MODE EQ C_B.
        PERFORM 0100_BACKGROUND USING     I_PROG I_VARIANT
                                CHANGING  E_MSG  E_SUBRC.
      ELSE.
        PERFORM 0200_FOREGROUND USING     I_PROG I_VARIANT
                                CHANGING  E_MSG  E_SUBRC.
      ENDIF.
    ENDFUNCTION.
    *eject
    *&      Form  0100_background
    Executes Selected program in BackGround Mode VIA JOB
    *Block commented from here SPK290606
    *FORM 0100_BACKGROUND USING     L_PROG L_VARIANT
                        CHANGING  L_MSG  L_SUBRC.
    *Block commented till here SPK290606
    *Block added from here SPK290606
    FORM 0100_BACKGROUND USING    L_PROG    LIKE D010SINF-PROG
                                  L_VARIANT LIKE VARIS-VARIANT
                         CHANGING L_MSG     TYPE  CHAR80
                                  L_SUBRC   TYPE  SYST-SUBRC.
    *Block added till here SPK290606
      CONCATENATE C_AREA
                  C_UND
                  L_PROG
                  C_UND
                  SY-DATUM
                  C_UND
                  SY-UZEIT
                  INTO W_JOBNAME.
    Create a JOB and Get the Number for further execution
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                JOBNAME  = W_JOBNAME
           IMPORTING
                JOBCOUNT = W_JOBCOUNT.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                       TO L_SUBRC.
        MOVE 'Error opening job'(M07)   TO L_MSG.
        EXIT.
      ENDIF.
    Submit program
      SUBMIT (L_PROG)
        USING SELECTION-SET L_VARIANT
        VIA JOB W_JOBNAME NUMBER W_JOBCOUNT
        AND RETURN.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                        TO L_SUBRC.
        MOVE 'Error Submitting Job'(M06) TO L_MSG.
        EXIT.
      ENDIF.
    Closes job to start its processing
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                JOBCOUNT  = W_JOBCOUNT
                JOBNAME   = W_JOBNAME
                STRTIMMED = 'X'.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                       TO L_SUBRC.
        MOVE 'Error closing job'(M08)   TO L_MSG.
        EXIT.
      ENDIF.
      MOVE  C_0                                          TO L_SUBRC.
      MOVE 'Program Submitted in Background Mode'(M09)   TO L_MSG.
    ENDFORM.
    *eject
    *&      Form  0200_foreground
    Executes Selected program in ForeGround Mode VIA Submit
    *Block commented from here SPK290606
    *FORM 0200_FOREGROUND USING     L_PROG L_VARIANT
                        CHANGING  L_MSG  L_SUBRC.
    *Block commented till here SPK290606
    *Block added from here SPK290606
    FORM 0200_FOREGROUND USING    L_PROG    LIKE D010SINF-PROG
                                  L_VARIANT LIKE VARIS-VARIANT
                         CHANGING L_MSG     TYPE  CHAR80
                                  L_SUBRC   TYPE  SYST-SUBRC.
    *Block added till here SPK290606
      SUBMIT (L_PROG) USING SELECTION-SET L_VARIANT
             EXPORTING LIST TO MEMORY AND RETURN.
      IF SY-SUBRC EQ C_0.
        MOVE  C_0                                 TO L_SUBRC.
        MOVE 'Report submitted successfully'(M04) TO L_MSG.
      ELSE.
        MOVE  C_2                                 TO L_SUBRC.
        MOVE 'Error submitting report'(M05)       TO L_MSG.
      ENDIF.
    ENDFORM.

  • How to run a job in another system

    This is the situation
    i want to test if a job, with ad external progra, that now is running in a Windows Application Server, can be moved in a linux Application server (and in another system), and if linux can process the *.bat file
    the jobs has a various step
    C:\*.bat  -> Progr. exit
    Z*      -> ABAP      
    Z*   -> ABAP      
    Z*_STEP1   -> ABAP      
    ZBAPI_* ->ABAP      
    C:\*.bat -> Progr. exit
    Anyone can help me to move it and schedulate the job?

    Hi,
    You have to convert the batch file of windows to shell script. and use that as external program  or command in the job definition instead of .bat file.You also have to edit the job definition in sap saying that the background server should be your Linux Application server.
    To convert *.bat file to shell script file this link would be helpful to you
    http://tldp.org/LDP/abs/html/dosbatch.html
    Reward points if  helps.
    Regards,
    Phani

  • RSBDCSUB not scheduling background job in PRD system

    hi all,
    i have created one background program to re-run all error session from sm35 using program RSBDCSUB..
    tables: APQI.
    data: ls_apqi type apqi,
          it_apqi type standard table of apqi .
    select * from apqi into table it_apqi
    where progid eq 'SAPMHPS0'
    and qstate eq 'E'.
    LOOP AT IT_APQI INTO LS_APQI.
      SUBMIT RSBDCSUB WITH MAPPE EQ LS_APQI-GROUPID
                      EXPORTING LIST TO MEMORY
                      AND RETURN.
      clear: ls_apqi.
    ENDLOOP.
    it work fine in development and test syetem....
    problem is when i run in production system...i am getting message that "0 session(s) transferred to background processing".but in developement and test system i am getting "1 session(s) transferred to background processing.
    what could be the reason?
    any athorization issue...

    hi all,
    When i run RSBDCSUB program in foreground.I got this message "submit RSBDCBTC not successfully executed".
    i checked system log..
    "job SM2345 is invalid"
    but test system its working well....
    regards,
    krishna...

  • Scheduling Background Jobs at OS level

    Hi all,
    How to schedule Background jobs at operating system level.
    Thanks
    vijay

    Hi,
    Create a event, create the job and schedule after this event has occurred and from OS call sapevt <eventname> name=sid nr=<instance name>
    Regards
    Umesh K

  • Scheduling one background job inside another

    Hi All,
    Is it possible to Scheduling one background job inside another.? i.e In my Z program I am calling job_open, job_submit, job_close and to execute one standard report in background. And after that I am executing my Z program itself  from SE38 as Program->Execute->Background->Execute Immediately. Is this logically correct? I am asking this because I am not getting the desired result
    Thanks & Regards,
    Neethu.

    HI,
    Check the job steps in SM36.
    First schedule the Standard job and in the job steps schedule the z report.
    Schedule job in chain

  • Schedule background job using system variant

    Dear gurus,
    We're planning to schedule background job using system variant, for example, current fiscal year and current posting period (transaction AFAB). Is it possible? So for example, for this month, "Posting Period" value will be 6, and then next month will be 7.
    Can you tell me how to do this, if I want to set up the schedule only once?
    Thanks for your help.
    Best Regards,

    done using abap

  • Maintenace Plan - Scheduling Impact - Migration one SAP system to another

    Hello All
    I need a small help, we are migrating from one SAP system to another and will be creating maintenance plan (counter, multiple counter and time based) as a 1:1 copy of the source system in the destination system,
    1.  I have a requirement that all future schedulling orders (schedulled but not created)  that are visible in IP24 in source system with a future date should be also visible when the new plans are created and migrated in the new sap system with a same date.
    Can some one suggest the way to go ahead on this?
    2.   Also if in a source system we have a maintenance order open (follow up of a plan) how do i create it as an open order following up from the maintenance plan in the new SAP system.
    Thanks
    Manu

    Hi,
    For this to achieve you need to schedule maintenance plans in new system with completion date / Plan start date of last completed call for cases where Completion confirmation is checked / Not checked. This is for plans with single package.
    If the plan is of multiple packages, then you need to perform start-in-cycle using the last completed package and the dates as mentioned above.
    Permutations and combinations keep on varying if the plans in old systems are counter based, multiple counter based, cycle sets with different dimensions are used.
    You need to work out the schedule dates for each combination.
    Thx

  • Send a render job to Media Encoder on another system?

    I am a recovering Final Cut Pro user. Switched over about version FCP X 10.3. The railroad tie that broke the camel's back for me was a removed feature I am hoping I can do with Premiere in some way.
    In FCP 7 and even FCP X up to 10.3, you had the option of sending a render job to their version of Media Encoder (Called "compressor") just like Premiere Pro can do now. However, you had the option of being able to use a "render cluster" by where if compressor was loaded onto other macs on your network, it would send the job out to one of those nodes or even split it up and send parts of it to several computers to parallel encode the job. Made large jobs faster and allowed you to not have to bog down your processors on you main computer with a render job. Apple just took it out with 10.4, which was a deal breaker for me.
    I know Premiere/Media Encoder does not have the ability to split the job up, but was wondering if there as a way I could send a render job to Queue up on the Media Encoder of another system...say my Mac mini server which also has Media Encoder on it. Is there any way to select the path to the Media Encoder and thus have it deploy the render job to the other machine?
    Thanks.

    You can export a Sequence on another machine on your network, if that's what you want to do.
    You can save your Sequence on your A machine, then import the sequence to AME on your B machine, and export away.
    I do this myself.  I allows me to keep working on my A machine at more or less full speed while my B machine is cranking out review movies or whatever.  There's a little network overhead, but not enough that I notice.
    Just click the + icon in AME on your B machine, and navigate to your project and sequence on your network.

  • How to schedule batch jobs to run after another periodically?

    Hi good people,
    I want to schedule batch jobs to run periodically one after another.
    Here is the problem:
    I have scheduled JOB1 to run once a week and I scheduled JOB2 to run after that job (JOB1). The problem is that JOB2 runs only after the first time that JOB1 runs. The second time the JOB1 runs the JOB2 is not started. I presume that the reason for that is that JOB2 is tied to the job number for the JOB1, and since a new job (with the new number) is created every week, the JOB2 is only tied to the first instance of JOB1.
    So does anyone have an idea how to get JOB2 to automatically run every week after JOB1? One idea is to use events, but that I'm hoping that there is a bit cleaner solution..
    Best Regards,
    Armin

    Hi
    Try scheduling both JOB1 & JOB2 in a single job in steps.
    First schedule JOB1 & then give JOB2 in steps.
    Kindly check the following link to do job scheduling in steps:
    http://help.sap.com/saphelp_47x200/helpdata/en/c4/3a7ed1505211d189550000e829fbbd/frameset.htm
    In the above help documentation, look for the topic <b>"job steps"</b> in
    "Background Processing: Concepts and Features"
    hope it helps!
    best regards,
    Thangesh

  • Scheduling of jobs

    Hi Gurus,
    I have an issue regarding scheduling of jobs:
    How can we schedule the jobs based upon the colour and raw material structure.
    The scenario is , today I have to produce a red colour film (which is a sub assembly for a Parent item) and i have another order for a different Parent item which requires this red colour film , for this the system has suggested a different date. Make a note that this red colour film has different item code for different Parent item .So we have to produce this red film in continuation and also to minimize the losses. How can we achieve this with the help of application .
    We don't have the scenario of Make to Stock , every product is customized and Order to Make scenario is applicable here.
    Please provide your suggestion . Is build sequence is applicable here , if yes then how?
    Thanks in advance.
    Sameer

    Hi,
    Yes I am using Manufacturing Scheduling.
    The business scenario is:
    We are into flexible packaging industry. Here we produce films : coloured and transparent. The coloured film are of various colours and grade.
    So our aim is to club the jobs of same colour and grade in order to minimize the setup losses .
    The issue is :system is scheduling the job based on the Delivery dates.
    How can we achieve this optimization of losses as the sale orders will be having different delivery dates and schedule.
    SInce ATO is not applicable in this industry and it goes on the lines of Make to Order.
    We dont have the concept of Forecast here .
    I hope i have made myself clear . Please revert if you want to have more information.
    Regards
    S

  • Export BEx report to another system

    hello all,
                we have BEx reports which we would like to send to other system. I tried some options and like to get more info. on the options..
    openhub: not feasible as we r using hierarchies and complex queries
    rscrm_bapi / apd : does not support hier and texts description
    rep.agent pre-cal : looks good, but stores data on app.server..using download scheduler to get data onto next system, but there is no interaction b/w rep.agent job and download scheduler.
                             any other suggestions to get data from a BEx report to another system....
    thanks
    sri

    I dont know much details about MDX. But this can be achievable via MDX Queries.
    Try the transaction MDXTEST and search for more documents on MDX.
    /people/prakash.darji/blog/2006/09/04/work-with-xmla-web-service-for-bi-data-in-external-applications

  • Job cancelled after system exception ERROR_MESSAGE

    Hello all
    I am facing the following issue.
    A custom report is schedulled and run as backround job. The report should create a txt file on server.
    The report works fine in foreground, but as backround job ends up cancelled all the time.
    The job log:
    Job log overview for job:    VI5 / 13072800
    Date       Time     Message text                                                                     Message class Message no. Message type
    27.03.2009 13:09:28 Job started                                                                           00           516          S
    27.03.2009 13:09:28 Step 001 started (program ZESSRIN110R, variant PR1_0000381, user ID METAPARTNER)      00           550          S
    27.03.2009 13:09:28 File creation ERROR:                                                                  00           001          E
    27.03.2009 13:09:28 Job cancelled after system exception ERROR_MESSAGE                                    00           564          A
    There is no info in SM21 regarding the error.
    Can anybody help with this?
    Thanx in advance.
    imi
    Edited by: Imrich Vegh on Mar 27, 2009 2:27 PM

    btw the part of my code  looks like this:
    server path check
        IF p_srv IS NOT INITIAL.
          OPEN DATASET gv_server FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
          IF sy-subrc EQ 0.     --- I keep receiving 8 here in BACKGROUND JOB
            WRITE : / text-077,  gv_server.
          ELSE.
            MESSAGE text-069 TYPE 'E'.
          ENDIF.

  • Job cancelled after system exception ERROR_MESSAGE in DB13

    Hello All,
    When i opened the t-code DB13 i saw that this job "Mark tables requiring statistics update" is cancelled.
    JOB LOG:
    12.02.2011  22:00:16  Job started
    12.02.2011  22:00:16  Step 001 started (program RSDBAJOB, variant &0000000000085, user ID 80000415)
    12.02.2011  22:00:18  Job finished
    12.02.2011  22:00:18  Job started
    12.02.2011  22:00:18  Step 001 started (program RSADAUP2, variant &0000000000081, user ID 80000415)
    12.02.2011  22:01:26  Error when performing the action
    12.02.2011  22:01:26  Job cancelled after system exception ERROR_MESSAGE
    When check for the BGD Job in SM37 for this job i found the same error in the job log with the status cancelled.
    Job log overview for job:    DBA!PREPUPDSTAT_____@220000/6007 / 22001700
    12.02.2011 22:00:18 Job started
    12.02.2011 22:00:18 Step 001 started (program RSADAUP2, variant &0000000000081, user ID 80000415)
    12.02.2011 22:01:26 Error when performing the action
    12.02.2011 22:01:26 Job cancelled after system exception ERROR_MESSAGE
    I couldn't find any logs in SM21 of that time also no dumps in ST22.
    Possible reason for this error:
    I have scheduled the job Check database structure (only tables) at some other time and deleted the earlier job which was scheduled during the bussiness hours which caused performance problem.
    So to avoid performance issue i scheduled this job in the mid night by cancelling the old job which was scheduled during the bussiness hours.
    And from the next day i could see this error in DB13.
    Rest all the backups are running fine but the only job getting cancelled is for "Mark tables requiring statistics update"
    Could anyone tell me what should i do to get rid of this error?
    Can i schedule this "Mark tables requiring statistics update" again by deleting the old one?
    Thanks.
    Regards.
    Mudassir Imtiaz

    Hello Adrian,
    Thanks for your response.
    Every alternate day we used to have performance issue at 19:00hrs.
    Then when i checked what is causing this problem, i discovered that there was a backup "Check Database Structure (tables only)" scheduled at this time and it was mentioned that this backup may cause performance issue.
    Then i changed "Check Database Structure (tables only)" the time of this backup to 03:00hrs.
    The next day when i checked DB13 i found that one of the backups failed.
    i.e. "Mark Tables Requiring Statistics Update"
    Then i checked the log which i posted earlier with the error: "Job cancelled after system exception ERROR_MESSAGE"
    I posted this error here and then i tried to delete the jobs scheduled i.e. "Mark Tables Requiring Statistics Update" and then re-schedule it at the same time and interval.
    And then it started working fine.
    So i just got curious to know the cause of the failure of that job.
    Thanks.
    Regards,
    Mudassir.Imtiaz
    P.S There is one more thing which i would like to say which is not related to the above issue, and m sorry to discuss this in this thread.
    I found a few Bottlenecks in ST04 with Medium and High priority.
    Medium: Selects and fetches selectivity 0.53%: 122569 selects and fetches, 413376906 rows read, 2194738 rows qualified.
    High: 108771 primary key range accesses, selectivity 0.19%: 402696322 rows read, 763935 rows qualified.
    There are a lot these.
    I would really appreciate if you tell me what is the cause for these Bottlenecks and how to resolve.
    Thanks a lot.

  • Scheduling background job on Logon group

    Hi All,
    We have 4  logon groups configured in SMLG, while scheduling the job  in SM36 ->Target server field i am able to see only one group and other indivdual servers not  all the Groups configured in SMLG.
    Is there any option i have to check to let all the groups configured in SLMG to diaply in  SM36 for scheduling so that i can select the Logon group. I tried giving the logon group names manually which are not listed in Target server field it's giving the error group not exist..
    Please suggest..how to make all the Groups configured in SMLG to get displayed in SM36  for scheduling jobs...
    Thanks,
    Subhash.G

    Target server field is Name of an SAP instance at which a background job should be run.  The name has the following format:  <host name>_<SAP System name>_<SAP System number>, where host name is the name of the server computer on which the instance is running, as specified in the system profile parameter SAPLOCALHOST.
    The name of each instance is specified in the system profile parameter rdisp/myname.
    Example:  hs0123_C11_55
    In programming:  As the table field EXECSERVER, shows the target instance selected by the user for running a job.  As the table field REAXSERVER, shows the SAP instance at which a job was actually run.
    Hope this is clear.
    Thank you,
    Shyam

Maybe you are looking for

  • Adding a list in the UIBB of type Form.

    Hi ,      I have a requirement to Enhance a standard component in a FPM UIBB. I have to place a list(a table of 15 (3*5 matrix)cells). But the UIBB is of form type and i have implemented both the interfaces form and list into my feeder class. Now is

  • Problem with motion tracking

    I have Premiere Elements 12 64 bit on a windows 8 machine. I am trying to use the motion tracking feature. I am able to select an object to track and the resulting yellow rectangle follows the object as it moves through the scene. The problem I have

  • Problems Only To Delete Records on DOE

    Hi, I have developed an application using SDOE_CONTACT* BAPI WRAPPERS (GETLIST, GETDETAIL, CREATE, MODIFY, DELETE). The application is running fine for GETLIST, GETDETAIL, CREATE and MODIFY, when I synchronize i can see the data reflecting on CDS and

  • Picture variable to image (IMAQ)

    I am trying to convert a "picture" type to "image type" . The "picture" type is from Graphics & Sound toolbox and image type comes from Vision and Motion toolbox. Writing to a file like jpg and rereading it as an image is not an option. The picuture

  • Suggested settings  to eliminate effects of sensor filter

    I have my own output sharpening method for prints but would like to hear what others are doing to eliminate the effects of the camera's sensor filter. Some people call it "presharping" others "capture sharpening". I am using current version of CS3, B