Use event trigger process chain

Hi friends,
I am working on a process chain tuning task.
One request is to change a schedule method  of an interrupt from date/time to event.
I know how to generate and utilize event.
My worrying is:
Is an event has duration?
E.g Today's process chain scheduled at 01am,,processing, the interrupt was triggered  by event at 04am, but at 10am, the event was trigger again for some unknown reason.
Then,the process chain with the interrupt will be scheduled  at 04am tomorrow, but actually, there may be no event for tomorrow as requirement(due to some reasons,we do not like PC run everyday).
Anyone know how to solve this problem?

Martin
You partially answered my questions.
My chain contains both date/time schedule and event trigger.
As is:
Start-date/time schedule daily at 1:00am
step1,step2,,etc
interrupt-now, it is date/time schedule,at 4:00am
other steps.
To be:
Start-date/time schedule daily at 1:00am
step1,step2,,etc
interrupt-  event trigger schedule
other steps.
I know how to trigger event by ABAP program.
My concern is:
Today afternoon, someone run this ABAP 10 times to generate 10 events,what will happen tomorrow?
Actually,according to business requirement,tomorrow's process chain(interrupt below part) shall not be ran.

Similar Messages

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

  • Using events in Process chain

    Hi All,
    I have below scenario:
    Now we are using event collecter and subsequent event in event collector .
    I am going to convert my loads into Process chain from Infopackage groups. My problem is I can use event1 directly in Start of process chain but how to trigger event2 using this chain. I need to trigger event2 once my PC is completed successfully. The even2 will trigger a background job to execute one ABAP program. This ABAP program triggers event1 again if it meets certain requirement.
    Hope you understood my problem.
    Thanks in advance
    Vani

    Hi,
    If I have understood properly,
    Event1(Start) --> Sequence of PC steps --> ABAP Program Process Type (To trigger Event2)  --> Event2 triggers again Event1( If meets requirement)
    What is your End of the Process Chain if it triggers again Event1?
    Why do you want to trigger events in a cyclic way?
    Regards,
    Suman

  • Use of events in process chains

    Hi All,
    Could some one help me in givving me detailed information about the use of events in process chains with some examples .How are they used and what are they performed in background .I am going to start,creating process chains according to the requirements which are based on event scheduling before ..
    Your detailed information is really appreciated..
    Thanks & Regards

    Hi,
    Suppose your process chain needs to be started after certain activity is finished, then you can create an event to be triggered when that activity is done. The process chain will start once it gets that triggered event.
    This is one use in using events in Process Chains.
    Thanks,
    Raj

  • 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

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

  • Trigger Event in Process Chain

    Hi ppl,
    i want to push the data into ODS and intocubes whenever the data has been placed in the Delta Queue. how can i do that? i heard that i need a abap program to trigger the event in process chain, is anyone here can help me with the abap program? thanks...

    Hi,
    see OSS Note 135637
    Triggering a Process Chain From R/3 pgm
    Hope this helps.
    GTR

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

  • 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 Trigger process chains??

    hi all
    How to Trigger process chains??
    Can anybody step by steps??
    thanks
    Senthil

    The background control options are available to directly schedule the start process. You can start the start process immediately , that is when activating the process chain, for a specified time, or after a particular event. When you activate the process chain, the start process is scheduled in the background as defined in your selections.
    You can also trigger the start of a process chain via a meta chain. A meta chain is when a process chain, to which you set this start condition, is fixed to another process chain. The process chain is started directly by this meta chain.
    When you start the start process via a meta chain, it is not scheduled after you activated the related process chain. The process is only started when the meta chain, to which it is linked, is running.
    The remaining chain processes, that is the application processes and the collection processes, are scheduled to wait for an event.
    The start process has the following special features:
    Only the start process can be scheduled without a predecessor process.
    The start process can not be a successor to another process.
    Only one start process is allowed for each process chain.
    One start process can only be used in an individual process chain

  • Trigger process chains from UNIX

    Hi,
    I just wanted to know how can we trigger Process chains from UNIX Server.
    Any pointers will be appreciated.
    Thanks

    I suggest to use the sapevt.exe.
    With it you can trigger an event in the SAP system with the execution of a simple command file (.bat for ex.)
    So the event will start the chain as you require.
    You can find more info for sapevt in:
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
    Regards,
    Sregio
    Did you try that?
    Message was edited by: Sergio Locatelli

  • List of Info Objects used in a process chain

    Hi,
    I have a master data process chain and in that process chain, close to about 50 Info objects are included. Rather than checking manually, I would like to know if there is any automated way to get the list of info objects used in a process chain.
    Please let me know if there is any table that gives this information.
    Thanks & Regards.

    following transparent tables store Process Chain related data... there you might get the information you are looking for..
    RSEVENTCHAIN       Event Chain Processing Event Table
    RSEVENTHEAD        Header for the event chain
    RSEVENTHEADT        Header for the event chain
    RSPCCHAIN     Process chain details
    RSPCCHAINATTR      Attributes for a Process Chain
    RSPCCHAINEVENTS      Multiple Events with Process Chains
    RSPCCHAINT      Texts for Chain
    RSPCCOMMANDLOG     System Command Execution Logs (Process Chains)
    RSPCLOGCHAIN      Cross-Table Log ID / Chain ID
    RSPCLOGS     Application Logs for the Process Chains
    RSPCPROCESSLOG     Logs for the Chain Runs
    RSPCRUNVARIABLES      Variables for Process Chains for Runtime
    RSPC_MONITOR     Monitor individual process chains
    Regards,
    Sharayu

  • HELP Event-driven Process Chain

    HelloCommunity,
    I aim to develop a tool for modelling Business process using EPC (Event-driven Process Chain)
    I have just discovered Sirius, followed some tuturial....But when I started to
    design my own project I got stuck.. My metamodel still complicated and I couldn't deal with some cases and some specific relationship.
    Could you please share with me some links or ressources for project similar to mine?
    Thank you in advance
    Regards,

    Hi Han, Le 28/07/2015 15:56, han sirius a écrit :
    > HelloCommunity,
    >
    > I aim to develop a tool for modelling Business process using EPC
    > (Event-driven Process Chain)
    >
    > I have just discovered Sirius, followed some tuturial....But when I
    > started to
    > design my own project I got stuck.. My metamodel still complicated and I
    > couldn't deal with some cases and some specific relationship.
    >
    > Could you please share with me some links or ressources for project
    > similar to mine?
    Did you try the tutorial [1] ?
    You might discover concrete examples of modeling tools created with
    Sirius for various use-cases in the gallery [2] and lab [3].
    You will also find the documentation in [4].
    >
    > Thank you in advance
    >
    > Regards,
    >
    >
    Regards
    Maxime - Obeo
    Need professional services for Sirius?
    http://www.obeodesigner.com/sirius
    [1] https://www.eclipse.org/sirius/getstarted.html
    [2] https://www.eclipse.org/sirius/gallery.html
    [3] https://www.eclipse.org/sirius/lab.html
    [4] https://www.eclipse.org/sirius/doc/

  • PI Interface Posting Files - Trigger Process Chain Issue

    Dear Reader,
    Situation -
    We get multiple flat files from source system via PI interface. To process this in BW 7.0 side we have created the web service interface. In the function module we have written a code to trigger process chain, once a data is posted.
    Issue -
    As there are multiple files being posted, the PC runs on completion of the every single post, which is not desired. We need to run the process chain only once at the end of all the files being posted.
    Notes -
    1. Number of files keep varying.
    2. Clubbing all the files in a single file and then posting it would cause performance issues.
    Request your help in find a way like -
    1. A file being posted of name, say 'START PC', which can be trapped in the funciton module and controll the PC call.
    2. <any Other idea>
    regards,
    vinay gupta

    Hi Dhanya,
    This is the code i have in the ABAP program in the process chain. I just included the API_SEMBPS_POST part, but still it doesn't work. Please give me your email address so that i can send some screenshots.
    REPORT  ZHTEST.
    DATA: l_subrc TYPE sy-subrc.
    DATA: ls_return TYPE bapiret2.
    CALL FUNCTION 'API_SEMBPS_POST'
    IMPORTING
       E_SUBRC         = l_subrc
       ES_RETURN       = ls_return.
    CALL FUNCTION 'RSAPO_CLOSE_TRANS_REQUEST'
      EXPORTING
        I_INFOCUBE               = 'ZMAP_TAB'
    EXCEPTIONS
      ILLEGAL_INPUT            = 1
      REQUEST_NOT_CLOSED       = 2
      INHERITED_ERROR          = 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.
    ENDIF.

  • Trigger process chain using event

    Hi all,
    I’d like to know if someone ever faced this kind of situation.
    I have a process in R/3 and it must run every day, and when it’s finished I have to start a process chain in BW.
    I thought to do this using events. So, I created a Job that executes this process and added a step( an ABAP program ) that generates an event in a target system, BW.
    The program is this one:
    PARAMETERS:
        p_eventi   TYPE btceventid,
        p_eventp   TYPE btcevtparm,
        p_server   TYPE btcserver.
    Obligatory parameter: EventID.
    EventID should be an existing event already defined in transaction
    SM64 or using CREATE method of class CL_BATCH_EVENT:
    p_eventi   = 'SAP_TEST'.
    Optional parameters: event parameter and target server.
    p_eventp = 'Event parameter'.
    p_server    = ''.
      CALL METHOD cl_batch_event=>raise
        EXPORTING
          i_eventparm                    = p_eventp
          i_server                       = p_server
          i_eventid                      = p_eventi
        EXCEPTIONS
          excpt_raise_failed             = 1
          excpt_server_accepts_no_events = 2
          excpt_raise_forbidden          = 3
          excpt_unknown_event            = 4
          excpt_no_authority             = 5
          OTHERS                         = 6.
      CASE sy-subrc.
        WHEN 0.
          EXIT.
        WHEN 1 OR 2 OR 3.
    Raise failed.
        WHEN 4.
    Event does not exist.
        WHEN OTHERS.
    Raised failed due to unknown reason.
      ENDCASE.
    The execution of the job appears to be OK, but I checked the log at SM62 and couldn’t find any entrie, and the process chain didn’t start too.
    I created the event at BW and R/3 side,  informed the variant with event / server in R/3, etc.
    I’m missing some step??
    Best Regards,
    Tomas

    This is what this note does.  From R/3, it will trigger an event in BW.
    You can also read this post:
    Triggering a Process Chain From R/3 pgm
    Hope this helps.

Maybe you are looking for

  • I got my repair back...

    i just got it back. remember i sent it in because it was toooooo hot and i had 2 error messages on the hardware test. they told me that the Logic Board failed. well this is what it says they fixed. i dont know what it means but maybe someone techy wi

  • I have a Macbook 2008 and want to update my software to OSX Lion.  Do you think my system can handle it?

    I have a Macbook 2008 and want to update my software to OSX Lion.  Do you think my system can handle it?

  • Missing photos in preview

    I have a large photo book (100 pages, 647 images) in iphoto 11.  I'm having two problems.  First, when I export to iDVD or iMovie, 3 photos are missing from the files.  The pix are on double spread page layouts, and only some of the small photos (not

  • Trouble loging in

    Hi I've just started with Oracle, I've got 10g R1 on WinXP Pro. I'm trying to make a simple database to hand on to a professional at a later date, after lots of trouble trying to get Enterprise Manager to even start, and lots of reloads etc I finally

  • New computer build -- Photoshop scratch drive options

    It's been years since I built my last Photoshop computer, so I'm researching what I want to include in my next build. I may use this computer for some video editing, but for the most part it will be dedicated to Photoshop.  I'm running CS5.  I'll be