How to raise Remote System Event

Hi,
I need to load data from a remote DB system (Not SAP system) when data is created or modified.  I setup DB Connect to load the remote data with an event triggered InfoPackage.  How can remote system trigger the local event?
Thanks,
Frank

Frank, there should be a command on the server that your R/3 or BW system resides on called <b>sapevt</b>.  This command sits outside the SAP system and its sole purpose is to allow you to raise an SAP event from outside the SAP system.
check out the following link:
http://help.sap.com/saphelp_erp2004/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
Regards,
George

Similar Messages

  • How to raise a component event via script

    Hi all i have a DateField in wich a set the text with the text property, and i would like to raise the CalendarLayoutChangeEvent event programmatically via the scripts code.
    How can i do that?
    Thanks.

    Ok, i did it, but this is my code:
    dispatchEvent(new Event(CalendarLayoutChangeEvent.CHANGE));
    i tried also with:
    data.dispatchEvent(new Event(CalendarLayoutChangeEvent.CHANGE));
    where data is my DateField component, but it did not work.
    Can you help me to find the right code?.
    Thanks.
    Skylander.

  • How to overwrite the system event "Close"?

    Hi,
    How to overwrite the event for "Close" button in a screen?
    "Close" is the system event. I need to write my own code for "Save" in the event and then close the screen.
    Pls help me in doing this. Provide me the sample code.
    Regards,
    SAP Lover

    Hi,
    Check out this related thread ... Hope it helps
    Re: how to close  screen?
    Regards,
    Santosh

  • ALV Grid editable - How to raise the data_changed event from outside object

    Hi,
    i'd like to like to raise the data_changed event from outside the ALV-Grid object in order to display errors to the user.
    For example a new row was inserted within the program. The user has only to complete the missing informations. Before saving the transactions the program has to execute some semantic checks. The errors of this check process should be shown to the user by creating an instance of the cl_alv_changed_data_portocol object.
    Thanks.
    Regards

    You don't need to raise the data_changed event to perform the edits or to issue messages using cl_alv_changed_data_protocol.
    The following assumes you have an ALV grid object g_alv based on the CL_GUI_ALV_GRID class.
    You can mark the inserted records upon insertion as selected using the set_selected_rows method, and then retrieve these rows later using get_selected_rows and perform necessary edits.
    Save the row number of each inserted row into a table of the appropriate type (see the method definition for this):
    DATA: t_index_rows    TYPE  lvc_t_row.
    DATA: s_row_no        TYPE  lvc_s_roid.
    DATA: t_row_no        TYPE  lvc_t_roid.
    Load entries into t_row_no after each insert.  Capture the row number and save in the table t_row_no.
    e.g.
    PERFORM insert_row USING s_row_no-row_id.
    APPEND s_row_no TO t_row_no.
    FORM insert_row would have whatever code you are using to insert the row.  Save the row id into s_row_no-row_id (which is an INT4).
    When done with all inserts do the following
      IF t_row_no[] IS NOT INITIAL.
        CALL METHOD g_alv->set_selected_rows
          EXPORTING
            it_index_rows            = t_index_rows
            it_row_no                = t_row_no
            is_keep_other_selections = 'X'.
      ENDIF.
    Then, if SAVE is pressed without the data_changed event having been raised (such as if the user just pressed SAVE without changing anything), use method get_selected_rows to retrieve the rows that were inserted and perform the necessary edits.
      DATA: l_t_rows    TYPE lvc_t_row.              " ALV control: Table rows
      CALL METHOD g_alv->get_selected_rows
        IMPORTING
          et_index_rows = l_t_rows.
    Loop through l_t_rows and use the row as an index into the grid, perform the necessary edits, just as you would if the data_changed event had been raised.
    If any edits fail, then send messages to the user, abort the save, and re-display the grid.
    Remember to refresh the t_row_no and t_index_rows tables if you load a new data set.
    You can also use a similar technique with the data_changed event to mark each changed row as selected by saving the row ids, and then you only have to update the changed rows on SAVE, which can minimize database I/O.
    Good luck.
    Brian

  • How to raise a Terminating Event for a Standard Task?

    Hi Experts,
    I have a standard task where I have defined the Terminating event to stop the workflow.
    This Task/Workflow will be triggered by a batch program.
    Also in a class method I am using function module SWE_EVENT_CREATE to raise a event which should complete the workflow.  But somehow the work items are still in In Process status.
    May be I am passing wrong parameters OR using wrong FM to raise a terminating event.
    Request you to help me on this.  Thanks in Advance.
    Regards,
    Sudhakar.

    Hi Sudhakar,
    Since there are entries in SWE3 which show link each time event is triggered. So I would suggest you will have to check the standard task you are using is working. So create a parallel branch with activity on one end and wait for event step on other. See if the the wait for event step works, when you create the event using create event. If it works then most likely your task binding has a problem. If not then event that is triggered does not getting picked by workflow. So based on the finding we can find a solution.
    I notice that you are calling the event from an ABAP class, so in that case the code for calling event seems to be different. Check out the below SAP help documentation.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a1/172437130e0d09e10000009b38f839/frameset.htm
    Regards,
    Kartik N.
    Edited by: KARTIK Nayak on Dec 12, 2008 8:25 PM

  • How to get Remote System informations using java

    Hi
    Any one know how to get remote machine information, processor speed , mainmemory size, etc using java .
    Thanks in adv.......

    Hi
    Any one know how to get remote machine information,
    processor speed , mainmemory size, etc using java .
    Thanks in adv.......That's impossible.
    Kaj

  • How to capture remote control events

    Hello, I am now writing some simple xlets to test UI .
    I can successfully receive arrow key and enter using KeyEvent,but failed at color key and other
    keys in remote control. I have read some articles and got quite confused about the event model
    of MHP,it seems complex to beginners.
    I tried to receive color key event by this way:
    a: main class (HComponent) implements xlet and UserEventListener;
    b: define one userEventRepostiroy colorKey and add all colored key to it.
    c: EventManager.getInstance().addUserEventListener(this,colorKey);
    d:implement the userEventReceived method
    I tried the color keys in remote control of my emulator ,but not captured, Can you tell me why? Thanks!!!!

    Hi,
    I am trying to program a normal JFrame application which can capture remote control inputs. (I know very little about Xlets. I just need a listener for an application).
    Many of the buttons are captured by a normal KeyListener but some aren't (player controls like play/pause and red/green/yellow/blue colour buttons). Also, most of the ones that are captured just have keyCode() = 0 and keyChar() = '' so I can't determine which button was actually pressed.
    Is there any way I can implement the UserEventListener example above without using an Xlet? Alternatively, is there any way I can manipulate KeyListener to get ALL button presses from the remote control? Any other ideas?
    Thanks,
    Brian
    PS - here is my attempt: (Am I missing the point altogether? Not sure if a UserEventListener can be added to a component like other listeners)
    package remotecontrol;
    import javax.swing.JFrame;
    import org.dvb.event.*;
    public class frame extends JFrame implements UserEventListener
        public frame()
            UserEventRepository rep = new UserEventRepository("whatever");
            rep.addAllArrowKeys();
            rep.addAllNumericKeys();
            rep.addAllColourKeys();
            EventManager.getInstance().addUserEventListener(this, rep);
            setSize(200,100);
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            show();
        public static void main(String[] args)
            frame app = new frame();
        public void userEventReceived(UserEvent userEvent)
            System.out.println("Remote button press captured: " + userEvent.getCode());
    }

  • How to raise on click event for Single Markable cell in WD Table

    Hi All,
        I want to raise an event when a cell is clicked on Single Markable Cell and get the row and column of that cell.
    I have tried all the events of the table and also On Enter event of input Field.
    But I am not able to trigger on click event .
    Please help me out. Points will be rewarded.
    Thanks,
    Anil

    Hi Anil,
            If the cell editor is a link to action then it triggers the ON CLICK event , Write the following code into
           the ON CLICK event handler to get the selected Row and Column ID.
          Event Properties is a node with two attributes Name and Value of type string.
    data: lr_node type ref to if_wd_context_node,
    lt_event_properties type wd_this->elements_event_properties,
    ls_event_properties type wd_this->element_event_properties.
    field-symbols: <l_value> type any.
    * fill internal table
    ls_event_properties-name = 'COLUMN_ID'.
    ls_event_properties-value = r_param->column.
    append ls_event_properties to lt_event_properties.
    ls_event_properties-name = 'INDEX'.
    ls_event_properties-value = r_param->index.
    append ls_event_properties to lt_event_properties.
    ls_event_properties-name = 'ATTRIBUTE'.
    ls_event_properties-value = r_param->attribute.
    append ls_event_properties to lt_event_properties.
    assign r_param->value->* to <l_value>.
    ls_event_properties-name = 'VALUE'.
    ls_event_properties-value = <l_value>.
    append ls_event_properties to lt_event_properties.

  • How to shutdown remote systems using java

    hai,
    this is Guru
    i have a requirement that is i have to shutdown my server which is in remote area.please send code if possible.
    thanqqq
    Guru

    Hi Guru,
    I havent worked on it, but i think you would need to customize Ant to help you in performing remote configuration management.
    Regards,
    Tanveer.
    Please mark if found helpful..

  • How to pass parameter into remote system

    i'm doing a small testing on remote connection where i need to remotely login to another NT machine by using JAVA code. therefore i need to send over the ctrl-Alt-Del command by using ASCII code as well as the username and password to login to the remote NT machine. My problem is after my JAVA code start up the VNC connection, the ASCII code and parameter passing was executed before the VNC window popup therefore the parameters are not received by the remote end.

    Hi oling,
    i am really not sure how u can invoke or rather pass parameters to a Remote System thru Java, where no Java server is running.
    which Java Api do u use to connect to remote System. How will the remote System understand the serialised bytes transferred thru ur program.
    The Bottomline is i am confused how will the connection haapen after all!!!!!!!!!!!!!!!!!!!!!
    can u please explain this or rather pass me the Code...
    Thanks in advance,
    Manja

  • Tracking system events.. Mouse double click / Right click in OS environment

    Hello all,
    I have stored files in my computer which are generated using my application.These files own my application specific file extension. I have registered the file association to windows registry and when each time the file is opened in OS environment (using double click or rignt click on the icon--> open etc.,).. i need to access the file's absolute path in order to open it using my application. How to track those system events (Double clicks, right click--> open etc.,)..can anyone help me out??..
    Thank you in advance!!

    Yeah.. the OS will pass the necessary information. How do my application will receive the parameter?.. That has to be done by my coding.. right??..
    For example, if an .doc file is opened the OS will open MS-Word and how ll the MS-Word get those parameters. In the same way, how can i receive that parameters to my application..?..this is where i am struggling... i use J2SDK1.4.2_11 and Eclipse 3.1.
    Expecting ur response!!
    Thanks in advance!!

  • How to raise an event from a program

    Hi,
    I am creating a workflow for HR, the person will request a basic pay change than, this will start the workflow. For this i am making a screen from where i need to triger the event for the workflow.
    Does anybody has any idea? of how to raise an event from a program. or has anybody worked on a scenario like this
    Khusro Habib

    You can also use the FM SAP_WAPI_CREATE_EVENT which is a little newer I think. (I don't have access to a system today so that may not be the exact name of the FM but if you search SE37 under SAPWAPIEVENT* you should find it.
    the parameters will be the event name, and the object key.  The object key will be the key field of the workflow object you are using. 
    For example if you were using the saled document object then the object key would be the sales document number.  Carefull how you enter the object key, it can be a little tricky on whether or not you need the leading zeros in the input parameter. 
    Hope this helps.
    Brent

  • How do I raise a Business Event from a OAF page?

    Hello,
    I am developing a custom system using the OAF and need to raise a custom Business Event, which in turn will have a subscription to launch a workflow process.
    How do I raise a Business Event from a OAF page ?
    Can I use the classes in oracle.apps.fnd.wf.bes.* ?
    Any help would be highly appreciated.
    Best Regards,
    Andries Hanekom

    Hi,
    When I try to compile just the basic part of my class I receive the following error:
    Error(21,36): cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found
    Class Code:
    import oracle.apps.fnd.wf.bes.BusinessEvent;
    public class VscmsEvents
    public VscmsEvents()
    public static void main(String[] args)
    VscmsEvents vscmsEvents = new VscmsEvents();
    //Initialize BusinessEvent, Payload objects
    public void initEvent(String eventName, String eventKey, String eventData)
    //Create BusinessEvent Object
    BusinessEvent mEvent = new BusinessEvent(eventName, eventKey);
    Furthermore, when using the BusinessEvent object to raise the event I will need to provide the raise method with a java.sql.Connection parameter. In the context of a OAF page how will I perform this?
    Thanks for the help.
    Best Regards,
    Andries Hanekom

  • How to create a jar file which is in the remote system?

    Hi,
    I have a set of files that resides in a remote system,which have to be "jar"red. I have a firewall in between. I want to create a jar file out of the files situated in the remote system.How do i go about this process.?

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

  • How to call an EXE file on a remote system from SAP system?

    Hi Friends,
    I want to execute an EXE file existing on the remote system from SAP system. Could some one give me an idea of how to execute that?
    Thanx in advance,
    Ram

    Hi Ram,
    Try this
    SXPG_COMMAND_EXECUTE
    Reward if this helps,
    Satish

Maybe you are looking for

  • Why can't I use the iLife music with my iDVD project?

    I thought I had been able to use some of the standard music that comes with iLife in my iDVD project, but now I can't figure out how to do that. Did an update make this not possible, or am I just going about it wrong? (For example, I'd like to use th

  • Migrate Hyperion Planning application from 9.3.3 to 11.1.2 by using CopyApp

    Dear sir, Iam using hyperion 9.3.3 and i want to migrate my planning application to hyperion 11.1.2.1 by using CopyApp.cmd. I am trying to use this utility and got some error after executing the command...I have created a property file i.e CopyApp.pr

  • Lightroom LR2 File Locations

    Please brief me again on the file locations and what they contain. What I know: Lightroom 2 Catalog - Location: whereever I put it. Contains?(edits?, metadata?, keywords?, thumbnails?) Lightroom 2 Catalog Previews.lrdata - Location: Inside the Lightr

  • Bug? Keyboard shortcuts not always working in ios 5...

    So while making a number of shortcuts i wanted to use the IRC shorthand of "/me" for text replacement. This however doesn't seem to work. No text replacement occurs. Is this a bug or is it only meant to work with letters?

  • What applicaton do i chose for opening all

    files will not open by double clicking automatically  ask which application to always open ? have been using Foxfire but always reverts to the Finder window  with what application to open with.  And the get info has been lockin my name as administrat