Triggering a Job

Hi,
How do we go about triggering a job and passing the parameters for the same?
Kindly reply as this is a urgent issue.
Thanks.

Hi!
Define your own event in transaction SM62.
Then you can assign to your job, when this event is triggered within a program with the BP_EVENT_RAISE function module.
Use the following function module:
  CALL FUNCTION 'BP_EVENT_RAISE'
    EXPORTING
      eventid                      = 'ZMM_ME22N'
    EVENTPARM                    = ' '
    TARGET_INSTANCE              = ' '
  EXCEPTIONS
    BAD_EVENTID                  = 1
    EVENTID_DOES_NOT_EXIST       = 2
    EVENTID_MISSING              = 3
    RAISE_FAILED                 = 4
    OTHERS                       = 5
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Using the EVENTPARM you can give parameters to your job also.
Regards
Tamá

Similar Messages

  • Error in triggering background job

    HI, I've been facing an error which a background job is being scheduled. The scenario is something like this ...
    1) A third party schedulling system triggers a SAP job and monitors the progress
    2) In SAP, the master job is been copied with a different user name and then released for processing.
    3) There are multiple jobs which get triggered but there is one job which is causing a problem.
    4) The job makes a copy an stays in a scheduled status without getting released. While i try to manually release the job it give me an error that cannot create record in the database.
    5) Upon checking the system log it gives me this -  Error: INSERT background sched. table(job $$$$).
    There is already an entry for the specified job in the table TBTCS.
    6) While checking the TBTCS table i've found multiple entries out there. Should this table be empty or have information about the runtime of this job.
    Please help as this background job is causing concerns in archiving processess defined.
    Thankx in advance for your help.
    Arvind.

    the earlier problem of background job was solved by changing the  output device assigned to user wf-batch .
    regarding the transport request :
    when i was trying to execute the step : "Schedule bakgrd for missed deadlines " MANUEL it was giving me an option of SAVE AND SCHEDULE . which was creating the transport request . but when i executed it automatically it worked fine without asking a request to me ... i don't know why )-: ... probablly we can specify a different interval then the standard of three minutes and which will be transported (it's just a guess) . i have  executed it  automatically ...
    well thanks all for u r help

  • Triggering background jobs

    What is the best solution to trigger background jobs within user exits?
    Currently the method I am using is quite cumbersome.
    1. Create user event in SM62
    2. Create background job attached to this user event.
    3. Within user exit call function module BP_EVENT_RAISE using user event.
    The problem I have with this approach is that in the program I have to add a 15 - 20 sec delay to handle record locking. Lets say I am in a user exit in MM02, triggering this event without the delay can lead to no records been processed.
    What are other ways of implementing this solution?
    Can I do a SUBMIT report VIA JOB
    or CALL FUNCTION IN UPDATE TASK.

    Try this way also.
    In the userexit update a custom table with document number + flag (pending for process)
    Create standalone program that to be scheduled like every 5 minutes (as you like ) search for this table and get all open documents (with flag eq space ) and process one by one.( Calling jobs)
    This will reduced number of repetative background jobs
    Say User A edit document 100 at 10.00 am and saves at 10.01 am and user B edit document 100 at 10.02 am and save it
    10.03 am ( so every save if you trigger a backgound job, unncessary create jobs for same document number 10 )

  • Triggering background job event from Unix script

    Hi all,
      I am having one question regarding triggering of background job in SAP using Events from Unix script. Is this possible? If so, can anyboy provide some sample code related to Unix script and how do we communicate to SAP from Unix system. Actually, here the backend of R/3 system is MSSQL. I am having a program in R/3 system which is scheduled as a background job based upon event trigger. I want to trigger that even from the unix script.
      Appreciate for your help in advance.
    Thanks,
    Adithya K

    Hi,
    Check if this can help you
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/content.htm
    Regards,
    Atish

  • Process chain Failed while triggering the job

    Hi All,
    Actually everyday delta request has been loading to the dataTarget of same data source through process chains thrice with different timings.
    Today Problem is only once delta request  has been loaded into data Target without error. It has not triggered furtherly (two more times)
    When i have checked in the processchain its showing delta has been failed.
    Generally in this scenario how i have to investigate for know the details of the problem? anybody can tell step by step?
    Regards,
    C.V.
    Message was edited by: P.C.V.

    Hi
    Right click on the failed process type and display messeges and go to the Process monitor push botton
    if will take u to the Monitor screen
    The best thing is go to the
    1) SM37 and select the job in R3 and see the job log
    2) RSMO and see the error messeges in the monitor for the request
    give here the error messeges so that it will better to everybdy to  help
    regards
    AK

  • Triggering  a job when the first job gets cancelled...

    From BMV0, we can trigger a job once the first job is completed using the 'After Job' option. Can u tell me if its also possible to start another job when the first job gets cancelled ?
    Message was edited by: Sushma Anuprava
    Message was edited by: Sushma Anuprava

    Hi,
    Go to the database view V_OP and check for the column 'STATUS' which gives the background job status , based on value from this column (cancelled status ) , start the new job with FM : 'JOB_START' .
    Regards
    Appana

  • Regarding Triggering the job from se38

    When i trigger a job from se38, i get a message saying " Event or Parameter has been raised on the server " can any one make me understand what does it mean.

    Hi
    SE38 functions are,
        Create variants
         Display variant directory
         Display and change values and attributes
         Copy, delete and rename variants.
    Find the link below,
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/67ee407552742ae10000000a155106/frameset.htm
    I think this will help you,
    Regards
    Sibvanand

  • Create background job triggered by another job

    Hi experts,
    I want to run FCHU in background everytime I finished run F110.
    I'm thinking to use background job creation SM36 - triggered by job. But the problem is, job created from F110 the job name is not fixed.
    Please anyone can give better idea ??
    Thanks,
    Melissa

    Hi melissa,
    The suggestion given by Prem is perfectly Ok.
    I would suggest you to create an event  by sm62 and then create an event triggered  background job which will run the FCHU in Back ground.
    So you need to get an enhancement point in F110 and put the code of triggering the event .
    If there is no enhancement  then you can create a program which will call the Transaction F110 by using CALL TRANSACTION statement and after F110 processing the control will get back to your program and you can write a code for triggering the event by using the FM SWE_EVENT_CREATE.
    I hope this will help you

  • How is BI_REQD*   job triggered ???

    Hi all,
    can any one help on this.
    In our BW system, BW  triggers a job whose name begins wih
    BIREQU* after each successful master data load . After this job another job which begins  with BI_REQD*(which runs the program RSDELREQ1 ) is triggered and the whole data is deleted.so how can i stop this job from triggering ?
    i am an abap developer, and this is an urgernt requrirement,can any one quickly help me on this?
    Regards
    Durga K

    Hi,
    BI_REQ is triggered normaly when an load is triggered. Its for Src sys extraction (for flat file, DataMart, & BAPI -> job runs in SAP BW). In your case it may be because you have given the deletion of data from targets in the InfoPackage level.
    Check RSA1 > InfoPackage > Data targets tab > 7 th column (Delete entire contents of data targets).
    This may not be the exact issue. Just try it out.
    Also if this is a part of chain check if there is a process to delete data after this load.
    Thanks,
    JituK

  • How to find triggering job for Process chain

    Hi,
    I have a process chain and its triggering by some other system using an event.
    I want to know how to find which ystem is triggering this job means process chain and on what basis it is starting?
    I have an event for this process chain and also FM : BP_EVENT_RAISE. So how to find the with those details?
    Thanks,
    Phani

    HI,
    some other system means either dev, qas, prd?
    for every process in a process chain there is a chain id which is same as the name of your chain,
    for every chain id there exist some log ids , this both information you can find from the standard table RSPCLOGCHAIN
    From this log id you can find the status of the process from  table RSPCPROCESSLOG.
    here u will find the status of your process whether is has been completed successfully or ended with errors.
    Thanks,
    Phani.

  • Creating job documentation from Job request

    Hello Esha,
    depends. If you run EhP1 of SAP Solution Manager you can use transaction SLFJ instead of SLFN (prerequisite: multi-transaction type handling is setup). SLFJ comes with the correct action profile already assigned.
    If you use SLFN or a custom copy of SLFN, please assign the Job Management action profile. See implementation guide (transaction SPRO) for more information in section "Integration with Service Desk".
    I recommend to view the following tutorial:
    http://service.sap.com/~sapidb/011000358700000332872009E/index.htm
    BTW: Please use the Solution Manager forum.
    Regards,
    Martin
    Please follow us on SDN:
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/25168834 [original link is broken] [original link is broken]
    /people/martin.lauer/blog
    and SAP Service Marketplace:
    http://service.sap.com/jsm

    This was answers below, in the comment area by Volker.
    How to configure SAP's standard Job Request form - Part 2
    Hi Shahul,
    the user triggers the Job Doc creation from within the Incident or Change Request in the JSM assignment block, but then the data from teh Job Request is automatically taken over for the Job Document.
    So starting the creation and pushing the save button is manual work, but the filling out the Job Doc is done automatically.
    Kind Regards
    Volker
    Regards
    Shahul

  • JSM - Creating Job Documentation from Job Request itself

    Hi all,
    I am still exploring JSM, and I know its possible to create Job Request (Job Req) from Job Documentation (Job Doc).
    But is it possible to create the reverse (Job Doc from Job Req) ?
    This will be great, if the user is creating Job Req from "Detailed" version (compared to "Basic"), which has similar entries and tabs, as Job Doc.
    I did read somewhere that its possible, but I never find any documentation or SCN/blogs on this.
    Thanks in advance
    Regards
    Shahul

    This was answers below, in the comment area by Volker.
    How to configure SAP's standard Job Request form - Part 2
    Hi Shahul,
    the user triggers the Job Doc creation from within the Incident or Change Request in the JSM assignment block, but then the data from teh Job Request is automatically taken over for the Job Document.
    So starting the creation and pushing the save button is manual work, but the filling out the Job Doc is done automatically.
    Kind Regards
    Volker
    Regards
    Shahul

  • Background job - Event tiggering not happening

    Hi All,
    Background job X will run on daily basis and which in turn triggers two jobs say A and B.
    The job X got finished successfully but jobs A and B havn't been triggered and so not running.
    Please help me on this.
    Thanks & Regards,
    Gopi L.

    HI,
    Gopi check the start condition of job A & B, what event is triggering these jobs.
    Also check SAP note 395170.
    Regards,
    Sachin Rane.

  • How to manage cross-schema job dependencies?

    Hello.
    I know how to set up a job schedule where one job triggers another job in the same schema, using the
    <pre> raise_events</pre>
    attribute on the first job, then using the
    <pre> event_condition, queue_spec</pre>
    attributes on the triggered job with a condition along the lines of
    <pre> tab.user_data.object_name = '<jobname>' AND tab.user_data.event_type = 'JOB_SUCCEEDED'</pre>
    Is there a way of triggering a job in a different schema?
    Many thanks,
    Clark.

    Jobs created in what version of hte product?
    Jobs created using DBMS_JOB or DBMS_SCHEDULER or part of DBMS_AUTO_TASK?
    If you have properly set up object permission and synonyms why does it matter and why are the jobs in separate schemas?

  • How to schedule a job from r3 to BI daily ?

    Please let me know how to schedule a job frm bi to r3, that is i want to load data from a sd ds to a sd cube in bi. I do not want to use a PC and can i schedule a job daily without a PC, which can run daily after 10pm ,remember its not a manual schedule. Do we have any option to schedule in hourly, weekly, daily from bi to r3. If yes HOW ? i know we can do it thru infopackage group but will the infopackage group accept if its only a single load....I think it should have multiple infopackage rite to add it to a group or can it b a single job as well.
    Edited by: Manohar P on Oct 16, 2008 3:14 PM

    An infopackage group can only run infopackages, and unfortunately, you will need an ABAP program to trigger the event in R/3.  There is plenty of ABAP code in this forum to show you exactly how to do this. 
    Try this:
    Triggering a Process Chain From R/3 pgm
    R/3 Jobs Triggering  BW job
    You can also review OSS Note 135637.  This note will show from R/3 to BI (BW).  But you can reverse the logic to go from BI to R/3.
    Hope this helps.
    My suggestion would be to replace the infopackage group with a process chain, because you can call an ABAP program from a process chain.  You also have many more processes at your disposal using process chains.

Maybe you are looking for

  • Clock in out Correction

    Hi Gurus,    How to implement Portal Clock in/out correction for substitutions. For present normal clock in/out corrections is working properly but substitutions is not working. Can any one pleas explain how to implement for substitutions? Thanks, SC

  • Using the paste options randomly misses out text, don't use it and use the 'Paste Special...' option instead (MS Outlook)

    Also there seems to be no obvious way to report Office bugs.  This is leaving little room for improvement.  Not sure if there has been any planning on this front??? For example, [MS Outlook] using the paste options randomly misses out text, (don't us

  • What is available in essbase to show analysts formula calculations for accounts/ratios?

    Hello all, What is available in Essbase to show analysts formula calculations for accounts/ratios? Access to the EAS console is not an option, so we are looking for something else. Also what is best practice for use of a "Data Dictionary" for Essbase

  • Solaris 10_69 -- 3/05

    I had installed 10_69 about a month ago. As this was an early release, I'd like to upgrade to the current official release. Is this upgrade possible, or will I need to do a clean install of 5/03? Thanks!

  • After update to 10.1 most projects are gone

    I just updated from FCP X to FCP 10.1 During the update it wanted to update all my projects and events to libraries. I did get a note about some missing files that may need to be relinked, but that's it. However after the update, only one project mad