Getting a PDF in an xstring format in the ABAP environment

I am trying to create a PDF in ABAP reusing the ADS/SFP functionality that I can send to XI without saving the pdf first to a file (i.e. Getting the PDF in an xstring format or similar that can be put into an XML structure).
I've gone as far as to see that the class CL_FP_PDF_OBJECT appears to support returning an xstring; but does anyone have an example of how to work directly with this class or if there is a higher level class that can assist in this manner?
Note - My aim is to be able to generate reports online plus using the same form, be able to send the file through XI to be stored in Documentum (file store).
Regards,
Matt

Hi All,
  excuse me if I send you a new request, but I'm developing an interface by XI in order to create a XML with a TAG <spool> containing a PDF file of an invoice printform. I create a proxy that is called after the printform creation (by a standard smartforms) using the OTF data released from FORM_CLOSE w/o the spool generation (get_otf parameters set to 'X'). after I create a message mapping that compose the final XML and send it to receivers.
  My problem is related to the data type of my tag <spool>. my XSD schema output needs a xsd:based64Binary type. when I generated the proxy the system send a warning message ("The XSD type base64Binary does not exactly correspond to the ABAP type RAWSTRING  Message no. SPRX067). When the data is passed from proxy to XI, every 77 characters, system inserts a CR/LF.
  It's correct use a proxy?
  in order to convert the OTF data to the based64 string I used:
   CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
      bin_filesize           = lv_numbytes
    TABLES
      otf                    = i_otfdata
      doctab_archive         = ls_doctab_archive
      lines                  = lt_line
Funzione per codifica in base64
  CALL FUNCTION 'SSFC_BASE64_CODE'
    EXPORTING
      decode                       = ' '
      io_spec                      = 'T'
      ostr_input_data_l            = lv_numbytes
    TABLES
      ostr_input_data              = lt_line
      ostr_digested_data           = pdf_based64
    EXCEPTIONS
thank you in advance,
Mauro

Similar Messages

  • Tool creation for checking program of ABAP in TXT format with the ABAP stds

    Tool creation for checking program of ABAP in TXT format with the ABAP stds

    Hello Jagrut
    There is a simple reason why we cannot do off-line ABAP development:
    - the <b>ABAP dictionary</b> (which contains all structures, tables, data elementes, etc.)
    Because even the simplest ABAP report (except for the "Hello World" report) will reference some objects from the ABAP dictionary and, thus, requires to access these objects directly. Therefore, we are still bound to server-side ABAP development.
    Regards
      Uwe

  • I cant get any pdfs to open from documents or the web.

    I can not openany pdfs. I tried from documents and from websites. i have uninstalled and reinstalled reader. help anyone else having issues?

    What is your operating system & version?
    What is your web browser?
    What exactly means "can not"?

  • Is there a way to get a PDF into my iPad keynote?

    Is it possible?

    I don't have an iPad, but it should be no problem. Once you have the PDF in your iPad, you can paste/insert it into your KN presentation. There are probably several ways to get a PDF into your device - download from the net; email it to yourself if it's on a computer; if it's originally your own word processor doc, like Pages, you can export that to a PDF version.

  • Can't get 2 pdf's to merge

    Dell cmptr running Windows, Adobe Acrobat X running V. 10.1.13
    Have had my HP Scanjet 5000 for about 4 yrs and all has been well when scanning documents and then being able to merge two or more together till lately. Now, whether I get a pdf thru email or I scan the documents myself, when I try to merge two pdfs into one, I get the following msg "The document could not be saved. The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."  Why is this happening? I have never had this before. I am the originator of the scanned pdf's and wouldn't know how to make it a read-only if I wanted to. Has something changed in my Adobe settings or possibly within my HP Scanjet settings that is now making this happen?
    Several times I even get a box that says, "File Access Denied. You need permission to perform this action." when all I am the originator and I am the one wanting to make a change (ie: merge with another pdf.).
    I desperately need help.

    Dell cmptr running Windows, Adobe Acrobat X running V. 10.1.13
    Have had my HP Scanjet 5000 for about 4 yrs and all has been well when scanning documents and then being able to merge two or more together till lately. Now, whether I get a pdf thru email or I scan the documents myself, when I try to merge two pdfs into one, I get the following msg "The document could not be saved. The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."  Why is this happening? I have never had this before. I am the originator of the scanned pdf's and wouldn't know how to make it a read-only if I wanted to. Has something changed in my Adobe settings or possibly within my HP Scanjet settings that is now making this happen?
    Several times I even get a box that says, "File Access Denied. You need permission to perform this action." when all I am the originator and I am the one wanting to make a change (ie: merge with another pdf.).
    I desperately need help.

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • How to Covert PDF! file format into XSTRING format in SAP UI5?

    HI All,
    I Am ABAPer. I don't have any idea on front end system.
    Can any buddy guide me how to convert PDF file into XSTRING or BINARY in SAP UI5 (either it may be XML or Script )?
    My requirement is, I have to upload file in SAP-UI5. Those file should upload in back end system (MIME repository (SAP-ECC) or  DMS).
    I have created below screen for PDF! upload in SAP-UI5.
    Below code I have written in SAP gateway system.
    * Get MIME repository information
    lr_mime_rep = cl_mime_repository_api=>if_mr_api~get_api( ).
    * Upload FILE into MIME repository.
    lr_mime_rep->put(
       EXPORTING
         i_url                     = p_path
         i_content                 = lv_content
       EXCEPTIONS
         parameter_missing         = 1
         error_occured             = 2
         cancelled                 = 3
         permission_failure        = 4
         data_inconsistency        = 5
         new_loio_already_exists   = 6
         is_folder                 = 7
         OTHERS                    = 8 ).
    Back end system required file name with extension and XSTRING(Converted PDF data).
    How to convert  PDF file into XSTRING or BINARY in SAP-UI5?
    Kindly help me on this...

    Hi Karthikeyan,
    If you have PDF internal table with you, You can follow the below method to upload into Unix directory.
        DATA:file_path TYPE char100 VALUE '/usr/sap/tmp/rep_out.PDF'.
        OPEN DATASET file_path FOR OUTPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          LOOP AT it_pdf.
            TRANSFER it_pdf TO file_path.
          ENDLOOP.
        ENDIF.
        CLOSE DATASET file_path.
    Thanks
    Venkat.O

  • HELP !!! Problem in R/3 trying to get a PDF on to Web Dynpro

    Hi,
    I read a note about <b>How to get PDF on to Web Dynpro iView </b>, it was very helpfull, but the problem is in R/3 because I need that the Print Window do not open and send data direct to Web Dynpro.
    the code is:
      control_parameters-no_dialog  = 'X'.
      control_parameters-preview    = ' '.
      control_parameters-langu      = 'S'.
      control_parameters-getotf     = 'X'.
      output_options-xsfcmode   = 'X'.
      output_options-xsf        = space.
      output_options-xdfcmode   = 'X'.
      output_options-xdf        = space.
      output_options-tdnoprev   = 'X'.
    *  OUTPUT_OPTIONS-TDNOPRINT  = 'X'.
      output_options-xsfoutdev = output_options-tddest = 'ZWIN'.
      output_options-tdimmed    = 'X'.
      output_options-tddelete   = 'X'.
    call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname              = 'Z_REP_TRANS_PRES'
    *   VARIANT                 = ' '
    *   DIRECT_CALL             = ' '
       importing
         fm_name                  = formato
    * EXCEPTIONS
    *   NO_FORM                 = 1
    *   NO_FUNCTION_MODULE      = 2
    *   OTHERS                  = 3
    call function '/1BCDWB/SF00000022'
    exporting
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       control_parameters         = control_parameters
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       output_options             = output_options
    *   USER_SETTINGS              = 'X'
    *   USUARIO                    =
    *   FECHA_INI                  =
    *   FECHA_FIN                  =
       tipo_rep                   = tipo_rep
    *   TIPO                       =
    *   LOGO                       = 'ZHR_CANTV_LOGO'
    importing
    *   DOCUMENT_OUTPUT_INFO       =
       job_output_info            = output_job
    *   JOB_OUTPUT_OPTIONS         =
      tables
        transf_pres                = transf_pres
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
    */      MAX_LINEWIDTH         = 132
        importing
          bin_filesize          = numbytes
          bin_file              = bin_file
        tables
          otf                   = zoftdata
          lines                 = zpdf
        exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          others                = 0.
    Thanks in advance!!!
    tgfch

    Hi Claus,
    Try use this web dynpro code to open the XSTRING that coming from abap side:
    IWDCachedWebResource resource = WDWebResource.getWebResource(
    wdContext.currentZReport_OutputElement().getPdf(), WDWebResourceType.getWebResourceTypeForFileExtensio("pdf"));
    resource.setResourceName(this.getDescriptionReport());
    // Create a External Window with the URL destination
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getURL(), this.getDescriptionReport(), true);
    // Eliminate some features of the window
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.setWindowSize(780,430);
    window.setWindowPosition(20,140);
    window.open();
    This code will open its PDF report!!!
    Regards,
    Luciano Leite

  • Save the report in PDF format on the server: is it possible?

    Hi all,
    Is it possible to save the report in PDF format on the server?
    In other words, in a web application:
    1) the user requests a report
    2) the report produced in PDF format, is saved on the server, where is the Java Reporting Component
    3) the report, in PDF format, is sent to the client's user
    Thanks a lot

    PrintOutputController.export, get the byte stream, save on server.
    Sincerely,
    Ted Ueda

  • Converting a PDF file to Word format issue

    I am using Adobe Reader XI 11.0.09 with the paid side bar to convert the pdf file to an editable Word 2007 format. The problem is that the formatting after conversion is really bad and getting worse, example of the most recient: "I n  a cont ingent circumstance, an effect  results  from  clearly definable causes, t hough t he effect could be  different, given an entirel y  possible and  different interrelation of  causes. In   short, a  contingent  event   or thi ng is a nonnecessa ry event or thi ng tha t either might  not  exist or could  be other than it is."
    The conversion in the past was never this bad and I was hoping it was some setting but I have not found a way to tweak the settings in the converter. I have converted many pdf files and had no problems with the outcome of the conversion until recently.
    Any help in this matter would be greatly appreciated.
    Ken
    Windows 7 professional

    Moved to Adobe ExportPDF (read only)

  • How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • How do I convert a PDF to a editable format?

    How do I convert a PDF to a editable format?

    Hi;
    If you are looking to make a PDF form fillable you can see this FAQ for help: http://forums.adobe.com/docs/DOC-3511
    If that doesn't answer your question you can clarify further what you need, or if it is a general PDF question and not related to FormsCentral you might get the best help in the Acrobat forums: http://forums.adobe.com/community/acrobat
    Thanks,
    Josh

  • Pdf file in txt format in application server

    Hi all,
             can we use open datset to store pdf file in text format in application server.
    when i am using this some data was getting correctly stored in appl server.but some data is getting converted to # symbols.of course the pdf data also contains some different characters in that place.
    but  i want that pdf data in that format,i dont want that change of # symbols...how can i do that...
    and while storing it,it is allowing only open dataset in binary mode only ..can anybody explain why?
    regards,
    sharma.

    <b>Check this example....</b>
    report ztest.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '/usr/sap/xfr/FIS/testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *- To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    <b>TIP</b>
    Use the TCode
    CG3Z or CG3Y
    for downloading to Application Server.
    Regards,
    Pavan

  • How to automate conversion of PDF forms to XML format

    Hi
    I have created a form using adobe livecycle designer 8. It has a email submit button that will send the form as a pdf file to a server.
    Once the server recevive this pdf file, they will store the pdf file into a local drive. How do I convert the pdf files in the local drive into XML format without actually opening the pdf file in the Adobe Professional and clicking export data as XML?
    Is there a way to write a code to convert these pdf files to XML format automatically?
    Hope someone can help me with this issue
    Regards
    Delvin Khong

    Hi Andersson,
    The request command is a form server command? Where do i type the Request.Form("page.form.field"). I dont really understand your statement on "Use request on the receiving page to get data" Could you help me by explaining more?
    Thank a lot for your advice
    Warmest Regards
    Delvin Khong

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

Maybe you are looking for

  • TDS calculate on base value- in FB60

    Dear Experts My client has a requirement for TDS calculation in FB60 vendor Invoice. Scenario: A vendor issues an invoice for Rs 100000 with 12.36% service tax, where the total invoice amount is 112360. As per their requirement, the client will enter

  • How can I delete a digital certificate in Firefox's certificate store?

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/780242]</blockquote><br> The company that manages my health savings account has just told me that my digital certificate (didn't know I had one) needs to be deleted from my b

  • Upgraded to windows 7, Ipod shuffle now doesn't work

    I recently upgraded to Windows 7 from XP, I can't get the 4th generation Shuffle to work. The tunes installed on the Ipod won't play and when I run the diagnostics, it says the Ipod is not connected?

  • MacBook Pro update issue

    Hi I recently upgrade my Mac Book Pro.  Afterwards, I had to relauch WIndows, but was prompted to enter the serial number....completed Now I'm attampting to access online medical test results that are presented as PDFs for my clients.  The send in a

  • Valid license code for activation that doesn't work HELP!

    I had to reinstall CS3 back on to my computer after having to do a factory reset on the computer. I downloaded CS3 from Adobe.com since my CDs are in another state. After installation I go to enter my code for the programs and CS3 won't accept my VAL