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

Similar Messages

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

  • Raise event from within process chain

    Is there some way to easily raise an event from within a process chain?  The only way I know to do this is to run an ABAP program that raises the event.

    Hi Shashank,
    sorry for the delay: I didn't notice your question. Try this way.
    1 - define ABAP Report Z_EVENT_RAISER (see sample code below)
    2 - define a variant for this Report (Event Name mandatory)
    3 - Call ABAP Report Z_EVENT_RAISER from within your Proces Chain.
    This should work
    Hope it helps
    GFV
    *====================================================
    *& Report  Z_EVENT_RAISER                                              *
    REPORT  Z_EVENT_RAISER                          .
    selection-screen begin of block parametri with frame.
    parameters:
      EVENT like BTCH1250-EVENTID obligatory,
      PARAM like BTCH1250-PARAMETER.
    selection-screen skip.
    selection-screen end of block parametri.
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        eventid                      = EVENT
        EVENTPARM                    = PARAM
      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.
    *====================================================

  • Raise event to trigger process chain

    I have to raise the event to trigger the process chain, but I don't have authorizations to sm64, se37 to triger form fm bp_event_raise, can any body please help me in triggering the process chain.
    [email protected]

    Hi,
    Execute FM bp_event_raise in se37.
    give input parameters:
    EVENTID: *******  ( Mandetory , it is in process chain's event)
    EVENTPARM:  ( Optional)
    TARGET_INSTANCE  : (Optional).
    Then press F8.
    that all you need to do.
    Hope this will help.
    Manju

  • How do we raise an event to trigger process chain in BI

    Hi Guru's,
    I am having Oracle tables as one of my source systems, I developed the code using DBConnect.
    Now i need to run my Process chain when ever table get data from downstream systems.
    how do we raise an event to trigger the process chain in BI WHEN EVER ORACLE TABLE GET DATA?
    Thanks in Advance,
    Edited by: Naveen Kumar Kencha on Apr 2, 2008 11:21 PM
    Edited by: Naveen Kumar Kencha on Apr 2, 2008 11:27 PM
    Edited by: Naveen Kumar Kencha on Apr 2, 2008 11:27 PM

    Hi Naveen,
    i think we use ABAP program under general services to generate an event.
    searching form gave me following threads which might be helpfull
    1) explains Evenet generation [Event raising procedure]
    other helpfull threads
    [Standard tools for Event raising]
    [Event in Process Chain]
    i could get the process for triggering it weekly,,,it may giv u some help in resolving
    change the Start Process (1st process) in your Process Chain to trigger it to start after the event. To do this, maintain the Start Process of your Process Chain. Select "Direct Scheduling" and click the "Change Selections" icon. This will bring up a Start Time window. Click the "After Event" icon and enter your event name. Also, click the "Periodic Job" (this will insure that all the jobs created for each process in the Process Chain will reschedule themselves after executing the first time). Now save the Start Process, and reactivate and schedule the Process Chain.
    To execute the Process Chain, use transaction SM64 to trigger the event.
    If you want to trigger the event in batch, you will need to create an ABAP program that calls function module BP_EVENT_RAISE (sample ABAP code is available in this forum if you search for "BP_EVENT_RAISE").
    We create batch jobs where we call an external program called SAPEVT, located on the server, and I believe is available on all SAP clients, with the following parameter:
    EVTID('WEEKLY_PROCESS') SID(PU3) NUMBER(00) EVTPARM()
    This will trigger the event WEEKLY_PROCESS.
    See if this helps.
    regards,
    NR

  • Event to trigger Process Chain

    Hello Experts,
    I need your suggestions to write an event to trigger a process chains after user put text file to server,
    but the PC is not run.
    here the step what I have done.
    a. define an event SM62 "ZEV_PC_START"
    b. create abap code to check the file if exist raise the event ZEV_PC_START with BP_EVENT_RAISE.
    c. create Process chain.
    d. schedule PC after event "ZEV_PC_START"
    Could any one tell me the steps in brief. Pointers to any documentation would be highly appreciated.
    thanks
    supriatna

    Hi expert,
    I need create the abap code to check the file if exist raise the event ZEV_PC_START with BP_EVENT_RAISE.
    I don't know ABAP, could you help me with the code?
    Could you give me examples, please?
    Thanks,
    Best Regards.

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

  • Event Collector versus process chains

    In a BW upgrade project from BW 3.1  to BI 7  we  have  all data load  processes in BW managed with old feature  "event collector".
    A very important question : this old feature will continue to manage our data loads in BI 7 or we need obligatorely to create process chains ???
    Thanks in advance
    Andreas

    Hello,
    The event collector will work, but you should migrate all to the process chains.
    Regards,
    Jorge Diogo

  • 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

  • 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

  • Trigger Process chain at set time or when an event is raised.

    Hi All,
             I have a requirement where a process chain should get scheduled at fix time, say at 1:00 AM. Also, it should get scheduled when an event is raised by one BSP application. So, its like Set time OR Event should trigger the chain. Can you please guide, how can i implement this without using a special SM37 job?
    Thanks and Regards,
    Harpal

    Hi Gohil,
    The steps to create an event is as follows:
    1. Create the event with SM62.
    2. In the process chain, maintain your Start process. In the change selections screen, choose the button 'After event'. On the bottom, select your event. Click also on 'Periodic job'.
    3. Activate and schedule your process chain. It will then be visible in SM37, waiting for the event.
    4. Then you may raise this event from any ABAP program with function module BP_EVENT_RAISE. Each time you raise the event the process chain will start. You can raise the event also manually with SM64.
    If you want to fix a time i.e., at 1:00 A.M, you need to got RSPC tcode --> click on the chain --> right click on Start variant --> Click on maintain variant --> Change selections --> Click on Date/Time --> Give the date and time.
    If you want to ru7n your chain daily or weekly like periodically, check Periodic Job and click on "Period Values" and select accordingly. Now save everything and click on start variant and activate and schedule your chain.
    Also check below thread for more info on Event:
    Triggering a Process Chain From R/3 pgm
    Regards,
    KK.

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • Query on using EVENTS in process chains.

    Hi,
    Process Chain A on completion posts a Trigger using FM - BP_EVENT_RAISE.
    Is there an ABAP program to check for the specific event completion from process chain A. Basically , we need an FM or program that reads the event status ( whether event raised or not ) and accordingly triggers another process chain.
    We need this fuctionality in process chain B coz we would be using an AND condition that checks for the event trigger from process chain A as well as Step 1 in chain B.
    Thanks,

    Welcome to forum.
    Hari,
    1) Let us say ,Process Chain A, will triggger an event EVENT_A for an example.
    instead of one evnt use 2 events, EVENT_A on success and EVENT_B on failure.
    2) Link Program A to EVENT_A and Program B o EVENT_B
    I hope it helps..
    Regards,
    Hari
    if this helps pls.. assign some points..

  • Event Triggered process chain

    Hi Experts,
    We have a meta chain which contains two local chain in sequance and consuming 10 hours to complete
    Process Chain 1
    Process Chain 2
    We have used the events to trigger process chain 2 only when it meet certain condition and modified the meta chain as
    Process Chain 1
    Abap Prg to trigger Process chain 2
    But now the meta chain just consume 4 hours to complete even though process chain 2 is on progres.
    This is giving wrong update to the users as the load is completed.
    Is it possible to retain the status of the meta chain as in progress untill the process chain 2 triggered by event gets complets.
    Regards
    Suresh Kumar

    Hi Suresh,
    when you are using event as a process in the metachain, it checks if the event ran succesfullly or not.
    once the event is succesfull(event -  triggering of the process chain but not completion), the step turns green.
    so follow below procedure.
    1)in the abap program, instead of triggering the process chain,write a program which raises an exceptio if the condition you required is satisfied so that the step becomes red.
    use the proicess chain as next step in the process chain and conect this program to processchain step with th condition failure.
    Hope this helps,
    Srinath.

  • How to capture event in process chain....Please help...

    Hi All,
    Please tell me how can I capture any event triggred by ABAP program in process chain...The ABAP program is there in the process chain...ABAP prog is triggering one event based on some condition..Please tell me how can I capture that event in the process chain...
    Thanks in Advance...

    Also check this link...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/help/sdn_nw04/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
    Hope this helps...
    Thanks,
    Raj

Maybe you are looking for

  • How to change output type of MI21 transaction ?

    Hi All, Whenever I am executing the MI21N transaction, its default output type is SAP Script.I want to get this output as a SMARTFORM. How can I do that ? Kindly advise on the same. Regards, Ankur Mishra

  • APS Daemon.exe has encountered a problem and needs to close the computer

    On my Lenovo laptop at home, I am getting a message:  " APS Daemon.exe has encountered a problem and needs to close the computer". This message appears after my computer (lap-top at home)  gets automatically shut down and is restarted by me. I believ

  • Custom Deserialization for a List of serializable objects

    I'm running into trouble creating custom deserialization using the readObject method. Here is the code the reads the blob from the database: Blob blob = rs.getBlob(idx++);             InputStream iStream = blob.getBinaryStream();             try {   

  • Can u please tell me how implementation takes place in sap

    can u please give detailed description about implementation of sap fi/co i mean how it will takes place. discurssions with the client how do u prepare business blue print

  • Process a single trail file

    Hi All, I want to process a single trail file using a new replicat process. How do I do that? Is there any extra options I have to use in ADD REPLICAT command?