Capturing an event raised by a COM object

Hello,
Using ABAP, it's no trouble using a COM object's properties and methods, but how do you capture a raised event?
For example:
INCLUDE OLE2INCL.
DATA wf_test TYPE OLE2_OBJECT.
CREATE OBJECT wf_test 'Test.Test'.
SET PROPERTY OF wf_test 'TestID' = '123'.
CALL METHOD OF wf_test 'TestMe'.
Now as a result of calling the 'TestMe' method, the COM object will raise a 'Tested' event. How do I capture that in ABAP? I assume this will require somehow registering the event and maybe generating a proxy class but I don't know the details.
I would really appreciate the help. An example or link would be great.
Best Regards,
Ahmad Shono

Hi,
You can look for the event triggered in table SWFREVTLOG for a specific time stamp or user or in fact any BOR object.
Ravi

Similar Messages

  • Issue regarding [Work Flow] Business Object Event Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container. Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

  • Regarding [Work Flow] Business Object Event  Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container.  Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

  • TCA Business Object Events: Raise Events Program

    Hi,
    We are integrating two ebiz instances using SOA and both the instances currently are on 11.5.10. We have back ported patches from ebiz 12i into these instances to use TCA Business Objects functionality(Business Object API's and events). I have a few questions realted to the concurrent program "TCA Business Object Events: Raise Events Program":
    1) Do I need to schedule this concurrent program to raise business object events?
    2) Is there an alternate way to raise these business object events(any profiles)?
    Appreciate if someone can answer these questions.
    Thanks,
    Sak

    Hi,
    We use AIA and TCA Business Object Events program to integrate from one Ebiz instance to another.
    To achieve what you want I would not do anything in SOA.
    In out integration TCA ends up putting messages into WF_BPEL_Q.
    I would use the following process: (Assuming offline time is a possibility)
    1. Retire the parts of AIA that dequeue from WF_BPEL_Q. (depending on how messages are picked up.)
    2. Create a PLSQL script that dequeues all messages from WF_BPEL_Q but dosn't process them. Using relevant select statements you can dequeue by message ID and select only relevant messages
    3. Run whatever process you need that puts fires the Raise Events Program
    4. Run the script to dequeue the messages that does nothing with them.
    5. Re-activate the parts of AIA that dequeue from WF_BPEL_Q
    This should give you the desired effect. Just be careful you don't screen out messages that do need to be transfered.
    Robert

  • Event raise failure

    I have an issue involving an event that  is being raised in a user exit that is being called in update.
    This works fine in dev and QA but simply will NOT work in production.
    The code runs perfectly and the call to SWE_EVENT_CREATE looks to function identically in all three systems. THE ONLY DIFFERENCE IS THAT IN PRODUCTION THE EVENT NEVER GETS RAISED.
    Can anyone suggest a possible cause for an event not raising in one system as opposed to another?
    This is driving me seriously nuts!!

    Hi Thomas. I posted here as I am not triggering a workflow just a function module that creates an inbound idoc. I will leave it here for another day and then close and repost in workflow if nothing comes out of this.
    Event type linkages are correctly configured for the object and event identically in all systems, those where the event is succesfully raised and that where it is not.
    Debugging the process shows that the code is behaving identically in all systems
    The only thing I can think of is that there is no "commit" taking place in the application transaction itself (VL32N) in production, but the article document for the goods receipt is being created so this cannot be true either. In fact if I go immediately to the create event manually facility in the workflow utilities and use the key that was visible during debug I then do get the event raised!! How wierd is that !
    Ross

  • Capture MDM EVENTs

    Dear MDM experts,
    Kindly let me know how we can capture an MDM event and trigger an external program.
    I have this requirement of populating a field in the main table based on the ENTER event when the user is entering a main table data record and has has pressed ENTER.
    There is this external program that needs to be called to do the job.
    Pls let me know.
    Would appreciate your prompt inputs.
    Thanks.

    Hi,
    I guess you r using Eventing as a function  to create UI integration between iViews and between iViews and web applications. 
    There are two types of eventing:
    a)URL eventing
    Where an event is triggered to open a browser popup window. Possible use of this is in accessing a back-end system or an external web application
    B)EPCF eventing 
    Where an event is published to another iView on the same page.possible use of thsi is in displaying related objects from different repositories.
    With the parameters that you define when creating the event, the iView event builder is programmed to build a valid string with the correct syntax to generate a valid EPCF or URL link.[for external access]
    <b>The procedure to capture MDM events,in a nutshell, is as follows:</b>
    a)Double-click the Result Set iView to launch the editor. The iView is now in edit mode.
    b)Select the Custom Events radio button to open the Event Builder. 
    c)Select Add and define the new custom event with the parameters as per the table below.
    Hoever there are certain event builder parameter about which detailed description is given on
    <a href="http://help.sap.com/saphelp_mdm550/helpdata/en/45/c89e544c52570be10000000a114a6b/content.htm">this URL</a>
    I hope it will help you.
    Regards,
    Krutarth

  • How to Capture Button event on TrainBean navigation

    Hi All
    i m being required to capture a button event in train bean Navigation, i m doing customization in Iexpense Module,here in Create IExpenseReport i need to capture the events of Remove,Return etc.how is it possible any clue would be very helpful.
    Thanx
    Pratap

    try this..
    if (GOTO_PARAM.equals(pageContext.getParameter(EVENT_PARAM))
    "NavBar".equals(pageContext.getParameter(SOURCE_PARAM))
    // This condition checks whether the event is raised from Navigation bar
    // and Next or Back button in navigation bar is invoked.
    int target = Integer.parseInt(pageContext.getParameter(VALUE_PARAM));
    // We use the parameter "value" to tell use the number of
    // the page the user wants to visit.
    String targetPage;
    switch(target)
    case 1: targetPage = "/oracle/apps/dem/employee/webui/EmpDescPG"; break;
    case 2: targetPage = "/oracle/apps/dem/employee/webui/EmpAssignPG"; break;
    case 3: targetPage = "/oracle/apps/dem/employee/webui/EmpReviewPG"; break;
    default: throw new OAException("ICX", "FWK_TBX_T_EMP_FLOW_ERROR");
    HashMap pageParams = new HashMap(2);
    pageParams.put("empStep", new Integer(target));
    pageContext.setForwardURL("OA.jsp?page=" + targetPage,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    pageParams,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I use a COM object that does not have a type library?

    Hello,
    I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.
    Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?
    In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
    com server.
    Any help is greatly appreciated.
    73,
    Timothy

    Timothy Toroni wrote:
    > Thanks for the info, however their example is labview server and
    > python client. I'm going the other way. It's good to know about
    > LabPython though...
    >
    > As of now, it seems to be there is no way to use a COM object without
    > a type library from inside LabView.
    Yes that is true. LabVIEW needs that to configure the Property and
    Methode Nodes correctly. Otherwise it would need to have a special
    Property and Method Node with a configuration dialog similar to the Call
    Library Node, but a LOT more complicated. Not sure many people could
    make use of that, and it would be a very tiring experience trying to get
    things setup in that way, by going through the edit, test, and crash
    cycle over and over again.
    Rolf Kalberm
    atter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Payload for an exent & Source from where Event Raised

    In Oracle Applications 11.5.10 I want to subscribe to "oracle.apps.ap.event.invoice.approval" event.
    I want to add a custom "Rule Function", I require to know the payload for this event.
    And I want to know from where is this event raised in the base product.
    Thanks
    Atul

    Many thanks Matt..
    You are right.. The payload will be generated by the application raising the event. How do I come to know that from where is "oracle.apps.ap.event.invoice.approval" event raised. Is it raised from a form, workflow, pl/sql package, db trigger?
    Secondly I agree it is of type WF_EVENT_T, but in addition to that I want to know what are the granular contents of the payload being passed to my rule function. What all data can I reference from this seeded Payload. What is the name of this payload.
    Thanks
    Atul

  • Capturing the event on clicking the af:train stop icon

    We are using an af:train as follows
    <fnd:applicationsPanel>
    <f:facet name="appsPanelTrain">
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroupLayout2">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="train1"/>
    </af:panelGroupLayout>
    </f:facet>
    </fnd:applicationsPanel>
    I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
    Is there a way to capture the event of this click?

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • COM object that has been seperated from its uderlying RCW cannot be used

    What exactly does this error mean?
    I receive this error when I perform "Unload All Modules" from the sequence editor using TestStand 4.2.1.83 development system, which is part of NI Developer Suite 2010 DS1.
    It causes TestStand to crash citing that error, and then a secondary error cites corrupted memory.

    ATE_Dude_22 wrote:
    Here is a capture of my sequence editor, where I have a alert from TestStand telling me the parameter specified doesn't match the sequence parameters (specified in the vi prototype as a string not a number), but this version of TestStand allows it to execute without needing to clear the error.
    Do you think this may have anything to do with the error I am seeing?
    Probably not. Sequence calls support mismatched parameters, what happens is that the callee gets whatever is passed to it, if that's not what it's expecting, then you might get a type mismatch error if type checking is enabled, if not then it's up to the sequence what it tries to do with the parameter for what happens next.
    Most likely the bug is in one of the code modules you are calling, probably a vi or dll is not properly maintaining a reference count somewhere or is corrupting memory and only indirectly causing the error. If most of your code is in labview, one thing to look out for is incorrectly specified calls to dlls from LabVIEW. If a call to a dll is incorrectly specified, either from LabVIEW or TestStand that can very easily lead to memory corruption and random errors later on in the code.
    I'd recommend trying to either debug and see where it's failing, if it's always failing in the same place. Or try to eliminate possibilities and reduce the called code to the minimum code required to reproduce the problem and then look for bugs in that code (paying special attention to the possibility of incorrectly specified dll calls and/or perhaps incorrectly maintained reference counts on COM objects).
    Another idea, to see if the problem is memory corruption caused by a vi, is to run all of your labview vis using the development environment (labview adapter setting), if so, any memory corruption would be in the labview process and not the main teststand process and should not bring down teststand.
    -Doug

  • Event on placing the library object on the document

    Hi,
    I'm lokking for the technical event (like kBeforeOpenDocSignalResponderService) when any Object from the Indesign library is placed on the opened document.

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • Problem calling COM Object on Windows Server 2008 x64

    Hi,
    We are using 32 bits COM object called in Coldfusion page on 32 bits OS. It works fine since few years.
    Now we need to use it on x64 Windows Server 2008 and 64bits IIS.
    As I 've seen (http://www.coldfusionjedi.com/forums/messages.cfm?threadid=87869C67-B1 9B-288F-F32B6E8BAB3228CA ),a 64 bits process can only call 64 bits DLL.
    So we created a 64 bits Wrapper like this : http://www.dnjonline.com/article.aspx?id=jun07_access3264
    But  calling 64 bits COM Object still raises the same error (" The cause of  this exception was that: java.lang.RuntimeException: Can not use  native  code: Initialisation failed") whereas it works fine with a 64 bits  executable created in .NET for example.
    Is there a known issue about this subject?
    Sorry for english , I'm a french developper.
    Thanks in advance.

    Can somebody please share the solution for this issue?
    I am facing similar issue with Windows 2012 R2 x64 OS and Excel 2007(32-bit) combination.
    I tried couple of things like Excel is able to Open an existing workbook on my system but fails to
    create a new Workbook as done by invoking the "Add" command. It fails with Error 800a03ec.
    I tried creating the two folders i.e. C:\Windows\SysWOW64\config\systemprofile\Desktop & C:\Windows\system32\config\systemprofile\Desktop, but could not get it working.

  • List of Standard events raised by KM Repository?

    Hi ,
    I am looking for list of Standard Events raised by a KM Repository Framework.
    I could able to get Event ids for moving, deleting , renaming and opening.
    Actually I need to catch the event of new post in KM Repository.
    If some body can direct me to a document which gives me the list of all events  
    and Event ids I would be thankful.
    Thanks & Regards
    Mrutyunjay

    The javadoc for ResourceEvent is located at: <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html">https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html</a>.

  • Connect to COM(OBJECTS/METHODS) FROM ABAP

    Dear all.
    How can I connect to COM objects/methods from abap?
    Could give me link to example.

    Yes this method raises and exception with this message
    Message ID:          FDT_CORE
    Message number:      085
    DO_IM_DATETIME is not in the context
    The method SET_VALUE corresponds to IF_FDT_CONTEXT. This is the method's calls
          lv_name = 'DO_IM_DATETIME'.
          TRY.
              o_context->set_value( iv_name =  lv_name
                                    ia_value = lv_element_tzone ).
            CATCH cx_fdt INTO lx_fdt.
              RAISE incorrect_parameter.
          ENDTRY.
    I reactivate the aplication, the function, the expression and the data objects.
    But the method is still giving this exception.
    I have only this exception when I try to set up this two parameters:
    DO_IM_DATETIM of type Timepoint
    DO_IM_LANGU which is binding to the element type LANGU
    But in my BRFPlus Function Context I do have this two parameters.
    Thanks !

Maybe you are looking for

  • ICloud for families sharing an iTunes account

    Our family shares the same iTunes account so we can use the Home Sharing feature for music.  However, now with iCloud we are all on the same account and being forced to share contacts, calendars, etc. even though we don't want to.  Can we set up sepa

  • Aperture doesn't display some managed masters

    My Aperture 3.5.1 library has 11,000 referenced masters plus  1000 managed masters (mostly images saved from shared photo streams). Recently, Aperture has started listing some of the managed masters as missing. I replace them from backups but then ot

  • Cannot connect to wi-fi

    My I Pad 2 has happily connected to wifi for the last year. Now it has suddenly failed to connect. The router is fine - the PC, printer and laptop all connect. Any ideas? I'm not into technology - I need a simpleton's guide.

  • HD crashed, photos recovered are now in low resolution.

    Please help!  My HD crashed last week and I had the data recovered (no, I didn't back it up).  The data that was sent back to me included my photos, but after I imported them into iPhoto, they are all in low resolution.  Is there any way to correct t

  • Airport Express refuses to update firmware

    I have an airport express that seems to be stuck on the 7.4.1 firmware. Whether I try to upgrade to 7.4.2 or down to an older version, it always stays at 7.4.1. Any suggestions for how to fix this?