SmartForms - Is there a way to put PDF attachment in the body of Email?

Hello All,
Currently I have a Smart Form that generates an MAIL with a PDF attachment.  It works very nicely with from, to, and subject information correct.  A new request from the users is to show in the PDF output in the email vs. an attachment.  They mention that not all consumers open the PDF attachment.
Is there a way I can write the form in the email that would look exactly like the attached PDF format?
Or is there a way I can leave the PDF attachement with text in the email like 'Open the attachment to view the items that have been shipped in your recent order'.
Currently I'm using CALL FUNCTION lf_fm_name with control parameters, mail_appl_obj, mail_recipient, mail_sender, and output options.
I would greatly appreciate help in solving this ASAP.  Thanks!

Vijaya,
thank you for you quick response.
i have followed your example logic and i now see a brief message in the body of the email.  Which i part of my requirement but i'm unable to open the PDF doument.
i'm getting the error message "Abobe reader could not open 'test.PDF' because it is either not a supported file type or because the file has been damaged"
Any idea why?  Before adding your logic after calling the smarform to use 'CONVERT_OTF'  and 'SO_NEW_DOCUMENT_ATT_SEND_API1' the attached PDF file was perfect.
below is the the call function for my SF.  after this call i have added the logic your suggested.
call smartform
      CALL FUNCTION lf_fm_name
           EXPORTING
                     control_parameters       = control_parameters
                     mail_appl_obj            = appl_object_id
                     mail_recipient           = recipient_id
                     mail_sender              = sender_id
                     output_options           = ls_composer_param
                     user_settings            = 'X'  "ADDED THIS SETTING
> SmartForm specific fields
                      gi_salesord_num      = gi_salesord_num
                      gi_goods_mvmnt_date  = gi_goods_mvmnt_date
                      gi_tracking_number   = gi_tracking_number
                      gi_carrier_name      = gi_carrier_name
                      gi_email_to          = gi_email_to
                      gi_coupon            = gi_coupon            
                      gi_url_name          = gi_url_name         
           IMPORTING
             job_output_info               = job_output_info "w_return    "ADDED IMPORTING AS TABLE
           TABLES     git_item_tab         = git_item_tab
<
           EXCEPTIONS formatting_error     = 1
                      internal_error       = 2
                      send_error           = 3
                      user_canceled        = 4
                      OTHERS               = 5.
in bebug mode if i look at the retuned table in debug i see values like below:
    1     //        |XPDF1        0640 00000000001                                <
    2     IN        |04EYZSF_SD_WKI_EMAIL_CONF                                      <
    3     IN        |05FIRST                                                        <
    4     OP        |LETTER  P 144  240 1581712189000010000100001                   <
    5     IN        |06WK_BRANDS_COLOR_LOGO                                         <
    6     MT        |0210001134                                                     <
<< Unformatable text removed >>>
it looks like there is an issue with the convert or i've got some logic wrong.  Any ideas?
Edited by: Rob Burbank on May 7, 2009 2:55 PM

Similar Messages

  • Is there a way to "stamp" PDF files with the purchaser's email address?

    I would like to sell PDF reports and/or eBooks via BC, but I would like to be able to stamp each such PDF/eBook with the purchaser's email address.
    There are certainly stand-alone PDF stamper programs and some providers like gumroad.com already offer that feature.
    Anyone actually done it with BC, please?
    Thanks in advance
    Andy

    Thanks for the rapid response, Liam -- even if it's not the response I was hoping for.

  • Aperture trash is not displaying items in trash.  I want to get a number items out of trash.  How do I get them displayed or is there another  way  to put them back in the file?

    Aperture trash is not displaying items in trash.  I want to get a number items out of trash.  How do I get them displayed or is there another  way  to put them back in the file?

    See Why can't I see my deleted photos in Trash?

  • Data Sets - Is there a way to put two fields in the same row?

    I am working on my first Spry Data Set (in Dreamweaver CS4) which, if I can get it figured out, will eventually be used as a calendar on a client's web site. You can see the beginning of the project here:
    http://www.rieradesignco.com/calendarlist_spry.html
    My question is, can I put two or more fields on one row? Specifically, I would like the part that looks like this...
    3
    [WED]
    Fusion
    ... to look like this:
    3   [WED]   Fusion
    I tried simply moving the fields (in Design View) so that they looked like they would be in the same row, but as you can see, that didn't do the trick. (You can see what I did here, in the highlighted part of the screenshot:  http://www.rieradesignco.com/spryquestion.jpg). I also tried nesting a table within the table on my html data document that contained the three fields I needed - it worked okay, but that just makes the table more difficult to work with. I don't want to simply type the three items into one field, because it will be a long list and they all need to line up perfectly.
    Is there another way to do it?

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

  • Is there a way to put a lock on the ipod from itunes?

    is there a a way to put a lock on the ipod from itunes?

    mvilla143 wrote:
    is there a a way to put a lock on the ipod from itunes?
    NO.  You have to set a pass code.
    If you have an iCloud account, and if you set up Find My Phone, and if your iPod is turned on and if your iPod is connected to a WiFi network you can remotely wipe the device, or you can make it play a sound, or you can sent it a message....

  • Is there a way to put a password on the sim of iphones?

    As talk of the iphone 5 is increasing, I wonder if apple will come up with a way to put a password on the SIM CARD of iphones? 
    My iphone was stolen recently and calls were made before I got to report it missing to ridiculous charges!  I was gutted to have lost my iphone and at the time didn't even think about someone using my pay monthly phone account!!  With old school mobile phones if you put a password on it, this carried over to any handset you put that sim in.  But with iphones this is not the case, the password is ONLY on the phone!  So while a thief may realise that the phone is useless, they have access to the sim in any handset and if it is a pay monthly phone, as the majority of smartphones tend to be now, anyone can use the account until it is blocked, either by reporting it missing or my the phone company for high charges. 
    If apple is to remain the top supplier of smartphones I think finding a solution to this is vital. 

    Perhaps it has potential as an app but I definitely think it should become a feature of all iphones. 
    Phone companies are changing their terms and conditions to deal with such charges as so many iphones are being stolen recently, and unfortunately this results in the customer being liable for the charges. 
    As technology advances surely it should be making fraud more difficult instead of the opposite...??
    Many thanks for your response, I have sent feedback

  • Using iOS 7 on my iPad, is there a way to put an event into the calendar without having to scroll down to calendar and select "home" every time?  My friend's iPad retains that setting but mine doesn't .

    Using ios7 on my iPad, is there any way to enter a calendar event without having to scroll down to calendar and selecting "home" every time?  My friend's retains that setting, bu mine won't .

    Settings>Mail, Contacts & Calendar
    Scroll till you see calendar and set default calendar to the one you want.

  • How do I send a .pdf file in the body of email, not as attachment?

    Hello to all you MAC geniuses out there. I am using Pages to design flyers for my business. Then exporting them to a pdf file and trying to figure out how to send them in the BODY of an email and not an attachemnt that they have to open. Not really sure if this is a mail or pages question. It is probably a very simple step I am missing, but never the less can't seem to fiugre it out. Thanks in advance!
    Genn

    You must take into consideration that HTML & PDF are very different formats with conflicting purposes: HTML is by design intended for flexibility in appearance in such things as font & location of displayed elements, & has no fixed page size. PDF is intended to produce WYSIWYG documents, exactly the same regardless of platform, but requires either the Adobe Acrobat application or a PDF plug-in to do so.
    Because of this, there is no way to convert a PDF document into HTML that will completely preserve the PDF's appearance. You can more or less force elements into the same relative position using tables & other HTML features, but pagination cannot be preserved, since no HTML formatted documents will have page breaks.
    You also should consider that the appearance of an email message depends on the application used to view it. Most email, including what Mail generates, follows a standard known as MIME 1.0. MIME is designed to identify each element in the message such that different applications can process them according to their capabilities. Thus, since Mail knows how to display image files like gifs, tiffs, or jpegs, they will be displayed as if they were embedded in the text if the MIME tags indicate they should be. Anything Mail doesn't know how to process into displayable text or images, such as PDF's, will be displayed only as an attachment. The same will be true for other email reading applications.
    IOW, email is not WYSIWYG. Some apps will show displayable items inline, some won't, even if the MIME type is displayable on your Mac in Mail.
    There are several ways you can deal with this. You can try to convert the PDF into HTML, as suggested earlier. You will probably have to tweak the HTML so generated with an editor to get the best results, & deal with such things as pagination, image conversion or resizing, so-called web safe colors, etc. (PDF's are compressed & usually optimized for high resolution printing; to keep the message size down, you may want to convert images to lower resolution jpegs.)
    Or, you can convert the entire flyer to a jpeg or png image, which insures WYSIWYG output, but may make text harder to read.
    Alternately, you can compose a new message as plain text or as HTML that refers to the PDF's content & either includes it as an attachment or furnishes a link to a web page that contains it. This allows you to reach the widest audience, including those who do not have a PDF app or plug-in.
    Whatever you elect to do, remember that what you send in the email is actually a combination of content & instructions about how to deal with it, & that not all recipients will see it the same way, no matter what you do.

  • Is there a way to put more apps (increase the folder size limit) in iOS 5.0.1 on iPad2

    I read on some site that there is an app that allows one to increase the desktop folder size limit in iOS 5.0.1 on an iPad2 does anyone have any info please?
    Thanks for any thoughts in advance.....
    Dave

    Firstly, Thanks for taking the time to reply :-) 
    It's not that I want gazillions of apps, I just wanted to put more in each folder so I don't have to have multiple folders with similar names....Weather1, 2, 3,etc.... but I see your point and appreciate the thoughts.
    Dave

  • Are there any ways to put lumped elements into the electromagnetic simulations?

    Hi there,
    I am using the AXIEM electromagnetic simulator of AWR microwave office to design a nano electro mechanical system (NEMS). I want to replace some parts of my NEMS with corresponding lumped elements to simplify the problem. Do you have any solution? Thanks in advance.
    Anxaki

    If you start with a circuit schematic and layout, then you can use extraction:
    https://awrcorp.com/download/faq/english/videos/extract_video_tutorial.aspx
    Otherwise, if you are drawing everything in the EM simulator, you can place ports in the EM structure wherever it connects to lumped elements, then place the EM structure in a circuit schematic as a subcircuit, and connect the desired lumped elements to it there.
    Of course, this is if you intend to make circuit measurements like s-parameters. Is that what you need?

  • Is there a way to put links within documents in Pages

    Is there a way to put a link on the first page of a Pages document that would take you to a certain location within the same document or to another document?

    Barry,
    See "Using Hyperlinks and Bookmarks" on page 110 of the Pages User Guide PDF. You can download the guide from the Help menu.
    Jerry

  • HT5610 have lost all my itunes files, however they are on ipod. is there a way to put them back in itunes

    my itunes program lost all files.  howwever they are on the ipod.  is there a way to put them back from the ipod?

    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991

  • Is there a way to put a pdf on newsstand without using iBook?

    I have some travel pdfs that i'd like to access on my iPhone 4. Is there a way to put them directly onto newsstand, without having to download iBooks (and use up valuable space)?
    Thanks!

    Get a free online storage account (box.net, dropbox, sugarsync, google drive or whichever of the dozens of free offerings you like - I use box.net most of the time and it works well).  Then, put your PDF files up on the cloud storage account and only download the one or ones you need at any given time.  You can limit your transfers to only when you have a free wifi hotspot available.  That will minimize how much space you need to use for PDF document storage.
    As others mentioned, you have to load a PDF into an app to even see it - iBook if you like, or any of the dozens of PDF reader and editing apps available in the app store (Adobe Reader is available there, and is free).

  • Hey, is there a way to put own PDF's into the iTunes U App?

    Our professors gave us several lecture-PDF's but my University isn't a member of iTunes U. Is there a way to put these PDF's in the app anyway, to use the note-feature etc.?

    Or If there is any purchased music then you can try to transfer purchases
    http://support.apple.com/kb/ht1848
    If you're in the US you can reload purchased music
    http://support.apple.com/kb/ht2519

  • Is there a way of putting firefox bookmarks folder on the dock

    Is there a way of putting firefox bookmarks folder on the dock. not just one bookmark. i have done that. but i want all of them in stack or something.. similar to how windows did it in the start menu. its annoying that you have to open firefox first to access your links.
    i got my first imac yesterday and loving it!!! albeit the text is a bit small but i have found the zoom!
    thanks in advance

    Perhaps you don't know how to bring icons into the Firefox  Toolbar. You can put many things up there, including Bookmarks. You can also remove an icon or rearrange the order of icons.
    From View>Toolbars>Customize
    Here is the Bookmarks icon (next to the History icon) from which you can open all your bookmarks directly. And if you can remember a keyword, it will find that one, or any others that come up with that keyword. It's really quite convenient to use and will stay updated with any new bookmarks that are added.
    This is showing the Bookmarks open, which can be closed by clickng on the small x.

Maybe you are looking for

  • ERROR IN PCUI WHILE EXECUTING LAYOUT

    Hi All, I have done the customization in PCUI. When I m going to Tcode CRMC_PCUITOOLS the system is throwing this error. I m displaying thuis error here                                                                                The URL http://inc

  • Add a favicon to iweb via the HTML snippet...how?

    Is there a way to add a favicon to iweb via the HTML snippet? My search on google has found many ways to do it by editing the published files, but this is more work than it is worth (since it needs to be done on every new publish). Any ideas? thanks

  • "Available" contacts NOT available

    Why is it that my contacts that say are available are actually NOT available?  Whenever I log in it's the same set of people that are said to be available.

  • Problem moving to icloud

    Anyone having trouble moving their mobile me account to icloud?  Everytime I try it does not allow me, says the server is too busy... Anyone else experiencing this?

  • Is it possible to have an iphone without access to the internet?

    I would like an iphone but I don't want to have access/pay for the internet all the time. I don't know if it's even possible to but an iphone without it though.