Sap email address to receive PDF attached

Hello,
I read that you can send an interactive form (in xml or pdf) back to SAP and integrate it directly into SAP.
I saw that you can get the attached file :
[Sample Code for processing Inbound Mail with Adobe Interactive Forms|http://wiki.sdn.sap.com/wiki/display/Snippets/Sample%20Code%20for%20processing%20Inbound%20Mail%20with%20Adobe%20Interactive%20Forms]
But what I don't understand is to what email address it is supposed to be sent, and how check if it is well received in sap.
Is there a "generic" address for sap inbox, and a transaction where I can check this inbox. And how do I write in the program that I want to get email from this address.
Thank you,

Hello,
you will have to set up inbound mail in your SAP system. The SAP System will have  an own subdomain or own addresses that you mail server will recognize and send it to your SAP system. About setting up inbound mail please read SAP note:
#455140
After the mail arrives into the SAP system you can define which addresses will need special inbound processing. >> This is what you already found.
The inbound mails can be found in Tr. SOIN in the new releases.
Best regards,
Dezso

Similar Messages

  • Clicking on an email address in a pdf opens MS Word

    Hi, a little advice if I may.
    I am in the situation where people often send me an email with a .pdf attached.
    If I click on the attachment, it opens in Adobe Reader, as I would expect.
    There is an email address in the .pdf document, which is "clickable"
    but if I click it, it does not open a new message window in my chosen mail client (Thunderbird), and it doesn't even open it in Outlook Express as I might expect.
    Instead a small window opens that says:
    "Microsoft Outlook - Starting MS Word as your email Editor."
    I eventually worked out how to stop Outlook using Word as it's email editor, but as I have NEVER used Outlook, I would like to force Abobe Reader to open email addresses in Thunderbird instead.
    But I cannot find anything in Adobe Reader's options or settings to define the mail client to be used.
    Can anyone advise on how to achieve this, please?
    Many thanks.
    (I realise this is an identical question to http://forums.adobe.com/message/4183440#4183440, but that got no replies)

    Hi. Thanks for the speedy reply.
    Aha... it looks like there was some argument or fight going on about which program called itself "default"
    As far as I'm aware, Thunderbird was definitely set as the default Mail Client, and if I click on a "mail to:" link in a website, the Thunderbird composition has window always opened..
    Same with Word... a typed email address always opens a Thunderbird window when I click on it. (or Ctrl Click actually, as that's how I have Word set up)
    I double checked that just now and even If I take one of the addresses in the .pdf docs which open in Outlook, and copy and paste the them into Word and they now open in Thunderbird.
    I double-checked in my T.Bird preferences and saw there's a tickbox for "Always check to see if Thunderbird is the default mail client on startup" - and that was already ticked.
    BUT... I thought I remembered seeing settings for default programs in Windows Control Panel "Internet Options" and when I looked there, sure enough, somehow that had been switched to Outlook.
    Switching it back has solved the .pdf issue (as you'd expect!)
    So I reckon there's something subtly screwed in my Windows Install where it's not entiely clear which is the default.
    Thanks for pointing me in the right direction - lesson learnt, don't ASSUME anything!

  • Is there a way to send the email notification as a PDF attachment and the email receipt as an email

    Has anyone found a way to send the email notification as a PDF attachment rather than email? I would still like to send the receipt as an email though? Any thoughts or experiences out there?

    Thanks for prompt response. Does this mean that there are future plans to do this?
    The forms received are used as part of a registration process into aonther system and aren't that User friendly in an email form. They have to be processed as received, so not efficiet to go in through the back end.

  • Send email to a non-sap email address

    Hi,
    I have to send a notification when one of the condition occurs. I have to send email based on the role of the users, i.e first find the email addresses of the users based on the role and then send email to their non-sap email addresses(like the company outlook email). Can someone tell me the detailed steps need to be followed here..
    Thanks in advance,
    Henry.

    hi David,
        WELCOME TO SDN
           Use FM <b>SO_NEW_DOCUMENT_SEND_API1.</b>
    SAP Send mail via ABAP functions SO_NEW_DOCUMENT_SEND_API1
    This abap mail sending program demonstrate how you can send a mail to the user SAP Office mailbox.
    REPORT ZSEND .
    TABLES: KNA1.
    data for send function
    DATA DOC_DATA  LIKE SODOCCHGI1.
    DATA OBJECT_ID LIKE SOODK.
    DATA OBJCONT   LIKE SOLI OCCURS 10 WITH HEADER LINE.
    DATA RECEIVER  LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
    SELECT * FROM KNA1 WHERE ANRED LIKE 'C%'.
      WRITE:/ KNA1-KUNNR, KNA1-ANRED.
    send data internal table
      CONCATENATE KNA1-KUNNR KNA1-ANRED
                             INTO OBJCONT-LINE SEPARATED BY SPACE.
      APPEND OBJCONT.
    ENDSELECT.
    insert receiver (sap name)
      REFRESH RECEIVER.
      CLEAR RECEIVER.
      MOVE: SY-UNAME TO RECEIVER-RECEIVER,
            'X'      TO RECEIVER-EXPRESS,
            'B'      TO RECEIVER-REC_TYPE.
      APPEND RECEIVER.
    insert mail description
      WRITE 'Sending a mail through abap'
                     TO DOC_DATA-OBJ_DESCR.
    CALL FUNCTION <b>'SO_NEW_DOCUMENT_SEND_API1'</b>
         EXPORTING
              DOCUMENT_DATA              = DOC_DATA
         IMPORTING
              NEW_OBJECT_ID              = OBJECT_ID
         TABLES
              OBJECT_CONTENT             = OBJCONT
              RECEIVERS                  = RECEIVER
         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.
    http://sapr3.tripod.com/abap011.htm
    Regards,
    Santosh
    Note: Reward Points if helpful

  • Script to populate email address in Order Header attachment

    Hi Experts,
    I need a help for inserting Order header attachment. We have email address of the customer stored in Order Header attachment in Short text / Long Text under the Category: Customer Email Address.
    I need a PLSQL script which created the email address in the header attachment.
    Thanks in Advance.
    Yuvaraaj.

    Figured out. It can be done using the API oe_atchmt_util.add_attachment
    Thanks,
    Yuvaraaj.

  • Sending SAP Script output as a PDF attachment through mail

    Dear Guru,
    I am using SAP 4.0B version, DATABASE Oracle 8i, OS is sun solaris 7.5.
    I want to send SAP script output as a
    PDF attachement through mail.Please suggest a solution.
    Regards,
    Rajesh

    Hi Rajesh,
    In your print program, while calling OPEN_FORM, pass options-TDGETOTF = 'X'. This is used for returning print output in OTF format.
    Then in CLOSE_FORM, get the table OTFDATA returned from the function module. for example
    DATA: OTF_DATA LIKE ITCOO OCCURS 0 WITH HEADER LINE.
        CALL FUNCTION 'CLOSE_FORM'
          IMPORTING
            RESULT  = RESULT
          TABLES
            OTFDATA = OTF_DATA.
    now you can convert this OTF data to PDF using function module CONVERT_OTF
    Then send this data as attachment to a mail using function module SO_NEW_DOCUMENT_ATT_SEND_API1
    Regards,
    Komal.

  • How do I do this. Users without FormsCentral accounts or accounts with unverified email addresses cannot receive email notifications. No notifications will be sent until the accounts are created and verified.

    How do I do this. Users without FormsCentral accounts or accounts with unverified email addresses cannot receive email notifications. No notifications will be sent until the accounts are created and verified.

    Moving this discussion to the FormsCentral forum.

  • How do I email a group from a list of email addresses in a pdf?

    how do I email a group from a list of email addresses in a pdf?

    Work Around:
    On your mac:
    1.  Open a new email
    2.  Insert name of an existing group into one of the "To" fields as usual.
    3.  Highlight all the resulting names in the "To" entry
         [Highlight first name, and while holding shift, highlight last name and all will highlight[]
    4. Copy (Command C) the highlighted emails
    5. Paste (Command V) nto a pages document
    6. Remove the name and anything else preceeding the first < and also the first < of only the first entry whixh will look like this:
         [email protected]>,
    7. Remove the > of the last email which will look like this:
         , Jane Doe <[email protected]
    8. Copy the entire altered list from the pages document
    9, Go to Contact Book and click + to add a new entry
    10.. Name the entry (XXX Group for iPad) or whatever you wish to call it
    11.  Paste all the copied altered list into any one of the email entry spaces
    12.  Click on "Done"
    13.  Create new email On iPad and click on + in any one of the "To" lines and search for "XXX Group for iPad"  You cannot just key in XXX Group for iPad!!!!!!!, you must use + contact search.
    14.  Enter the selected iPad contact group into the "To" line.
    15.  All the entries will now appear in the "To" line and you are good to go.
    Adding or deleting email addresses from the iPad group:
    Easiest:  Alter the original mac group in the usual way and repeat steps 1-14 above.  It seems impossible to edit within the emai line of the iPad contact entry.
    Rediculously simple once figured out.
    Happy emailling, but please send Bcc so that you don't spread your groups' email addresses all over the internet for spam, viruses, and other unwanted emails.  Be considerate and ask your recipients to notifiy you if they wish to be deleted from the lists you compose.

  • How do you send pdf attachment using email address listed on pdf

    I pdf'd mail merge document and now want to send these out.  I click on the email address at the top of the document and it creates a new email but it does not attach the pdf.   How do I do this?

    How to Attach Photos and Videos to Emails on an iPhone or  iPad
    http://www.wikihow.com/Attach-Photos-and-Videos-to-Emails-on-an-iPhone-or-iPad
    iPad Basics: Sending an Email With An Attachment
    http://ipadacademy.com/2012/03/ipad-basics-sending-an-email-with-an-attachment
    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
    How to Send Multiple email Attachments from your iPad or iPhone
    http://ipadacademy.com/2014/03/how-to-send-multiple-email-attachments-from-your- ipad-or-iphone
     Cheers, Tom

  • Filename attachment to dynamic email address in receiver email adapter

    Hi,
    Can i send a file with dynamic name to a dyanmically generated Email Id as attachment using receiver Email adapter ?
    Thanks
    Rupesh Kumar

    Hi,
    I had gone through the links given , but it doesn't answer my question completely. I think i need a java code to send dynamically generated filename to be send to dynamically generated email ID.
    The file name and the email Id is available in the sender adapter.
    This filename should be send as attachment to the Email Id using receiver Email adapter.
    Thanks & regards,
    Rupesh

  • When sending email PO in a PDF attachment, the attachment can not be openen

    Hi all,
    We are trying to send an email with the PO in PDF format.  We got the email but the attachment can not be opened. 
    Error reads: Adobe could not open test.pdf because  it is either  not a supported file type  or because  the file has been damaged (for example , it was send as a email attachemnet and was not  correctly decoded).
    Could any body bring some light?   We know that everything in SCOT is fine because we can email the PO through configuration to the vendor without problem. It is just these extra copies that do not work.
    a) We are modifying our custom Print program to add the code below after closing the form.
    in few words:
    a) We are getting the OTF from closing the form.
    b) Converting the OTF to PDF
    c) Sending the PDF as attachment.
    data: lt_docs      TYPE TABLE OF docs.
    data: pdf_bytecount TYPE i.
    data: begin of pdfout occurs 0,
       tline type tline,
    end of pdfout.
    Ende Formulardruck --------------------------------------------------*
      CALL FUNCTION 'CLOSE_FORM'
           IMPORTING
                result = result
           tables
                otfdata = otf.
      IF RESULT-TDSPOOLID NE SPACE.
        SPOOLID = RESULT-TDSPOOLID.
        PERFORM PROTOCOL_UPDATE USING '320' SPOOLID SPACE SPACE SPACE.
      ENDIF.
      if result-userexit eq 'C' or
          result-userexit eq 'E'.
        retco = '9'.
      endif.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
        IMPORTING
          bin_filesize           = pdf_bytecount
        TABLES
          otf                    = otf
          doctab_archive         = lt_docs
          lines                  = pdfout
        EXCEPTIONS
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 2
          OTHERS                 = 3.
    Creation of the document to be sent File Name
       maildata-obj_name = 'TEST'.
    Mail Subject
       maildata-obj_descr = 'Subject'.
    Mail Contents
       append mailtxt.
      describe table mailtxt lines tab_lines.
      read table mailtxt index tab_lines.
      maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
    Creation of the entry for the compressed document
      clear mailpack-transf_bin.
      mailpack-head_start = 1.
      mailpack-head_num = 0.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'RAW'.
      append mailpack.
    Move OTF code to structure SOLI form email
    CLEAR solisti1. REFRESH solisti1.
    LOOP AT otf.
      solisti1-line = otf.
      APPEND solisti1.
    ENDLOOP.
    Move pdf code to structure soli form email
      clear solisti1. refresh solisti1.
      loop at pdfout.
        solisti1-line = pdfout.
        append solisti1.
      endloop.
      loop at solisti1.
         move-corresponding solisti1 to mailbin.
         append mailbin.
      endloop.
      describe table mailbin lines tab_lines.
    mailhead = 'TEST.OTF'.
      mailhead = 'TEST.PDF'.
      append mailhead.
    Creation of the entry for the compressed attachment
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
    mailpack-doc_type = 'OTF'.
      mailpack-doc_type = 'PDF'.
      mailpack-obj_name = 'TEST'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type = 'U'.
      append mailrec.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type = 'U'.
      append mailrec.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
              EXPORTING
                   DOCUMENT_DATA              = maildata
              TABLES
                   PACKING_LIST               = mailpack
                   OBJECT_HEADER              = mailhead
                   CONTENTS_TXT               = mailtxt
                   RECEIVERS                  = mailrec
              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.
    ENDFORM.

    Dear Monica,
      You need to configure the system with respect to functional point of view and need to write the following code in print program. i have done this and solution is as follows.
    <b>  Reward me for this solution.</b>
    Process 11 (MM)     Sending RFQs and POs to vendors directly from the system instead of sending thru Courier or Fax     
    Existing Process (AS-IS)     Presently system is not supporting this requirement
    Business Requirements     RFQ’s to be linked with vendor master with e-mail to send enquiries directly through system instead of courier/fax. Vice versa P.O’s.  Specifications, drawings should also go to vendor along with mail.
    To-Be     
    Configuration Settings:                  
    1) Spro – Materials management – Purchasing – Messages – Output control – Message types – Define message types for RFQ/ PO
    •     Created ZEK1,ZMI and ZEK2 for RFQs
    •     Created ZIK,ZOC,ZOK,ZOM,ZSI, ZSK2 and ZSM for Pos
    •     The above New output types Included with existing Print Forms and Programs but modified with External send(5) medium, and added company’s letter head thru ABAP developments (details provided below)
    •     The above new output types also maintained for Fine- tuned control (thru same navigation) for New(1) and Change(2) operations
          2) Spro – Materials management – Purchasing – Messages – Output control – Message   determination schemas – Define message schema for RFQ/ PO
    •     Maintained the new output types in the control data
    3)     Maintain Condition records for the New out put types (copied same document types from the existing old output types)
    Easy access – Logistics – Materials management – Purchasing – Master data – Messages – MN01 (for RFQs)/ MN04 (for Pos)
    4)     Maintain Email id of Vendor in Vendor master.
    Developments (ABAP):
    1)  Copied the existing print programs and forms of the corresponding out types.
    2) Addition of header window in each corresponding form (HEADER window). Uploaded the HEADER3 graphics in the header window.
    INCLUDE HEADER3 OBJECT GRAPHICS ID BCOL LANGUAGE EN
    3) Added the the following code in TOP includes
                       TYPE-POOLs szadr.
               INCLUDE:  LMEDRUCKF09.
    data: intnast         LIKE snast,
          lvs_recipient   LIKE swotobjid,       "Internet
          lvs_sender      LIKE swotobjid,       "Internet
          lvs_comm_type   TYPE ad_comm,
          lvs_comm_values TYPE szadr_comm_values,
          p_retco         TYPE i.
    5)     Addition of the perform to SOS include for header window display
           PERFORM WRITE_FORM_HEADER.
    *&      Form  WRITE_FORM_HEADER
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_FORM_HEADER.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'HE1'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'HEADER'
    IMPORTING
       PENDING_LINES                  =
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       CODEPAGE                       = 9
       OTHERS                         = 10
    ENDFORM.
    6)     In the corresponding FORM include the following code has been added.
    DATA:  lvs_comm_type     TYPE   ad_comm,
            lvs_comm_values   TYPE   szadr_comm_values,
            xprogramm         type   sy-repid.
      ... use stratagy to get communication type
          CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'
               EXPORTING
                    strategy           = nast-tcode
                    address_number     = lfa1-adrnr
               IMPORTING
                    comm_type          = lvs_comm_type
                    comm_values        = lvs_comm_values
               EXCEPTIONS
                    address_not_exist  = 1
                    person_not_exist   = 2
                    no_comm_type_found = 3
                    internal_error     = 4
                    parameter_error    = 5
                    OTHERS             = 6.
          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 communication data
          MOVE-CORRESPONDING nast TO intnast.
          MOVE sy-repid           TO xprogramm.
    7) By using the function module we can get sender and reciepient mail ids to variables lvs_recipient    lvs_sender
          CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
               EXPORTING
                    pi_comm_type              = lvs_comm_type
                    pi_comm_values            = lvs_comm_values
                    pi_country                = lfa1-land1
                    pi_repid                  = xprogramm
                    pi_snast                  = intnast
               IMPORTING
                    pe_itcpo                  = itcpo
                    pe_device                 = xdevice
                    pe_mail_recipient         = lvs_recipient
                    pe_mail_sender            = lvs_sender
               EXCEPTIONS
                    comm_type_not_supported   = 1
                    recipient_creation_failed = 2
                    sender_creation_failed    = 3
                    OTHERS                    = 4.
          IF sy-subrc <> 0.
          Avoids cancellation with message TD421
            p_retco = '1'.                                           "831984
            PERFORM protocol_update USING '740' space space space space.
          dummy message to make the message appear in the where-used list
            IF 1 = 2.
              MESSAGE S740(me).
            ENDIF.
            EXIT.
          ENDIF.
          IF xdevice = 'MAIL'.                                       "885787
        Check validity of email address to avoid cancellation with TD463
            CALL FUNCTION 'SX_ADDRESS_TO_DEVTYPE'                    "831984
              EXPORTING
                recipient_id            = lvs_recipient
                sender_id               = lvs_sender
              EXCEPTIONS
                err_invalid_route       = 1
                err_system              = 2
                OTHERS                  = 3.
            IF SY-SUBRC <> 0.
              p_retco = '1'.
              PERFORM protocol_update USING '740' space space space space.
           dummy message to make the message appear in the where-used list
              IF 1 = 2.
                MESSAGE S740(me).
              ENDIF.
              EXIT.
            ENDIF.
          ENDIF.
    8)     Attaching the new print program and form in NACE transaction.
    Steps for End user:
    1)     Creating the Purchase Order or RFQ with suitable document type through ME21N or ME41 .
    2)     Executing the transaction ME9F and in selecting the suitable output type.
    3)     Executing the transaction ZSEND_PDOC using INT as input.
    4) With above steps we can able to send purchase order or RFQ to vendor as an attachment through e-mail in PDF format.
    Regards
    Badari

  • Send email through SO_NEW_DOCUMENT_ATT_SEND_API1 with PDF attachement of smartforms.

    Hi,
    I am converting a smartform to PDF and then sending it as an attachment to email using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    But I am getting this error. 'Error calling FM <SBCOMS_SEND_REQUEST_CREATE> in <SO_DOCUMENT_SEND_API1> with SY-SUBRC <1>'
    I am passing below entries to packaging list table.
    Packing list for Email Text
            ls_packing_list-head_start = 1.
            ls_packing_list-head_num   = 1.
            ls_packing_list-body_start = 1.
            ls_packing_list-doc_type   = 'RAW'.
    Packing list for PDF
            ls_packing_list-transf_bin = 'X'
            ls_packing_list-head_start = 1.
            ls_packing_list-head_num   = 1.
            ls_packing_list-body_start = 1.
            ls_packing_list-doc_type   = 'PDF'.
    Please let me know if I am missing anything.
    Regards,
    Nishant

    Hi Nishant,
                   Please refer my below code last week only i have implemented this logic.
    call function 'CONVERT_OTF'
         exporting
           format                = 'PDF'
           max_linewidth         = 132
         importing
           bin_filesize          = w_bin_filesize
         tables
           otf                   = t_otf
           lines                 = t_pdf_tab
         exceptions
           err_max_linewidth     = 1
           err_format            = 2
           err_conv_not_possible = 3
           err_bad_otf           = 4.
    pdf_output[] = t_pdf_tab[].
    loop at pdf_output.
         translate pdf_output using ' ~'.
         concatenate gd_buffer 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.
       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.
       free t_attachment.
       t_attachment[] = it_attach[].
      clear it_attach[].
      refresh  it_attach[].
      free  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.
       free t_receivers.
       clear : email.
       select single usrid_long into email from pa0105 where pernr = wa_pernr-pernr
         and subty = '0010' and seqnr = ''.
       t_receivers-receiver = email.
       t_receivers-rec_type = 'U'.
       t_receivers-com_type = 'INT'.
       t_receivers-notif_del = 'X'.
       t_receivers-notif_ndel = 'X'.
       append t_receivers.
       ld_sender_address = 'HRD1'.
       ld_sender_address_type = 'B'.
       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.
    check it and Revert back .
    Regards,
    Thangam.P

  • How to set "Cc" field in Dynamic Email address in Receiver Mail adapter

    I have done the configuration for setting up the dynamic email address using the XSD provided by SAP in note no 748024. It is working fine.
    Michal's blog “Mail Adapter (XI) - how to implement dynamic mail address.” was a gr8 help in doing this.
    But there is no clue of setting up of "CC" in email.
    There should be "CC" in email is our bussiness requirement.
    Would appreciate your helps.
    with regards,
    Ravi Siddam

    Hi,
    If you do not need mail package for other reasons, I suppose it is enough to provide a value in Dynamic Configuration for fields "THeaderTO" and "THeaderCC" and the select "Use Adapter-Specific Message Attributes" and "Variable Transport Binding" in receiver Mail Adapter.
    see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm">SAP help</a> for more details.
    Regards,
    Daniele

  • How to set "Cc" field in Dynamic Email address in Receiver JDBC adapter

    I have done the configuration for setting up the dynamic email address using the XSD provided by SAP in note no 748024. It is working fine.
    Michal's  blog “Mail Adapter (XI) - how to implement dynamic mail address.” was a gr8 help in doing this.
    But there is no clue of setting up of "CC" in email.
    There should be "CC" in email is our bussiness requirement.
    Would appreciate your helps.
    with regards
    Ravi Siddam

    HI,
    See fragment from help,
    Specifications for mail attributes:
    &#9675;       Under From, specify the e-mail address from which the message is sent.
    &#9675;       Under To, specify the e-mail address that will receive the message. If you enter more than one address, you must separate them with a semicolon.
    If you have specified an IMAP server under URL, the message is saved in the specified folder but is not sent to the receiver specified under To.
    &#9675;       Under Cc, specify the other e-mail addresses to which the e-mail is to be sent.
    These addresses are visible to the receiver.
    &#9675;       Under Bcc, specify the other e-mail addresses to which the e-mail is to be sent.
    These addresses are not visible to the receiver.
    &#9675;       Enter the Subject of the e-mail message.
    &#9675;       Specify whether you want to encode the content of the e-mail message. You have the following options:
    &#9632;       None
    &#9632;       Base64 (default value)
    &#9632;       quoted-printable
    Hope this helps.
    Regards,
    Akshay.
    reward points if find useful.

  • Email Billing document as PDF Attachment while saving from VF01/02

    Hi,
    Can anybody suggest if there is any BADI/User Exit/Configuration exists in order to email Billing document as a PDF attachment while saving from VF01 or VF02?
    We need to trigger this while saving the Output type say, VF02 GOTO -> HEADER -> OUTPUT (select the output type) -> SAVE - should send an email with PDF attachment.
    I have written the code for sending email with PDF attachment. Presently this code is included in the Print program for the sapscript and an email is sent when an output is issued from VF01/02/03 where as the requirement is to send email whenever the document is saved.
    Thanks in Advance,
    Srinivas

    Hi,
    While saving subroutine FORM_OPEN will get triggerred, and this will be included in the Z Program. If it is not contained in the Z program, include this subroutine. This subroutine will have include RVADOPFO.
    The above include will have the function module ADDR_GET_NEXT_COMM_TYPE, and the import parameter LVS_COMM_VALUES will contain the address number and email address to whom the pdf needs to be sent.
    So here, i.e. In place of standard include RVADOPFO, put custom include ZRVADOPFO, and modify the code as below.
    After the function module ADDR_GET_NEXT_COMM_TYPE, read the email address from any custom table based on the various conditions or hard coded value, then move it to the below variable.
    LVS_COMM_VALUES-ADSMTP-SMTP_ADDR.
    And remaining functionality will be taken care by the standard code. i.e. converting the spool to PDF and attaching it while sending the email etc....
    If I am not wrong, the same functionality will work  even while saving the sales order etc..
    Regards,
    Santu.

Maybe you are looking for

  • Custom Report For Excise On Sales

    hi friends, i need custom report for excise on sale like below format, can you please guide me to prapare FS for below requirement. Material Code And Discriptiion Sales Order No      Delivery No      Billing No      Accounting No      Excise Invoice

  • How do I get old display back for Podcasts?

    The display on iTunes in my iMac has switched to displaying an icon and the name of the podcast in one column and listing each episode in another column to the right with a couple of lines describing the episode. Before, it simply listed the title of

  • Changing country - problem with cards

    Just moved to Australia, cancelled my UK cards and now can't buy anything on iTunes because I need to have a UK card because my iTunes is registered for the UK region. So change region? Can't change region until I've entered a legitimate UK card, whi

  • Macbook Pro is SLOW as ****!!!

    I'm getting really annoyed with my Macbook! First of all, it's really really slow! Something always seems to be accesing the hard drive causing it to spin constantly. I'm always seeing the bloody beach ball and i'm always waiting for the computer to

  • Mackbook pro se calienta excesivamente

    Se calienta tanto que quema las piernas si lo usas encima. Es un macbook pro 2013 15 pulgadas