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.

Similar Messages

  • Send e-mail  Billing document as PDF Attachment while saving from VF01/02

    Hi all,
    I have written the code for sending email with PDF attachment. Presently this code is included in the Print program for the smartform and an email is sent when an output is issued manually from VF02/03 where as the requirement is to send email whenever the document is saved.
    We need to trigger this while saving the Output type say, <b>VF01</b> GOTO -> HEADER -> OUTPUT (select the output type) -> SAVE - should send an email with PDF attachment.
    need ur help on this.
    thanks,
    Subba.

    Hello,
    Just like you have defined an ouput type for smartforms ,you can define new output type with external email option as medium which will first generate a PDF from invoice data & then send it as email .
    I am not sure but you can also try this ::::::
         If you have custom-developed smartforms program,then you can add email code at the end of smartform execution by generating PDF, in the same output type instead of  creating new.
    Thanks.

  • Can't open pdf attachment without saving first

    Whenever someone emails me with a pdf attachment I cannot just open the attachment. It makes me save the document first, locate the file I just saved in my hard drive, and then I can open it. I started having this problem earlier this week. Before, I could just click on the attachment and it would open. I have the latest first of Adobe. What can I do so I can simply click on an attachment and it opens?

    What is your operating system & version?
    What is your email client & version?
    What is your Adobe Reader version?
    What exactly means "cannot"?

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • 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.

  • Verizon Chat advises pdf attachment non-download from AOL email is a software problem and directs me to Apple Support. I see "can't access cellular data network" in an instant before the file's icon turns into the file's name.

    Verizon Chat advises pdf attachment non-download from AOL email is a software problem and directs me to Apple Support. I see "can't access cellular data network" in an instant before the file's icon is replaced by the file's name. In Inbox three emails in a row show there is an attachment. My iPad 3rd gen. runs 7.1.

    You have Acrobat Pro on your system. It will try to open PDFs, and of course it will fail. You must uninstall it. Then, you will need a PDF reader. So install Adobe Reader. That seems quite simple, but perhaps something is wrong. If anything goes wrong with these two steps (1) uninstall Acrobat Pro (2) install Adobe Reader, then please let us know the details.

  • Send as email attachment the billing document as pdf when created and saved

    HI All,
    I have already searched the forum but could not find  a satisfying answer so i am posting this question,
    The requirement is to send an email containing biiling document converted to pdf format when a billing document
    is created and saved in VF01 transaction.
    I have already converted the output to pdf format in my driver program and also know how to send an email containing the same ..but this works only when user prints using VF31 .
    Kindly tell the configuration steps which are required...and hot to achieve the same.
    Regards,
    Prateek

    Hi Prateek,
    There is a blog on a similar topic which explains how to email purchase order in SAP to the vendor. The settings are required in Vendor Master, NACE and SCOT.
    Following is the link to it.
    http://architectsap.com/blog/sap/sap-mm-purchasing-send-purchase-order-by-mail-to-vendor-in-sap/
    It has given steps to trigger the output.
    Its not exactly what you require, but might be helpful.
    Regards,
    Abhijeet Kapgate

  • External Email (PDF Attachment) while PO is created or Changed

    Hi All,
    I have a requirement as below.
    1. When a PO is created / changed then saved, the PO Form is to be sent to the respective vendor through External Email along with the PO Form printout generated.
    2. The PO Form is to be attached in the Email (PDF Document).
    Please write to me if you have a suitable solution for this requirement.
    I have created the PO Form in SAPScript. Is it possible to develop the above requirement in SmarForm? Please suggest me.
    Thanks in Advance,
    Kannan.

    Since you are using SAPScript I thought this solution would be simpler. We are also using SAPScript and email all document types when necessary.
    1. As suggested before: create an output type as an email type (Same as mornal output just the value 8 for transmission medium).
    2. For ease of maintainance I copied the associated printing program to a new program and link this new program to the output type as normal.
    3. In your print program make the following changes.
    (a) include code below just before your open form. You can read the email address from whereever you have them. In this example they are read from a custom z* table ZEMAIL_TEMP . Sometimes we read them from customer master, vendor master etc.
    (b) make sure you have the folowing export parameter in your "START_FORM" Function module
         MAIL_RECIPIENT = RECIPIENT_OBJ
    4. Make sure your conversion rules are set properly. Transaction code SCOT Setting-->Conversion Rules
    SAPScript text is an OTF type. We are converting our forms to PDF so we have the following entry:
    Format = OTF     
    Format to = PDF
    Ranking = 1        
    Function Module = SX_OBJECT_CONVERT_OTF_PDF</b>
    5. The are other bells and whistles (like changing the email header) that I can happily share once/if you are happy with your solution.
    Hope I am not missing any vital info.
    Good Luck

  • Save billing document as pdf file in a shared folder

    hi experts,
    my requirement is to save the billing documents as a pdf file whenever it is generated automatically.
    is it possible to define a output type to save the pdf file similar to the one used for sending pdf files as attachemnts in email.

    Hi Sarah,
    The printing to PDF functionality can be included in the print program which is attached to the output type. This is an ABAP job and if you show the program name to the ABAP guy he should be able to fix it. The program name can be found by goning to transaction code V/40 and then selecting the relevant output type.
    Cheers,
    Shailabh

  • Help! Can't email pages document in pdf

    I'm trying to send a one-page letter that is to be inserted into a book.  The recipient needs the document in PDF format.  I saved it in PDF but when I try to attach it, the whole text prints out into the email instead of a link to an electronic pdf file.  I am able to attach an electronic file of the Pages version, just not PDF.  I'm using Hotmail and a 2011 MacBook Air with Pages '09 version 4.3.

    BCG,
    You are sending a PDF file. It's a feature of Mac Mail, and perhaps other email clients, that the content of a 1-page pdf is displayed automatically, but be assured there is an attachment there that your recepient can save and work with normally.
    Jerry

  • Email Billing Document

    Hie
    I am trying to send billing document through mail and the functional guys have configured the output types and conditions.  I have a challenge in that which program do we assign as well as the subroutine in config as parameters for output type to be able to send mail? Currently we are able to send mails to internet addresses through SAPoffice.  The current assigned programs and routines i copied from standard output type MAIL tese being
    RSNASTSO Subroutine SAPOFFICE_AUFRUF_VX
    but after execution i get errors saying should enter at least one number and that there are errors in the address data.  All email addressess and partner functions have been defined. Could the programs and subroutines be wrong?

    Hie guys
    I have resolved to creating my own application to convert spool output to PDF and then sends as email attachment.
    regards
    Isaac Prince

  • PDF Attachment while posting thru MIRO / FB60

    Dear Friends,
    I need your help on the following scenario.
    Requirement:
    we are going to build an interface for invioce postings in SAP using Tcode FB60(Invioce with out PO) and MIRO(with PO).
    Data has to be picked up by the interface from a staging server where each invoice data is available in .dat format.
    Data for posting is from the .dat file. We are going to store that in Z tables and will use for posting.
    But our additional requirement is each invoice will have a PDF document(supporting document for that invoice), it is not the invoice as such, but an additional document.
    While doing the posting in SAP thru FB60/MIRO transaction, the PDF file corresponding to this invoice has to be attached with this posting.
    Problem Areas:
    We know that an attachment can be uploaded thru transaction in FB03 after the posting is done using Object Services.
    1. But our concern is how can they be attached programatically?
    2. Can't we attach the file while doing Posting either thru FB60 or MIRO?
    3. How to extract those PDF files placed in another server and attach during the background job?
    Any help/inputs on this is highly appreciated.
    SAP Version: 4.7 Enterprise edition
    Note: Content of the PDF attachment is not the data for invoice posting, no need to read its contents, it only has to be attached with the posting.
    Regards,
    Simha

    Change in requirement..
    Hence i am closing this thread.
    Regards,
    Simha

  • Send pages document as pdf attachment without including the whole document in the message

    What I am trying to do is to write a document in pages then send it as a pdf attachment which shows as a mail icon in the mail message.  One then clicks on the icon and the attached file opens.  Seems I can do it if I send it as a word doc but every time I try and send it as a PDF the whole document shows up in the email body....
    Is there something I am not doing?
    Thanks
    Bryan

    Hi Gee,
    We also tried this:
    Wrote document in Pages and used "export" to save it as a PDF document.
    Fired up Mail, clicked on add attachment and as usual we got the document in the body
    Highlighted the document and right clicked.
    In drop down menu we selected "show as Icon" and it did just that
    We then sent it to our Tablet where, believe it or not it came up as an attachment NOT in the body of the mail.
    Just shaking our heads on this on but I do really think Jerry is absolutely right so will not take any more chances and add a second page if I have to send a pdf......
    Bryan

  • EMAIL BILLING DOCUMENT TO CUSTOMER THROUGH SEND MAIL OPTION IN VF02

    Hi
    I want to make active mode in send mail option is in VF02/VF03.
    see below how to reach send mail option is in vf03
    There is one more option if u go vf03 give the billing document and go to issue out put , choose the print preview and go to text which is placed at top right side and click on that option there send mail option available. can we make active that option since it is showing in gray mode.
    Regards
    Venkat

    Venkat,
    If your SAP system's Output is configured with the proper output type and SMTP or IMAP mail sending servers then its possible to send mail directly by clicking the send email tab.
    I have a little knowledge about this technical congiguration. But we have solution manager from where we send mail directly to the user's Email.
    And also yu have to configure Workflow setting.
    Please take help of Workflow ABAP consultant.
    Thanks,
    Raja

  • Billing document to pdf file

    Hi all
    Can anyone please tell me how to convert a billing document to a pdf format file (code should take billing document number as input and give a file in the pdf format).

    Dear,
           There are lots of function module one is
    HRHAP_DOC_CONVERT_SMF_TO_PDF - This will convert Smart forms into PDF format.
    Also there are other function module which will convert the spool request into PDF.
    Rg,
    VM

Maybe you are looking for