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

Similar Messages

  • 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

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

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

  • 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

  • How to schedule system defined info package in process chain?

    Hi
    How to schedule the system defined infopackage in process chain?
    Regards
    Saddy

    Hi Saddy,
    Hope the following links will give u a clear idea about process chains and clear ur doubts.
    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
    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.

  • How to implement an abap program in a process chain

    Hi,
    I have an ABAP Program which uploads data into a table.
    Now I want to implement this abap program in a process chain.
    Please could anyone tell me how this can be done.
    Thanks & Regards,
    Sushanth H.S.

    Hi,
    A process chain is a background task for processing data into a BW instance .
    I want to know how to integrate an abap program into the process chain.
    Regards,
    Sushanth H.S.

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

  • How i run that delta infopackage in my process chain

    Hello Sir,
    i have a delta infopackage which sciduled in a process chain but it does not pick any delta i have to manualy run repair full infopackage dally and then delta comes in to picture my target is a dso so it does't have any problem.
    the datasourse is costamize
    delta pointer is cal day
    my question is how i run that delta infopackage in my process chain
    Thanks...

    Hi
    IS the process type "delta infopackage " is executing in the process chain or not? Plz once check in SM37 Tcode . and Why r u running the repair full request infopackage . If u miss any delta records then only u have to run the repair full request . If delta records are not extracted then better to manually extract the delta infopackage.
    Plz once check in SM37 Tcode whether the execute infopackage process step is running or not? or any error has occured in that PC.
    Thanx & Regards,
    RaviChandra

  • How to insert Info spoke /Open hub in process chain

    Hi,
    How can I include Info spoke in my process chain.
    Thanks

    Hi,
    Including InfoSpokes in Process Chains:(IMP Link):
    http://help.sap.com/saphelp_nw04/helpdata/en/59/90070982d5524b931ae16d613ac04a/content.htm
    Complete Open Hub Information:
    http://gassems.com/SAP%20Reources/Open%20Hub%20Service.pdf
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Dec 10, 2009 10:49 AM

  • How to find a metachain name from local process chain id or name

    how to find a metachain name from local process chain id or name

    Hi Dwarakanath,
    Please post your query in the correct topic space in SCN.  For help, see this document:
    Find Topic Spaces on SCN (Forums)
    Thanks,
    Kristen

  • How can we use CMC / events to trigger a process?

    Is there a way we can make CMC / events to trigger a stored procedure or at least a .exe file?
    how?

    There's a starter on events here:
    http://scn.sap.com/community/bi-platform/blog/2013/01/07/cmcevents-in-business-objects-and-its-usage
    Not sure exactly of your workflow, but you can also schedule a custom program object and schedule that to run based on your own timelines.
    http://scn.sap.com/docs/DOC-40837

  • How can i raised custom event permanently?

    using System;
    using System.IO;
    public class FileSizeWarningEventArgs : EventArgs
    private readonly string _filePath;
    private readonly decimal _fileSize;
    public FileSizeWarningEventArgs(FileInfo file)
    _filePath = file.FullName;
    _fileSize = file.Length;
    public string FilePath
    get { return _filePath; }
    public decimal FileSize
    get { return _fileSize; }
    public delegate void FileSizeWarningEventHandler(object sender, FileSizeWarningEventArgs e);
    public class FileSizeMonitor
    private event FileSizeWarningEventHandler _fileSizeWarning;
    private readonly decimal _thresholdSizeInByte;
    private readonly FileInfo _file;
    public FileSizeWarningEventHandler FileSizeWarning
    get { return _fileSizeWarning; }
    set { _fileSizeWarning = value; }
    public FileSizeMonitor(string filePathToMonitor)
    _thresholdSizeInByte = 500;
    try
    _file = new FileInfo(filePathToMonitor);
    catch (Exception ex)
    Console.WriteLine("Exception occurred! Message: {0}", ex.Message);
    public void CheckFileSize()
    if (_file != null && _file.Length > _thresholdSizeInByte)
    OnFileSizeWarning(new FileSizeWarningEventArgs(_file));
    protected void OnFileSizeWarning(FileSizeWarningEventArgs e)
    if (_fileSizeWarning != null)
    _fileSizeWarning(this, e);
    class Program
    static void Main()
    var file1 = new FileSizeMonitor("C:\\1.txt");
    file1.FileSizeWarning += file1__fileSizeWarning;
    file1.CheckFileSize();
    public static void file1__fileSizeWarning(object sender, FileSizeWarningEventArgs e)
    Console.WriteLine("The File Size is larger than threshold, Current File Size: {0}Byte", e.FileSize);
    how can i change above code to raise event whenever file size has been larger than threshold?
    what is advantage of Event when I can use following code instead? 
    using System;
    using System.IO;
    public class FileSizeMonitor
    private readonly decimal _thresholdSizeInByte;
    private readonly FileInfo _file;
    public FileSizeMonitor(string filePathToMonitor)
    _thresholdSizeInByte = 500;
    try
    _file = new FileInfo(filePathToMonitor);
    catch (Exception ex)
    Console.WriteLine("Exception occurred! Message: {0}", ex.Message);
    public void CheckFileSize()
    if (_file != null && _file.Length > _thresholdSizeInByte)
    Console.WriteLine("The File Size is larger than threshold, Current File Size: {0}Byte", e.FileSize);
    class Program
    static void Main()
    var file1 = new FileSizeMonitor("C:\\1.txt");
    file1.CheckFileSize();
    thank you/.

    Hi, if your files keeps growing in size...you can add a  thread, may be with background priority, in your first code which will check size of file at some interval and if at any instance it found it larger than the limit it will raise the event
    which can be used to show error message.
    Here is a your modified code...
    using System;
    using System.IO;
    using System.Threading;
    namespace SimpleUI
        publicclassFileSizeWarningEventArgs : EventArgs
            privatereadonlystring _filePath;
            privatereadonlydecimal _fileSize;
            public FileSizeWarningEventArgs(FileInfo file)
                _filePath = file.FullName;
                _fileSize = file.Length;
            publicstring FilePath
                get { return _filePath; }
            publicdecimal FileSize
                get { return _fileSize; }
        publicdelegatevoidFileSizeWarningEventHandler(object sender, FileSizeWarningEventArgs e);
        publicclassFileSizeMonitor
            publiceventFileSizeWarningEventHandler FileSizeWarning;
            privatereadonlydecimal _thresholdSizeInByte;
            privatereadonlyThread _demonThread;
            privatereadonlystring _filePathToMonitor;
            public FileSizeMonitor(string filePathToMonitor, decimal threshold)
                _filePathToMonitor
                    = filePathToMonitor;
                _thresholdSizeInByte
                    = threshold;
                _demonThread
                    = newThread(CheckFileSizeDemon);
            publicvoid Start()
                if (!_demonThread.IsAlive)
                    _demonThread.Start();
            publicvoid CheckFileSizeDemon()
                try
    while (true)
                        var _file = new FileInfo(_filePathToMonitor);
                        if (_file != null && _file.Length > _thresholdSizeInByte)
                            OnFileSizeWarning(new FileSizeWarningEventArgs(_file));
                        Thread.Sleep(10000);
                catch (Exception ex)
                    Console.WriteLine("Exception occurred! Message: {0}", ex.Message);
            protectedvoid OnFileSizeWarning(FileSizeWarningEventArgs e)
                if (FileSizeWarning != null)
                    FileSizeWarning(this, e);
        internalclassProgram
            privatestaticvoid Main1()
                var file1
                    = newFileSizeMonitor("C:\\1.txt", 500);
                file1.FileSizeWarning
                    += file1__fileSizeWarning;
                file1.Start();
            publicstaticvoid file1__fileSizeWarning(object sender, FileSizeWarningEventArgs e)
                Console.WriteLine("The File Size is larger than threshold, Current File Size: {0}Byte", e.FileSize);

Maybe you are looking for

  • Opening word document in a browser

    Hi Friends, I am working on a web application which has a websphere as a web server. I want to open a word document or any other MIME type file in a browser. I know how to open a word document by setting the content type in a response. But I dont wan

  • Uploading Images go to Dropbox

    History I recently reloaded my Mac with 10.6.8 and after doing so connected my compact flash reader to take off some image and they all uploaded to Dropbox. I have since installed Ilife 11 ->  Iphoto 11 Problem Now: When I upload images they go to th

  • Songs won't appear on the nano?!

    ***?! i plugged in my iPod nano to my home computer, downloaded my library, then i went to toronto, and to charge it, i loaded itunes onto another computer, then plugged in the ipod... and now my nano shows that i hav no songs at all! The second comp

  • Why is printing slow?

    Printing from Adobe products, more specifically Acrobat, to Xerox printer (DocuCentre IV – C3373) takes a long time to spool (Mac OSX Mountain Lion). A 2mb file takes around 2 minutes to spool, 20mb 20 minutes. Have had Xerox technicians on the case,

  • Lion - Installing Photosmart C4580 Printer

    Does anyone now how to install a HP Photosmart C4580 printer on Lion?  I downloaded the printdrivers.  When I go to add the printer it tells me that the driver is available from Apple then after searching it tells me that the driver is currently unav