Adobe Forms, XML(PDF format) to PDF binary

Hi experts!
I'm working with Interactive Adobe Forms and the form function return the PDF in a XML format (xstring) through the parameter FPFORMOUTPUT-XML.
I need to save the PDF file (binary) without geting it through the "getpdf" parameter FPFORMOUTPUT-PDF.
Because the "getpdf" don't permit to show the user dialog print options.
How could I transform the XML(PDF) returned in binary PDF file?
Thank you all!

Hello Evaristo
You can make use of CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' and CALL METHOD cl_gui_frontend_services=>gui_download to achieve this requirement.
Regards
Sandy
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
               EXPORTING
                 buffer        = ls_params->es_output-s_form_output-xml
               IMPORTING
                 output_length = lv_pdf_len
               TABLES
                 binary_tab    = lt_pdf.
             lv_file_name = p_xml.
CALL METHOD cl_gui_frontend_services=>gui_download
               EXPORTING
                 bin_filesize = lv_pdf_len
                 filename     = lv_file_name
                 filetype     = 'BIN'
               CHANGING
                 data_tab     = lt_pdf
               EXCEPTIONS
OTHERS       = 1.

Similar Messages

  • Why can I no longer fill in additional information on my adobe forms on pdf. At time this was an opposition. It will only allow me to type limited information?

    Acrobat Reader
    Why can I no longer fill in additional information on my adobe forms on pdf. At one time you could insert an icon that would allow you to type in additional information. It will only allow me to put in limited information?

    Not a lot of information. Can you post a link to a sample of the form so others can see the how the form does not work.

  • Convert Adobe Form into Word Format

    Hi Friends,
    My question is very straight forward -:
    Is there any way / any Function Module to convert the adobe form into word format ? Is this possible ?
    Regards,
    Debi

    Hello, could you please elaborate a little more? Have you tried this? What was the result?
    I mean: Adobe forms are often very complex, I would like to know how does the result look like. I have no DMS/ DMS experience to try it myself so I thought you could describe some more details about this suggestion.
    Regards Otto

  • Send Adobe form as PDF via E-mail

    Hi,
    I am doing one interacive adobe form where i need to send that filled form in PDF format via email.
    I tried using below options but unfortunately its not working:
    1.I used "Email Submit Button" but its sending attachment as XML which I dont want.
    when reffred threads on this problem , they suggested to go to XML VIEW of this button and change SUBMIT FORMAT to "pdf" from "xml".... but in this case , that button is not working at all.
    2.I used below solution
    Use a regular form button:   Place a regular form button on your form .  Look on the Object Window for the button.  On the Field tag, towards the bottom will be a set of "Control Type" radio buttons.  Select the "submit" option.  There should now be a "submit" tab in the Object window.  Switch to the tab and on the "Submit As" pulldown select PDF.  But this is also not working.
    Your comments are helpful for me.

    Hi,
    Get your form data in XML format from Interface. There are some standard classes available to convert the XML to PDF and sending mail.
    Thanks,
    Revanth Naidu

  • Place the Adobe Form as PDF file in a URL

    Hi Experts,
    I have created an Adobe form and got the PDF data in the form of XSTRING now I need to place this as PDF file in the URL which I have generated programmatically. Not sure on how to do it. Any function modules or classes to place this as PDF file at a URL will be really helpful for me.
    Tried with HTTP* function modules and seems they are not working.
    Thanks for you help.
    Regards,
    Srinivas

    Hi Sai,
    Thanks for ur input.
    My requirement is not exactly the string with XML data, but the string with PDF data.
    I will try to explain my requirement here in detail.
    I have the adobe form triggering from the webdynpro. This form has different objects like, text fields, dropdowns, check boxes, radio buttons...etc and one SUBMIT button for which webservice is attached in the properties.
    User will fill all the fields and clicks on SUBMIT. When he clicks on the SUBMIT, the webservice should attach the filled PDF document at partner level.
    For this purpose, i need the string with PDF data and not the XML.
    WIth this PDF string again i should be able to re generate the PDF document which was filled by the user.
    If string with PDF data is not possible, Please suggest me the possible way of achieving this?
    Regards,
    Ram.

  • Download Adobe-Form to PDF-File in Background

    Hi,
    I have developed an Adobeform which should be processed with a SM37-Job in background.
    Is it possible to export the document as pdf to a Share on the filesystem?
    thanks & best regards
    Frank

    Uploading and downloading adobe forms in sap report program This thread contains the answer,
    let me extract it for you:
    1. Use the FM 'FP_FUNCTION_MODULE_NAME'
    * Get the name of the generated function module
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
         i_name       = 'ZAD_FORMNAME'
        IMPORTING
       e_funcname = V_FMNAME.
    2. Call the generated function module to generate the pdf.
    CALL FUNCTION lv_fmname
          EXPORTING
              /1bcdwb/docparams  = s_docparams
          IMPORTING
             /1bcdwb/formoutput   = s_form_output
          EXCEPTIONS
             usage_error   = 1
             system_error       = 2
             internal_error     = 3.
    3. The above structure 's_form_output' will have the PDF output in the XSTRING.
    4. Use the FM - SCMS_XSTRING_TO_BINARY to convert the XSTRING to binary.
    5. Finally call the GUI download Function Module or Method -
    CALL METHOD cl_gui_frontend_services=>gui_download 
    The above explanation was written by Raja Babu - all credit to him.

  • Adobe form as PDF string in Webservice importing parameter

    Hello Experts,
    Can you please clarify the below issue.
    I have created a webdynpro.
    I have placed an interactive form on one of it's view.
    And kept one Submit button(Execute type) on the form to trigger one webservice.
    This webservice has the importing parameter as the PDFSTRING.
    So my requirement is to pass the entire form with filled values to the webservice importing parameter. I will be storing this PDF string in some tables.
    What scripting i need to use in the form for getting this done.
    Thanks in advance.
    Regards,
    Ram.

    Hi Sai,
    Thanks for ur input.
    My requirement is not exactly the string with XML data, but the string with PDF data.
    I will try to explain my requirement here in detail.
    I have the adobe form triggering from the webdynpro. This form has different objects like, text fields, dropdowns, check boxes, radio buttons...etc and one SUBMIT button for which webservice is attached in the properties.
    User will fill all the fields and clicks on SUBMIT. When he clicks on the SUBMIT, the webservice should attach the filled PDF document at partner level.
    For this purpose, i need the string with PDF data and not the XML.
    WIth this PDF string again i should be able to re generate the PDF document which was filled by the user.
    If string with PDF data is not possible, Please suggest me the possible way of achieving this?
    Regards,
    Ram.

  • ISR/Adobe: Getting the PDF binary within ABAP and upload PDF

    Dear Forum,
    I feel there have been some questions like this before on this matter, but not explicitly enough. My question  applies only to Adobe together with ISR (not webdynpro/Adobe).
    Using ISR/Adobe, the PDF is just used as a dynamic form. However, there are moments in the requests lifetime that it could be fixed. F.i. for sending e-mails with the PDF as attachment, or after approval for electronic archiving.
    These both are hot topics on the project I am currently working on, but the way how to implement is not that clear.
    The first thing I can think of is to use an FP* function modules based ABAP program to recreate the PDF. This is possible, since QISRSCENARIO also implements a forms interface. However, there are a few cons on this, as well on functionality (FP interface vs. webdynpro handling of ISR data) as from a maintenance point of view: you have to program an interface twice!
    Second best but at least far more complex is to recreate the PDF binary by calling the ADS directly with an XFT and dynamically created XFD file. Much more work, but offers more functionality (longtexts!)
    How nice would it be, if the ISR webdynpro's could offer the binary to the ABAP ISR* function modules, so they could be used anywhere where needed exactly identical to the original rendered form. But I am not aware of such possibility.
    Has anyone made some progress on this field? And, asking to Markus, is SAP planning to make such possible in coming releases?
    And while I am questioning this, Markus, are there any plans to incorporate the off-line webdynpro adobe possibility into ISR?
    Looking forward to any answer and best regards, Hans GM

    You can use the print form directly. I mean the same way as you would use the WD/ online form. Provide the form name, the data source and stuff and the form should work. If that would be an interactive one, you would not be able to change any values if the form is based on DDIC dictionary, but since you want to use the printform, this is not your concern.
    Regards Otto

  • Simple Transformation from Adobe Form XML document to Dictionary structures

    I have an XML document that I am receiving via email (the XML document is generated from an Adobe Interactive form). I would like to write a simple transformation that will map that XML document to a structure and internal table in my ABAP program. I am new to Simple Transformations and I am having trouble working out how to write a simple transformation for this type of XML document. I would prefer to write a custom transformation rather than using the identity transformation (ID). I would appreciate any help you can provide.
    Please refer to the below for an example of the XML file.
    This maps directly to 2 dictionary structures that exist within our system containing all of the same components. PIM_REQUEST_HDR has a corresponding SAP dictionary structure Y_REQUEST_HDR and PIM_REQUEST_ITEMS has a corresponding SAP dictionary structure Y_REQUEST_ITEMS.
    Can anyone help with some instructions or examples of how to create the simple transformation?
    Thanks for your help! We are using ECC 6.0
    Sample XML to be transformed:
    <?xml version="1.0" encoding="UTF-8" ?>
    <data>
    <SFPSY>
      <DATE>2007-07-03</DATE>
      <TIME>07:25:21</TIME>
      <USERNAME>TLCITY</USERNAME>
      <SUBRC>0</SUBRC>
      </SFPSY>
    <PIM_REQUEST_HDR>
      <MANDT />
      <REQ_NUM />
      <REQ_DESC>blah blah blah</REQ_DESC>
      <PROC_AREA>CTC</PROC_AREA>
      <REQUESTED>2007-07-03</REQUESTED>
      <REQUIRED>2007-07-03</REQUIRED>
      <REQUESTOR>TLCITY</REQUESTOR>
      <MOD_TYPE>SAP Note manual changes</MOD_TYPE>
      <SAPNOTE_NUM>59549656</SAPNOTE_NUM>
      <SAPMSG_NUM>0000000000</SAPMSG_NUM>
      <TECH_SCRIPT />
      <REASON />
      <DEV_ENV>ECC6</DEV_ENV>
      <INSTALL_NO>2861655161</INSTALL_NO>
      <BASIS_REL>700</BASIS_REL>
      <REG_STATUS />
      <REJ_REASON />
      <APP_DATE />
      <REJ_DATE />
      <APPROVER />
      <REGISTRATOR />
      <REG_DATE />
      </PIM_REQUEST_HDR>
    <PIM_REQUEST_ITEMS>
    <DATA>
      <MANDT />
      <REQ_NUM />
      <PGMID>R3TR</PGMID>
      <OBJECT>PROG</OBJECT>
      <OBJ_NAME>RSDIJOIJSDOIF</OBJ_NAME>
      <ACCESSKEY />
      </DATA>
    <DATA>
      <MANDT />
      <REQ_NUM />
      <PGMID>R3TR</PGMID>
      <OBJECT>PROG</OBJECT>
      <OBJ_NAME>RRRSDIJOIJS03</OBJ_NAME>
      <ACCESSKEY />
      </DATA>
      </PIM_REQUEST_ITEMS>
      </data>

    I have solved this one with the help of another collegue.
    To simplify, we changed the XML to be as follows:
    [code]
    <?xml version="1.0" encoding="UTF-8" ?>
    <data>
    <PIM_REQUEST>
    <REQ_HDR>
      <MANDT />
      <REQ_NUM />
      <REQ_DESC>Key required for pricing routines</REQ_DESC>
      <PROC_AREA>SD</PROC_AREA>
      <REQUESTED>2007-07-30</REQUESTED>
      <REQUIRED>2007-08-02</REQUIRED>
      <REQUESTOR>TLCITY</REQUESTOR>
      <MOD_TYPE>SAP Note: Manual Changes</MOD_TYPE>
      <SAPNOTE_NUM>0000000000</SAPNOTE_NUM>
      <SAPMSG_NUM>0000000000</SAPMSG_NUM>
      <TECH_SCRIPT>TS-2498 Pricing Routines</TECH_SCRIPT>
      <REASON>New pricing routines required</REASON>
      <DEV_ENV>ECC6</DEV_ENV>
      <INSTALL_NO>029</INSTALL_NO>
      <BASIS_REL>700</BASIS_REL>
      <REG_STATUS />
      <REJ_REASON />
      <APP_DATE />
      <REJ_DATE />
      <APPROVER />
      <REGISTRATOR />
      <REG_DATE />
      </REQ_HDR>
    <KEY_DETAILS>
    <DATA>
      <MANDT />
      <REQ_NUM />
      <PGMID>R3TR</PGMID>
      <OBJECT>PROG</OBJECT>
      <OBJ_NAME>RVGHT902</OBJ_NAME>
      <ACCESSKEY />
      </DATA>
    <DATA>
      <MANDT />
      <REQ_NUM />
      <PGMID>R3TR</PGMID>
      <OBJECT>PROG</OBJECT>
      <OBJ_NAME>RVGHT901</OBJ_NAME>
      <ACCESSKEY />
      </DATA>
      </KEY_DETAILS>
      </PIM_REQUEST>
      </data>
    [/code]
    This maps directly to 1 dictionary structure that exists within our system containing all of the same components. PIM_REQUEST has a corresponding SAP dictionary structure Y_REQUEST_HDR which is a deep structure and has within it a structure REQ_HDR and a table KEY_DETAILS.
    The corresponding simple transformation we have then used is as follws:
    [code]
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="root"/>
      <tt:template>
        <data>
          <PIM_REQUEST>
            <tt:copy ref="root"/>
          </PIM_REQUEST>
        </data>
      </tt:template>
    </tt:transform>
    [/code]
    Alternatively the following 2 options also work:
    Option 2:
    [code]
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="root"/>
      <tt:template>
        <data>
          <PIM_REQUEST>
            <REQ_HDR>
              <tt:copy ref="root.REQ_HDR"/>
            </REQ_HDR>
            <KEY_DETAILS>
              <tt:loop name="KEY_DETAILS" ref="root.KEY_DETAILS">
                <DATA>
                  <tt:copy ref="$KEY_DETAILS"/>
                </DATA>
              </tt:loop>
            </KEY_DETAILS>
          </PIM_REQUEST>
        </data>
      </tt:template>
    </tt:transform>
    [/code]
    Option 3:
    [code]
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="root"/>
      <tt:template>
        <data>
          <PIM_REQUEST>
            <REQ_HDR>
              <MANDT tt:value-ref="root.REQ_HDR.MANDT"/>
              <REQ_NUM tt:value-ref="root.REQ_HDR.REQ_NUM"/>
              <REQ_DESC tt:value-ref="root.REQ_HDR.REQ_DESC"/>
              <PROC_AREA tt:value-ref="root.REQ_HDR.PROC_AREA"/>
              <REQUESTED tt:value-ref="root.REQ_HDR.REQUESTED"/>
              <REQUIRED tt:value-ref="root.REQ_HDR.REQUIRED"/>
              <REQUESTOR tt:value-ref="root.REQ_HDR.REQUESTOR"/>
              <MOD_TYPE tt:value-ref="root.REQ_HDR.MOD_TYPE"/>
              <SAPNOTE_NUM tt:value-ref="root.REQ_HDR.SAPNOTE_NUM"/>
              <SAPMSG_NUM tt:value-ref="root.REQ_HDR.SAPMSG_NUM"/>
              <TECH_SCRIPT tt:value-ref="root.REQ_HDR.TECH_SCRIPT"/>
              <REASON tt:value-ref="root.REQ_HDR.REASON"/>
              <DEV_ENV tt:value-ref="root.REQ_HDR.DEV_ENV"/>
              <INSTALL_NO tt:value-ref="root.REQ_HDR.INSTALL_NO"/>
              <BASIS_REL tt:value-ref="root.REQ_HDR.BASIS_REL"/>
              <REG_STATUS tt:value-ref="root.REQ_HDR.REG_STATUS"/>
              <REJ_REASON tt:value-ref="root.REQ_HDR.REJ_REASON"/>
              <APP_DATE tt:value-ref="root.REQ_HDR.APP_DATE"/>
              <REJ_DATE tt:value-ref="root.REQ_HDR.REJ_DATE"/>
              <APPROVER tt:value-ref="root.REQ_HDR.APPROVER"/>
              <REGISTRATOR tt:value-ref="root.REQ_HDR.REGISTRATOR"/>
              <REG_DATE tt:value-ref="root.REQ_HDR.REG_DATE"/>
            </REQ_HDR>
            <KEY_DETAILS>
              <tt:loop ref="root.KEY_DETAILS" name="KEY_DETAILS">
                <DATA>
                  <MANDT tt:value-ref="$KEY_DETAILS.MANDT"/>
                  <REQ_NUM tt:value-ref="$KEY_DETAILS.REQ_NUM"/>
                  <PGMID tt:value-ref="$KEY_DETAILS.PGMID"/>
                  <OBJECT tt:value-ref="$KEY_DETAILS.OBJECT"/>
                  <OBJ_NAME tt:value-ref="$KEY_DETAILS.OBJ_NAME"/>
                  <ACCESSKEY tt:value-ref="$KEY_DETAILS.ACCESSKEY"/>
                </DATA>
              </tt:loop>
            </KEY_DETAILS>
          </PIM_REQUEST>
        </data>
      </tt:template>
    </tt:transform>
    [/code]

  • Adobe Forms - address manipulation/formatting

    Aside from ADDRESS_INTO_PRINTFORM and address node, are there any other ways to retrieve an address using only address number where I can manipulate which fields will be returned.
    My main problem is that I need to display an address without displaying the region code and display its description instead (BEZEI). I think there might be ways to do this manually, like for example using ADDRESS_INTO_PRINTFORM and then do string manipulation to replace region code with its description, but this is quite unconventional.

    The example I gave you above is FormCalc scipting.  As far as documentation, I am not aware of a any site that has the events and properties documented.  I, like yourself, had a difficult time figuring out the syntax for dynamically changing properties.  I have a training class book that I got from one of my colleagues which has helped some.  AdobeForms does not have a debugging tool as far as I know.  I will be happy to help you out if I can but I am by no means an expert.

  • CAD graphics in PDF-Forms (Adobe Forms)

    Hello,
    I have a question concerning big graphics in PDF-based Forms. A Customer wants to append graphics to an Adobe-Form. These pictures will be CAD graphics. The problem is, this graphic can be from 10 up to 25 pages! Is it possible to append such a big graphic with variable pages to an Adobe Form?
    The format of the graphics can be either PDF or JPEG.
    And if this is possible: will the performance of printing or sending the extended form be acceptable?
    Thanks a lot for your help!
    Nina

    On the Options tab of the button properties dialog, set the Layout to something other than "Label only" (e.g., Icon only). You can then clock the "Choose Icon" button to select a source for the button appearance. It can be a page from an existing PDF or anything else Acrobat knows how to convert to PDF, such as an image.

  • Adobe Dynamic XML vs Static pdf

    I created a form with LifeCycle Designer ES2, with actions.
    When saved as Adobe Dynamic XML (pdf), it works flawlessly, however the file size is around 1 MB.
    When I save it as Static PDF, the file size is reduced to 195k, but the actions don't work any longer.
    I need the smaller file size because these documents get opened on mobile devices. Is there a way to have the best of both worlds here?
    Either Static PDF with actions working, OR Dynamic XML with a small file size.
    Any help would be appreciated.
    Thanks

    The issue is with the Fonts used inside the PDF. You have used, Impact, Calibri, Courier New along with native Myriad Pro font.
    Since you have used fonts other than the native one, the form is by default embedding these additional fonts as part of the PDF.
    Probably one of the font is occupying all the size of the PDF.
    You have to change the font to either Myriad Pro or Arial which is light weight. (OR) you can make an image out of the Impact font text ("Notice of Violation" and "Officer's report must be sent to the safety office withing 24 hours !") and use it as an image inside the PDF.
    To remove the Embed Fonts option, goto File -> Form Properties menu -> Save Options tab.
    Below is the form with Embed fonts option UNCHECKED.(54 KB). But the special fonts might not display properly.
    https://acrobat.com/#d=nWNcZv9QfO0s7Lkr5HbdEg
    Hope this helps.
    Thanks
    Srini

  • Interactive-adobe form Converting into PDF without print dialog

    Hi Friends,
    I would like to convert Interactive - adobe form into PDF without print dialog.which adobe form interface type is Smart Forms-compatible Interface.I have tried for solution.but I could not succeeded.How can resolve the issue.please help me.
    Thanks
    Ramesh M

    Hi Friends,
    I would like to convert Interactive - adobe form into PDF without print dialog.which adobe form interface type is Smart Forms-compatible Interface.I have tried for solution.but I could not succeeded.How can resolve the issue.please help me.
    Thanks
    Ramesh M

  • Save Adobe Form as XML

    Hello,
          I am ABAPer and wanted to know if there is a way I can save the Online Adobe Form as XML using the SUBMIT button? Can I convert the Online Adobe Form as XML file using JAVA Script and then save it at at maybe a default location?
    Regards,
    Shishir.P

    Otto,
           Let me take through step by step:-
    1.  I am working on SAP Version that does not support dynamic tables. Hence the when I convert the Adobe form into PDF  content extracted in SAP Web dynpro, the PDF content does not have data entered in Dynamic Tables. To read dynamic tables the SAP system will have to undergo a ABAP kernel upgrade which is not possible at this time.
    2.  I had come up with a concept that using JAVA Script if I could convert the live Online Adobe Form into XML using the SUBMIT button on the form and then store it in one of the invisible fields on the form itself or maybe at remote location in desktop / application server.
    3.  This would be picked up once again by the ABAP Web dynpro and this file would contain the data entered by the User, I could then read the data in Web Dynpro for ABAP and process it further.
    4.  Well this is just an Idea and I am not sure if this can be implemented, please let me know if anything of this sort is possible, please excuse me if this sounds weird as my knowledge of JAVA is limited.
    Regards,
    Shishir.P
    Edited by: Shishir Paltanwale on Apr 27, 2010 2:28 PM

  • Formatted text and smartforms/Adobe forms

    Hello all,
    can anybody please tell me if there is a way to display formatted text that was edited with FormattedTextEdit (or is there any other ui element that allows me to format text?) in smartforms/adobe forms with all formats? Also, is it possible to display graphics in the smartforms/adobe forms that was prior uploaded to the application server?
    Thanks and regards, Oliver

    Hi Raja,
    I implenented SAVE_TEXT AND READ_TEXT like you advised but the smartforms still doesn't show the text formats edited via BTF editor.  I even tried to convert it to ITF using "CONVERT_STREAM_TO_ITF_TEXT" but it wouldn't help either. For example the text
    <HTML><HEAD></HEAD> <BODY> <P>This is a test text in Times New Roman</P> <P><FONT face=Arial>This is a test text in Arial</FONT></P> <P><FONT face=Arial><STRONG>This is a test text in Arial and bold</STRONG></FONT></P></BODY></HTML>
    would exactly appear in this manner (using text element in smartforms) and not formatted. Do you any other ideas solving this issue?
    Thanks and regards, Oliver

Maybe you are looking for

  • Logical expression( = , =, , ) in read statement

    Hi All, Is it possible to use the logical expressions like (<= , >=, <, >) in the read statement?

  • Mapping error while activating 0Plant_attr

    Friends, I was trying to "install" 0plant_attr in BI Content at the "Collected Object" window. I got a RED icon and when I opend it, it shows; "MAPPING BETWEEN OCUSTOMER_TEXT DEVCLNT314 0CUSTOMER_TEXT IS INCONSISTENT" Can anyone explain to me why I a

  • Transferring Color From Line to Text

    The above is a snippet from a Pages document. How can I use the color eyedropper to pick up the color from the lines and then transfer that color to the text so that everything is the same color? Cheers,     John

  • Class Locator is not enabled

    I downloaded Class Locator and followed all the necessary steps for adding it to NWDS. Now if I rightclick, I can see 'Locate jar/class' option, but it is never enabled.

  • Standby not in sync with primary

    Hi, I am having oracle 9.2.0.7 on AIX and having physical standby database running on another server. Since the last 2 days it is not in sync and the required archivelog files are removed from production. Could you please help me out to resolve the i