Email PDF Purchase Orders

Hi,
I have a problem with PDF email version of Purchase orders.It displays the most recently item whenever a new item is added/ modified rather than all the items in the PO.The email version of the PO uses a separate print program rotuine.Is there a way to display all the items of the purchase order item irrespective of if they are newly added/Modified.Can you please advise on this?Thanks.
Regards
Pinky

If you want to reprint the complete PO every time after a change instead of just printing what was changed, you could try to modify the output configuration for the message type (probably NEU) in message control. There is a routine that sets the change flag if I remember correctly. This change flag is used by the print program to determine whether the complete PO or just the changes should be printed. Try removing the associated program and form name from the output type configuration and see if this will give you what you need.
Keep in mind that then the PO output won't say that it is a 'change PO' form, and this change will have an effect on any PO output, not just the PDF email version. If that's not acceptable, then you'd have to modify the print program.

Similar Messages

  • How to send PDF attachment through Email For Purchase Order

    Hi,
         Can you please tell me how to send the Purchase Order with PDF attachment. Thank you.
    Thanks & Regards,
    Rani.

    Find the below example
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Write statement to represent report output. Spool request is created
    if write statement is executed in background. This could also be an
    ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    Alternative way could be to submit another program and store spool
    id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
           to sap-spool
           spool parameters   %_print
           archive parameters %_print
           without spool dynpro
           and return.
    Get spool id from program called above
    IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
          FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    Reward if helpful.
    Thanks,
    Kishore S N

  • Email of Purchase Order and Payment Advice

    Good Morning All
    We wish to implement the emailing of payment advice documents to our vendors. However, we are not sure if the changes to the vendor master data required for this will also mean that purchase orders for that vendor will also be emailed. Does anyone know if this is the case or not?

    Having done some testing I agree that the requirement for condition data for purchase order output makes it possible to email remittances and not purchase orders i.e. by not creating the MN04 condition data. However, in my testing, when I assigned an email address to the vendor for the purposes of emailing purchase orders, the payment advice produced by the next payment run was also emailed. I'm sure I must be missing something as, if nothing else, this would imply that the vendor would offer the same email address for both purposes. In desperation we are wondering whether we need to maintain multiple email addresses and use the standard number for purchase orders and somehow identify one of the other addresses as that to be used for the remittance.

  • Email Created Purchase Order to approver

    Dear All,
    Good Day!
    is it possible to be automatic send email to approver the created purchase order
    How can i config/setup  purchase order to be email to different  approver
    this is the first time we will do the created purchase order to be send automatic through email to approvers
    Thanks in advance
    Ermin D. Concepcion

    Hi,
    Same question you are asking again & again!
    Re: Send PO to vendor through e-mail
    OK.
    In Standard PO to send by E-mail to vendor is possible only after PO final release,if you set Dispatch time as 4 {Send immediately (when saving the application)} in NACE t.code in application EF & in condition record t.code:MN04 for PO message type.
    Purchase order to be email to different approve for approving , then go for Workflow.
    http://wiki.sdn.sap.com/wiki/display/ABAP/SendanExternalmailthroughSAPBusinessWorkflowandRecieversaddressin+CC
    Regards,
    Biju K

  • Email of Purchase Order

    Hi, All,
    I want to email PO to vendor. I have done the following:
    (1.) have created a strategy and  give the comm Method = INT ( Email)
    (2.) have defined message type for PO according to note 191470
    but when I use me21n to create a new PO, I clicked Messages-->select output NEU, Medium 5. And then when I click "Communication method" button, the comm strategy is automatically set there, but Cover Page Text is blank, not "New Purchase Order  4500000286" like I configured in "Mail Title and texts". Also, when I click "Further data" button, "Dispatch time" is not set to 4 as I defined in Default values.
    Is there anyone could tell me what am I missing setting?
    Thanks a lot!
    Marea

    Hi, Eduardo,
    I tried and still did not change anything. When I used ME21N create a new PO and click "Message" and  choose output type "NEU", it still show me "Medium = 1-Print output". "Cover Page Text" is still blank even I put "New Purchase Order  &EKKO-EBELN&" in "Mail title and texts" and in MN05 I put "New Purchase Order" in "Cover Page Text" field under "Communication" tab. Do you think I missed anything else? and do you create condition record for each Vendor?
    Thanks a lot for the response!
    Marea

  • Emailing SRM Purchase Order to Vendor and email mesage body text

    Hi.
    How can I find the table where the PO email message body text is stored please? On our production system, we want to remove any text the email is sent to the supplier and only want the PDF file to. We have SRM 5.0
    Thanks
    Vijay

    Hi.
    Our support team suggest ammending method PROCESS_BBP_PO_MAI. Is this also required?
    Thank you.
    Vj.

  • Email of Purchase Order coming with Standard Form

    Hi,
    I have configured NACE.
    I am able to generate the PO through email.
    But, the problem is, system always picking of standard form instead of "customized form", (though I have configured customized form for emailing).
    Whereas, in case of printing, there is no problem and customized form is printing.
    I do not understand why the system is picking up the standard form instead of customized form in case of emailing.
    Any ideas will be appreciated.
    Thanks,
    Ravi

    In NACE, check the output type "5- External send" is assigned your customized form or not

  • Wrong VAT no. in the final PDF Purchase Order

    Hello,
    does anyone know how it's possible that a user from a country "A", buying from a vendor from a country "B", get a final VAT no. of a country "C" in the PO PDF.
    Which kind of checks can I do?
    Thank you

    Hi Andre,
    The message "the field 'VAT Check' NULL and that is not allowed" is good for your business process because all the tax codes have to be checked when you create invoices based on those documents.
    These was no such control in 2005 version. That causes headache to accounting department for posting them in the invoicing step.  Check if you have any expenses (Freight etc.) entered to the documents without VAT.
    Thanks,
    Gordon

  • OTF Format of Purchase Order in email unreadable

    We have setup emailing of purchase orders and this is working fine. However, the file that is sent to the vendor is in format .OTF
    How is this file read? Is it possible to send a different format? We can see the order in SOST, but the email that the vendor receives can not be read.
    Can someone help please.
    Thank you
    Karen

    See the sample FORM below.
    In fact the CLOSE_FORM will return the OTF format table. Just pass that to this form. It will convert the OTF file to a PDF format and sent it to User. Change the body of the text accordingly.
    CHeers,
    THomas.
    * FORM MAIL_OBJECT                                              *
    *       This routine receives OTF data. OTF data is converted to PDF
    *       format and send to the Partner's email address
    FORM mail_object TABLES otf_data STRUCTURE itcoo .
      DATA: pdf_size TYPE i,                             " PDF Size
            pdf_itab_size TYPE i,                        " Attachment size
            mailtxt_size TYPE i,                         " Text in mail size
            l_vbeln LIKE vbdka-vbeln.                    " Order Doc
      DATA:
      it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,    " Mail Text
      it_pdf TYPE TABLE OF tline WITH HEADER LINE,           " OTF output
      it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
      it_mailhead LIKE solisti1   OCCURS  1 WITH HEADER LINE," Header data
      it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,   " Rec List
      it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE.  " Attachment data
      DATA: it_doc_att LIKE sodocchgi1.                 " Attri of new doc
      DATA: BEGIN OF it_pdfout OCCURS 0,                " PDF in 255 length
               tline TYPE char255,
            END OF it_pdfout.
    * Sales doc and Customer
      DATA: BEGIN OF i_vbeln OCCURS 0,
              vbeln LIKE vbpa-vbeln,       " Sales Document
              adrnr LIKE vbpa-adrnr,       " Customer
            END   OF i_vbeln.
    * Sender Address no and SMTP address
      DATA: BEGIN OF i_addrs OCCURS 0,
              addrnumber LIKE adr6-smtp_addr,
              smtp_addr  LIKE adr6-smtp_addr,
            END   OF i_addrs.
    * Convert OTF to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format       = 'PDF'
        IMPORTING
          bin_filesize = pdf_size
        TABLES
          otf          = otf_data
          lines        = it_pdf.
    * Make each line 255 characters
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        TABLES
          content_in  = it_pdf
          content_out = it_pdfout.
    * Create the PDF File
      CLEAR it_pdfdata.
      REFRESH it_pdfdata.
    *  it_pdfdata[] = it_pdfout[].
      LOOP AT it_pdfout.
        MOVE it_pdfout-tline TO it_pdfdata-line.
        APPEND it_pdfdata.
        CLEAR it_pdfdata.
      ENDLOOP.
      DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
    * Text in the mail.
      it_mailtxt-line  = 'ORDER ACKNOWLEDGEMENT'.
      APPEND it_mailtxt.
      it_mailtxt-line  = ' This is a test mail,  Line Number--1'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--2' &
                        ' This is a test mail,  Line Number--2'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--3' &
                        ' This is a test mail,  Line Number--3' &
                        ' This is a test mail,  Line Number--3'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5'.
      APPEND it_mailtxt.
      DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
    * Document Number for Output
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = vbdka-vbeln
        IMPORTING
          output = l_vbeln.
    * Attributes of new doc
      CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
                  INTO it_doc_att-obj_descr SEPARATED BY space.
      it_doc_att-sensitivty = 'F'.
      it_doc_att-doc_size   = mailtxt_size * 255.
    * Create Pack to text in mail body.
      CLEAR it_mailpack-transf_bin.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 0.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = mailtxt_size.
      it_mailpack-doc_type     = 'RAW'.
      APPEND it_mailpack.
    * Create Pack to PDF Attach.
      it_mailpack-transf_bin   = 'X'.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 1.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = pdf_itab_size.
      it_mailpack-doc_type     = 'PDF'.
      CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
      CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
      it_mailpack-doc_size     = pdf_itab_size * 255.
      APPEND it_mailpack.
    *Get email addresses based on Sales document.
      SELECT vbeln adrnr INTO TABLE i_vbeln
             FROM vbpa
             WHERE vbeln = vbdka-vbeln AND
                   parvw = nast-parvw.
      IF NOT i_vbeln[] IS INITIAL.
        SELECT addrnumber smtp_addr INTO TABLE i_addrs
               FROM adr6 FOR ALL ENTRIES IN i_vbeln
               WHERE addrnumber =  i_vbeln-adrnr AND
                     smtp_addr NE space.
      ENDIF.
      IF i_addrs[] IS NOT INITIAL.
        LOOP AT i_addrs.
          it_reclist-receiver   = i_addrs-smtp_addr.
          it_reclist-express    = 'X'.
          it_reclist-rec_type   = 'U'.
          it_reclist-notif_del  = 'X'. " request delivery notification
          it_reclist-notif_ndel = 'X'. " request not delivered notification
          APPEND it_reclist.
          CLEAR: i_addrs.
        ENDLOOP.
      ENDIF.
    * Call FM to send email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = it_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = it_mailpack
          object_header              = it_mailhead
          contents_txt               = it_mailtxt
          contents_hex               = it_pdfdata
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorizationfiltered= 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.
    ENDFORM.                    " MAIL_OBJECT

  • How to email purchase order along with body and subject line

    hi experts,
           i have to email the purchase order along with the body and subject line. I am able to send the purchase order as a pdf attachment, but i have still not got a solution how to add body and subject line to this mail.
    plz help me out.

    Hi Santosh,
    if you investigate a little bit the PO output, you can find following information in SRM output customizing:
    POs are edited by methode PROCESS_BBP_PO_MAI from class CL_PD_PO_PROCESSING_BBP.
    Subject, body and attachments are handled here.
    So create your own class and method, and assign them in this customizing point (SRM Server --> Cross-Application Basic Settings --> Set Output Actions and Output Format --> Define Actions for Purchase Order Output).
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • Email of the Purchase Order to the User

    Hi,
    Currently, I am able to send the email of the purchase order to the vendor mail address, which is mentioned on general data tab of the vendor master.
    In addition, the requirement is that the purchase order also to be emailed to the User, who has created it.
    I have added the VU in NACE settings for application EF, output type NEU. The payment medium I have used is 5 (external send).
    However, when I try to add the VU and the user name to the vendor master partner details tab, the system is not taking in.
    Please let me know how can I email the purchase order to user.
    Thanks in advance for your time.
    Thanks,
    Ravi

    Hi,
    1) Add the user email address also in the vendor master.
    2) Verify all settings in condition records.
    3) Check tcode sost for any waiting send requests.
    Regards,
    BK

  • Purchase Order by email

    Hi,
    I have completed all the steps mentioned in SAP Note 191470 in order to email the Purchase Order.
    I am able to successfully create the purchase Order and even able to print it.
    However, I am not able to send the email. In ME21N, the message are showing in red colour.
    I selected option 4 in order to email (immediately) and maintained the communication structure.
    My gateway is already opened as I can see the emails in SOST for other activities like payment advice.
    I cannot even see any log also.
    Please let me know any further steps are missing.
    Thanks,
    Ravi

    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 for e.g. PO No. 1800004202.
    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.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated.
    this may help U !
    REgards,
    Pardeep Malik

  • Purchase Order email is not triggering

    Dear Sir,
    We have done all configuration step related to sending of external email for Purchase Order . But email is not triggering . We have also tested the SAPConnect , by sending a test mail using tcode SBWP and it is working ok .
    After saving of PO (using ME22n) , We are getting following screen , but email is not triggering (in tcode SOST , we find no send request generated). We have maintained email id in XK02 for the Vendor also .
    The configuration maintained is detailed in the attached file .
    We request forum members to kindly help us for the problem resolution please.
    With Regards
    B Mittal

    Hi Mr Florian
    Thanks for reply .
    Now Email is getting triggered only if the  Program-Name mentioned is Std one i.e "SAPFM06P" . But We change it to our customized one "ZSAPFM06P" then Email is not triggering .
    I request forum members to kindly help me please .
    With Regards
    B Mittal

  • Emailing Purchase order

    Hi ! Experts,
    we are going to implement Emailing of purchase orders. The settings/ customizations in the sand box system is done and working fine. But, there is a problem. The standard print program SAPFM06P uses the Email field as maintained in the General data of the Vendor master (LFA1) table. However, in our company, this field is used by Finance department for their own requirements. So purchasing has to add another field in the Purchasing data of the vendor master table (LFM1) to store the Email address of the vendor and to be used by the SAP print program to  send the PO as an email. Though this field is added successfully to the LFM1 table, we are facing difficulties in putting in the required changes to the print program so as to refer to the new field for the vendor's email address.
    Any help will be highle appreciated.
    regards,
    Satya

    Hi,
    The sequence no. chnages for the fields.
    If you check in ADR6 table , if u have maintained two e mail Id's, leave first field since it is used by finance department.
    So the second field will have different sequence no. CONSNUMBER in ADR6 table.
    So this needs to be hardcoded in the smartform program, u need to take help of ABAPer so they can code while fetching e mail ID from ADR6 table it should refer sequnce no. also .
    Sequnce no. should be always second which will have value as 002.
    So program will always pick up e mail ID maintained in sequence no. 002

  • Email Purchase Order

    Hi,
    I am new to SRM and currently I am faced with a task where I have to email
    the Purchase Order to vendor.
    Can any one specify me the exact steps involved in this.
    Please reply asap as there is an urgency in the task.
    Points assured to helpful answers.

    Hi
    Are you talking about configuartion settings in SRM side (Required with the output format) ?
    <b>SPRO Settings in SRM system (Change the Settings from "Print" to "E-mail")</b>
    <u>Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Set Output Actions for Output Format -> Define Actions for Document Output</u>
    Hope it will help.
    Regards
    - Atul

Maybe you are looking for

  • Report on sales order material

    Hi i am working in implementation project first time.We are implementing sd module in bi. We are working on the infocube 0sd_c03.I have to develop the reports on "*sales order material". As i am new kindly explain me what is procedure step by step Tu

  • Help in UDF

    Hi, Need ur help in creating UDF, i have source fields in Order IDOC under subsegment EDP35 of EDP01 segment. QUALZ CUSADD CUSADD_BEZ and target fields: RT RU RC ET I tried graphical maping as follows: 1) If Qualz = 001 and CUSADD exists then RT else

  • How do I get folders other than the inbox for gmail to show on my ipad2?

    When I open the gmail app, I can see only the inbox folder.  I'd like to be able to see all the folders.  Can I make that happen?

  • Lightning to HDMI followed by Startech HDMI to RCA Converter --- HDCP

    Hello together, I need to go from lightning output to rca input in order to be able to stream purchased itunes movies over this monitor. My approach so far was to hook up 1) Lightining to HDMI adabter 2) HDMI cable 3) STARTECH HDMI to RCA converter 4

  • Help! InDesign won't package?

    Yesterday, I was unable to collect and package my InDesign CC 2014 jobs. This has changed sin three days ago when I was packaging and collecting fine. The error message reads: InDesign could not package the document 'ZIG-1029 FloorSysLit_12.indd'. Ca