Process Chains with Event Trigger

Hi Experts,
Happy Valentine day.
I have a requirement to run a Process Chain using Event IDs. Now these Evenrt ID should be triggered by a Program which raises this Eovent. Then this Program should be scheduled in BAckground to run periodically. Has anyone done this before. If yes, could you please shower some light on this topic with details on the steps.
Thanks
DV

Hi,
1)You can make the process chain to be trigered by an event.
You create user events in SM62. In SM62, next to "User even names", click on Maintain and press Enter. Click on the Create icon to create a new event (let's call it ZEVENT).
Next, in your process chain, change the Start variant to be scheduled "After event", and put in ZEVENT for the event name. Also, click on the "Periodic job" at the bottom. This will automatically reschedule the jobs for the process chain after it executes.
Next, create an ABAP program (let's call it Z_EVENT_RAISE) to call the function module BP_EVENT_RAISE. You're code can look like this:
codeREPORT Z_EVENT_RAISE.
PARAMETERS: P_EVENT LIKE TBTCO-EVENTID.
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = P_EVENT.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.[/code]
This ABAP program will prompt for an event name, so you will need to create a variant (let's call it ZEVENT) which will save the value of the event name (also ZEVENT). You will need the variant name to be able to trigger the event in a batch job.
Now all you need is the batch job. Use tcode SM36 to create a batch job where you call the ABAP program (Z_EVENT_RAISE) using the variant (ZEVENT).
Note, SM64 only triggers an event manually.
and you can copy this job to schedule it three times a day.
2)In the Start process of your process chain, select Direct Scheduling and then click the Change Selections icon. This will bring you to the Start Time window where you can put in the Date/Time you want to start your process chain. At the bottom of this window, click on the Periodic job box and you will notice another icon way at the bottom called Period Values. Click this to determine what frequency the job should be rescheduled (ie. daily, weekly, etc.).
3)you can do this by right-clicking on the start process, selection "Maintain Variant", choose "Direct Scheduling". Next select "Change Selections", pick your date and time, set your period values and you're done.
Thanks,
JituK

Similar Messages

  • Trigger a program in ECC from BI using a process chain with out Program

    Hi,
    How can we trigger a program which is in ECC system from BI using a process chain with out writing any program.
    is it possible? if yes how can we achieve this.
    Thanks & Regards,
    Madhu

    Madhu,
    Not possible, indeed need event or Remote Function Call using an ABAP program.
    Other option would be to use a 3rd party tool like Control-M to run programs/jobs on whatever system in your landscape (but requires investments of course).
    Grtx
    Marco

  • Failed ABAP process in process chain does not trigger subsequent process

    Hello,
    I have a issue in my process chain with the abap process type.
    When this abap process gets failed due to some reason; it is not trigerring subsequent step in the chain.
    Any ideas on how it can be solved or any work-around?
    I searched the forum and got to know that we can create a copy of abap process type, and can change possible events to
    "success or fail".
    Please let me know your views on it or if someone has ever encountered similar issue.
    Thanks alot for your help,
    Anuj

    Hi Anuj,
       My guess is that you have your the link between the ABAP process type and the subsequent step to trigger on success. You can check this, Go to RSPC -> process chain and check the design. If the link has a green light on it, then it will trigger only on success of the abap process. You need to check with your design and confirm whether this need to be like this, (maybe the abap process is doing something which is required for the subsequent loads??)
    If no then you can change the link type to either success of failure and activate the chain. This would resolve your problem.
    If you cant change your chain, then i would suggest you correct the failure and then use the program RSPC_PROCESS_FINISH to push the chain further. Just search for this on the forums, there are plenty of blogs/threads on  this.
    Regards.

  • Copy process Chain with Meta chain

    Hi experts,
    how to copy the process chain with Meta chain, since the process chain which I planing to copy it hold meta chain and also local chain, I coping for change the technical name for the PC, is it possible to copy meta chain and local chain along with PC?
    and plz breif me about meta chain and local chain why we have to use them and where we have to use them?
    plz explain with scenario.
    Thanks,

    Hi,
    Once after the copy of the chains you need to change the start variant with the new one as the same start process can not be used in two process chains at the same time.
    So Once after changing the start process for your MC and LC then you are good to go ahead to trigger the same.
    If you trigger the MC then it will take care of trigerring the LC automatically.
    In terms of changes in the process chain, you can get the last changed details in the log view but you can track the timestamp of changes from the process chain tables like (RSPC* and then press F4). But you can not track which process has been changed in this.
    Thanks
    Murali

  • Start a proces chain with event

    How to start a process chain with "after event"??

    i followed these steps
    1. i created a event some "Ztest1"  with sm62
    after that i created a process chain start conditions(start varient) like after event i that i mentioned "ztest1"
    after that i went to sm64
    i triggered that event but my chain was not started????/
    any sugg..... y it happened

  • Process chains and event collectors

    Hi All,
    I need help in Process chains and event collectors.I joined in new project and this client using process chains and event collectors and they ask me to work on these areas.I didnt work on this as of now So please send any docs on this area and explain the procedure and technology methods behind this concept.I would really appreciate If someone can send me the full documentation on this concept as I couldnt find any  any docs on this.
    Thanks,
    Ras

    Hi Ras,
    Process chains are a sequence of processes to be performed. The are put together in a chain with the necessary dependancies (process A needs to finish before B can start) and conditions (if A and B are successful then C else send an email), and then scheduled. They usually revolve around processes related to data loading: Load, activate, roll up, compress etc.
    Please take a look at this links/threads for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
    process chains
    process chains
    Process chains
    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
    Process Chains
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    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/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
    Re: Ho to make a variable mandatory or optional?
    There are lot of threads available in the SDN....go through them.....hope it really helps you in getting understand what are process chains and Events included in that.
    Assign points if it helps you.
    Regards,
    Sreedhar

  • Transportation of process chains with ABAP variants

    Hi,
    Could you please help me in finding out how to transport process chains with ABAP variants.
    I can transport them, however when transporting them, I overwrite the already existing variants, which is very unfortunate...
    Could you please advice.
    Thank you in advance!
    /Brian

    Hi Ramesh,
    Option 1:
    You can directly create the process chain in Production. Most of the times ppl do have access to create a process chain in Prod. Kindly check whether you have the authorization to do so.
    Option 2:-
    I did not suggest to delete the old info-packages in QA and Prod. Let them continue to exist but you may not use them once the process chain is in place. You create the process chain, test it and move it up to Prod. I dont' think the new infopackages will hamper your delta load. The delta is not dependent on the infopackage.
    If I were you, I would try the second option and if it does not work during testing then go for the first option.
    Bye
    Dinesh.

  • Using Planning Sequence in a Process Chain With input variants

    Hi,
    I have a COPY planning function which has multiple FROM and TO options like (From:Fiscal Year To Fiscal Year, From Version TO Version). In the layout they select the options for which they want to COPY and execute the function.
    How can I replicate the same approach in a process chain with the varaints, how can i create the FROM and TO variables in the process chain.
    Thanks
    Rashmi.

    Hi.
    You can save variable variant for planning sequence in modeler and then use it in process chain.
    In process chain you choose "Execute planning sequence" and add planning sequence with variant.
    All this if you using IP instead BPS.
    Regards.

  • Pointers for optimizing system performance (run time) while running DP process chain with parallel processing

    Hi Experts,
    We are running APO DP process chain with parallel processing in our company, we are experiencing some issues regarding run time of process chain, need your help on below points;
    - What are the ways we can optimize process chain run time.
    - Special points we need to take care of in case of parallel processing profiles used in process chain.
    - Any specific sequence to be followed for different processes in process chain - if there is some best practice followed.
    - Any notes suggesting ways to improve system performance for APO version 7 with different enhancement packs 1 and 2.
    Any help will be really appreciated.
    Regards

    HI Neelesh,
    There are many ways to optimize performance of the process chains (background jobs) in APO system.
    Firstly I would recommend you to identify the pain areas (steps) which are completing with more runtimes. Then each one of the step has got different approaches to decrease the runtime.
    Like you may end up with steps like infopackage executions, DTPs, DP mass processing jobs etc which might be running with more runtimes. So now target each one of them differently and find out the ways to optimize. At the same time the approach you follow should be technically possible with basis perspective (system load and utilization) as well.
    And coming to parallel processing, you can use parallel processing for different for different jobs. You can further r explore on the same using parallel processing. Like loading an infocube, mass processing, infopackage execution, DTP, TSCOPY etc.
    Check the below link for more info
    Performance problems in DP mass processing
    Let me know if you require further info.
    Regards,
    Raj

  • Process chain with ABAP reports included

    Hello !
    I need help regardin an issue.
    I have a process chain with the processes:
    1) Start
    2) Process type ABAP program -> report that has a wait instruction
    3) Process type ABAP program -> report that has a system message , based on a first variant of the report
    4) Process type ABAP program -> report that has a wait instruction
    5) Process type ABAP program -> report that has a system message , based on a second variant of the report
    6) Process type ABAP program -> report that has a wait instruction
    7) Process type ABAP program -> report that has a system message , based on a third variant of the report
    report that has a system message : has 3 variants
      The reports work each individual, but in the chain , when I execute, I must see some system messages and there is nothing
    I assigned for the processes the right reports, including the variants for the processes 3, 5, 7.
    Do you have some clue? I can't imagine why they don't work in this process chain.
    Thank you.

    In RSPC transaction -
    create your process chain
    To include ABAP program --- expand General Services --- Select ABAP program -
    drag and drop it in right panel
    Create process variant -
    provide program name and program variant(if exists)

  • Process chain with attributes

    Hi Experts,
    i built a process chain with 4 Masterdata.
    I beginn with  start and for each master data, i set up an  infopackage and at the end , i created an Attribute with the 4 Masterdata als Infojects.
    1. When i save, the order changed.
    All the masterdata could not be upload.
    How can i built a better process chain with Attibutes?
    Thanks for your help.
    Cheers
    Pat

    Change the below chain accordingly, just add IP's for 3 more Infoobjects.
    Start
    Infopackge1A(Attr)|Infopackge2A(Attr)
    Infopackge1B(Txts)|Infopackge2B(Txts)
    Infopackge1C(Hier)______|
    \___________________|
    __\___________________|
    ___\__________________|
    ______ And Processer_ ( Connect IP 1C & IP 2B )
    __________|__________
    Attribute Change Run ( Add Infobject 1 & Infoobject 2 to this variant )
    Message was edited by:
            Jr Roberto

  • Difference between process chain and event collector

    what is the difference between process chain and event collector and also plz explain about metachain.In what scenarios they are used.
    Many Thanks,

    hi,
    have a look at these help docs
    Process Chain:
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
    Event Collector:
    http://help.sap.com/saphelp_bw30b/helpdata/en/c1/6c0538c7cb583ae10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/192756029db54192427cf6853c77a7/content.htm
    Creating an event colector:
    http://help.sap.com/saphelp_bw30b/helpdata/en/45/253d3873130057e10000009b38f842/content.htm
    regards
    sham'm

  • Process chain doesn't trigger an action with an incorrect event.

    Hello everybody,
    I have a problem with process chains. I connected two process, process two must run if process one fails, and i must receive a message that inform the failure of process one.
    When i execute my process chain, the jobs are launched. The job for process one is canceled due to the failure, so the job for process two must be launched, but this doesn't occur.
    Could you help me with this problem please?
    I really appreciate your help.

    Hi,
    Try this post:
    How-to trigger a process chain using ABAP?
    Check these links:
    Docs in sdn
    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
    Process Chains
    Steps for Creating Process chain!
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    Hope the following links will give u a clear idea about process chains and clear ur doubts.
    Business Intelligence Old Forum (Read Only Archive)
    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
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

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

  • Process Chain after EVENT - More than once

    Hi all, I would like to run a process chain after an event; everything works fine with the following model...
    PC1 >>
         >> some processes
         >> EVENT TRIGGER
    PC2 >>
         (after EVENT) runs ok after event ONLY if I SCHEDULE it
    After succesfully run, I've tried to run again immediatly PC1 again and it runs ok, even triggers mentioned EVENT, but PC2 never runs again until I manually SCHEDULE it.
    The answer is: how should I SCHEDULE the process chain PC2 so I'll "never" need again to SCHEDULE it when I want it to run after event triggered on PC1?
    Hope you can help me.
    Thanks a lot!
    Bernardo

    Hello,
    Both process chains are separated. At the model I described, at the end of PC1 event is succesfully triggered. After event is triggered at PC1, PC2 triggers correctly due it is scheduled as "after event".
    Everything works fine, then, if I trigger PC1 again it runs correctly; event is triggered succesfully but PC2 (that is scheduled as "after event") doesn't runs; this is because I haven't SCHEDULED it again (after the first succesfully run).
    What I want is not schedule PC2 after a succesfully run. Is there any way to reach that purpose?
    Thanks again!
    Bernardo

Maybe you are looking for

  • Cannot install windows 8 using usb stick on G400s FreeDOS version

    I'm having some difficulties to get windows 8 installed on this laptop. is there any secrets or tricks on BIOS that I'm not aware of?? I have installed windows 8 on many laptops using same pendrive without having trouble previously. I have tried lega

  • PO wise venodr payment status

    Hi Experts, Is there any report wherein I can see Purchase Order, Item wise vendor payment status, i.e. whether payment is cleared, Parked or open item. Suggest me if there is any transaction exist or on how to address development of this report. Tha

  • Xp20:format-dateTime method in BPEL 11g

    I am doing a date conversion as xp20:format-dateTime('2007-10-07','YYYYMMDD') and storing in a String variable - givenDateConverted but the result is as below <givenDateConverted >YYYYMMDD</givenDateConverted> My original requirement is to compare th

  • Problem run emca -config dbcontrol db -repos create

    when tried to run emca -config dbcontrol db -repos create i choose oracle database SID: ORCL but when i write DBSNMP user pass: it shows me Invalid password. When i have tried to login in sqlplus with the same user: DBSNMP and my password it login me

  • IBooks only imports PDFs when it wants to

    Hi, With a PDF file on my e-mail, I hit open in iBooks and 1 of 3 things happen: (1) The file is imported to the PDFs Folder of iBooks (2) The file flashes temporarily in the PDF Folder but DOES NOT import (3) iBook opens but the file DOES NOT transf