Can xMII sense an event being triggered in SAP?

Hi xMII Gurus,
I have a requirement where, when some event is triggered in SAP, I have to fetch some data from SAP to xMII and do some procesing and post the data back to SAP. Is there any way by which xMII can sense the event being triggered in SAP?
Thanks in advance,
Prasanna

Hi Prasanna,
It can be done with a trick
1. Create the  transaction in xMII
2. Generate the webservice.
3. Consume it in ERP
    a. from SE80 you have to consume
    b. From Lpconfig you have to create a port.
4. Now after the event occured in ERP,Call the interface of the class you have created in SE80
And it is done
Thanks and regards,
Pradip

Similar Messages

  • Events being triggered more than once

    HI All,
    I am using SAP Business One 2007 A SP:01 PL:07
    I have created a form using SAP Business One UI API Version 2007 A 8.0.When i open the form first time all item events and menu events are working properly..
    When i close the form and open it again all the menu and items events get fired twice.Again i close and reopen the form all Item and Menu events are triggered thrice on a single click.
    Any help to solve this problem will be highly appreciated.
    Warm Regards,
    Prerna

    Hello,
    Maybe You using a global variable for the form. Try to swicth to local variable and use sbo_application.form.GetForm(pval.formtypeex, pval.formtypeCount), or check you application really closes the window (window menü, and see the list of opened forms).
    Try to use EventSpy, which is a part of the SDN tools, you can download from /docs/DOC-8857#section6
    Regards,
    J

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • Can I create an IDOC Based on A Change Event Being Triggered

    I have a BOR object that when changed - triggers event 'Change'
    I would like to code the event linkage such that an IDoc is created everytime the event is raised.
    Has anyone done this before?
    The message type I am using is a standard one and is associated with the same BOR object.
    Which function module should I use in the event linkage for that 'change' event?
    The IDoc doesnt have an outbound function module.
    Please indicate steps or point me to related weblogs/threads
    Thanks

    Hi Anand,
    What happens generally  is that -- Initiator are created on the basis on the main role. User submit the request for main roles and the dependent roles are added automatically. Dependent roles are added later automatically the initiator needs to be created on the main roles. So if initiator is created on the basis of dependent role ( secondary roles ) and you are not selecing the dependent role in the request ( selecting only the main roles ) the initiator's conditions will not meet.
    Kind Regards,
    Srinivasan

  • Can Selection Screen processing events be triggered manually?

    Good day!
    I have a Selection Screen where a user can select a value from a drop-down box.  If a particular value is used, I assign default text to another Selection Screen field.
    However, because choosing the drop-down value doesn't trigger a Selection Screen processing event (AT SELECTION-SCREEN and AT SELECTION-SCREEN OUTPUT) the value doesn't get updated on the screen field, even though it gets updated in memory.  It only updates on the screen if the user selects a radio button value for another field because that triggers the Selection Screen processing events.
    I've read about various methods in an attempt to get this to work, but nothing is working.  Is there ANY way to trigger SAP to go to these events?
    Thanks, and points for all helpful advice!
    Dave

    Hi dave,
    1. Selecting a listbox on selection screen,
        and immediately populating a field value on the screen.
    2. just copy paste to get a taste of it.
    3.
    REPORT ABC.
    TYPE-POOLS : VRM.
    DATA : VALUES TYPE VRM_VALUES.
    DATA : VW LIKE LINE OF VALUES.
    DATA : FLAG TYPE C.
    PARAMETERS : LIST TYPE C AS LISTBOX VISIBLE LENGTH 10
    <b>USER-COMMAND ABC.</b>
    PARAMETERS : A(10) TYPE C.
    INITIALIZATION.
      VW-KEY = '1'.
      VW-TEXT = 'SUN'.
      APPEND VW TO VALUES.
      VW-KEY = '2'.
      VW-TEXT = 'MON'.
      APPEND VW TO VALUES.
      VW-KEY = '3'.
      VW-TEXT = 'TUE'.
      APPEND VW TO VALUES.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID              = 'LIST'
          VALUES          = VALUES
        EXCEPTIONS
          ID_ILLEGAL_NAME = 1
          OTHERS          = 2.
    <b>AT SELECTION-SCREEN  OUTPUT.
    A = LIST.</b>
    regards,
    amit m.

  • Create IDOC Based on an Event Being Triggered

    I have a BOR object that when changed - triggers event 'Change'
    I would like to code the event linkage such that an IDoc is created everytime the event is raised.
    Has anyone done this before?
    The message type I am using is a standard one and is associated with the same BOR object.
    Which function module should I use in the event linkage for that 'change' event?
    The IDoc doesnt have an outbound function module.
    Please indicate steps or point me to related weblogs/threads
    Thanks

    hi!!!!!!!!!!!!!!
    this is the sample code which may help u,
    *BAsic type ZMARA
    *Extension ZMARA
    *Message type ZMatmas
    REPORT  zi_material_idoc
            NO STANDARD PAGE HEADING
            MESSAGE-ID b1.
    TABLES: z1maram, z1mara_desc, z1marcm.
                        TYPE DECLARATION
    TYPES: BEGIN OF ty_data,
            matnr TYPE matnr,
            ernam TYPE ernam,
            ersda TYPE ersda,
            mtart TYPE mtart,
            mbrsh TYPE mbrsh,
            spras TYPE spras,
            maktx TYPE maktx,
            werks TYPE werks_d,
            lgort TYPE lgort_d,
           END OF ty_data.
    DATA: w_data TYPE ty_data,
          w_edidd TYPE edidd,
          i_edidd TYPE STANDARD TABLE OF edidd,
          w_edidc TYPE edidc,
          i_edidc TYPE STANDARD TABLE OF edidc.
                         SELECTION SCREEN                               *
    PARAMETERS: p_matnr TYPE matnr.
                       AT SELECTION SCREEN
    *Validate Material
    AT SELECTION-SCREEN ON p_matnr.
      PERFORM check_matnr.
                       START-OF-SELECTION
    *Start of selection
    START-OF-SELECTION.
      PERFORM get_data_from_selection.
                        END-OF-SELECTION
    *End of selection
    END-OF-SELECTION.
      IF NOT i_edidd IS INITIAL.
        PERFORM generate_idoc.
      ENDIF.
    *&      Form  check_matnr
          text
    FORM check_matnr .
      DATA l_matnr TYPE matnr.
      IF NOT p_matnr IS INITIAL.
        SELECT SINGLE matnr FROM mara INTO l_matnr
                            WHERE matnr = p_matnr.
        IF sy-subrc NE 0 OR l_matnr IS INITIAL.
          MESSAGE e000 WITH text-004.
        ENDIF.
      ENDIF.
    ENDFORM.                    " check_matnr
    *&      Form  get_data_from_selection
          text
    FORM get_data_from_selection .
      SELECT SINGLE a~matnr
                    a~ernam
                    a~ersda
                    a~mtart
                    a~mbrsh
                    b~spras
                    b~maktx
                    c~werks
                    c~lgort
                    INTO w_data
                    FROM mara AS a
                    INNER JOIN makt AS b
                    ON amatnr = bmatnr
                    INNER JOIN mard AS c
                    ON amatnr = cmatnr
                    WHERE a~matnr = p_matnr AND
                          b~spras = 'EN'.
      IF sy-subrc = 0.
        MOVE: w_data-matnr TO z1maram-matnr,
              w_data-ernam TO z1maram-ernam,
              w_data-ersda TO z1maram-ersda,
              w_data-mtart TO z1maram-mtart,
              w_data-mbrsh TO z1maram-mbrsh,
              w_data-spras TO z1mara_desc-spras,
              w_data-maktx TO z1mara_desc-maktx,
              w_data-werks TO z1marcm-werks,
              w_data-lgort TO z1marcm-lgort.
    Populate Parent Segment
        w_edidd-segnam = 'Z1MARAM'.
        w_edidd-sdata = z1maram.
        APPEND w_edidd TO i_edidd.
        CLEAR w_edidd.
    Populate Extn Segment
        w_edidd-segnam = 'Z1MARCM'.
        w_edidd-sdata = z1marcm.
        APPEND w_edidd TO i_edidd.
        CLEAR w_edidd.
    Populate Child Segment
        w_edidd-segnam = 'Z1MARA_DESC'.
        w_edidd-sdata = z1mara_desc.
        APPEND w_edidd TO i_edidd.
        CLEAR w_edidd.
      ENDIF.
    ENDFORM.                    " get_data_from_selection
    *&      Form  generate_idoc
          text
    FORM generate_idoc .
    Populate Control Record
      w_edidc-direct = '1'.
      w_edidc-rcvpor = 'A000000021'.
      w_edidc-rcvprt = 'LS'.
      w_edidc-rcvprn = 'ZMATMAS'.
      w_edidc-sndprt = 'LS'.
      w_edidc-sndprn = 'LOG950R3'.
      w_edidc-mestyp = 'ZMATMAS'.
      w_edidc-idoctp = 'ZMARA'.
      w_edidc-cimtyp = 'ZMARA'.
    Data Distribution
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control            = w_edidc
        TABLES
          communication_idoc_control     = i_edidc
          master_idoc_data               = i_edidd
        EXCEPTIONS
          error_in_idoc_control          = 1
          error_writing_idoc_status      = 2
          error_in_idoc_data             = 3
          sending_logical_system_unknown = 4
          OTHERS                         = 5.
      IF sy-subrc = 0.
        CLEAR w_edidc.
        READ TABLE i_edidc INTO w_edidc INDEX 1.
        IF sy-subrc = 0.
          WRITE:/ w_edidc-docnum.
        ENDIF.
      ENDIF.
    ENDFORM.                    " generate_idoc
    this link may help u,
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6702507d11d18ee90000e8366fc2/content.htm
    reward if useful.

  • OEM sending clear without event being triggered

    Hello,
    We have an event setup for checking the library cache hit%. The problem is even where there is no alert, it sends a alert cleared message.
    We have the event set up for about 10 databases, but it doesnt do the same with all of them ?
    When I go in the Event Log it says "Event test library cache hit% is cleared"
    Can anyone tell me please, why this is happening ?
    Thank you

    When you assign a function to be an event handler you don't use the parentheses:
    btn_advance.onPress = ScrollForward;
    Because using them means execute this function now. Of course you might actually have a function that returns a function in which case you would use them.

  • 'CHANGE' event not triggering for BTE 2214 on park/change from FBV1/FBV2

    I have designed a workflow template for FI parking. If the parked document is rejected, i need to trigger FIPP 'CHANGE' event for sending workitem to approver when someone changes the parked document. In SWEL event trace, the 'CHANGE' event is not getting raised.
    So i implemented a BTE 000002214 and now i am able to raise 'CHANGE' event and capture it in workflow. But this is only working when i park a document using FV50 transaction and later change it.
    But when i park a document using FBV1 and then make changes from FBV2, the 'CHANGE' event is not being triggered in SWEL. Should i implement some other BTE like 2218 etc? Can you please help?

    Hi Gokul,
    You can try handling the SAVE event instead of the CHANGED event.
    T-code FBV2 will not allow you to save the document unless you make some changes.
    Try implementing BTE 2218 and revert.
    Thanks,
    Sreekanth

  • How to verify that an event is triggered

    Hi Experts,
    I am running a BW job that is based on an event (or basically a group of events using event collector). Some times, I need to debug it to find out why the job is not triggered and it is very difficult to find out which event was not there.
    Here is my quesiton:
    Is it possible to see, some where in the system, if an event is waiting for a job? or in other words, if an event has been fired?
    Also there is one other question, if an event is fired and this event is being collected by an event collector, can we see, some where, if event collector already got one event and only 2 more are left (suppose event collector need 3 events to fire the next level event that triggers a job).
    Thank you,
    Praveen

    Hi Sidhartha, Dinesh and Ravi,
    SM37 can give me only those jobs that have either finished, cancelled or waiting for an event. The question was to see those events that are not trigger from event collector, because one of the source event is not there.
    Here is one example EV3 is triggered by Event collector only if EV1 and EV2 are there. Suppose EV2 did not come, how do I know, if EV1 is there without executing any job?
    Thank you,
    Praveen
    Toronto

  • What Event is Triggered When a Title Window is Shown?

    I am creating the Title Window Component once, and then
    showing it with PopUpManager.addPopUp, and hiding it with
    PopUpManager.removePopUp. I need to run some logic each time the
    PopUp is shown. However, I can't figure out what Event is triggered
    when the TitleWindow is "opened". The window is there, it's just
    not being displayed. This make me think that "show" would be
    triggered, but it is not. I also tried "add", but this threw a RTE.
    Any thoughts?
    Thanks.

    Since I couldn't find an Event to trigger, I am instead using
    an override of protected function commitProperties() to run my
    logic.

  • How can I disable the event sound played when a new window is opened?

    When Firefox starts, or when a new window is opened there is an annoying click.
    How can I disable this?
    The only way I have been able to stop it is by disabling all event sounds from the control panel but I'd rather just disable this particular sound.

    No, it's Windows XP. Hmmm, I don't know! I only started noticing it recently and as far as I remember, the only new add on is NoScript. I found the event that was being triggered (Start Connection) and disabled the sound in Windows. So the problem is solved in that I don't have the annoying sound ... but don't know why it started and hope nothing sinister is going on.

  • Event is triggered once, but two workflow instances start

    Hello all,
    I have a workflow that is triggered by the event ISUSWITCHD.Created.
    Unfortunately two workflows of the same version start on this event.
    This event is triggered only once according to SWEL.
    i have already copied the old workflow pattern (deactivated) and created a new pattern. Problem still exists.
    There are no double entries in SWETYPV also.
    Is this a Basis problem?
    Any help is aprreciated,
    Bye,
    Holger
    Edited by: Holger Reimer on Sep 20, 2010 9:43 AM

    1. Go to the transcation SWE2 and check whether there is entry for the same workflow two times. If yes then check for what 
        other event the same workflow is being triggered.
        Create a check function module to test what was the actual triggering object.
    2. If there is no such entry then check through out the code whether that worlflow is being called through a function module or  
       not. If that is being callde by a function module then the the SWELS cannot trace the triggering of the workflow and the
       workflow will be trigered.
        If such type of entry is still not there means  that the code does not contain any FM that will trigger the workflow then check 
        for it.
    3.Go to the transcation PFTC.
       Give the workflow number and choose the workflow template. There you can check wherther any other event is assigned to  
       the workflow. If yes then trace that and deactivate the linkage if it is not required.
    Thanks!

  • OIM Event Handler Triggers on Manual Entry but not for Trusted Recons

    Hi,
    I'm having some trouble getting my plugin to trigger upon a reconciliation. I've developed a plugin to modify some Xellerate User attributes on the OIM Profile.
    - I've created a custom package with some java classes that retrieve attributes being passed in, manipulates the data, and returns the data through an EventResult
    - I have system.out commands in my BulkEventResult function to see when this function is triggered
    - My Plugin.xml calls this java class, which has a plugin point of oracle.iam.platform.kernel.spi.EventHandler
    - I've uploaded the plugin (development) by putting the plugin.zip in the /server/plugin folder
    - I've created an event handler that calls the plugin class upon an operation = "MODIFY". It also contains entity-type="User", stage="postprocess", order="FIRST", sync="TRUE"
    - I've imported this using the weblogic import utility, setting OIMMetadata, and loaded the file to /custom/iam-data/EventHandler.xml
    Upon testing, I am able to see my system.out debug statements in the logs, and can see the data actually changing when I am logged into OIM making changes directly on the system.
    I am unable to see any of this come through when I run a trusted OID reconciliation against the same user, manipulating the same fields.
    From what I've read, all I needed to do was put the code in the BulkEventResult function. However, none of my debug statements are being triggered, causing me to believe that this event handler is not even being triggered upon a trusted recon.
    Does anyone have any ideas why this is, or if I have a configuration somewhere that is incorrect?
    Any help is very welcome!

    Everyone,
    Thanks for your help.
    I found out the root of my issue: it was that my OPERATION was set to "MODIFY" in my EventHandler XML. It should have been "ANY". After I did this, it started to work.
    As for registering plug-ins, you can actually drop the plugin zip file on the Oracle_IDM1/server/plugin directory for testing purposes, then re-import the EventHandler.XML you created.
    I also found a few strange behaviors-
    - If the order was too large (for example, 1000), it wouldn't trigger until the second time I updated it. I lowered the number to 50 and it kicked off every time.
    - There is no purge cache needed when I re-imported the xml file after uploading the .jar again

  • How to tackle the dataflow problem when Value Change event always triggers after another GUI event

    We know that Value change event always triggers after another GUI event. Eg, the user modifies string control, the user clicks on a boolean control. Then event boolean clicked is triggered before event string control value change.
    Now suppose somehow the GUI event that must happen to subsequently trigger the Value change event can potentially affect the data that Value change event is supposed to work on. How can we tackle this problem ?
    For example, in a mockup application that the grand purpose is to have user entered values in a textbox logged to a file (no missing information is accepted, and there is a boolean to determine how the information is logged).
    There are 2 controls, boolean A when clicked (mouse down) will load random number in text box B. Text box B is designed with event structure VALUE change which saves whatever values user enters into text box B to a log file.
    There are 3 problems when instead of clicking anywhere on the front panel after modifying text box B, the user ends up clicking on boolean control A.
    1. Event mouse down on Boolean control A will execute first, modifying text box B content before the user entered values in B get saved.
    2. The value of boolean A can potentially affect how textbox B is loggged.
    3. The value of boolean A affects how the file is logged and this is indeterminate. Somehow when running this VI with no Highlighting, the textbox B Value change event executes -before- boolean A value is updated (F to T). When running this VI with Highlighting, the boolean A value is updated (F to T) (because we click on it) -before- textbox B value change event occurs. Why is it like this ?
    Now the situation I made up seems non-sense, but I believe it resembles one way or another a problem that you might run into. How would you solve this problem elegantly ?
     

    You can set the string control to "update while typing".
    Are you sure appending the log to itself is reasonable? Wouldn't it grow without bounds if the users keeps entering strings or pressing the ingore button?
    Why isn't the "constant" a diagram constant instead of a control. Is the user allowed to change it?
    To reset just write empty strings or a false to local variables of the controls (renit to defaults" seems a bit heavy handed).
    All you probably need is a single event case for "ignore:value change" and "String" value changed", no need for the local variable..
    Also add a stop button and an event for it.
    You don't need the timeout event.
     

  • How to find out which event is triggered in SDK

    Hi all
    From SDK, I am would like to know which event is triggered when the user select navigation menu Follow up -> Create Lead (screen 1).
    I am guessing, it calls LeadCreateWithRef outport event but I don't see any absl code?? (screen 2)
    When I try to switch from Display to Edit, I got error "Component which you are trying to edit comes from a lower layer. Please use Extensibility Explore to Edit" (screen 3)
    Also in Extensibility Explorer, I can't open the button details (can't even see it in the buttongroup).
    Any advice is welcomed.
    Thanks
    Anthony

    Hi Meghna
    Thanks for the info. I am trying to do reverse engineering, to understand how to existing UI screen is built, how and what events get called when button is pressed and which screen will be opened.
    For example, in Ticket screen, when I select Follow up then Create Lead:
    I cannot drill down to see the button and its properties??
    nb. Also there is no left right scroll bar to see the rest of button group. Is it a bug?? I am using Windows 8.1.
    And in outport setting, I don't see which action/event triggered? and what screen to show?
    Thanks again,
    Anthony

Maybe you are looking for

  • Same colors print great in PS, muted in ID

    Why do colors in a given graphic print differently from InDesign versus Photoshop? As an example...I have a 300 dpi PSD graphic that is a background of reds and oranges, very vivid and saturated. When I print it out from Photoshop onto glossy paper,

  • How to send a mail to the user with attachement

    Hi Experts, I have a requirement where user needs to get the automatic mail which has the updated information sheet as the attachement. Kindly give me a clue on this. if any body has model program for this...kidnly send it to [email protected] Thanks

  • Probs mit Alpha-Channel

    hallo,<br /><br />ich bin gerade dabei ein Plugin für Photoshop 6.0 zu schreiben und habe ein Problem mit dem Alpha-Channel. Wenn ich in Photoshop für den Alpha-Channel einen Wert von z.B. 172 eintrage, dann wird in meinem File ein Wert von 171 gespe

  • User can not login? Error comes up - only happens on mac pro

    Hi. I have just set up a server system and users can login fine on all the imacs. However, When a user comes to login on a mac pro, they get this message: The home folder of this user account is on a afp or smb server. Please contact the system admin

  • Bex Query help !!

    Hi Guyz, I am new to planning so need a question, I want to create a planning solution for one of my client and his requirements are like 1- If figures are entered on yearly level, the data is distributed based on prior year data. 2- If there is no p