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.

Similar Messages

  • 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

  • Process Chain changing start time?

    hi guysm i have 76 process chains that run every day in BWD system, so i removed all the timings from the start variant and in the infopackages, but it seems some process chains are still running, i did do the following steps on chnaging the time from a particular time to immediate, Save, Check and activate, i didnt schedule it as i dont want it to load right away .
    do i have to hit check , save , schedule once i change the time from a particular time to immediate load or activate will work as well.?
    what else could be the cause of process chains still loading even there are no events, or time given to any process chains at all.
    i went to sm 37 and i can see the bi process are all running at the time they were orignially set up on.
    so any suggestions would help,
    is there any way from sm 37 i can tell which process chain is triggered off?
    thanks
    Dante(devils never cry)

    Dante, the start conditions on the infopackages do not affect when they run in process chains.  The process chains have their own start job.  If you want to change the start time of a process chain, then you need to go to maintain the process chain, right-click on the Start process and select Displaying Scheduled Job(s)... .  Here you will see a job called BI_PROCESS_TRIGGER.  Change the start conditions of this job. 
    The start job for all process chains is BI_PROCESS_TRIGGER, so using SM37 may be difficult to identify which BI_PROCESS_TRIGGER job is associated to a particular chain. 
    Also, to let you know, each process in a process chain has an associated job.  All jobs called BI_PROCESS_xxxxx are jobs associated with a process chain. 
    Eg. 
    BI_PROCESS_LOADING is an infopackage.
    BI_PROCESS_TRIGGER is the start job
    Does this help?

  • Trigger Process Chain through the Web

    Hi,
    I am trying to allow the users to control when they trigger a process chain through the web.
    The users have a number of integrated planning sheets, which they access and input, once they are happy with the inputs, then they want to trigger the process chain to carry out additional loads.
    I am using function module RSPC_CHAIN_ACTIVATE_REMOTE to trigger the process chain, when I test this with the chain set to direct scheduling it works fine.
    I have set a planning function to call RSPC_CHAIN_ACTIVATE_REMOTE, with the process chain in question.  Now when I run it with the chain set to direct scheduling it repeatedly calls the process chain over and over again, like it is in an endless loop.
    When I try setting the chain to Meta Chain or API nothing happens.
    Does anyone have any ideas why I can't get this to work through the web?
    Thanks
    D

    CALL FUNCTION 'RSPC_API_CHAIN_START'
        EXPORTING
          i_chain       = 'YOUR PROCESS CHAIN NAME'
        EXCEPTIONS
          error_message = 1.
       IF sy-subrc <> 0.
          CALL FUNCTION 'BALW_BAPIRETURN_GET1'
           EXPORTING
            type             = sy-msgty
            cl               = sy-msgid
            number           = sy-msgno
            par1             = sy-msgv1
            par2             = sy-msgv2
            par3             = sy-msgv3
            par4             = sy-msgv4
           IMPORTING
            bapireturn       = p_return.
          RAISE STREAM_FAIL.
       ELSE.
         RAISE STREAM_SUCCES.
         RETURN.
       ENDIF.

  • The 0co_om_opa_6 ip in the process chains takes long time to run

    Hi experts,
    The 0co_om_opa_6 ip in the process chains takes long time to run around 5 hours in production
    I have checked the note 382329,
    -> where the indexes 1 and 4 are active
    -> index 4 was not "Index does not exist in database system ORACLE"- i have assgined to " Indexes on all database systems and ran the delta load in development system, but guess there are not much data in dev it took 2-1/2 hrs to run as it was taking earlier. so didnt find much differnce in performance.
    As per the note Note 549552 - CO line item extractors: performance, i have checked in the table BWOM_SETTINGS these are the settings that are there in the ECC system.
    -> OLTPSOURCE -  is blank
       PARAM_NAME - OBJSELSIZE
       PARAM_VALUE- is blank
    -> OLTPSOURCE - is blank
       PARAM_NAME - NOTSSELECT
       PARAM_VALUE- is blank
    -> OLTPSOURCE- 0CO_OM_OPA_6
       PARAM_NAME - NOBLOCKING
       PARAM_VALUE- is blank.
    Could you please check if any other settings needs to be done .
    Also for the IP there is selction criteris for FISCALYEAR/PERIOD from 2004-2099, also an inti is done for the same period as a result it becoming difficult for me to load for a single year.
    Please suggest.

    The problem was the index 4 was not active in the database level..it was recommended by the SAP team to activate it in se14..however while doing so we face few issues se14 is a very sensitive transaction should be handled carefully ... it should be activate not created.
    The OBJSELSIZE in the table BWOM_SETTINGS has to be Marked 'X' to improve the quality as well as the indexe 4 should be activate at the abap level i.e in the table COEP -> INDEXES-> INDEX 4 -> Select the  u201Cindex on all database systemu201D in place of u201CNo database indexu201D, once it is activated in the table abap level you can activate the same indexes in the database level.
    Be very carefull while you execute it in se14 best is to use db02 to do the same , basis tend to make less mistake there.
    Thanks Hope this helps ..

  • Delete Index in Process Chain Takes long time after SAP BI 7.0 SP 27

    After upgrading to SAP BI 7.0 SP 27 Delete index Process & Create index process in Process chain takes long time.
    For example : Delete index for 0SD_C03 takes around 55 minutes.
    Before SP upgrade it takes around 2 minutes to delete index from 0SD_C03.
    Regards
    Madhu P Menon

    Hi,
    Normally  index  creation or deletion can take long time in case  your database statistics are not updated properly, so can check  stat  after your data loading is completed and index generation is done,  Do creation of database statistics.
    Then try to recheck ...
    Regards,
    Satya

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

  • Error in process chain creation :  SET SCREEN not allowed in subscreens

    Hello,
    We are getting an  Error in process chain creation  :  SET SCREEN not allowed in subscreens  SAPRSSM 0100.
    Please give a solution. Thanks in advance.
    RR.

    Just do detail view on in the process chain. It will take you to the error. See the message and then display message. You can know why the message is appearing.

  • 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

  • Process Chain - triggering sub chains at set time interval

    Hi all,
    Scenario:
    I want to setup multiple process chains during the day (hourly intervals).  I would like to have a main chain which would then trigger subsequent chains.  the problem is that when i tried to setup the sub-chains to run at say, 10am. 11am etc, they don't fire off at those specified times (because they are part of the meta chain?).  I currently have the individual chains running independently (i.e. first chain at 10am, 2nd chain at 11am...) - but i need to be able to stop the 2nd chain from running if there is a problem on the 1st chain (which is why i want to run them as part of a Meta chain).
    Hope this makes sense - and any help/assistance is much appreciated!  Thanks
    M.

    Do you know how long 1st PC will run ? will it finish before 11 am ?
    If so,  try following proess
    Add Abap Program process(under General Services) to the end of the 1st PC  and use program BTC_EVENT_RAISE and Enter Program variant = event  and activate the PC
    Now go to 2nd PC and schedule at 11 am periodically
    Add another step Interrupt Process (u can find under General Services ) just after start process and enter event and schedule the pc
    When 1st Pc completes sucessfully it will activate the event to trigger 2nd PC , though the event is activated the 2nd pc will start at 11am
    Hope it's clear!

  • How to trigger process chain when datasource is loaded with new data? PUSH

    Hi all,
    Till now we use the pull method to load data in BW which is done manually......but we would like to work with the PUSH method where whenever new data is loaded in the datasource an event is triggered which inturn triggers the process chain...
    how is this possible? can we do this on a timestamp on the datasource to trigger the event?
    rgds,
    wills

    hi Geo,
    Thanks for ur response. I appreciate it.
    The case is slightly different. I am working on Bank analyzer data which is residing in a source system defined to load the results from the Results DataBase, a part of the Bank analyzer.
    If it was R3 we have the standard calling procedures...but now the data in not in R3 but in Bank analyzer.
    I am keen to look at some procedure to push the data automatically whenever an end user execution is done at the BA level into the BW.
    ur help would be highly appreciated....
    thks,
    rgds.
    wills

  • Short dump in program to trigger process chain

    Hi all,
    We have an ABAP program written to trigger a process chain...When we execute the ABAP program it goes on for a long time and then returns a short dump.It dosent even trigger the process chain.
    What could be the reason for this?
    Can someone please help...
    Regards,
    Suchitra

    Following is the error
    An exception occurred. This exception is dealt with in more detail bel
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', w
      neither
    caught nor passed along using a RAISING clause, in the procedure
      "Z_BPS_FIELDS_SET_REMOTE_C35" "(FUNCTION)"
    Since the caller of the procedure could not have expected this excepti
      to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)

  • BPM Process chain takes long time to process

    We have BI7, Netweaver 2004s on Oracle and SUN Solaris
    There is a process chain (BPM) which pulls data from the CRM system into BW. The scheduled time to run this chain is 0034 hrs. This chain should ideally complete before / around 0830 Hrs. <b>Now the problem is that every alternate day this chain behaves normally and gets completed well before 0830 hrs but every alternate day this chain fails…</b> there are almost 40 chains running daily. Some are event triggered (dependent with each other) or some run in parallel. In this, (BPM) process chain, usually there are 5 requests with 3 Delta and 2 full uploads (Master Data). The delta uploads finishes in 30 minutes without any issues with very few record transfers. The first full upload is from 0034 hrs to approximately 0130 hrs and the 2nd upload is from 0130 hrs to 0230 hrs. Now if the 1st upload gets delayed then the people who are initiating these chains, stop the 2nd full upload and continue it after all the process chains are completed. Now this entire BPM process chain sometimes takes 17 -18 hrs to complete!!!!!
    No other loads in CRM or BW when these process chains are running
    CRM has background jobs to push IDOCS to BW which run every 2 minutes which runs successfully
    Yesterday this chain got completed successfully (well within stipulated time) with over 33,00,000 records transferred but sometimes it has failed to transfer even 12,00,000 records!!
    Attaching a zip file, please refer the “21 to 26 Analysis screen shot.doc” from the zip file
    Within the zip file, attaching “Normal timings of daily process chains.xls” – the name explains it….
    Also within the zip file refer “BPM Infoprovider and data source screen shot.doc” please refer this file as the infopackage (page 2) which was used in the process chain is not displayed later on in page number 6 BUT CHAIN GOT SUCESSFULLY COMPLETED
    We have analyzed:--
    1)     The PSA data for BPM process chain for past few days
    2)     The info providers for BPM process chain for past few days
    3)     The ODS entries for BPM process chain for past few days
    4)     The point of failure of BPM process chain for past few days
    5)     The overall performance of all the process chains for past few days
    6)     The number of requests in BW for this process chain
    7)     The load on CRM system for past few days when this process chain ran on BW system
    As per our analysis, there are couple of things which can be fixed in the BW system:--
    1)     The partner agreement (transaction WE20) defined for the partner LS/BP3CLNT475 mentions both message types RSSEND and RSINFO: -- collect IDOCs and pack size = 1 Since the pack size = 1 will generate 1 TRFC call per IDOC, it should be changed to 10 so that less number of TRFCs will be generated thus less overhead for the BW server resulting in the increase in performance
    2)     In the definition of destination for the concerned RFC in BW (SM59), the “Technical Setting” tab says the “Load balancing” option = “No”. We are planning to make it “Yes”
    But we believe that though these changes will bring some increase in performance, this is not the root cause of the abnormal behavior of this chain as this chain runs successfully on every alternate day with approximately the same amount of load in it.
    I was not able to attach the many screen shots or the info which I had gathered during my analysis. Please advice how do I attach these files
    Best Regards,

    Hi,
    Normally  index  creation or deletion can take long time in case  your database statistics are not updated properly, so can check  stat  after your data loading is completed and index generation is done,  Do creation of database statistics.
    Then try to recheck ...
    Regards,
    Satya

  • Info Package in Process Chain taking long time

    Dear All,
    Info Package in Process Chain having 0 records is taking 1 hr 5 mins to complete. Time out time is set to 10 mins.
    Does any one of you know the reason why it is happening like this?
    Regards.

    When the info package status turns to green : final message is :
    No data available
    Diagnosis
    The data request was a full update.
    In this case, the corresponding table in the source system does not
    contain any data.
    System Response
    Info IDoc received with status 8.
    Procedure
    Check the data basis in the source system.
    Diagnosis
         The data request was a full update.
         o   In this case, the corresponding tab
                 contain any data.
         o   System Response
                 Info IDoc received with status
                 Procedure
    Check the data basis in the source system.
    Analysis
    ========
    No data available in the source system for this selection
    No further action necessary
    When the status was red, I checked BD87 and SM58 and there were no entries.
    The corresponding job in sm37 took 869 seconds to complete. Below was the job Log.
    Job started
    DATASOURCE = 0CO_PC_02
    Call customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 0 records
    Result of customer enhancement: 0 records
    Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 0 records
    Result of customer enhancement: 0 records
    IDOC: Info IDoc 2, IDoc No. 1345319, Duration 00:00:00
    IDoc: Start = 24.10.2011 18:29:54, End = 24.10.2011 18:29:54
    Synchronized transmission of info IDoc 3 (0 parallel tasks)
    IDOC: Info IDoc 3, IDoc No. 1345330, Duration 00:00:00
    IDoc: Start = 24.10.2011 18:44:18, End = 24.10.2011 18:44:18
    Job finished.
    PLease help.
    Regards.

  • 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

Maybe you are looking for

  • Right way to exit an applet

    Hi, I am making an applet by extending JApplet. Can anyone please tell what's the right way to stop the applet ie. to complete its execution. Shoud System.exit() be used, i tried stop and destroy , nothing happened. I have provided a menu inside my a

  • Video Conferencing with NX Pro?

    Just got an NX Pro Webcam from my son and daughter-in-law for Christmas, and seem to have hooked it up without a problem. Can't figure out how to Video Conference with it, however. He has one as well, and that's what we'd like to be able to do. What

  • [GeForce 6] Video distortion using KVM switches

    When connected through a KVM switch the video quality from my main computer using a 128mb GF6800 from MSI becomes distorted, blurry, and the text very hard to read.  However, my second computer using a GF4 4200ti looks fine. I thought it was a defect

  • Dual monitor screen refresh problem

    We have a GUI application that runs on a dual monitor setup and are experiencing strange behaviour. The application is started on one monitor (the left hand one), but at times a window which has been dragged to the right hand monitor stops getting sc

  • How to determine the sales area data

    Hi, If I know the sales organisation to which a user is assigned to how to find out the Sales office ,sales group,distribution channel and division associated with the sales org to which the user is assigned to ?