Mail to vendors

I have to send the output through mail when the email address is maintained in the vendor master record.can any one help in this regard.
Thanks

Hi,
You can get the ADRNR (Address number) from LFA1 table, based on this Address number get the Email address from ADR6 table, if the Email is maintained in this table, then you can send the Mail, if the Email address is not maintained then do not send the mail ..
For mail sending, look at the below code
*& Report  ZSENDEMAIL                                                  *
*& Example of sending external email via SAPCONNECT                    *
REPORT  zsendemail                    .
PARAMETERS: psubject(40) type c default  'Hello',
            p_email(40)   type c default '[email protected]' .
data:   it_packing_list like sopcklsti1 occurs 0 with header line,
        it_contents like solisti1 occurs 0 with header line,
        it_receivers like somlreci1 occurs 0 with header line,
        it_attachment like solisti1 occurs 0 with header line,
        gd_cnt type i,
        gd_sent_all(1) type c,
        gd_doc_data like sodocchgi1,
        gd_error type sy-subrc.
data:   it_message type standard table of SOLISTI1 initial size 0
                with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*&      Form  POPULATE_MESSAGE_TABLE
*       Adds text to email text table
form populate_message_table.
  Append 'Email line 1' to it_message.
  Append 'Email line 2' to it_message.
  Append 'Email line 3' to it_message.
  Append 'Email line 4' to it_message.
endform.                    " POPULATE_MESSAGE_TABLE
*&      Form  SEND_EMAIL_MESSAGE
*       Send email message
form send_email_message.
* Fill the document data.
  gd_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
  gd_doc_data-obj_langu = sy-langu.
  gd_doc_data-obj_name  = 'SAPRPT'.
  gd_doc_data-obj_descr = psubject.
  gd_doc_data-sensitivty = 'F'.
* Describe the body of the message
  clear it_packing_list.
  refresh it_packing_list.
  it_packing_list-transf_bin = space.
  it_packing_list-head_start = 1.
  it_packing_list-head_num = 0.
  it_packing_list-body_start = 1.
  describe table it_message lines it_packing_list-body_num.
  it_packing_list-doc_type = 'RAW'.
  append it_packing_list.
* Add the recipients email address
  clear it_receivers.
  refresh it_receivers.
  it_receivers-receiver = p_email.
  it_receivers-rec_type = 'U'.
  it_receivers-com_type = 'INT'.
  it_receivers-notif_del = 'X'.
  it_receivers-notif_ndel = 'X'.
  append it_receivers.
* Call the FM to post the message to SAPMAIL
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
       importing
            sent_to_all                = gd_sent_all
       tables
            packing_list               = it_packing_list
            contents_txt               = it_message
            receivers                  = it_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
  gd_error = sy-subrc.
* Get it_receivers return code
  loop at it_receivers.
  endloop.
endform.                    " SEND_EMAIL_MESSAGE
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
*       Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
  wait up to 2 seconds.
  if gd_error eq 0.
      submit rsconn01 with mode = 'INT'
                    with output = 'X'
                    and return.
  endif.
endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
Regards
Sudheer

Similar Messages

  • Text in automatic e-mail for vendor when PO creation

    Hello experts,
    I have customized a message type that sends an email to the vendor when saving a purchase order and it works correctly, but I have some questions about characteristics of this email:
    - Is it possible to include a text in the body of the message? I have seen that in "mail title and texts" when output types customizing there is an option for a long text but I do not know how to make this text appear in the email.
    - Is it possible to send the email to more that one vendor? If in the vendor master data I include two different email addresses, is it possible to send the email to both of them?
    - Is there any way to automatize this message just for one user?
    Thanks in advance
    Laura

    Hi,
    In standard not possible to have covering text  of a mail which  include a text in the body of the e- mail message but only you can send with PO as attachment with subject in as "PO number"
    Only possible :you can send PO by  e-mail to vendor to single e-mail ID. If you want to send multiple (e-mail)  ID, you can go for development with ABAPer with group e-mail  concept.
    Regards,
    Biju K

  • Need an enhancement after releasing a PO Need to send a mail to vendor

    Hi all,
              I am having a requirement that, need to send a mail and attachment whenever a PO get released.
    Can anyone help to find the enhancement for to write the code to send a mail to vendor.
    Regards.
    Ranganadh.

    Hi,
    To send a mail when a new PO is created.
    can be achievd by using  class cl_bcs and BADI method
    IF_EX_ME_PROCESS_PO_CUST~POST of BADI ME_PEOCESS_PO_CUST.
    We can aslo configure the OUTPUT TYPE as MAIL in transaction NACE. This is usually doen by the Functional consultant.
    Pls look into these exapmles which clearly explains abt the process of sending a  mail-
    Sending Mail using class cl_bcs
    Re: Mail sending program
    Re: SCOT and FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Payment advice mailing to vendor

    Hi SDN users,
    Can any one give the producer  that how can the  payment advice will mail to vendor.
    please provide step by step configuraction and producer.

    Hello,
    Please, read the SAP Note 1033893 . This notes shows how to send payment advice by e-mail. The solution uses BTE's.
    Just a hint: Next time you can search the forum. Some questions are already answered and it's easier and faster for you to get a good response.
    REgards,
    Renan

  • Sending Vendor balance confirmation as a mail to vendor

    Hi experts,
    We have a requirement of sending the vendor balance confirmation as mail to vendor. Can anyone guide me in the nace configuration. What would be the application to be selected for configuration?
    Thanks in advance,
    Neela

    Hi Neela,
    I am also looking for the same functionality and hence looked at your resolution comment.
    I used tcode FIBF and looked for BTE in Environtment  --> Infosystem (P/S) as well as Environtment  --> Infosystem(Processes).
    However I could not find the BTE 2140 in my system.
    May be I am not loooking at the right place as I am new to this tcode.
    Could you please guide me how to look for it?
    Thanks in anticipation,
    Nitish

  • How to send mail to vendor mail id from Tcode MIGO when GR is created

    Hi Experts,
    My requirement is to send one mail to vendor when GR is created in Tcode MIGO.
    I tried to setup configuration in tcode NACE, creating new message type MAL1.  but i am not able to locate Message tab in tcode MIGO, also, When i goto transaction MB02 i can give message type MAL1 in output types then mail is going to scot, but my main problem is as:
    Output type MAL1 is not automacially trigerred from transaction MIGO (I need to go to MB02 and add output type in Messages)
    Please help me to configure this. Again, i did configuration only in NACE and not any other tcode. So please tell me whether i need to configure in other tcodes specifcally WE20 (if yes, please give me message type and process code for GR) .
    Many thanks, please help me. points assured!
    Thanking you,
    Jogdand M B

    Hi,
    Via t-code NACE select inventory management, then you can use output type WE01 or MLGR base on transmission medium -- 5 External send. After that you need to maintain the condition record accordingly, then that will be ok! After GR with MIGO, system will generate a email to vendor's mailbox in the vendor master data!
    Good luck
    Tao

  • PO mail to vendor from sap

    Hi all,
    I did all setting as per the note provided in sap - 191470
    When using external mail, the following basic settings are required:
    1. You must maintain an e-mail address in the address in the vendor
    master.
    2. The same applies to your own user master. You also have to specify an
    e-mail address there in order to identify the sender.
    o Note that it is not possible to change the e-mail address of the
    vendor via the SAP purchase order transaction (ME21N, ME22N, and so
    on).
    o You can only make a permanent change using the vendor master
    transactions XK02 or MK02.
    o You can use a temporary email address in Transaction ME21N.
    3. For the output type for default values, a communication strategy needs
    to be maintained in the Customizing that supports the e-mail. You can
    find the definition of the communication strategy in the Customizing
    via the following path: (SPRO -> IMG -> SAP Web Application Server ->
    Basic Services -> Message Control -> Define Communication Strategy).
    As a default, communication strategy CS01 is delivered. This alreadycontains the necessary entry for the external
    communication. Bear in
    mind that without a suitable communication strategy it is not possible
    to communicate with a partner via Medium 5 (external sending).
    4. Use the standard SAP environment (program 'SAPFM06P', FORM routine
    'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
    5. In the condition records for the output type (for example, Transaction
    MN04), use medium '5' (External send).
    6. You can use Transaction SCOT to trigger the output manually. The
    prerequisite for a correct sending is that the node is set correctly.
    This is not described here, but it must have already been carried out.
    7. To be able to display, for example, the e-mail in Outlook, enter PDF
    as the format in the node.
    But at the time of po saving mail is not getting trigger to vendor,
    your suggestion/ guidance is required.

    hi
    chek xk02 here u hae given the email address properly and the STD COMMUNICATION method as EMAIL
    then check user master in su01
    u have to maintain proper email address  and communication method
    http://www.sap-basis-abap.com/mm/sending-po-by-mail-to-vendor.htm
    regards
    kunal

  • BADI for Vendor Invoice after Posting to send a mail to vendor

    Hi,
    My requirement Is like this.
    I have to send a mail to vendor after the Invoice for vendor is Posted.
    For dat I am searching for a badi to implement after the invoice is successfully posted.
    Please give some solution about this.
    Regards,
    Jyoti..

    if it is F-43 . check out the following
    BAdI Definition      Description                                                                               
    AC_QUANTITY_GET      Transfer of Quantities to Accounting - Customer Exit       
    BADI_ENJ_ALT_ADR     Go to alternative vendor/customer data                     
    BADI_F040_SCREEN_600 Screen Enhancement on F040 0600 Document Header            
    BADI_FDCB_SUBBAS01   Screen Enhancement 1 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS02   Screen Enhancement 2 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS03   Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS04   Screen Enhancement 4 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS05   Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)  
    BADI_PRKNG_NO_UPDATE BAdI for Deactivating Update of Parked Documents           
    F050S008             FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger      
    FBAS_CIN_LTAX1F02    Tax interface                                              
    FBAS_CIN_MF05AFA0    EWT - Downpayment Clearing - Tax transfer for CIN          
    FI_AUTHORITY_ITEM    Extended Authorization Check for Document Display (FB03)   
    FI_GET_INV_PYMT_AMT  BAdI for determining the payment amount for an invoice     
    FI_HEADER_SUB_1300   Screen Enhancement for Document Header SAPMF05A            
    FI_PAYREF_BADI_010   BAdI: Payment Reference Number                             
    FI_TRANS_DATE_DERIVE Derive BKPF-WWERT from Other Document Header Data          
    INVOIC_FI_INBOUND    BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)          
    RFESR000_BADI_001    BAdI for Own Processing of POR Item                        
    otherwise - find out the package of the program of the transaction.
    go to se84 - enhancements- business add ins - definitions - enter package and execute - you will see all the definations.

  • Which table for e-mail of Vendors

    Hi all,
    which is the table where I can find e-mail of Vendors (t.code KF03)?
    THANKS
    GANDALF

    Dear Gandalf,
    It's the same table (ADR6). Only the link is to LFA1 table (ADRNR field).
    Regards,
    Eli

  • Auto mail to vendor after GRN and Invoicing

    I need to work for my client in MM who needs a automail to vendor after GRN and Invoicing , kindly help  to know the procedure for Auto mail generation to Vendor or a work flow so that i can work with ABAP team just needed a flow.

    For Mail to Vendor after MIRO transaction, Please proceed as follows
    Go to NACE t code,
    Select MR for Invoice verification
    Create New output type by copying Invoice print out put type and set transmission medium 5 for external send
    Assign Program, processing routines. Set partner function VN-Vendor
    Maintain new output type to Message schema MR0002- MM-LIV- Message Determination.
    With the hep of basis do setting in SCOT tcode
    Create condition record in NACE for this output type
    You can send e-mail by MR90 tcode
    For Mail to Vendor after MIGO transaction,
    i think you have to go for the custom development since SAP don't have functionality of GR message to external send
    You may use badi- MB_DOCUMENT_BADI

  • Sends mail to vendor as well as generates spool

    Hi All,
    1)I am triggering PO for output type ZNEU for external send option(transmission medium is 5).it sends mail to vendor as well as generates spool.
    I want to stop spool generation.
    2) Also i can debug the driver program while i click on print preview buttion in ME22n but i can't debug the driver program while i trigger the output type although i use /h and update debugging
    Could you please help me out.
    Thanks
    MSI

    Hi,
    I need to send a mail to inbox of an user and external mail id of the same user.
    Can I achieve this through a single send mail step?,
    First Check as Mentioned by Arghadip Kar , if not working follow the below method.
    1) Through the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" you can send.
    2) You have to write a Program and Using the above FM you have send the mail.
    3) Refer this [Link|https://wiki.sdn.sap.com/wiki/x/nYKdAw]
    Regards,
    Surjith

  • GR mail to vendor

    Hi experts,
    PLz clarify this issue- while making GR- the GR copy should be mailed to Vendor.
    Let me know the settings that to be configured.

    Hi
    Create anew Output type haviing the functionality of sending the message through mail. Thsi is not standard so you need to create all this.
    Now maintain the message condition record in MN21,
    Output type - ZWEXX
    Trans./Event Type - WE
    Print Version - 3 Collective slip
    Print indicator as 1
    Partner function as VN ( need to maintain this in the Output type ubnder partner functions)
    Transmission medium 5 - External send.
    Desptch time  - 4
    Maintain the Communication method.
    Now at the time of GR , ensure that the Print indictaior is flagged, when this is flagged then only the Message will be generated & sent to the Vendor.
    Mainatin the internet connection settings for sending through mail, Maintain vendor's mail addres.....
    Thanks & regards
    Kishore

  • PO Automtica Sending E-mail to Vendor and sender

    When sending purchase order via E-mail to vendor,
    SAP only take  E-mail adress of vendor.
    What can do to send the purchase order to all E-mail adresses defined for a vendor?
    I already read OSS note 786847. But I didn`t yet know how to define Z* table. and 
    where to change program logic to in place of ADRC* table.
    thanks
    Shi Chun Qing
    Edited by: SHI CHUN QING on Jul 2, 2008 10:27 AM

    Hi
    First you need to Create a New program Copying the Standard Program used for Printing SAPFM06P, make the Changes as per your requiremnt.
    If the Vendor has 10 mail addresses , retreive the same from the Address tables & Create a Z table which is a copy of NAST, Table NAST stores the First message, make a copy of that in ZNAST & replicate the same with the Different mai Id's
    All the Logic should be included in the Print Program.
    Create a Copy of the ME_PRINT_PO & maintain the logic.
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jul 2, 2008 11:11 AM

  • PO number in title in automatic e-mail for vendor when PO creation

    Hello experts,
    I have customized a message type that sends an email to the vendor when saving a purchase order and it works correctly, the problem is that  in the title of the email I want to put the number of the purchase orde and I do not know how to do it.
    I have seen that in the tab page for general data in the customizing of the message type, I can include a program and a form routine, but I do not know how to use them.
    Can anybody tell me how I can show this information?
    Thanks in advance
    Laura

    HI,
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202 for e.g.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    Regards,
    Pardeep Malik

  • Payment Advice needs to be send as mail to Vendor through SAP.

    Hi,
    There is a requirement in my businees related to payment advice mail. After running T-Code: F110, spool getting generated with all the payment advice (lets say 20 advice at a time for different vendor). now we want to mail each advice to respective mail through SAP itself. Could you please provide me some idea through which i can achieve this functionality.
    Thank you,
    Manya.

    Please search SDN, you will find all the information already existing on this feature, e.g.:-
    [F110 payment advice by e-mail;
    Basically BTE event 2040 and 2050 is used for it.
    Regards,
    Gaurav

  • Convertion of Smart form to pdf and sending mail to vendor for PO

    Hello all,
    I have modified a standard PO Smartform and running it through ME23N.
    In this i have to convert it to a pdf file and then send it through mail to the vendor.
    I have found out FMs'CONVERT_OTF'and
    'SO_NEW_DOCUMENT_ATT_SEND_API1'
    to convert it and send mail. But can u tell me how to go about using it.
    As i am using a standard program do i have to copy this prog to zprog and then call the fm out there. I am not sure.
    Thanks
    Salil

    Hi,
    Here is the sample code.If you find this as useful,kindly reward points by clicking the star on the left of reply.
    Internal Table declarations
    DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
          i_tline TYPE TABLE OF tline WITH HEADER LINE,
          i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
          i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
          i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
          i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
          w_objhead TYPE soli_tab,
          w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl,
          w_doc_chng typE sodocchgi1,
          w_data TYPE sodocchgi1,
          w_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
          v_form_name TYPE rs38l_fnam,
          v_len_in LIKE sood-objlen,
          v_len_out LIKE sood-objlen,
          v_len_outn TYPE i,
          v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    call function 'SSF_FUNCTION_MODULE_NAME'
         exporting
              formname           = 'ZZZ_TEST2'
         importing
              fm_name            = v_form_name
         exceptions
              no_form            = 1
              no_function_module = 2
              others             = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
         EXPORTING
              control_parameters = w_ctrlop
              output_options     = w_compop
              user_settings      = 'X'
         IMPORTING
              job_output_info    = w_return
         EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    i_otf[] = w_return-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
              format                = 'PDF'
              max_linewidth         = 132
         IMPORTING
              bin_filesize          = v_len_in
         TABLES
              otf                   = i_otf
              lines                 = i_tline
         EXCEPTIONS
              err_max_linewidth     = 1
              err_format            = 2
              err_conv_not_possible = 3
              OTHERS                = 4.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Convert PDF from 132 to 255.
    LOOP AT i_tline.
    Replacing space by ~
      TRANSLATE i_tline USING ' ~'.
      CONCATENATE w_buffer i_tline INTO w_buffer.
    ENDLOOP.
    Replacing ~ by space
    TRANSLATE w_buffer USING '~ '.
    DO.
      i_record = w_buffer.
    Appending 255 characters as a record
      APPEND i_record.
      SHIFT w_buffer LEFT BY 255 PLACES.
      IF w_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    Refresh: i_reclist,
             i_objtxt,
             i_objbin,
             i_objpack.
    clear    w_objhead.
    Object with PDF.
    i_objbin[] = i_record[].
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    Object with main text of the mail.
    i_objtxt = 'Find attached the output of the smart form.'.
    APPEND i_objtxt.
    i_objtxt = 'Regards,'.
    APPEND i_objtxt.
    i_objtxt = 'J.Jayanthi'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    Document information.
    w_doc_chng-obj_name = 'Smartform'.
    w_doc_chng-expiry_dat = sy-datum + 10.
    w_doc_chng-obj_descr = 'Smart form output'.
    w_doc_chng-sensitivty = 'F'. "Functional object
    w_doc_chng-doc_size = v_lines_txt * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
    CLEAR i_objpack-transf_bin.
    Start line of object header in transport packet
    i_objpack-head_start = 1.
    Number of lines of an object header in object packet
    i_objpack-head_num = 0.
    Start line of object contents in an object packet
    i_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
    i_objpack-body_num = v_lines_txt.
    Code for document class
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    Packing as PDF.
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'Smartform'.
    CONCATENATE 'Smartform_output' '.pdf'
    INTO i_objpack-obj_descr.
    i_objpack-doc_size = v_lines_bin * 255.
    APPEND i_objpack.
    Document information.
    CLEAR i_reclist.
    e-mail receivers.
    i_reclist-receiver = '[email protected]'.
    i_reclist-express = 'X'.
    i_reclist-rec_type = 'U'. "Internet address
    APPEND i_reclist.
    Sending mail.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              document_data              = w_doc_chng
              put_in_outbox              = 'X'
         TABLES
              packing_list               = i_objpack
              object_header              = w_objhead
              contents_hex               = i_objbin
              contents_txt               = i_objtxt
              receivers                  = i_reclist
         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 <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Maybe you are looking for

  • Clearing date and Posting Date of a clearing document

    Hi, We have seen some cases in our system in which the clearing date and clearing posting date of a document is older than the creation date of the document. Please guide me: Should the above describe case be happened or allowed to be happened? Can w

  • Safari for OS 10.6.8

    I got a message on my Safari (5.1.10) browser that said my version of Safari was no longer supported. I am operating my Mac Power Book with OS 10.6.8. What version of Safari should I be using?

  • GStreamer

    Okay, GStreamer looks very nice in principle. I like the idea of a media framework that doesn't need Win32 codecs... But I have to ask: why the heck is it so slow? Why does it wait 3 seconds between playing MP3s? Why are GStreamer-based apps like Tot

  • Unistalling procedure of Enhanced Gmail Plug-in ??

    Hi, How does one Unistall the Enhanced Gmail Plugin, because i did a Security wipe on my 9790, and though all the emails are no longer visible elsewhere, when i go to Setup/Email Accounts, i see that the Gmail plugin is still showing me all my email

  • No .mov option in Export movie. Help, please!!

    Hi there, I am using flash professional, the newest version on Windows 8. I downloaded it a few days ago, and when I try to export the file as a movie there is no .mov option. I have QuickTime downloaded, I've tried saying it as SWF and converting it