How can I trigger an event from an ABAP Program

Hi everyone,
I have a requirement, where I have to create an ABAP program, that has to execute (trigger) an event which belongs to a Process Chain. when I run the program, the Process Chain has to run.
So, how can I do it?
Thanks for your help, Federico

HI ,
The program can call function module BP_EVENT_RAISE to raise the event. you can create vent in sm64 and sm62 .There you give the parameter of the event same as what you will define in the event of start variant of your process chian ..
Regards,
shikha

Similar Messages

  • How can I get the events from a java program?

    I want to make a monitor to watch a java program.How can I get the events from the GUI of this program some as mouse cliking, keyinput. So I can watch these in my monitor.
    Thanks

    Hi,
    To put a monitor to the events occuring in the GHUI u need to register required components with the appropriate EventListeners.
    Liek if u want to get notified when a mouse is clicked, then u need to add The MouseListener to the component which u want to be monitored.
    Say
    myFrame which is the JFrame object which shuld be monitored for the events.
    Then in ur program u have to add following code
    myFrame.addMouseListener( someObectReference );
    Here the someObjectReference should be an instance to a concrete class ..i.e. U write a class like the following
    public class MyMouseListener implements MouseListener {
    // override the followig methods
    public void mouseClicked(MouseEvent me){ sop("MOUSE CLICKED ON THE FRAME");}
    public void mousePressed(MouseEvent me){}
    public void mouseReleased(MouseEvent me){}
    If u dont want to use another class for listening to the events. Then u can make teh current class monitor the events. To do so ur class should implement the appropriate listener and should override the required methods.
    and u should say myFrame.addMouseListenet( this );
    thats it

  • How can I stop my Air from moving my programs that I leave open to other windows where I didn't leave them?

    How can I stop my Air from moving my programs that I leave open to other windows where I didn't leave them?

    Try toggling this preference (circled):

  • How to call a BW Query from an ABAP program?

    How to call a BW Query from an ABAP program?

    hi
    check this link
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    hope this helps
    cheers

  • How can i get access code to create ABAP Program ?

    hi guys ,
    How can i get access code for creating ABAP Program in my System.
    I am using SAP IDES 4.6 Version
    Please Help me out .
    Regards
    Raghu

    Hi Raghu,
    - license your system (http://service.sap.com/licensekey)
    - create a developer key (http://service.sap.com/sscr)
    - create a key for your ABAP program (httP://service.sap.com/sscr)
    Markus

  • How can i trigger the workflow from REPORT

    hi,
      my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
    how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
    pls let me know.
    pls give any documentation if you have.
    thanks & Regards
    Sankar.

    Hi,
    Workflow container
      swc_container        lt_container.
      swc_create_container lt_container.
      swc_set_table lt_container '<cont_name>' lit_int_tab.
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = lc_objtyp
          objkey            = lv_objkey
          event             = lc_event_name
        IMPORTING
          event_id          = lv_eventid
        TABLES
          event_container   = lt_container
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
        yv_err_flg = gc_true.
        EXIT.
      ENDIF.
    Rgds,
    Prakash

  • How can I make a screensaver from a Java program?

    Hi!
    I've made a Java program works as a screensaver, and I've grouped all files into a jar file. How can I make a screensaver from this jar file?
    Thanks.

    check https://jdic.dev.java.net/documentation/incubator/screensaver/
    - I think it's still in development, but it's something...

  • How can I delete Facebook events from my macbook calendar?

    I'm using a MacBook Pro. I want to know how to delete Facebook events from my computers calendar, because it's taking up space and preventing me from seeing other events on that day.
    BUT, every time I try to delete it, an error message pops up "Only the calendar administrator and any delegates with permission can make changes to read-only calendars. To make changes to the calendar, contact the calendar administrator."
    And I can't delete the event. Have not tried declining the event because I don't wanna offend the person who invited me.
    Not a computer whiz, so idk if this helps but:
    MacBook Pro
    OS X Version 10.9.4
    Processor 2.5 GHz Intel Core i5
    Memory 8 GB 1600 MHz DDR3

    How can I remove individual facebook events from my calendar on my iPhone with iOS6?

  • How can i create an event from a cell of JTable ?

    Hi , I am having a JTable which has two types of render : checkboxCellRender and DefaultTableCellRenderer
    i want to generate an event by clicking the checkbox which will do color changes for other cells . How can i do that ? Can i pass the events ?
    code snippet :
    class checkboxCellRenderExt extends checkboxCellRender
              public checkboxCellRenderExt(){}
              public Component getTableCellRendererComponent(JTable table, Object value,
                        boolean isSelected, boolean hasFocus,
                        int row, int column)
    JCheckBox c=(JCheckBox)super.getTableCellRendererComponent( table,value,isSelected,hasFocus,row, column);
    JTableModel md = (JTableModel)m_TablePan.getTable().getModel();
    Vector currentRow = md.getRow(row);
    if(isSelected)
    boolean m_bavail = ((Boolean)currentRow.get(COLUMN_TCM_STATUS)).booleanValue();
    if(!m_bavail)
         c.setForeground(Color.BLACK);
         c.setBackground(Color.WHITE);
    else
         c.setForeground(table.getSelectionForeground());
         c.setBackground(table.getSelectionBackground());
    else
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    return this;
    class CustomcellRenderer extends DefaultTableCellRenderer
         public CustomcellRenderer()
         public Component getTableCellRendererComponent(JTable table, Object value,
                                  boolean isSelected, boolean hasFocus,
                                  int row, int column)
              checkboxCellRender chkbox =null;
              JLabel lb;
              Component c = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row, column);
              if (value == null)
         return c;
              if (value instanceof String)
                   String s = (String) value;
                   lb = (JLabel)c;
                   lb.setBorder (noFocusBorder);
                   lb.setText(s);
         JTableModel md = (JTableModel)m_TablePan.getTable().getModel();
         Vector currentRow = md.getRow(row);
              this.setHorizontalAlignment(JCheckBox.CENTER);
    if(isSelected)
                   boolean m_bavail = ((Boolean)currentRow.get(COLUMN_TCM_STATUS)).booleanValue();
                   if(!m_bavail)
                        c.setForeground(Color.BLACK);
                        c.setBackground(Color.WHITE);
                   else
                   c.setForeground(table.getSelectionForeground());
                   c.setBackground(table.getSelectionBackground());
    else
                   setForeground(table.getForeground());
                   setBackground(table.getBackground());
    return this;
    }

    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
    Add a TableModelListener to the TableModel. An event is fired when the contents of the cell are changed.

  • How can I trigger an event handler, based on a history dropdown select (onclick)

    Hi
    Firefox remembers user names and email addresses previously entered in text input fields. I wish to trigger an event-handler when an item has been selected.
    Best regards, Jens Larsen

    I figured out part of this. I had the event listener
    listening to the spry select id, I set an id on the select and the
    input lines and it's working correctly. Now I just have to push the
    changes to the database.

  • How can I pass system commands from a java program? Urgent!

    hi,
    I have been trying this out since a long time. How do I send system commands to command.com or cmd.exe from a java program and an output of the executed command back to the java application.
    If u have any idea, or have any information about the kind os application reply back.
    Thanks
    Deepa Datar

    This is the code which I tried, but it displays only the title of MS-DOS, something like " Microsoft Corp...etc ". But doesn't take any input, and the subprocess(cmd.exe) hangs.
    import java.io.*;
    public class cmddemo2
    public static void main(String arg[])
    try
    System.out.println("cmd");
    Process p=Runtime.getRuntime().exec("cmd.exe");
    DataInputStream din=new DataInputStream(p.getInputStream());
    DataOutputStream dout=new DataOutputStream(p.getOutputStream());
    System.out.println("after streams");
    String s;
    dout.writeChars("type cmddemo2.java");
    while((s=din.readLine())!="\n")
    System.out.println(s);
    dout.writeChars("dir");
    String s1;
    while((s1=din.readLine())!="\n")
    System.out.println(s1);
    System.out.println("over");
    catch(Exception e)
    { System.out.println("Exception : "+e);

  • How send a sapscript by Fax from an abap program

    Hello!
    We are using the PP module to edit some forms.
    With standard SAP I didn't find how to send this form by FAx.
    Now I'm searching to send it from the print program.
    Is there a function modul or other way to send the form by Fax ?
    Thanks for your help.

    hi,
    Refer the following links:
    [http://help.sap.com/saphelp_nw70/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/content.htm]
    [http://arthur_ong.tripod.com/xbc020.htm]
    [Sending SAP Script Output to Mail & Fax;
    [http://www.sap-img.com/abap/sending-fax-from-abap.htm]
    Hope this will help you.
    Regards,
    Renuka S.

  • How can i find item category usage in abap program

    HI, EXPERTS
    I HEARD USAGE MAINTAINED IN ABAP PROGRAM .
    ANY ONE KNOW WHERE I CAN FIND ABAP PROGRAM FOR ITEM CATEGORY USAGE??
    THANKS.^
    Edited by: jong seok Lee on Feb 2, 2010 10:01 AM

    Hi,
    Item Category Usage: An item categories usage is defined by SAP when creating a sales order, The system determines for example, that the usage refers to a text item as oppossed to a deliverable item when you enter text in the order item rather than  a material number. Based on this usage, the system will use the item category determination to propose an item category.
    You can also find the usage in Custoemer material info record (T.Code VD51), if you want to determine any customer specific item category you may use the usage field in Custoemr master info record.
    You can devlop an user exit to determine the item category based upon usage field as well.
    regrads
    Vivek.

  • How can we trigger the notification from SAP backend system to SMP3.0.

    Hi All,
    Can any one help me to know is there any standard approaches available to get notification from SAP backend system to SMP3.O server after any event that has been triggered.
    Any of suggestion related to above will be helpful.
    Thanks,
    Anjali

    Hi Ekansh,
    I have few more question regarding push notification from backend.
    Refferd Link:-http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40ab6d83-b7b8-3010-65bc-d7a08f0f35f3?QuickLink=index&…
    Pushing Notifications Made Easy!!! : Push a Notification
    Have perform all the steps till creating RFC Destination to mobile platform by creating a new push service.
    I just wanted to have a clarity on target host that we are specifying should also have SMP3.0 server installed???
    Actually I am using http listener downloaded from membrane site which is running on that target host machine.
    But I am unable to get any response in my listener.
    Even wanted to know the necessity of exchange of certificate for SSL Connection.
    SMP server Certificate exchange with SAP Backend and SMP server certificate exchange with HTTP Listener????
    Because currently I am trying to have a notification from SAP Backend directly to HTTP Listener without having SMP server.
    Can u please correct me where I am going wrong.
    Thanks & regards,
    Anjali Agrawal

  • How can I copy iPhoto07 Events from MacBook to iMac Library?

    Hi there!
    I have a MacBook with iPhoto 07 and had this book during my roundtrip US and Canada with me for
    backup my pictures. Now at home, I like to transfer the created events into my iMac´s iPhoto07 Library.
    What is the best way "easy to use" possibility to copy these 12 events to the iMac?
    I prefer drag and drop, but this is not possible
    Thanks a lot

    iPhoto Library Manager is the only way to move pics and associated metadata between libraries. So hook up the 'Book to the iMac and use it to copy the Events over.
    Regards
    TD

Maybe you are looking for