SmartForms and generate PDF

Hi Gurus,
How do I generate interfaces generated in SmartForms and generate PDF. I want to play each iteration of my loop on one page of PDF?

Hi,
You need to use FM 'CONVERT_OTF_2_PDF' to convert smartform to PDF.
Please refer below link for code sample.
[http://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat|http://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat]
Thanks,
Archana

Similar Messages

  • How to?? show smartform and generate pdf at the same time

    hi experts,
    how can i show the smartform and generate  a pdf at the same time?? i have a control parameter gtotf in X and i generate the pdf but i want to show the smartform at the same time??
    thx in advance

    Hi...
    call fm <sf function name>
    exporting...
    importing..
    tables..
    now in the outputparam set the getotf as 'X'.
    call the same FM again and get the otf data.
    call fm <sf fm name>

  • Smartform and webform PDF

    hi All,
    I am a R/3 programmer and i am assigned a query of ESS which is developed in BSP and HTMLB. There is a smartform and that is not picking up the values properly so i m asked to sort that problem out. Basically they have designed the form such a way that once i go to that page and that i push the 'Print' button, the output of the form comes straight in the pdf format. Now generally there is a call 'SSF_FUNCTION_MODULE_NAME' to call the form in abap, is it the same in BSP??
    also if it is so i did not see the call in my forms. So is it possible to conver the OTF straight to PDF without calling the smartform . I knw its confusing but i have tried to put it as clear as i can.
    please ask me further questions if u feel the need.
    thanks in advance,
    Reena..

    hi
    good
    did you debug the program properly?
    did you see how the data flow from abap to bsp?
    did you check wheather there is any javascript they are using as the inteface between ABAP and BSP page ?
    go through this links, hope this ll give you the idea about Smartforms implementation in BSP.
    /people/thomas.jung3/blog/2004/09/20/bsp-in-action-kimball-international
    If you have any further query feel free to  mail me.
    Thanks
    mrutyun^

  • IWDPDFDocumentCreationContext and generating PDFs

    Hallo all, I have the following case where I have some "unclear" topics. If I have WebDynpro app with a screen/form where certain data is filled and then I want to generate pdf document out of this data what is the correct way to do that? I know there is an interface available but - what format and what kind of data expects
    setData(OutputStream dataStream)
    Provide the dataStream that should be contained within the PDF document.
    OutputStream of what? I have my values of the parameters in WDContext and my xdp template is available. how should I map them correct? Should I go through generating xml out of the available values within WDContext, then using ejb? Isn't there clearer way since everything is available within the WebDynpro?

    Hi,
    I was trying to do the same thing. But there was problem while passing  template path/url.
    String path = WDURLGenerator.getResourcePath(
    wdComponentAPI.getDeployableObjectPart(),
    "CoopRepCompView_frmCoopReport.xdp");
    I also tried to get the path using <i>WDURLGenerator.getPublicResourcePath()</i>.  But <i>IWDPDFDocumentCreationContext.execute()</i> throws exception that <i>com.adobe.ProcessingError: Template used in PDF render operation is invalid or
    cannot be found</i>
    Can you please help me? Thank you.

  • Reports Builder: line width of a graphic and generated PDF

    Hello,
    I change the line width of a graphic but in the generated pdf the line width remains equal.
    Some pics:
    The graphic in Reports Builder:
    !http://i25.tinypic.com/20famuu.jpg!
    The xml code:
    <SeriesItems>
    <Series id="0" markerType="MT_BAR" borderTransparent="true" transparent="true"/>
    <Series id="1" markerType="MT_MARKER" color="#101df" lineWidth="9"/>
    <Series id="2" markerType="MT_MARKER" color="#101df" lineStyle="LS_DASH" lineWidth="9"/>
    <Series id="3" markerType="MT_MARKER" color="#b4045f" lineWidth="1"/>
    <Series id="4" markerType="MT_MARKER" color="#b4045f" lineStyle="LS_DASH" lineWidth="1"/>
    <Series id="5" markerType="MT_MARKER" color="#0" lineWidth="9"/>
    <Series id="6" markerType="MT_MARKER" color="#0" lineStyle="LS_DASH" lineWidth="1"/>
    </SeriesItems>
    The graphic in the PDF report:
    !http://i25.tinypic.com/2emq3b5.jpg!
    Why in the PDF report the size is different?
    Thanks in advance and sorry for my english...

    To procede, omit the "(nil)" argument and you should be fine for that line, or specialize the method in question.
    I tried this, but I got error messages pointing to a function that uses the fontInstance pointer. The function is in the form of:
    EstimateStringWidth(WideString run, IFontInstance* fontInstance)
    and the error tells me that the line:
         totalWidth += EstimateStringWidth(charBuff, fontInstance);
    has no matching function.
    Also, most of the samples in the SDK creates a IFontInstance using an InterfacePtr.
    I tried this approach because solutions.pdf suggests this method to estimate text widths... I want to measure the text width of a composed line to determine the raggedness (degree of whitespace left on the end of each line) of a paragraph. But with this issues, am I better off using the GetWidth method of IWaxLine to get the width.
    Now, my next question would be, can I get the estimate width of the line if I change the properties of the paragraph, ie. justification settings, without actually composing the text in the ui. I need this so that I can compute for the optimal settings to changed so that the degree of raggedness of the paragraph would be less than the original.
    Thanks again!

  • How to print the top of page part along with the ALV list and generate PDF

    HI all,
             I have created one ALV by using oops concept .
             and also am able to get the top of page where I have One standard logo on the right hand side
             and some details on the left side .
               Now my requirement is to while printing the list the logo and other top of page details should appear
               In the PDF output but currently while am pressing the print preview button only the alv data is coming
              am already using the method
        handle_top_of_page
          FOR EVENT print_top_of_page
                 OF cl_gui_alv_grid,
    may be am missing something ... How to get the top of page along with the logo printed ?

    Hi  Surya,
    After generating the grid display  click on print button,
    a spool number is generated. capture the spool number and convert it to pdf using the fm:
    CONVERT_ABAPSPOOLJOB_2_PDF  and save the file
    Hope this will solve your problem.
    Regards,
    R K.

  • Payslip With Pe51 Add Logo And Generate Pdf File

    Hi experts!!
    We have the pay slip configured with PE51. It's working fine but it doesn't have logo or lines, at the moment we use pre-printed sheet when we print the payslips for the employees.
    Now we need add a logo and create the output as a PDF. To achive this I have been told that I have to create a smartform with the logo.
    How I should create the smartform from PE51 to add the company logo?
    How I can create the PDF output?
    After doing the changes, do we need customize something else to execute the correct smartform payslip from PC00_M04_CALC_SIMU?
    Kind regards,
    Julian.

    kindly check this thread
    Client's LOGO on the PAYSLIP
    Best Regards

  • Open idml file and generate pdf

    Hi All,
    sorry for my bad english but i'll try :-)
    we have an indesign server installed. it's possible or give it a workflow where we can opening a existing indesign file oder file.idml? and when it's possible: consist the chance to generate or printing an pdf from the file?
    thanks for the answers.
    stephan

    Hi Bernd,
    thanks for this info.
    did you have a workflow for me. i've searched for tutorials and how to's round about indesign server. i've searche also with a adobe id on the customer support but i did'nt find anything...
    Our way is: existing indesign file..-->export to .idml..->and how can i with the indesign server open this .idml..->read them (XML) and create an PDF?
    Thanks and creetings

  • Embed External CF Generated PDF

    I currently run CFMX and generate PDF's from our development
    server running CF7.x The data, etc is on the same server as CFMX.
    This works OK. However, I need to embed the resulting PDF in a page
    on the CFMX site. I've tried iframe, div and embed tags, but the
    url.id variable is not being passed.
    Any ideas? Thanks in advance, MGrey

    Hello Ivaylo Mutafchiev,
                                           There is no way we can control the fonts in the created PDF / while creating the PDF using the class cl_document_bcs in your PDF creation logic.
    You can try some other approach of creating PDF from the Smartforms OTF stream data .
    Try using the follosing FM for the PDF creation and sending email:
    CONVERT_OTF_2_PDF
    CONVERT_OTF_AND_MAIL
    SO_OBJECT_SEND
    CONVERT_OTF_AND_MAIL_NEW (Try this but this FM still uses  the class that you are using currently. But give it a try and see the results)
    Hope this answers your question.
    Thanks,
    Greetson

  • Embedding Fonts in PostScript and/or PDF

    Under 10.3 the Print dialogue had a Save As File option which allowed the embedding of fonts in PostScript. Choices were All, All but Standard 13 and such. This made sure that the PostScript (and generated PDF) files would render properly on systems with a different set of fonts.
    Under 10.4 this capabilty seems to be either lost of so well hidden that I have not been able to find it. Did I miss it?
    How does one embed fonts in PostScript and/or PDF files? Is there a Tiger options somewhere? Is this a case of having to use a third party utility? Like the full Acrobat set or something else.

    AFAIK, the system PDF creation always embeds fonts.
    At least in the few tests I've done, using the Save
    as PDF option in the print dialog produced PDF files
    that show in Acrobat as having embedded font subsets.
    Thanks. I checked with the same ressults but the problem I am having seems to be related to the Type 3 custom fonts that are in LaTEX generated files. The Type 3 fonts do not seem to survive being saved as PDF. They seem to cause some confusion in DEVONthink and I was hoping to get files that could be scanned by it.

  • Bookmarks not created when generating pdf

    Hello
    I am using 'robohelp for html' and generate pdf files as user guide from existing word format user guide.
    I import than and  create bookmarks for the TOC of the word user guide.
    Now I generate pdf. But the generated pdf file, do not show bookmarks, I also checked in View-Navigation Panels- > but no bookmark icon is there.
    I want bookmarks when I create pdf for my documentaion,

    Actually my concern is that the elements, I would like to add like bookmarks in the PDF files are in some files of the book, but not all.
    I feel that the problem is there.
    But why i see some of elements, and not all ?
    You do not have to physically use the elements in each file of the book; however, all the files in the book should use the same set of elements. My guess is that FrameMaker does not search through all the files in the book when it generates the list of available elements. It probably creates these things from the first file in the book.
    Do all the files in the book use the same set of elements? If not, make sure the first file in the book uses the set that includes all the elements you want to be in the bookmarks.
    In my opinion, all the files in the book should use the same set of elements. So, I suggest opening a copy of your template, select all the files in the book, and import the element definitions from the template to the files.

  • How can we generate PDF file by passing a query from package to RDF?

    Hi Everyone,
    I am beginner as SQL Developer, I am stuck in one issue , that is regarding generating PDF or Excel file according to user parameters passed.
    Detail of Requirement :
    I have created one package it contains 2 functions and 1 Procedure .
    Also created xx_report.rdf for generating in PDF .
    getQuery Function Returns Query as output.
    getExcelFile function gets query as input and generate  and return CLOB file as OUTPUT.
    xx_Report  Procedure will take input CLOB file and export it to EXCEL file and save under a DEFAULT Location.
    When User Pass Excel as parameter we can generate the file , but now if User Passes the Parameter for PDF FILE then  client wants  to invoke RDF  passing same query(getQuery) to xx_Report.RDF and generate PDF from it .
    We have already Created the RDF for xx_Report
    How it is possible? to invoke RDF from PL SQL Package.
    (We are doing like this as in future if there are any changes in query we dont have to change in RDF or in Package )
    If not then please let me know the other way where i can get the PDF or EXCEL file as output according to users choice from RDF.
    ( We are not using XML PUBLISHER nor 3rd party tools)
    Only Oracle Reports Developer 11g 1.2.3.
    Please help me in this ....its urgent.
    Thanks and Regards,
    Harshil .

    Hello Narendra,
    (Specific to SAP POS General Merchandise)
    A  Tlog is binary file created by selling items via SAP POS. The file must be converted into ASCII by the use of a utility called cvtlog.exe or trickled to other systems. Once the tlog is converted to ASCII it contains all the information required to feed downstream systems such as ERP, POS DMu2026.etc.
    Hope that helps
    Angelo
    For detailed information on SAP POS dataflow and TLOG Formats  please see this link
    http://help.sap.com/saphelp_pos21/helpdata/en/be/5234a9eb44494ea0807925211e74c6/frameset.htm
    or navigate to Help.sap.com  and follow the below links
    Documentation -> SAP for Industries -> SAP for Retail

  • Generating PDF for Any document No in SAP

    Hi All,
    My requirement is to create a  general Zprogram, which requires to pass "DOCUMENT No , Company Code, Fiscal Year"
    and generates PDF file corresponding to that document inn SAP.
    Though their is an standard program which requires to pass "SPOOL No" and generates the PDF.  But How to link Doucment no with the spool, I amnot bale to figure out.SO please do the Suggest.
    Thanks in Advance.

    Basically in FI , spool is generated for payment advice and check.
    Now generally the payment advice is printed and sign off and then given to vendors.
    But sometime it also requires to send payment adive by mail because of miss place of advice from vendor end.
    Now user can eaily search out the payment documnet no corresponding to that paymnet.
    Now gain they need to generate a new spool, print it out ans scan and finally send it via mail.
    So the requiremnt is to generate a z program in which if a uaser passes a Document No, Fiscal Yera and company code. and the required PDF got generated.
    Hope now exactly got my requiments.
    Regards

  • 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

  • Still can't generate pdf

    Get error;
    Saving '2.2_User_Guide.doc'...
    Generating '2.2_User_Guide.pdf'...
    Failed the generate PDF file 'C:\Documents and Settings\My
    Documents\Technical Writer\Help files\User Guide\Printed
    Docs\2.2_User_Guide.pdf'...
    Failed to save '2.2_User_Guide.doc'...
    Cleaning up temporary files...
    Internal error encountered, Failed to generate Printed
    Documentation.

    Support says:
    Since you’re unable to generate PDF in RoboHelp 7, here
    are the possible
    troubleshooting steps that we could do:
    1. Make sure that you are already running on the latest
    version of
    RoboHelp 7 (7.0.2). To check, go to Help > About RoboHelp
    HTML. If
    you’re not running on 7.0.2 yet, please download the
    patch from the link
    below:
    http://www.adobe.com/support/robohelp/downloads.html
    2. Open Microsoft Word 2003. Go to Tools > Macro >
    Security and change
    Security Level to Low.
    3. Launch RoboHelp and generate PDF.
    4. Single Source Layouts Pod in RH, right click on Printed
    Documentation
    and choose New layout. Save the new layout and generate from
    there. See
    if you would still get the same behavior.
    5. If issue still persists, it’s possible that you have
    a corrupted
    project. Please delete the xpj and the cpd file of your
    project. For
    additional information about this, please refer to the link
    below:
    Opening a Corrupt HTML Help Project
    http://www.adobe.com/go/rb_34906
    The step for RH X5 is still applicable for RH7.
    Do you have administrator user account on your machine? Do
    you have any
    previous version of RoboHelp installed on the same machine?

Maybe you are looking for