Emailing Generated PDF Document as Attachment - Error

Hi Forum,
A custom Print Form was developed using SFP Transaction and trying to send the Form to the vendors using an email attachment.
1. Used cl_bcs class for sending email. Attachment data(Generated PDF Output) was moved to solix_tab .
2. In the email attachment I see a PDF attachment with some funny characters and not the PDF Document I see in the print preview
Please advice me what I should do to the actual PDF document in the email attachment .
Thanks,
Vijay.

Vijay,
Please try this solution.
Characters that are not included in the ASCII character set are not displayed correctly due to an incorrect encoding setting of the browser.
During the display of the overview in the PDF format, errors may occur in certain versions of the Adobe Acrobat Reader. In this case, a blank page is displayed.
The problem is caused by a program error.
Adobe, Acrobat, Reader, PDF
Reason and Prerequisites
The problem is caused by a program error.
SAP WebAs sends incorrect encoding information to the browser so that the latter does not switch to the correct encoding utf-8 automatically.
Some versions of the Adobe Acrobat Reader may have problems with that, for example version 6.0.
<b>Solution</b>
Import the corresponding Support Package.(presumably SP4)
Alternatively:
The revised version with various changes in the translation is provided by the attachment of this note.
Refer to the detailed description in Note 13719 on how to download and implement the corrections into your system.
Thanks,
Raj.

Similar Messages

  • Generate PDF documents from Oracle PL/SQL

    Hi All,
    we are working on a PL/SQL project, named PL/PDF, for generate PDF documents from Oracle PL/SQL language. We are looking for PL/SQL programmers for beta testing. If you are an enquirer in this topic, please send an email to [email protected]
    Thanks,
    LL

    You will need to use form fields. You may be able to use adjustible size form fields in Designer. You might try to ask in the Designer forum for help.

  • FILE- EMAIL with pdf as an attachment and message body.

    I have a scenario where FILE to EMAIL with PDF as an attachment; I also need to send to have Email body with some text. For this i have tried using Mail Package then i wont be receiving any attachment. If I use both Mail package + Keep attachments i do not see any attachments in mail.
    Let me know  the possible ways that can used in the current scenario where i need to send pdf attachment along with messsage body.
    Thanks in advance,
    nik

    Hi Nik
    To get the customized email body you need to use the Mail package. Keep attachments tab should be selected
    Now sending PDF attachment - Do you need to send data passed by File adapter as pdf attachment or File adapter is reading message other than this attachment.
    Case 1. File adapter send message that you need to send as email attachment. Then using mail package use
    <content_type>application/pdf</content_type>
    you can even add name of the file going as an attachment.
    <content_type>application/pdf;name="filename.pdf"</content_type>
    Secondly you can use the MessageTransformBean at communication channel as an additional standard module.
    Case2: You need to pick file from file adapter as attachment. that is possible only when you use NFS with this file you read as source and attachment has be of same name type eg: you read input.txt then attachment has to be input.pdf
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 7, 2008 5:46 AM

  • Can you email completed PDF form as attachment by clicking on hyperlink you create?

    Can you email completed PDF form as attachment by clicking on hyperlink you create?

    This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Thanks,
    Josh

  • Error while generating PDF document

    I am using RH 8 and cannot generate a Printed PDF document.
    here is the error message output
    Warning: style (p.Table) is not defined and will be mapped to 'Normal'.
    Processing 'Setting-up and Assigning Roles'...
    Warning: The Word Document became corrupt when attempting to append following malformed topics:
    TimeTEQ\Chapter1-Administration_Functions\First_Topic.htm
    TimeTEQ\Chapter1-Administration_Functions\SettingUp_the_Parent_Organisation.htm
    TimeTEQ\Chapter1-Administration_Functions\Setting_up_and_Assigning_Sites.htm
    TimeTEQ\Chapter1-Administration_Functions\Setting_Up_Departments.htm
    TimeTEQ\Chapter1-Administration_Functions\Setting_Up_and_Assigning_Roles.htm
    Failed to build 'TimeTEQ'...
    Failed to build one or more chapters.
    Building 'Glossary'...
    Failed to build 'Glossary'...
    Building 'Index'...
    Updating list paragraphs...
    Updating images...
    Updating page numbers...
    Updating page headers...
    Updating Table of Contents...
    Updating Index...
    Saving 'Printed_Documentation.doc'...
    Generating 'Printed_Documentation.pdf'...
    Failed the generate PDF file 'C:\TimeTeq_Documentation_Aug2009\TimeTEQ_OldHelp\user guide\Timteq_test_project\!SSL!\Printed_Documentation\Printed_Documentation.pdf'...
    Failed to save 'Printed_Documentation.doc'...
    Cleaning up temporary files...
    Internal error encountered,  Failed to generate Printed Documentation.
    Starting to build Printed Documentation...
    Printed Documentation processor 8.0.0.203
    Building C:\TimeTeq_Documentation_Aug2009\TimeTEQ_OldHelp\user guide\Timteq_test_project\!SSL!\Printed_Documentation\Printed_Documentation.doc ...
    Preparing to create Printed Documentation...
    Clearing output folder...
    Preparing files for Print Document...
    Copying files...
    Updating files...
    Finished preparing in 0 seconds.
    Preparing environment...
    Printed Document Generator Environment: Word 11.0.5604,  OS 5.1.2600, RAM 768 M Bytes
    Building Printed Documentation 'Printed Documentation'...
    Building Single Document 'Printed_Documentation.doc'...
    Building 'Title Page'...
    Building 'Table of Contents'...
    Preparing to build chapters...
    Building 'TimeTEQ'...
    Building 'Chapter1-Administration Functions'...
    Processing 'Overview- Understanding Sites, Departments & Roles'...
    Processing 'Setting-up a Site Group'...
    Processing 'Setting up a Site'...
    Processing 'Setting-up and Assigning Departments'...
    Warning: style (p.Body_Text) is not defined and will be mapped to 'Normal'.
    Warning: style (p.Step2) is not defined and will be mapped to 'Normal'.
    Warning: style (p.Step) is not defined and will be mapped to 'Normal'.
    Warning: style (p.spacer) is not defined and will be mapped to 'Normal'.
    Warning: style (p.Tableheader) is not defined and will be mapped to 'Normal'.
    Warning: style (p.Table) is not defined and will be mapped to 'Normal'.
    Processing 'Setting-up and Assigning Roles'...
    Warning: The Word Document became corrupt when attempting to append following malformed topics:
    TimeTEQ\Chapter1-Administration_Functions\First_Topic.htm
    TimeTEQ\Chapter1-Administration_Functions\SettingUp_the_Parent_Organisation.htm
    TimeTEQ\Chapter1-Administration_Functions\Setting_up_and_Assigning_Sites.htm
    TimeTEQ\Chapter1-Administration_Functions\Setting_Up_Departments.htm
    TimeTEQ\Chapter1-Administration_Functions\Setting_Up_and_Assigning_Roles.htm
    Failed to build 'TimeTEQ'...
    Failed to build one or more chapters.
    Building 'Glossary'...
    Failed to build 'Glossary'...
    Building 'Index'...
    Updating list paragraphs...
    Updating images...
    Updating page numbers...
    Updating page headers...
    Updating Table of Contents...
    Updating Index...
    Saving 'Printed_Documentation.doc'...
    Generating 'Printed_Documentation.pdf'...
    Failed the generate PDF file 'C:\TimeTeq_Documentation_Aug2009\TimeTEQ_OldHelp\user guide\Timteq_test_project\!SSL!\Printed_Documentation\Printed_Documentation.pdf'...
    Failed to save 'Printed_Documentation.doc'...
    Cleaning up temporary files...
    Internal error encountered,  Failed to generate Printed Documentation.

    There is a warning about a malformed topic. I have seen projects  where there is nothing wrong with the topic but where the machine needed more RAM. What are the basics of your PC?
    Also try turning off PDF and generating a Word document instead. If that works, PDF from there. Does that work?
    See www.grainge.org for RoboHelp and Authoring tips

  • Email uploaded PDF document

    Hi,
    I want to email PDF  document uploaded using FileUpload UI element as attachment.
    I have seen many posts on this, but not found solution yet.
    One workaround suggested is storing uploaded document on server and then sending the document by reading it from specified server path. But there are few problems with this approach. As many users will be accessing this application unique name needs to be generated for each uploaded file.Also, after sending the file it should be deleted from the server.
    Is there any way uploaded document (in binary form) can be send via mail without storing it on the server?
    Thanks,
    Apurva

    Hi Apurva
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    just go through this  link hope u will find ur answer
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Oct 6, 2008 9:29 AM
    Edited by: Ruturaj Inamdar on Oct 6, 2008 9:30 AM

  • Read Time Out Exception while generating PDF Document

    Hi,
    We are working on Netweaver 04,Patch SP 16 and trying to generate a Non Interactive PDF on ADS Version SP 14 for printing purpose (Eg.Invoice). This extracts data using EJBs. We used Interactive Form UI element which has various sub elements like static image, etc.
    We are using Acrobat Reader 7.0 for generating PDF.
    The form fetches the records and prints perfectly in the Development System, While creates a 'java.net.SocketTimeoutException: Read timed
    out ' Exception in Production.
    Time Out period for web service container is set to 180 sec in both Dev and Prod.
    Default trace in the production is continously throwing following  error."com.adobe.document.XMLFormService#com.adobe/AdobeDocumentServices#com.adobe.document.XMLFormService
    Thread[XMLForm.exe Error Reader,5,SAPEngine_Application_Thread[impl:3]
    _Group]##0#0#Error##Plain###Service XMLFormService: Native process
    (PID=0) /usr/sap/NWP/JC00/j2ee/os_libs/adssap/XMLFormService/bin/XMLForm.exe terminated abnormally with error code 127# "
    We are running following services in both Prod and Dev for using ADS.
    1. IIOP Provider
    2. Data Manager Service
    3. Data Font Manager Service
    4. XML Module
    5. Document Services Configuration
    6. Document Services License Support Service
    Could some one please  let us know what could be the problem?
    Thanks And Regards,
    Apeksha.

    Hi Markus,
    Thanks for the prompt reply. However, SAP notes 867502
    and 811342 speak about PDF manipulation services, which we are not using in our application. We need to create non interactive form which simply reads the data from the DB and displays it to the users for printing.
    The other 2 notes-826419 and  849851 talk about SP 10,11 and 12, while we are using SP14 for Adobe Services and SP 16 for Netweaver Java Stack.
    The application works perfectly on the Development Server, but not on Production Server. Though all the configurations are same on both the servers, still can you suggest what all things need to be considered ?
    Thanks and Regards,
    Apeksha

  • Create a PDF document and attach it to a service order business transaction

    Hi all,
    I have following requirement. For a particular service order, i am reading the entire survey details and then my requirement is that i want to convert this details into a PDF document and then attach the document to the same service order.
    Right now, i have created a SMARTFORM which prints the required details. I got the OTFDATA of the smartform and now my problem is to convert it into PDF and then attach it to the service order .
    Kindly help.
    Points will be rewarded.
    Thanks in advance,
    Karan

    business object
    business_object-instid = guid.
    business_object-typeid = 'BUS2000116'.
    business_object-catid = 'BO'.
    PROPERTIES
    ls_loio_properties-name = 'DESCRIPTION'.
    APPEND ls_loio_properties TO l_loio_properties.
    ls_loio_properties-name = 'KW_RELATIVE_URL'.
    ls_loio_properties-value = 'Test'.
    APPEND ls_loio_properties TO l_loio_properties.
    CLEAR ls_loio_properties.
    ls_loio_properties-name = 'DESCRIPTION'.
    APPEND ls_loio_properties TO l_phio_properties.
    ls_loio_properties-name = 'KW_RELATIVE_URL'.
    ls_loio_properties-value = 'any name'.
    APPEND ls_loio_properties TO l_phio_properties.
    ls_loio_properties-name = 'LANGUAGE'.
    ls_loio_properties-value = 'EN'.
    APPEND ls_loio_properties TO l_phio_properties.
    FILE_ACCESS_INFO
    FILE_SIZE = l_filesize.
    mimetype = 'application/pdf'.
    file_name = 'any name'.
    binary_flg = 'X'.
    FILE_CONTENT_BINARY
    pass the binary content
    RAW_MODE
    X
    package_id  -> to create package id
    CONSTANTS: c_objtype   TYPE skwf_ioty VALUE 'P',
               c_sign      TYPE sdok_qusgn VALUE 'I',
               c_op        TYPE sdok_cxop VALUE 'NX'.
               c_class     TYPE sdok_class VALUE 'BDS_POC1'.
    DATA: appl TYPE skwf_appl.
    DATA: cspc TYPE sdok_ent VALUE 'CRM'.
            CALL FUNCTION 'CRM_KW_BOR_SET'
              EXPORTING
                iv_business_object = business_object.
            ls_selectors-type = c_objtype.
            ls_selectors-attribute = 'LANGUAGE'.
            ls_selectors-sign      = c_sign.
            ls_selectors-op        = c_op.
            APPEND ls_selectors TO lt_selectors.
            ls_selectors-type = c_objtype.
            ls_selectors-attribute = 'BDS_DOCUMENTTYPE'.
            ls_selectors-sign      = c_sign.
            ls_selectors-op        = c_op.
            APPEND ls_selectors TO lt_selectors.
    KW Framework: Context Treatment
            CALL FUNCTION 'SKWF_CTX_CREATE'
              EXPORTING
                context_class      = 'CRM_CTXCL'
                x_reduce_to_one    = reduce_to_one
                description        = 'Default Context'
                x_transient        = 'X'
              IMPORTING
                context_id         = lv_context_id
              TABLES
                instance_selectors = lt_selectors.
    KW Framework: Package Handling
            CALL FUNCTION 'SKWF_PKG_DYNAMIC_CREATE'
              EXPORTING
                package_desc   = 'PAKET'
                x_transient    = 'X'
                appl           = appl
                cspc           = cspc
                context_id     = lv_context_id
              IMPORTING
                new_package_id = l_pkgid
                error          = l_error.

  • Set Document Restrictions to generated PDF Documents

    Hi,
    does anyone know, how to set PDF Document Restrictions (like Printing, Copying...) to the PDF Documents generated by BEx Broadcaster? Thank you for advices.
    Erik

    Hello PAHU,
    Thanks for coming to my aid again.
    Some of the things I'm scanning are records that need to be good as photocopies because I will have to email them or copy-or-print and snail mail them.
    That's interesting about how the PDF file is made. I thought PDF would be a native format and chose it for "compatibility". I'm not sure if everyone have apps that can handle TIFFs (especially on the PC side). My recollection from scanning in the 90s with my Paperport is that TIFFs can print "huge" or "teeny" depending on the settings it was scanned at.
    Using your advice scanning with Preview set to B&W as TIFF and PDF and both times the files were smaller. Thank you so much.
    I also tried converting the TIFF to PDF in Graphic converter because I can batch convert documents that way. However, I noticed that the printouts of the B&W scans are rather poor quality. On the other hand the B&W scans print out as the whole page and not with a white border like the color scans do.
    The B&W pdfs scan slightly smaller than the TIFFs. So that's probably what I will do for these documents.
    I will have to search out /experiment with the OCR for things that I can save as text when I get a chance.
    I have so much to learn about scanning.

  • JSP to Generate PDF Document

    Hi,
    I am developing a jsp system that needs to generate a pdf document for every page before proceding to the next on the click of a button.
    What i have now is itext but itext is a time taker! i have to literally code every page and extract values from my classes.
    What i would like is if there was such an api that could auto generate the jsp page into pdf since all the values will be there when the user clicks to procede to the next page.
    Would really appreciate help!!
    Thanks,
    Dev

    Try to find out more about Filters usage.
    It's a kind of wrapper that get executed when a user request a resources(page for instance) before the file(specified in form action) takes control, this is used to carry out common process to a group of pages without coding each piece of code in each page,
    AND when a response is send back, this same Filter get control to include or modified current response to client.
    I think that in order to parse the response and generate .pdf files(if the pdf for current page does not exist) you should write the html response in xml format. or at least you should use a component like JTidy that builds an XHTML-compliant page from a non-xhtml compliant page.
    In Filter implementation you should parse the response and transform it using Formatting Object Processor such as FOP or XING, or anyother
    Hope this help as starting point
    Regards
    OO

  • [adobe 11.0.09 | windows XP] error when open pdf document and persistent error message even if adobe is closed

    Hi
    I encounter a problem on a windows XP laptop using acrobat 11.0.09.
    When i try to open a .pdf document i get an windows error message.
    The document open well else, but i get persistent windows error message then, and i get them even if i close this document.
    When i look application event i have this :
    Nom de l’application défaillante acrord32.exe, version : 11.0.9.29, horodatage : 0xsyntpfcs.dll
    Nom du module défaillant : 7.5.19.5, version : 00001599, horodatage : "a long string"
    Code d’exception : 0x%7
    Décalage d’erreur : 0x%8
    ID du processus défaillant : 0x%9
    Heure de début de l’application défaillante : 0x%10
    Chemin d’accès de l’application défaillante : %11
    Chemin d’accès du module défaillant: %12
    ID de rapport : %13
    I try to uninstall / reinstall acrobat without change, this error message still stay when i open a pdf document.
    cordialy

    Hi ,
    I solve my problem :
    1- chkdsk /f to test the disk => nothing particular
    2- I use defraggler to defrag the harddrive ( was very fragmented)
    I thing this two step doesn't change anything.
    3- then i use Adobe Reader Acrobat Cleaner Tool and restart laptop
    4- Reinstall Adobe Reader.
    5- I just let reader11.0 folder in c:\program files\Adobe and delete other old reader folder.
    6- did same in c:\documents and settings\%username%\application data\adobe\acrobat\
    seems to work know
    will survey to be sure and back to confirm
    thank

  • Trouble emailing from PDF document

    I am trying to email straight from a pdf document using pdf reader and am getting operation failed. This is only happening with one of my users.

    I have a user who was emailed a pdf file, he opens in Adobe reader and clicks on the envelope to email it. He chooses Outlook and then he receives operation failed and it won't email. He could save it down or forward the email, but should be able to do it straight from the form. I have run the fix and we have even reinstalled reader. Hope this clears it up more. TIA.

  • Can I generate pdf document that has Acrojs functionality with the sdk?

    Hi, I was wondering if I can create a pdf document with Acrojs functionality in it from the sdk. I'm looking to see if I can create an application in C# that generates a pdf document with a form scripted with Acrojs. Is this possible? Thank you guys for your attention.

    >Until now, I could see the TOC on my PDF.
    Nothing has changed.
    Remember, iBA is not a PDF authoring tool.

  • Generate PDF documents from a template

    We need a solution for the following scenario soon.
    We need to create documents off of a template. The template is a pdf document with place holders in the text
    For example: Assuming that the following is the text in the template I am talking about
    Lorem ipsum dolor sit amet, $FIRSTNAME consectetur adipiscing elit. Sed risus orci, consectetur at malesuada euismod, $LASTNAME hendrerit ut turpis. Donec ullamcorper egestas condimentum. Ut eu nisi lacus.  
    We will create documents off of the above template by replacing $FIRSTNAME and $LASTNAME. The text needs to adjust as needed. In short, we don't want to use fixed fields for the text to be replaced.
    Can this be done? How?

    You will need to use form fields. You may be able to use adjustible size form fields in Designer. You might try to ask in the Designer forum for help.

  • File is damaged and could not be repaired, when emailed the PDF Document

    Hi i have the same problem , that what you have resolved, but it doesn't work for me...
    i.e, when i sent a mail from the below code , mail sent but when open it shows "**There was an error in opening this document. the file is damaged and could not be repaired."**
    can u please suggest to over come this problem.. and i m using IBM Websphere 8.
    please advice ....
    thanks alot in advance...
    here is the code :
    AstLogger logger = AstLogger.getInstance();
    logger.info(this.getClass(),"ReportBuilderUtils.sendMail Start....");
    boolean flag = false;
    try {
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    javax.mail.Session session = (javax.mail.Session) ctx.lookup(AstProps.getInstance().getWebCollectLoginMailSession());
    Message msg = new MimeMessage(session);
    InternetAddress addressFrom = new InternetAddress(from);
    logger.info(this.getClass(), "Report Builder Utils - Email From :" + from);
    msg.setFrom(addressFrom);
    String log = "";
    double tempFilesize=0;
    for(String emailId : recipients) {
    InternetAddress addressTo = new InternetAddress(emailId);
    msg.addRecipient(Message.RecipientType.TO, addressTo);
    log += emailId + ",";
    logger.info(this.getClass(), "Report Builder Utils - Email Recipients :" + log);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    logger.info(this.getClass(), "Report Builder Utils - Email Subject :" + subject);
    msg.setContent(message, "text/plain");
    msg.setHeader("Content-Type", "multipart/mixed");
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(message);
    logger.info(this.getClass(), "Report Builder Utils - Email Message :" + message);
    mbp1.setDataHandler(new DataHandler(new HTMLDataSource(message)));
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // constants to handle the large files
    if(tempFile.exists()){
    tempFilesize = tempFile.length();
    logger.info(this.getClass(), "Report Builder Utils - File Size :" +((tempFilesize/(1024*1024))) +"MB.");
    System.out.println("ATTACHMENT_SIZE ==>" +ATTACHMENT_SIZE);
    if(tempFilesize > ATTACHMENT_SIZE){
    flag = false;
    return flag;
    MimeBodyPart mbp_file = new MimeBodyPart();
    mbp_file.setHeader("Content-Type", "application/pdf");
    mbp_file.setHeader("Content-Transfer-Encoding", "Base64");
    mbp_file.setFileName(fileName);
    mbp_file.setDisposition(Part.ATTACHMENT);
    mbp_file.setDataHandler(new DataHandler(new FileDataSource(tempFile)));
    mp.addBodyPart(mbp_file);
    System.out.println("Mail Successfully sent to :"+recipients);
    msg.saveChanges();
    msg.setContent(mp);
    // even tried by placing here
    // mbp_file.setHeader("Content-Transfer-Encoding", "base64"); base64 is not case-sensitive i hope , i read out on some books
    Transport.send(msg);
    logger.info(this.getClass(), "Report Builder Utils - Email Send successfully...");
    flag = true;
    }catch (Exception e) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    e.printStackTrace(pw);
    logger.error(this.getClass(), sw.toString());
    AstLogger.getInstance().info(this.getClass(),"ReportBuilderUtils.sendMailAsAttachment End.");
    return flag;
    Edited by: 992445 on Mar 7, 2013 4:05 AM

    You need to get a new copy of the PDF.

Maybe you are looking for

  • Abap code in bw start routine

    Hi i need to reload the master data with out FM, i putted the comment on fm and relaod the data, now i having a problem, loading process is slow now as compair to before, when i was using with FM. i checked the mange on data target, it is show 112345

  • SAP HR IMG ABAP Error Help

    Hi, I am new to this site and I have a question. Recently, I had the "Vanilla SAP System" installed on a harddrive for my laptop. I am studying for the SAP HR Consultant Certification. However, the system doesn't have the training DB and I have to st

  • Scroll to top of page?

    Is their a way to make a button automatically scroll to the top of the page other than using anchors. I currently have a button setup on a master page that should scroll the browser back to the top of the page and have this applied to over 50 product

  • IPv6 - No buffer space available

    Anyone else seen this IPv6 weirdness: 6to4 tunnel to Hurricane Electric. Mac Pro is the router and tunnel endpoint (gif0). ip Protocol 41 passed through various routers/firewalls, etc. sysctl'd ipv6 forwarding on and RA. statically assigned /64 eithe

  • IPhoto 8.1.2 to 9.4.2 upgrade issue.

    My operating system is OS X 10.7.5. My old version of iPhoto was 8.1.2. Just purchased and installed iPhoto 9.4.2. All event names are still listed. 78 of the 90 events have a gray sunset with palm tree as their key photo which must be a default, it'