How to send keystrok thru program

hi,
can anyone tell me, how to send keystroke event to my application programatically. I have to send 'F1' key event.
thanks in advance
debashis roy

Reply 10 of this thread shows you how to send a Ctrl-F1 Keystroke to a component.
http://forum.java.sun.com/thread.jsp?forum=31&thread=224581
To just send F1 to the component I think you just replace "KeyEvent.CTRL_MASK" with 0.

Similar Messages

  • How to send SMS thru SMPP from PL/SQL

    How to send SMS thru SMPP from PL/SQl or forms application. SMPP interface setuped in the SMSC. Requirement is send to SMS's to custoemrs thru our forms application.

    How to send SMS thru SMPP from PL/SQl or forms application. SMPP interface setuped in the SMSC. Requirement is send to SMS's to custoemrs thru our forms application.

  • How to send fax thru sap system

    Hi all,
    I need to send a fax thru sap system. In the given parameter I need to give email address & fax number. The result is the content I shud receive as both email & fax.
    As far as email is concerned no problem. But I am not receiving the content fax. I am getting the following error as email. Pls find below the error message.
    Your message did not reach some or all of the intended recipients.
          Subject:     000000002008
          Sent:     4/5/2007 11:47 AM
    The following recipient(s) could not be reached:
          FAX3D2B918041396976@75 on 4/6/2007 2:31 AM
                The e-mail account does not exist at the organization this message was sent to.  Check the e-mail address, or contact the recipient directly to find out the correct address.The MTS-ID of the original message is:ADR32000000006890
    < sap.corp #5.1.1 SMTP; 553 <FAX=+918041396976@75>... only FQDN names will be accepted>
    The fax number I typed is +918041396976 but the system itself is adding @75 behind it. I am not getting the fax message.
    Can anyone help me in this regard.
    Thanks in advance.
    Vijay.

    Hi Vijay,
    The fax nio. parameter can be handled thru the program. I mean remove those extra characters... and try this code below for ref (its from sap-img.com)
    The following program shows you how to send a fax from within ABAP/4. The report is delivered
    in the standard system and is used in Transaction SCOM for the function "Send test fax".
    Only the method via the call of SAPscript with DEVICE='TELEFAX', described below, ensures the
    generation of a correct transmission request, independent of the R/3 release and of the used
    fax server solution and its configuration.
    The regular printing (for example, with NEW-PAGE PRINT ON...) on an output device created in
    the spool administration of the device class 'Telefax' does generally not work!
    REPORT RSKSENDF MESSAGE-ID SK.
    Test report to send a test fax
    sends a fax to the number <TO_CNTRY>-<TO_NMBER>
    containing an automatically generated message text.
    TABLES: USR03.
    PARAMETERS: TO_CNTRY LIKE T005-LAND1 OBLIGATORY,
    TO_NMBER LIKE TSP01-RQTELENUM OBLIGATORY,
    FROM_USR(30) TYPE C DEFAULT SY-UNAME,
    TO_RECIP(30) TYPE C DEFAULT SY-UNAME.
    SAPscript content ITAB
    DATA: BEGIN OF TEST_DOC OCCURS 10.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF TEST_DOC.
    SAPscript header struct
    DATA BEGIN OF HEADER.
    INCLUDE STRUCTURE THEAD.
    DATA END OF HEADER.
    INITIALIZATION.
    get county from user addres in usr03
    system->user profile->user address
    check if not empty
    SELECT SINGLE * FROM USR03 WHERE BNAME = SY-UNAME.
    IF SY-SUBRC = 0 AND USR03-LAND1 <> SPACE.
    TO_CNTRY = USR03-LAND1.
    ENDIF.
    START-OF-SELECTION.
    PERFORM FILL_UP_TEST_DOC.
    PERFORM SHOW_TEST_DOC.
    AT PF08.
    PERFORM SEND_FAX TABLES TEST_DOC USING TO_CNTRY
    TO_NMBER.
    AT SELECTION-SCREEN ON TO_NMBER.
    PERFORM CHECK_NUMBER USING TO_CNTRY TO_NMBER.
    *& Form CHECK_NUMBER
    FORM CHECK_NUMBER USING
    COUNTRY
    NUMBER.
    DATA: SERVICE LIKE TSKPA-SERVICE VALUE 'TELEFAX',
    LEN LIKE SY-FDPOS.
    FIELD-SYMBOLS <P>.
    windows GUI push the ? from mandatory input instead
    of overwriting it
    LEN = STRLEN( TO_NMBER ).
    IF LEN > 1.
    SUBTRACT 1 FROM LEN.
    ASSIGN TO_NMBER+LEN(1) TO <P>.
    IF <P> = '?'.
    <P> = SPACE.
    ENDIF.
    ENDIF.
    official check FM
    CALL FUNCTION 'TELECOMMUNICATION_NUMBER_CHECK'
    EXPORTING
    COUNTRY = COUNTRY
    NUMBER = NUMBER
    SERVICE = SERVICE.
    on old 21?/22? release you may have to handle the
    exception
    because the Function uses RAISE instead of
    MESSAGE... RAISING....
    ENDFORM. " CHECK_NUMBER
    *& Form FILL_UP_TEST_DOC
    fills test text in itab TEST_DOC *
    real life example needs to get real life data *
    FORM FILL_UP_TEST_DOC.
    DATA: DATUM(12) TYPE C,
    UZEIT(10) TYPE C.
    SAPscript initialization
    of course, you may want to set a few parameter
    (FORM,LAYOUT,....)
    CALL FUNCTION 'INIT_TEXT'
    EXPORTING
    ID = 'ST '
    LANGUAGE = SY-LANGU
    NAME = 'FOO-BAR'
    OBJECT = 'TEXT'
    IMPORTING
    HEADER = HEADER
    TABLES
    LINES = TEST_DOC
    EXCEPTIONS
    OTHERS = 1.
    IF SY-SUBRC <> 0.
    MESSAGE A400 WITH 'INIT_TEXT'.
    ENDIF.
    PERFORM ADD_EMPTY_LINE.
    WRITE: SY-DATUM TO DATUM.
    WRITE: SY-UZEIT TO UZEIT.
    PERFORM ADD_LINES USING 'This is test Telefax'(001)
    DATUM UZEIT.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING 'From: &'(002) FROM_USR SPACE.
    PERFORM ADD_LINES USING 'To: &'(003) TO_RECIP SPACE.
    PERFORM ADD_LINES USING 'Fax number: & &'(004)
    TO_CNTRY TO_NMBER.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING
    'This is a test fax send by Report RSKSENDF'(005)
    SPACE SPACE.
    PERFORM ADD_LINES USING 'on SAP system & '(006)
    SY-SYSID SPACE.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING
    'the quick brown fox jumps over the lazy dog.'(101)
    SPACE SAPCE.
    PERFORM ADD_LINES USING
    'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.'(102)
    SPACE SAPCE.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING 'End of test'(007) SPACE
    SPACE.
    ENDFORM. " FILL_UP_TEST_DOC
    *& Form ADD_LINES
    printf a line an appends it in test_doc *
    --> cformat format.
    --> p1 param1
    --> p2 param2
    FORM ADD_LINES USING CFORMAT P1 P2.
    TEST_DOC-TDFORMAT = '/'.
    TEST_DOC-TDLINE = CFORMAT.
    IF TEST_DOC-TDLINE CA '&'.
    REPLACE '&' WITH P1 INTO TEST_DOC-TDLINE.
    IF TEST_DOC-TDLINE CA '&'.
    REPLACE '&' WITH P2 INTO TEST_DOC-TDLINE.
    ENDIF.
    ENDIF.
    APPEND TEST_DOC.
    ENDFORM. " ADD_LINES
    *& Form ADD_EMPTY_LINE
    appends an empty line to test_doc *
    FORM ADD_EMPTY_LINE.
    TEST_DOC-TDFORMAT = '/'.
    CLEAR TEST_DOC-TDLINE.
    APPEND TEST_DOC.
    ENDFORM. " ADD_EMPTY_LINE
    *& Form SHOW_TEST_DOC
    lists the test doc for aproval *
    *>>>> this is for fun only because PRINT_TEXT also
    offers a preview *
    FORM SHOW_TEST_DOC.
    FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
    WRITE: / 'Test fax would look like this:'(020).
    ULINE.
    SKIP.
    LOOP AT TEST_DOC.
    IF TEST_DOC-TDLINE <> SPACE.
    WRITE:/ TEST_DOC-TDLINE.
    ELSE.
    SKIP.
    ENDIF.
    ENDLOOP.
    SKIP.
    ULINE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE: 'Press PF8 to send it'(021).
    ENDFORM. " SHOW_TEST_DOC
    *& Form SEND_FAX
    send fax by calling SAPscript *
    Note: Instead of using PRINT_TEXT you may also *
    call OPEN_FORM / WRITE_FORM_LINES / CLOSE_FORM, *
    this allows you to use a similar program structure *
    as with NEW-PAGE PRINT ON / WRITE / NEW-PAGE PRINT
    OFF *
    FORM SEND_FAX
    TABLES DOC2FAX STRUCTURE TEST_DOC
    USING COUNTRY
    NUMBER.
    DATA: SID(5) TYPE N.
    DATA BEGIN OF POPT.
    INCLUDE STRUCTURE ITCPO.
    DATA END OF POPT.
    DATA BEGIN OF PRES.
    INCLUDE STRUCTURE ITCPP.
    DATA END OF PRES.
    CLEAR POPT.
    POPT-TDCOPIES = 1. " one copy
    POPT-TDDEST = " done internaly by script,
    POPT-TDPRINTER = " do not fill !!!
    POPT-TDNEWID = 'X'. " do not reuse old spool request
    POPT-TDDATASET = 'TEST'(022). " fill as you want
    POPT-TDSUFFIX1 = 'FAX'(023). " fill as you want
    POPT-TDSUFFIX2 = SY-UNAME. " fill as you want
    POPT-TDIMMED = 'X'. " send now
    POPT-TDLIFETIME = 8. " keep 8 days in spool
    POPT-TDTELENUM = NUMBER. " number without country code
    POPT-TDTELELAND = COUNTRY. " country of recipient
    POPT-TDCOVER = 'test fax'(024).
    POPT-TDCOVTITLE = 'test fax'(024).
    POPT-TDIEXIT = 'X'.
    CALL FUNCTION 'PRINT_TEXT'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX = ' '
    ARCHIVE_PARAMS = ' '
    DEVICE = 'TELEFAX' "<<< here we say: fax it !
    DIALOG = 'X'
    HEADER = HEADER
    OPTIONS = POPT
    IMPORTING
    RESULT = PRES
    TABLES
    LINES = DOC2FAX
    EXCEPTIONS
    OTHERS = 01.
    do not bother with exception in sample code
    CANCELED = 01
    DEVICE = 02
    FORM = 03
    OPTIONS = 04
    UNCLOSED = 05
    UNKNOWN = 06
    FORMAT = 07
    TEXTFORMAT = 08
    EXTERNAL = 09.
    IF SY-SUBRC = 0.
    arriving here means we could send:
    SID = PRES-TDSPOOLID.
    IF SID > '00000'.
    MESSAGE S433 WITH SID.
    ENDIF.
    LEAVE .
    ELSE.
    do not bother with exception in sample code
    MESSAGE A400 WITH 'PRIN_TEXT'.
    ENDIF.
    ENDFORM. " SEND_FAX

  • How to send keystroke to inactive window?

    I need to know how to send a keystroke to an inactive window.
    Right now i can use the Robot class and send key strokes to the active window but I need to be able to send it to an inactive window.

    if you just want to send keys to another java app, this is a kludge hack, windows only
    run frame1 and frame2 as separate apps, have them both visible on the screen, focus on frame1.
    click the button to send 'enter' to frame2, which will (should) display the JOptionPane
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Frame1
      public void buildGUI()
        JButton btn = new JButton("Send Enter");
        JFrame f = new JFrame("Frame1");
        f.getContentPane().add(btn);
        f.setBounds(300,100,400,300);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            sendEnterToFrame2();
      public void sendEnterToFrame2()
        try
          java.io.File file = new java.io.File("ActivateFrame2.vbs");
          java.io.FileWriter fw = new java.io.FileWriter(file);
          fw.write("set ws = WScript.CreateObject(\"WScript.Shell\")\r\nws.AppActivate \"Frame2\" \r\n set ws = nothing");
          fw.close();
          Runtime.getRuntime().exec("WScript.exe ActivateFrame2.vbs");
          file.deleteOnExit();
          Robot robot = new Robot();
          robot.delay(1000);
          robot.keyPress(KeyEvent.VK_ENTER);
          robot.keyRelease(KeyEvent.VK_ENTER);
        catch(Exception e){e.printStackTrace();}
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Frame1().buildGUI();
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Frame2
      public void buildGUI()
        JButton btn = new JButton("OK");
        JFrame f = new JFrame("Frame2");
        f.getContentPane().add(btn);
        f.setBounds(700,100,400,300);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getRootPane().setDefaultButton(btn);
        f.setVisible(true);
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            JOptionPane.showMessageDialog(null,"OK");
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Frame2().buildGUI();
    }

  • How to send patch level program changes from concert level instruments?

    Heya,
    Here's the gist of my setup:
    I have two concert level external instrument channel strips (Nord Electro 3 and Prophet 8 module). I am attempting to change the bank on the Electro 3 on a per patch basis. It seems as if the concert level nature of the channel strip is overriding my ability to change on a per patch basis. I am sending out a program change on a certain patch, and it is being reflected in all of the other patches across the concert (this is expected behaviour from reading the manual).
    I've been looking for a way to manually send the program changes on a per patch basis (for these concert level strips), using some sort variation of the override parent setting, but I've been unsuccessful at finding a method for doing this. Is it even possible?
    The behaviour I'm looking to replicate is easily accomplished by manually creating the external instrument channel strip in each of the patches, and then sending out the appropriate program change message. This isn't a problem to do. It is, however, a tad bit cumbersome and sort of defeates the purpose (in my opinion) of having concert level channel strips.
    Any wisdom would be appreciated.
    Cheers,
    Nick

    As far as I know the only way to send program changes is to create channel strips in every patch. I don't use concert level channel strips for that reason.
    One of the advancements is that you can level your external instrument on patch level.
    Tip: create one patch with the channel strips you need and duplicate that one (CMD-D) to create new patches. Works faster for me.

  • How to send email thru generic email ID?

    I am sending payment advice as PDF email attachment. But it is going from the person's personal email ID who runs the remittance procedure but we don't want his email ID to come into picture. Is there any way we can send email thru a generic email address?

    Hi sheel,
    or consider the modern way, use cl_sapuser_bcs=>create for the sender you want, check my favorite
    [Unknown thus unloved?|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417600%29ID0244690950DB11730526581933624871End?blog=/pub/wlg/3443]
    Regards,
    Clemens

  • How to send attachments thru webservice?

    Hi Friends,
    I am in a situation to send an image or pdf file thru webservice method as an attachment (i believe send attachment is the only possible way to send image or pdf).
    How can i do this ? If anyone has an idea pls let me know.
    Thanks,
    Raags

    http://msdn2.microsoft.com/en-us/library/ms996944.aspx
    http://www.ibm.com/developerworks/webservices/library/ws-attach.html

  • How to send an attachment thru mail in SAP?

    Hi all,
    I have an file which has been sent by the customer. The file type may vary each & every week (sometimes XLS, sometimes CSV & sometimes notepad). This file has to be sent to another person thru mail as an attachment.
    Is it possible to send thru the fun mod 'SO_SEND_NEW_*'.
    If so how to send as attachment. If not thru this fun mod, how to send?
    Thanks,
    Vijay.

    I am enclosing the sample code to trigger an email, The logic for this is in comments, check this I am shure yuor problem will be solved.
    *& Report ZGBL_SLA_PER
    REPORT zgbl_sla_per NO STANDARD PAGE HEADING LINE-COUNT 26(3) MESSAGE-ID
    zmsg2.
    DECLARATION OF DB TABLES
    TABLES: zncrfid, zrule_id.
    DECLARATION OF INTERNAL TABLES
    DATA: BEGIN OF ncrf OCCURS 0,
    zncrf_id(15) TYPE c,
    zncrf_l4_name(60) TYPE c,
    z9gl_sla_flag(1) TYPE c,
    zowners(30) TYPE c,
    zowners_value(30) TYPE c,
    zdate_changed(8) TYPE n,
    ztime_changed(6) TYPE n,
    END OF ncrf.
    *DATA: NCRF LIKE ZNCRFID OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF it_ruleid OCCURS 0,
    zrule_id(10) TYPE c,
    zowners(30) TYPE c,
    zowners_value(30) TYPE c,
    END OF it_ruleid.
    *data: wa like ncrf occurs 0 with header line.
    DATA: BEGIN OF itab OCCURS 0,
    zncrf_id(15) TYPE c,
    zncrf_l4_name(60) TYPE c,
    z9gl_sla_flag(1) TYPE c,
    zowners(30) TYPE c,
    zowners_value(30) TYPE c,
    zdate_changed(8) TYPE n,
    ztime_changed(6) TYPE n,
    END OF itab.
    data: file(10) type c,
    dates type date.
    EMAIL DECLARATION
    *CONSTANTS: c_subject LIKE sodocchgi1-obj_descr VALUE 'Subject',
    *c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
    *DATA: g_time TYPE char8,
    *g_email(40) TYPE c,
    *g_sent_all(1) TYPE c,
    *g_doc_data LIKE sodocchgi1,
    *g_error TYPE sy-subrc.
    *DATA: i_message LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    *i_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    *i_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    *DATA: BEGIN OF mailid OCCURS 0,
    zemail_id TYPE zrule_id-zemail_id,
    END OF mailid.
    *data: mailid like zrule_id occurs 0 with header line.
    UPLOADING FLAT FILE TO INTERNAL TABLE NCRF
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'C:\VAMSY\file.txt'
    filetype = 'ASC'
    has_field_separator = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    TABLES
    data_tab = ncrf[]
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    IF sy-subrc EQ 0.
    Checking internal table ncrf is empty then
    *delete records from TABLE ZNCRF_ID ******************************
    IF ncrf[] IS INITIAL.
    MESSAGE i003(ZMSG2).
    ELSE.
    DELETE FROM zncrfid.
    ENDIF.
    *****Values are read from rule table and checking owner and owner_value
    *from zrule_id table and inserted into ZNCRFID **************
    SELECT * FROM zrule_id INTO CORRESPONDING FIELDS OF TABLE it_ruleid
    WHERE zrule_id IN ('OWNER1', 'OWNER2').
    append IT_RULEID.
    LOOP AT ncrf WHERE z9gl_sla_flag EQ 'Y'.
    READ TABLE it_ruleid WITH KEY zowners = ncrf-zowners
    zowners_value = ncrf-zowners_value.
    IF ncrf-zowners = it_ruleid-zowners AND ncrf-zowners_value =
    it_ruleid-zowners_value AND ncrf-z9gl_sla_flag ='Y'.
    itab-zncrf_id = ncrf-zncrf_id.
    itab-zncrf_l4_name = ncrf-zncrf_l4_name.
    itab-z9gl_sla_flag = ncrf-z9gl_sla_flag.
    itab-zdate_changed = sy-datum.
    itab-ztime_changed = sy-uzeit.
    itab-zowners = it_ruleid-zowners.
    itab-zowners_value = it_ruleid-zowners_value.
    APPEND itab.
    ENDIF.
    ENDLOOP.
    modify database table zncrfid FROM ITAB
    LOOP AT itab.
    WRITE:/ itab-zncrf_id, itab-zncrf_l4_name, itab-z9gl_sla_flag,
    itab-zowners, itab-zowners_value, itab-zdate_changed,
    itab-ztime_changed.
    zncrfid-zncrf_id = itab-zncrf_id.
    zncrfid-zncrf_l4_name = itab-zncrf_l4_name.
    zncrfid-z9gl_sla_flag = itab-z9gl_sla_flag.
    zncrfid-zowners = itab-zowners.
    zncrfid-zowners_value = itab-zowners_value.
    zncrfid-zdate_changed = itab-zdate_changed.
    zncrfid-ztime_changed = itab-ztime_changed.
    INSERT INTO zncrfid VALUES zncrfid.
    ENDLOOP.
    ENDIF.
    ENDIF.
    *CALL FUNCTION 'DATE_TO_DAY'
    EXPORTING
    DATE = sy-datum
    IMPORTING
    WEEKDAY = file.
    **CHECKING FOR THE FIRST MONDAY OF THE MONTH.
    dates = sy-datum.
    shift dates by 6 places left.
    if file CO 'monday' and dates < 7 and dates >= 1.
    else.
    message e004(zmsg2).
    endif.
    EMAIL SEND TO OWNERS LIST
    **Fill the mail body in i_message.
    get email id's from database into internal table et_mailid
    Fill the document data.
    *g_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
    *g_doc_data-obj_langu = sy-langu.
    *g_doc_data-obj_name = 'SAPRPT'.
    *g_doc_data-obj_descr = c_subject .
    *g_doc_data-sensitivty = 'F'.
    Describe the body of the message
    Information about structure of data tables
    *CLEAR i_packing_list.
    *REFRESH i_packing_list.
    *i_packing_list-transf_bin = space.
    *i_packing_list-head_start = 1.
    *i_packing_list-head_num = 0.
    *i_packing_list-body_start = 1.
    *DESCRIBE TABLE i_message LINES i_packing_list-body_num.
    *i_packing_list-doc_type = 'RAW'.
    *APPEND i_packing_list.
    Add the recipients email address
    *LOOP AT mailid.
    *CLEAR i_receivers.
    *i_receivers-receiver = mailid-zemail_id.
    *i_receivers-rec_type = 'U'.
    *i_receivers-com_type = 'INT'.
    *i_receivers-notif_del = 'X'.
    *i_receivers-notif_ndel = 'X'.
    *APPEND i_receivers.
    *ENDLOOP.
    Call the FM to post the message to SAPMAIL
    *CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    *EXPORTING
    *document_data = g_doc_data
    *put_in_outbox = 'X'
    *commit_work = 'X'
    *IMPORTING
    *sent_to_all = g_sent_all
    *TABLES
    *packing_list = i_packing_list
    *contents_txt = i_message
    *receivers = i_receivers
    *EXCEPTIONS
    *too_many_receivers = 1
    *document_not_sent = 2
    *document_type_not_exist = 3
    *operation_no_authorization = 4
    *parameter_error = 5
    *x_error = 6
    *enqueue_error = 7
    *OTHERS = 8.
    Store function module return code
    *g_error = sy-subrc.
    Get i_receivers return code
    *LOOP AT i_receivers.
    *ENDLOOP.
    **Instructs mail send program for SAPCONNECT to send email(rsconn01)
    *WAIT UP TO 2 SECONDS.
    *IF g_error EQ 0.
    *SUBMIT zgbl_sla_per WITH mode = 'INT'
    *WITH output = 'X'
    *AND RETURN.
    REWARD IF FOUND USEFULL,
    Cheers,

  • How to send background program output to a printer

    Hi !
    I created a background report,running via a job in background. I need to display the output of the background report via two channels : a printer and an e
    mail. I created the output of the report by using the command Write, and the output is printed to screen. However this solution is good for an online report and not for background report ? and my question is how to send the background report output to a printer in background .
    Thanks
    Moshe

    Hi,
    If you are using JOB_OPEN, JOB_SUBMIT & JOB_CLOSE to execute the program in background, then in the FM JOB_SUBMIT you have a parameter PRIPARAMS for which you need to pass a value.
    Before that get all the Print Parameters using FM GET_PRINT_PARAMETERS. Then pass the same to PRIPARAMS.
    This would solve the problem.
    Best regards,
    Prashant

  • I have Adobe Photoshop Album 1.0 & suddenly cannot send photos thru e-mail.  It looks like it's working ok; but when I hit Send nothing happens and the program stops responding.  Any suggestions?

    I have Adobe Photoshop Album 1.0 & suddenly cannot send photos thru e-mail.  It looks like it's working ok; but when I hit Send nothing happens and the program stops responding.  Any suggestions?

    I have starter 3.0 and cannot share pictures via outlook express. Evidently that version is discontinued and my outlook express does not support the MAPI that is required. I think the only solution is to upgrade to photoshop
    elements or to send photos as attachment to your e-mail.  I have the same problem using Zoom Browser EX sending photos via internet. I spent a whole day trying to resove this issue and have exhausted all options. Just like "Instant share" in HP image Zone that was replace by photoshop album starter 3.0 and now it is out dated.

  • How to send SMS by using ABAP program

    HI Gurus,
    I need to notify the vendor through sms when his goods are received. His details are stored in vendor master.
    My problem is that I am not able to find any function module for the same.
    Do any of you know how to send 'sms' to particular mobile number using ABAP.
    Are there any basis settings required for the same?
    Thanks and Regards,
    Saurabh

    Hi,
    Pls check the below links
    http://help.sap.com/saphelp_nw04/helpdata/en/58/97c43af280463ee10000000a114084/frameset.htm
    /people/ronen.fox/blog/2007/12/06/sending-sms-notification-via-business-workflow
    http://www.****************/Tutorials/Workflow/Workflow.htm
    You can use the FM: 'SO_DOCUMENT_SEND_API1' &
    'SO_DOCUMENT_SEND_API1_NEW'.
    to send the mail,sms etc.
    But you have to make some chamnges in the reciever table, jus go thru FM documnetaion once, you will fine the option for sending SMS thru either of this FM.
    Below is a sample code for sending e-mail.
    so, u can take help from this.
    data declarations
    DATA : v_sender TYPE soextreci1-receiver,
    v_doc TYPE sodocchgi1,
    it_paklist TYPE STANDARD TABLE OF sopcklsti1 ,
    wa_paklist TYPE sopcklsti1 ,
    it_obj_head TYPE STANDARD TABLE OF solisti1 ,
    it_obj_bin TYPE STANDARD TABLE OF solisti1 ,
    it_obj_txt TYPE STANDARD TABLE OF solisti1 ,
    it_obj_rcv TYPE STANDARD TABLE OF somlreci1 ,
    wa_obj_rcv TYPE somlreci1 ,
    v_desc(100).
    CONSTANTS: c_start(12) TYPE c VALUE '000000000000001',
    c_num(12) TYPE c VALUE '000000000000002',
    c_num1(12) TYPE c VALUE '000000000010030',
    c_raw(3) TYPE c VALUE 'RAW',
    c_test(4) TYPE c VALUE 'TEST',
    c_X(1) TYPE c VALUE 'X'.
    refresh internal tables
    REFRESH : it_paklist, it_obj_rcv.
    clear internal tables
    CLEAR : it_paklist, it_obj_rcv, v_sender.
    v_sender = sy-uname.
    fill internal table it_paklist
    wa_paklist-head_start = c_start.
    wa_paklist-head_num = c_num.
    wa_paklist-body_start = c_start.
    wa_paklist-body_num = c_num1.
    wa_paklist-obj_name = c_test .
    wa_paklist-doc_type = c_raw .
    wa_paklist-transf_bin = c_X .
    APPEND wa_paklist TO it_paklist.
    clear: wa_paklist.
    Data in the Header/subject Line
    v_desc = text-005 .
    v_doc-obj_name = c_objname .
    v_doc-obj_descr = v_desc.
    Mail text
    APPEND v_desc TO it_obj_txt.
    Preparing the receiver list
    wa_obj_rcv-rec_type = 'U'.
    wa_obj_rcv-rec_type = 'C'.
    v_dlist = 'SCE_TEST'.
    wa_obj_rcv-receiver = v_dlist. "Distribution list.
    wa_obj_rcv-receiver = Enter the mail id .
    APPEND wa_obj_rcv TO it_obj_rcv.
    Call the function module to send mail
    IF NOT it_obj_rcv[] IS INITIAL.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
    document_data = v_doc
    sender_address = v_sender
    sender_address_type = 'B'
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = it_paklist
    object_header = it_obj_head
    contents_bin = it_obj_bin
    contents_txt = it_obj_txt
    receivers = it_obj_rcv
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    IF sy-subrc NE 0.
    MESSAGE text-006 TYPE 'I' .
    ENDIF.
    ENDIF .

  • How to send multiple customer statements by email using RFKORD11 program.

    Hi All,
    How to send multiple customer statements by email using RFKORD11 program. Is it possible?
    As of now we copied the stanadard program and sending the customer statements by email, one by one.
    if i execute the z program it will show the customer statement and send mail option.
    if i click send mail it will send that customer statement to the corresponding customer.
    then again i need to click back, it will show next customer statement and click on send mail.
    Pl guide me, if any one worked on this program.
    thanks in advance.
    Regards,
    Mahesh

    Try execute the program in the background to see if that helps.

  • How can I get this program to work -- Adobe Send or Adobe SendNow

    How can I get this program to work?  I have used Adobe SendNow successfully for several years and am on automatic renewal and getting nothing but frustration for my money!  I have been unsuccessful at sending anything in the past several months.  Today while working on a deadline and many unsuccessful attempts to upload files, I signed up for a free trial at a competitor in order to get my files sent.  Want a refund  -- or better yet, keep my money and get it to work right again.

    You can't.
    Sounds like it he gave you a stolen iPhone or at least a worthless one.

  • I have an idea , but how to convert it to a program then how to send it to apple for approval

    i have an idea , but how to convert it to a program then how to send it to apple for approval

    An App?
    See the developer department.
    Developer.Apple.com

  • How to send concurrent program output file as an attachment in the notification mail

    Hi All,
    We are on Oracle apps version - 11.5.10.2
    We have a requirement wherein we need to send the concurrent program output file as an attachment while sending the notification mail to the user.
    Currently we have tried the approach wherein we are specifying the user id in the OPTIONS tab (Notifying the following people) while submitting the concurrent program.
    But using this approach, the user gets only the URL of the output file in the notification mail and not the output file as an attachment.
    Kindly let us know if anyone has incorporated the logic to send the output file as attachment in the notification mail.
    Please Note - We do not want any custom code to be written to send the attachment.
    Any pointers to this will be helpful.
    Regards,
    Shruti

    Hi All,
    We are on Oracle apps version - 11.5.10.2
    We have a requirement wherein we need to send the concurrent program output file as an attachment while sending the notification mail to the user.
    Currently we have tried the approach wherein we are specifying the user id in the OPTIONS tab (Notifying the following people) while submitting the concurrent program.
    But using this approach, the user gets only the URL of the output file in the notification mail and not the output file as an attachment.
    Kindly let us know if anyone has incorporated the logic to send the output file as attachment in the notification mail.
    Please Note - We do not want any custom code to be written to send the attachment.
    Any pointers to this will be helpful.
    Regards,
    Shruti

Maybe you are looking for

  • Sharing an external HD on a Powermac Network

    Hi ! I'm working in a graphic & motion design agency in Paris, and we would like to share on our network an external hard drive containing our picture, sound and video libraries, so that anyone can access it. Can anyone help us do that ? Do we need i

  • Time machine back ups can not be found in Time Capsule

    Hi My time machine stopped worked a few weeks ago. It started showing an error indicating that sparse bundle couldnt be found. I could still see the 'Time machine backups' drive in Finder, but after a few days, it stopped showing it. Previously to it

  • Quality Speakers or Headphones

    Can anyone suggest a set of reasonably priced quality speakers I can use to listen to my work? And, where I should buy them. Thanks!!

  • Year getting reduced by 1, when querying date fields

    Hi, I am an Oracle retail support engineer. One of my clients logged an SR with the following: When querying application table (shown below), the date comes out as corrupted (data snippet also shown below): Query: select create_date, to_char(create_d

  • Postmaster account

    When sending an email from a [email protected] to [email protected], the email is bounced back: Your message cannot be delivered to the following recipients: Recipient address: [email protected] Reason: unknown or illegal alias: [email protected] I c