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.
*====================================================

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

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

  • Call ABAP program from a process chain

    Hi ,
    Can anyone tell me how do we call an ABAP program in R3 from a process chain in BW.
    Its real urgent please help.
    Thanks
    Ankit

    Hi,
    Create ABAP program in BI/BW system with name like ZFILL_CALL.
    Create RFC enabled function module(eg: ZRFCFM) in R/3 system, in this function module call your program which fills the ZTABLE from application server.
    Call RFC function module ZRFCFM from your program ZFILL_CALL in BW system.(u need to RFC connections to these systems).
    Create process of type "ABAP program" which u will find in General sevices in RSPC. Attach this process befor u r inpackage process chain.
    Hope it will work.
    Sree

  • Deleting process type from a Process Chain

    Hi All,
    We had a scenario wherin we needed to add some process types to an existing process chain.But after transporting it to quality  we realized that we have added our process types to the wrong process chain.Now We have deleted our process types from the process chain and transported that chain after deleting the process types from the chain.But the types we have added are not getting deleted in Quality.Could someone help me with this...
    Regards,
    Shravani

    Hi,
    the process types that you have created in Development needs to be deleted in Developmet. Before deleting it will ask for a request. create a new request and transport that request to the Quality. Now you will find the Process types deleted in Quality.
    Now get back to the Development  system create the necesseary changes (add or remove the Process types or develop a new one) now transport the request to the Quality .
    hope this will solve your problem
    santosh

  • Needs to delete one Master Data from main process chain in development syst

    Hi All,
    Can any one pls suggest how we can delete the master data load from main process chain in development system.
    In the main process chain nearly i am having 52 master data loads in that i required to delete one master data.
    Thnanks in Advance.
    karuna.

    Hi...
    1) go to RSPC1
    2) Give the technical name of the process chain
    3) in the top where we write tcode....there write COPY..and press enter...
    4) then remove the start process and the desired master data loads..
    5) create a new start process with a new variant..if you want to put ant condition you can put it there...
    6) then link the start process with the first process..
    7) activate your process chain...and schedule it as per your require...you can make it immediate run or can scedule it for a particular time...
    Or if you don't want to create anew process chain...then go to the design view of the PC and remove the desired load and again activate it...
    Hope this helps you...
    Regards,
    Debjani...
    Edited by: Debjani  Mukherjee on Sep 4, 2008 4:35 PM

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

  • How to Trigger an Alert from a Process Chain

    Hi BW-Experts,
    i have implementated a custom process type. Then i choose my alert and activate the process chain. After this i make a double click on my process type, there is always a standard alert deposited (RNIF_ALERTS), but not my alert. What is my error? Thanks!

    Hi,
    See if the discussion in the following threads help :
    Raising an alert at the end of process chain execution
    Emails from Process Chains :
    Email from process chain
    Cheers,
    Kedar

  • 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

  • Calling User Preference event from within portlet

    Not sure if anybody else has looked at this but we are in the process of rolling out a new G6 Portal and on a number of portlets want to take advantage of the ability to turn off the portlet header. However in doing so you loose access to the inbuilt support for providing access to the User Preference, if one has been defined as part of the portlet definition. This is relevant on a number of portelts that we want to migrate to the new G6 portal.
    So rather than try and re-invent this from scratch using a different 'link' in the portlet itself we were wondering if you can 'call' the inbuilt user preference functionality from within the portlet code. i.e. When a user clicks on the link within the portlet it performs exactly the same action and interaction within the portal as if they clicked on the User Preference icon in the portlet header.
    We have had a look around to see if this is possible but not come up with anything yet so thought we would seek comments from this forum.
    Many thanks in advance,
    Ross Ellard
    Devonport Management Ltd

    Hey Ross,
    I just realized I have to do the same thing on a very limited scale (3-5 portlets).
    SO I just wrote a little bit of (shoddy) code to show community preferences based on group membership.
    It works for me, but I get the feeling your looking for something like communityactionsdata geared toward portlets, which unfortunately I dont think exists. If you put it in as an enhancement request then support will contact you to discuss your options.
    Here is the code that I'm using for now:
    <pt:standard.choose>
    <pt:standard.when pt:test="stringToACLGroup('group=1,755,760;').isMember($currentuser)">
    <immg border="0" src="htttp://localhost/imageserver/plumtree/portal/public/img/action_portlet_edit.gif">
    </pt:standard.when>
    </pt:standard.choose>
    The only problem is that the preferences submit button refreshes the popup to the portal. So I might need to tweak that a hair so it just closes the popup.
    edited to prevent the forum from trying to use the code I provided
    Message was edited by:
    geoffgarcia

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

  • Calling ABAP Program from a Process Chain

    I am calling an ABAP Program from Process Chain by adding a Process Type u201CABAP Programu201D,
    My ABAP program writes lots of information using write statements.
    I looked in Process Chain Log; I do not see output from Write statement. I am pretty sure my write statements were executed. I also looked in SM37 job log. I do not see any more information.
    Where to see the output generated from ABAP.
    Thanks.

    Hi,
    First find out where your ABAP program the data written.You need to write it into and spool then only you can see it.
    Transaction SP01, you can use the FM 'GET_PRINT_PARAMETERS' in your abap program to write to spool.
    Thanks,
    Ravi

  • Fire event from within another event ?

    It seems that an event fired from within another event does not
    actually execute its code until the firing event completes. The fired
    event's Time value in its Event Data Node indicates the time that it
    was told to execute, but using GetTickCount calls shows that its code
    does not execute until the firing event is finished. This happens
    whether Value Signaling is used to generate a Value Change event or if
    CreateUserEvent and GenerateUserEvent is used. Is this because events
    are placed in a queue ? This behavior is different from Delphi for
    example where the fired event executes right away when called from the
    firing event (before the firing event completes).
    I have an event that executes upon a button value change. I would
    like that same event's code to execute when another button is pressed,
    but also have other code in the second button's event execute after
    that first button's event's code completes. Is there another way to
    accomplish this ?
    Steve

    > It seems that an event fired from within another event does not
    > actually execute its code until the firing event completes. The fired
    > event's Time value in its Event Data Node indicates the time that it
    > was told to execute, but using GetTickCount calls shows that its code
    > does not execute until the firing event is finished. This happens
    > whether Value Signaling is used to generate a Value Change event or if
    > CreateUserEvent and GenerateUserEvent is used. Is this because events
    > are placed in a queue ? This behavior is different from Delphi for
    > example where the fired event executes right away when called from the
    > firing event (before the firing event completes).
    I'm not that familiar with Delphi, but LV events are asynchronous.
    Window
    s OS has two ways of firing events, Send and Post. The LV events
    are always posted. The primary reason is that the LV events are handled
    by a node, not by a callback. The node you are calling is in the middle
    of a diagram, and reentering it not valid.
    > I have an event that executes upon a button value change. I would
    > like that same event's code to execute when another button is pressed,
    > but also have other code in the second button's event execute after
    > that first button's event's code completes. Is there another way to
    > accomplish this ?
    The best way to reuse code is to use subVIs. Firing events, or rather
    sending events is pretty close in other events to making a function call
    dispatched to anyone interested in the event. The event just hides who
    you are calling and makes you put your parameters in a funny format
    stuffed inside the event. IMO it also makes the code very hard to read
    since you don't know what calls what.
    Instead, just put the code into a sub
    VI and call it whenever you need
    to, from the event structure in one or more locations, and from other
    loops and diagrams.
    Greg McKaskle

Maybe you are looking for

  • Delivery Quantity change during creation of Delivery Document

    Hi Friends,    I have a requirement of creating a Partial delivery when not much stock is available.    For this I am using a BADI 'LE_SHP_DELIVERY_PROC' method Save_Document_Prepare.    I am changing the contents of CT_XLIPS-lfimg in the method and

  • Problem in connecting to other application servers

    Hi Forum, I am working on a 3-tier arechitecture involving: 1) An oracle database server 2) A middle layer using BC4J(which has to support the major application servers) 3) A front-end Swing client accessing the business layer. The problem i am facin

  • K8D Master-F High/Low beep tones

    Hello, Running the system even on bare minimum (PSU, memory and CPUs only)  the board will not post and will only return a constant high then low tone beep code.  Information from AMIBIOS suggests faulty CPUs, but this is doubtful that both CPUs woul

  • Auto open Itunes when plug in Iphone

    My mac used to open Itune when i pluged in my ipone but now it opens iphoto and not itunes. I can open itunes manualy and the phone is there and works fine but i would like it to open it when i plug in not iphoto. Any ideas. (4s iphone)

  • Set Metadata for custom fields on Supplier (BUPA)

    Hi, I have to add a new field to BASIC DATA view of Supplier. I have appended the field in the required structures. Now, I need to set the properties of field to make it as visible and enable. How can we set these properties? Is it through implementi