Trigger a job using an event through a process chain

Hi,
After the success of 5metachain, I am using AND condition
My requirement is as follows, it should trigger a job which needs to be after AND condition,
I have created an event using sm64. Basically the client wants to trigger the job using the event through the process chain. I have tried test scenariou2019s using ABAP program (Process type) in the process chain but it is failing. Is there any other way to trigger a job using an event through a process chain? If ABAP program is the only option, can you please specify what all needs to be filled in the variant?
Regards.
Jerry

Hi,
Create a program like below,
CALL FUNCTION 'BP_EVENT_RAISE'
  EXPORTING
    EVENTID = 'EVENT WHICH YOU HAVE CREATED'
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.
search and include the program name which you have created above in the "ABAP program" process type which you are going to include in the process chain.
Include the event which you have created in the start condition of the job.
Note: No need of give any variant, because here we are calling only one function in this program.
Regards,
Sridevi.

Similar Messages

  • List of all the process types used in the creation of process chains

    Hi Gurus,
    I am new to process chains creation, can any one give the list of all the process types used in the creation of process chains and there uses also.
    Please search the forum before posting a thread
    Edited by: Pravender on Jan 4, 2011 4:18 PM

    Hi,
    As process chain is to automate the data load step.
    For Ex:- If you are loading data from R/3 to DSO CUBE.
    Here you require Info package to load till PSA.
                                 DTP to load till DSO
                                  Another DTP to load Cube.
    And all other process like psa deletion AND process you can find in RSPC tab.
    Thnaks,
    Saveen Kumar

  • How to create the planning function through the process chain

    Hi guys,
    currently i am running some planning function in fortend so it is time consuming now customer want the run the planning function through the process chain any body having the idea please give me.

    Hi,
    this is standard functionality, cf.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/946677f8fb0cf2e10000000a114a6b/frameset.htm
    Regards,
    Gregor

  • Trigger job using an event

    Hi
    Could anyone tell me the steps involved in triggering a job in R/3 using an event.It would be very helpful if somebody could enumerate the steps.
    Points will be awarded.
    Regards
    Ankit

    Follow these steps:
    Step1: Create event from transaction SM62.
    Step2: Create a program that triggers this event by calling the FM u2018BP_EVENT_RAISEu2019.
    Step3: Configure the background job from transaction SM36.
    For details pl. see my blog in this given link.
    http://www.****************/Tutorials/ABAP/BackgroundJob/OnEvent.htm
    Regards,
    Joy.

  • How to schedule a background job using the Event concept..?

    Hi Folks,
    I have a requirement that, I need a schedule a background job.
    Once after the previous job successful only, new job should get triggered. How to go ahead with this..?
    For Eg, I am scheduling a job called ZTEST periodically for 1 minute. If the job is not get completing with in 1 minute, I dont want to start my new job. Only after the success of my old job, I want my new job to run.
    Waiting for ur replies.
    Regards,
    Savi.

    Hi,
    You can use events that have already been defined, or you can create new events for scheduling background jobs.
    If you wish to use new events, do the following to implement the event scheduling:
    Define and transport the event as a user event with transaction SM62.
    You must define only event IDs; event arguments are not defined in the R/3 System. Instead, you specify event arguments when you schedule a job to wait for an event and when you trigger the event.
    If you define a new event, you must also transport it to your production systems. The event transaction does not have a connection to the transport system. Instead, you must create a transport request for the event yourself.
    Do this to transport an event:
    Create a transport request.
    Start the editor in the transport request and enter the following:
    R3TR TABU <table name> where table name is BTCSEV for a system event ID, BTCUEV for a user event ID.
    Press F2 with the cursor on the table name to call up the screen for specifying the table entries to transport. In this screen, enter the event ID’s that you have created.
    Save and release the transport request. Ensure that it is imported into your production system(s).
    To trigger an event, add:
    – the function module BP_EVENT_RAISE to your ABAP program, or
    – the program SAPEVT to your external script, batch file, or program.
    When your programs execute these keywords, an event will be triggered in the R/3 background processing system. The event-based scheduler is started immediately. It in turn starts all jobs that were waiting upon the event, subject to normal background processing restrictions, such as the requirement that the job has been released to start.
    Schedule the jobs that are to run when your events are triggered.
    You can schedule jobs for one-time start or to be started whenever an event is triggered.
    Regards,
    Raj.

  • How to include Events Concept in Process Chain and how to trigger it

    Hi
    I have Three Process Chains PC1, PC2, PC3 .
    I want to trigger there Process Chains by Events .
    I want PC1 needs to run every day 7:00am . And once it is finished then PC2 needs to start . And once PC2 is finsihed then PC3 needs to execute .
    So please give me step by step process for Process for implementing the Events in this model and give me the steps to include Events concept in my model .
    Thanks Alot
    Regards
    rizwan

    Hi,
    You can do this without event also. Schedule PC1 first and then have PC2 as local to your PC1 and PC3 as local to PC2. In that way, as soon as PC1 is done it will trigger PC2 and as soon as PC2 is done it will in turn trigger PC3.
    If you want it through an event, first create event in SM62 and you can trigger this event in SM64. Then for the PC1 in start variant, click on select conditions, select After Event and give this event name. Now again its better & efficient to trigger this even automatically, for which you need to write an ABAP program in SE38 and define a variant there. This ABAP program can be scheduled as a background job in SM36, click on Click on step on top. Give program name and variant.Click save.Next click on Start Condition and schedule is as your require it to run. So this background job starts automatically and runs your ABAP program which in turn will trigger your event and PC's will get triggered.
    For both the approaches, you have to have PC2 & PC3 as Local chains as I explained above.
    Guru

  • Trigger an ABAP program through a Process Chain

    Hi,
    I have an ABAP program as part of my Process Chain that updates the BW Hierarchy OREGH. 
    However I can't get the program to execute through the chain, even the though chains goes all green. without any REDS anywhere along the chain. 
    When I check if the program has made the desired changes in the tables it hasn't.
    If I run the program using SE38 it works fine and in seconds.
    Is there a parameter setting I have to set in the process chain or within the program itself.Tthe program is active.
    Ive checked many of the  posts about this issue but couldn't find a someone experiencing a similar problem.
    Please Help
    Thanks
    Amir

    Remove that ABAP program from the Process Chain and activate. Leave RSPC screen.
    Re-enter to RSPC, and add that program by creating a new variant with following options:
    Call Mode : Synchronous
    Call From : Local
    Check and Activate process chain.

  • Use of TVARVC values in Process Chain

    Hi,
    According to the value of one variable stored in TVARVC, I'd like to execute (or not) a process chain. Is there any easy way to do so ?
    For the moment, the solution I think about is :
    - Run a program to read values in TVARVC
    - Raise a specific event depending on these values
    - Schedule the process chain after this event
    As I am not very comfortable with ABAP, I would appreciate if you have any good ideas, or code sample that I could implement.
    Thanks !

    Hi Alex,
    The easiest way is to write a piece of ABAP code using the Function module "BP_EVENT_RAISE".
    1) Create an event in SM64 and make the process chain as Event triggered.
    2) Create a new ABAP program and include the above function module.
    3) Pass the parameters of the TVARVC table and check if the value in the table matches with the desired value. If so trigger the event.
    4) Schedule the ABAP program in SM36 as a daily job.
    Everyday the program gets executed and checks the value in TVARVC table. If the value mathces, then the event will be triggered.
    Let me know if you need any further info.
    Regards,
    Balaji V

  • EVENT RAISE IN PROCESS CHAIN

    Hi mates,
    How to Raise events in process chain, for example i want to raise a event like ( Data loaded in ODS) after ODS is loaded.
    thanks

    Hi,
    Look at the threads below. There are very good discussions on this topic :
    Re: Process Chains Events
    events and process chains
    Query on using EVENTS in process chains.
    Cheers,
    Kedar

  • Help in Event that  start process chain

    Hi,
    i use the Fm Below to start process chain but its not working What can be the problem?
    Regards
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        EVENTID                     = 'ZIST_SSO'
       EVENTPARM                    = '1'
      TARGET_INSTANCE              = ' '
    EXCEPTIONS
       BAD_EVENTID                  = 1
       EVENTID_DOES_NOT_EXIST       = 2
       EVENTID_MISSING              = 3
       RAISE_FAILED                 = 4
       OTHERS                       = 5

    Hi,
    may be you should check your authority. May be you are not allowed to run/schedule a program/chain in background.
    regards
    Siggi
    PS: do a new activation and scheduling of the chain. goto sm37 afterwards and check the processes BI_PROCESS_TRIGGER. There must be at least one waiting for your event.

  • How to Delay an Event in a Process Chain

    Hey,
    We have a scenario in which we need to schedule a process chain in such a way that,the main chain contains the DSO load and the local chains contains the Cube load (One for NA and other for EU).
    I want to schedule it in such a way that two local chains of the main chain should be triggered at different times.

    hi...
    I think its getting pretty complex....instead of writing programs..use simle metachain thing which will solve your issue with simple process chain design.
    You have :
    Main Chain
    {Dso load
    Local Chain A(Eu) Local Chain B(Na)
    Now what you want is on the first run the main chain should trigger and only Local Chain A trigger.
    While on second run
    Main chain + Local chain B trigger.
    the simplest soultion
    Create 2 Metachains like below:
    PC1.
    Main Chain X
    {Dso Load
    Local Chain A(Eu)
    PC2.
    Main chain Y
    {Dso Load
    Local Chain B(Na)
    Now create metachain to combine
    Main Chain
    {PC1
    PC2
    So PC2 will start only when the PC1 has finished.
    Let me know if it is feasible for you.
    Regards,
    RK

  • When to use the "construct database statistics" process chain' item

    Hello, everybody.
    Information 1:
    In our BW system we have a job from DBA guys that build statistcs for the entire database. This job runs every day in the dawn.
    Information 2:
    In several process chain flows, we use the item "Construct Database Statistics" to update the statistics after cube upload.
    Information 3:
    I checked the log from both jobs and found several tables analyzed in first and second cases.
    The question:
    Is this step inside the process chain unnecessary? Exist any situation when this step is useful?
    Thanks in advance,
    Henrique Teodoro

    Hi.
    I found one advice about this issue in the follow thread:
    /message/3460818#3460818 [original link is broken]
    Regards,
    Henrique Teodoro

  • Displaying an audit through a process chain message

    Does anyone know the best and cleanest practice for writing an audit either via spool or job log within a BW Process chain.
    I have 2 itabs in which I'm comparing and I need to email the results and specific data rows during a failure to specific users.  This audit is taking place after data is loaded into the new table (40 table) and before activiation.
    Thanks for any help.

    Hi,
    Create a program like below,
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        EVENTID = 'EVENT WHICH YOU HAVE CREATED'
    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.
    search and include the program name which you have created above in the "ABAP program" process type which you are going to include in the process chain.
    Include the event which you have created in the start condition of the job.
    Note: No need of give any variant, because here we are calling only one function in this program.
    Regards,
    Sridevi.

  • Waiting for a batch job to finish before executing a process chain

    hello guys,
    do you  have any good readup that allow me to configure a process chain to only start extraction once the batch job to fill up a table has been completed in ECC? thanks in advance.

    Hi,
    You can refer the below links :
    R3 job completion trigger a process chain to run on BW
    Triggering a Process Chain From R/3 pgm
    R/3 Jobs Triggering  BW job
    Thanks.

  • Need some useful stuff on SAP BW Process Chain

    Hi all,
    i am rajendra and beginner is SAP BW. Now i am working in Process chains.
    can u plz suggest me some useful book, web sites etc etc. on process chains?
    waiting for ur precious reply.
    regards
    rajendra

    hi
    you can find all details abt process chain in these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    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
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c

Maybe you are looking for