Pdf output to be save on database

Hi
My requirement  is to store pdf output from smartform or adobe form in database table.
what i did was
1. I have extracted OTF format of form.
2.Then converted it to PDF using function module Convert_OTF then i got binary data in the structure TLINE.
3.Now i am converting it into xstring to save it in data base table
    but the problem is i am getting problem while converting xstring to binary(to get pdf from xstring ) ,i am not getting the original binary data in the   structure TLINE only Column TDFORMAT got retrived i want TDLINE column also to be filled with respective data.
i am using function modules SCMS_BINARY_TO_XSTRING  SCMS_XSTRING_TO_BINARY
any suggestions how to resolve problem.
Thanks
janakiram.

I have a similar problem.
I created an abap report using adobe print form.
The result needs to be save into the DMS (document manager system)
What would be the steps to do it?
Actually the report is asking the user if he want it as preview or print to  a report.
Here are the step I did so far:
1. FM 'FP_FUNCTION_MODULE_NAME'
2. FM 'FP_JOB_OPEN'
      ie_outputparams = <to an empty structure>
3. FM fm_name <provided by the 'FP_FUNCTION_MODULE_NAME'
4. FM 'FP_JOB_CLOSE'
With those steps, I can see the report using preview button and print it.
But what I need is to save the report into the DMS.
Is there an easy way to do it or the following steps need to be done:
1. Save the report on disk ( I don't know how to do it )
2. Load it into the DMS
Il fact, if I can have an example on how to save an abap report using adobe print form into a network shared drive, that would solve my problem.
All suggestions would be highly appreciated.
Regards
dstj

Similar Messages

  • Save PDF Output custom settings?

    After tweaking almost every panel in the PDF output settings, I'd like to save those settings to reuse with other PDF contact sheets I'll be creating in the future. How do I do that? As soon as I tweak a setting, the Preset changes to Custom, and as soon as I select a different preset, the entire Custom entry is deleted from the dropdown menu.
    AM

    AnneMarie Concepcion wrote:
    After tweaking almost every panel in the PDF output settings, I'd like to save those settings to reuse with other PDF contact sheets I'll be creating in the future. How do I do that? As soon as I tweak a setting, the Preset changes to Custom, and as soon as I select a different preset, the entire Custom entry is deleted from the dropdown menu.
    AM
    While the Output Module of Bridge is a good idea it is not "ready for prime time" in either of the two functional areas.
    I guess that's why they left the old-style methods available on the installation disk.
    Just another casualty of the "Rush it out to meet a deadline" policy. 

  • No data found in report csv or pdf output on first page load

    No data found in report csv output on first page load. Report shows up on page, but no data found in csv or pdf output. I always need to submit the page and then it shows data in downloads. The page contains a form (read-only) with a report that references 4 page items by using something like the following:
    and b.employee_no = v('P5_EMPLOYEE_NO')
    and c.fisc_year_pk = v('P5_FISC_YEAR_PK')
    and b.job_class = v('P5_JOB_CLASS')
    and b.organization = v('P5_ORGANIZATION')
    Again, report in the page shows up except there is no data in downloads. Can anyone help me solve this problem? I'm running Oracle APEX 4.2.1 in Oracle database 11gR2.
    Thanks.

    Sounds like a classic session state issue.
    You need to populate you page items using page rendering computations to ensure they're set to session state.
    Or if the download is triggered from a button press, you need to ensure those page items are submitted to session state, perhaps via a PL/SQL action.
    Scott

  • How to download PDF output forms to presentation server without display

    Hi All,
    My requirement is to download the Sales Order forms and save it in local system.
    I have created a custom program where I am passing a range of Sales Order no, Partner Function, Output type and Application as my input in selection screen.
    Logic:
    I am calling my Sales Order Abodeform using the FM: 'FP_FUNCTION_MODULE_NAME' and thereby I got the function module name of my form.
    Then I am calling the FM:
    Input to the FM:  
      ls_outputparams-nodialog = abap_true.
      ls_outputparams-authority = 'X'.
      ls_outputparams-getpdf = 'X'.
      ls_outputparams-dest = 'LP03'.
      ls_outputparams-nopreview = abap_true.
      ls_outputparams-reqimm = abap_true.
      CALL FUNCTION 'FP_JOB_OPEN' 
        CHANGING
          ie_outputparams = ls_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    followed by,  CALL FUNCTION (FM name)
         EXPORTING
          archive_index        = toa_dara
          archive_parameters   = arc_params
          control_parameters   = ls_control_param
          mail_recipient       = ls_recipient
          mail_sender          = ls_sender
          output_options       = ls_output_param
          user_settings         = ' '
          is_nast                 = nast
          is_vbdka               = vbdka
          is_addres             = addr_key
        IMPORTING
          document_output_info = document_output_info
          job_output_info      = job_output_info
          job_output_options   = job_output_options
        TABLES
          it_vbdpa             = tvbdpa    "Item information
          it_vbdpau            = tvbdpau   "Subitem numbers
          it_vedpa             = tkomservp  "Contract Item Validity
          it_vedka             = tkomservh  "Contract Header Validity
          it_vedpn             = tkomservpn "Contract Item Cancellation Data
          it_vedkn             = tkomservhn "Contract Header Cancellation DA
        EXCEPTIONS
          formatting_error     = 1
          internal_error       = 2
          send_error           = 3
          user_canceled        = 4
          OTHERS               = 5.
    then ,  CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = ls_result
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
    then i am using the below FM to get the OTF data if any available.
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_binfilesize
          bin_file              = lv_bin_file
        TABLES
          otf                   = ls_output_info-otfdata-> i am not sure which data to pass here. i am getting sy-subrc value as 4.
          lines                 = lt_lines
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
    Now I dont no how to link the PDF forms to below method.
    CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          bin_filesize = v_size
          filename     = D://x.pdf
          filetype     =   'BIN'
        CHANGING
          data_tab     = lt_pdf.
    Because in smartforms, we will convert the OTF output to PDF and that value is passed to GUI_DOWNLOAD FM as input (lt_pdf) , whereas in adobeforms the output itself is in PDF so i dont how to retreive the values from adobeforms and pass it to the above FM, so that I can save 'N' no. of sales order outputs in one PDF file.
    Kindly help me out in this.
    Thanks & Regards,
    Karthikeyan G.

    Hi Vishnu,
    I read the GUI_DOWNLOAD FM documentation, if I am trying to download binary type of file, It is mandatory to pass file size.
    In my case, since I am having PDF file, so i don't no how to get the size of the pdf file.
    As you said, if i use Convert_OTF FM, i don't have data to pass to the OTF and LINES tables.
    I am having values of PDF in xstring format in ls_output1-pdf, which i got using the below FM.
    CALL FUNCTION lv_funcname (FM name)
        EXPORTING
          /1bcdwb/docparams  = ls_docparams
          is_vbdka           = vbdka
        IMPORTING
          /1bcdwb/formoutput = ls_output1
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    Kindly tell me what values i need to pass to the FM you mentioned in order to get the size of the file.
    Thanks & Regards,
    Karthikeyan G.
    But still I am not sure, how the pdf output is coming for single input whereas if i give in a range, its failing. In single input, i am not giving binary file size still the output is coming.. but for range its not. Kindly help me out in this.

  • Oracle Report, How to Display Polish Characters in a PDF Output

    Environment :
    Oracle Application Server version 10.1.2.0.2 on Red Hat 4 Enterprise (Kernel 2.6.9-42.0.3 , 32 bit) Oracle Database Version 10.2.0.3.0 Our character set of database is UTF8
    I have trouble to display polish characters in Reports Output. We develop on Windows XP machines. I can see the Polish Caharacters in the Reports Builder using several fonts (arial, arial unicode, Times new roman, verdana...) during design time or when running with the paper layout. But when the report deployed to application server running on the linux, the polish characters are replaced by symbols.
    Even under Windows, when I select 'generate to a PDF' file option, the characters are not displayed correctly (When I open the generated PDF file with Acrobat reader and go to Document Properties / Fonts, I see the Fonts are always replaced with Adobe Sans MM)
    Using the Forms Applications running on the same application server we have no trouble dealing/displaying with the characters (Ąą ĆćĘę Ł ł ŃńÓóŚ ś Ź ź Ż ż ß Đ đ € )
    NLS_LANG setting is AMERICAN_AMERICA.UTF8 on the Linux Box and AMERICAN_AMERICA.WE8MSWIN1250 is on the Development machines. (have tried a number of different NLS_LANG settings on the development box as well with no luck).
    Any direction would be appreciated.

    Hi,
    You have several different approaches to fix this problem. First of all, you would be able to generate the PDF output with Font Subsetting setup and be able to see the Polish characters correctly when running the output with destype=cache&desformat=pdf. The following metalink documents would guide you with this setup :
    Note.207711.1 "How to Use Font Subsetting in Reports 9i and 10g for PDF Output"
    As at design time you use many different Windows specific fonts, I also advice you to check the following document :
    Note.356221.1 "A Practical Methodology on Porting Reports from Windows to Unix with Different Fonts"
    Once the PDF output is generated properly with correct characters, then if you need to use "destype=printer" for direct print, rather than "destype=cache" to display the output in browser, then you can use the "PDFPrint" pluggable destination, which is located in :
    http://www.oracle.com/technology/products/reports/pluginxchange/index.html
    Regards,
    -Bulent

  • Special character displaying as ? in PDF output

    Hi,
    I am generating BI publisher report through Oracle application.
    My Pdf output is ok for Finnish and German language. But for polish font I am getting ? in PDF output. When I open XML file it says
    " The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource"
    In database Polish font is stored perfectly.
    I tried this <?xml version="1.0" encoding="UTF-8" ?> for generating XML. But I did not work.
    I do not know what is the problem. Please help me.
    Regards,
    Faiyaz

    create or edit xdo.cfg file.
    For XML Publisher Desktop it is ( in my case) c:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\config\.
    Find section fonts, add your font, that support polish. like that
    <font family="Times New Roman" style="normal" weight="normal">
    <truetype path="C:\WINDOWS\Fonts\times.ttf" />
    </font>
    For XML publisher is Note:399518.1. I think it can help you.

  • Problem with PDF output quality

    We recently upgraded to CS4 Suite Design premium and i am having problems getting illustrator to print high quality output.  I have a file created in illustrator which contains 300dpi tiff images created in photoshop (CMYK colorspace in both photoshop image and illustrator file)  when i print this file to pdf everything looks hi-rez except these images.  i have attempted adjusting all the obvious settings in the print dialoge box including:  Output/Printer Resolution, Graphics/Postscript level, Advanced/overprint and transparency flattener options/custom settings.  and nothing has worked.  Other things i have noted, is that in the print dialog box the only presets listed are Custom, Default and Default Web/Video/Mobile.  I have looked through the online help files and found the info on how to add "High Quality Print" to my adobe pdf presets, however it doesn't work.  furthermore i have tried the instructions here: http://help.adobe.com/en_US/Illustrator/14.0/WSA79FA899-BC95-401e-BD44-5B26BC31B369.html  where it says to move the files from "Documents and Settings\All Users\Application Data\Adobe\Adobe PDF\Application Support\Adobe PDF"  however there is no folder called "Application Support" on my system.  I have run out of ideas.
    The odd thing here, is that i can take the AI file into photoshop, and print a "High Quality Print" from photoshop with no problems, but i'd like to remove this step to speed up my workflow.
    I've attached both the high-quality pdf output from photoshop and the low-quality pdf output from illustrator for reference. (look closely at the logo's)

    Figured it out myself! yay!  (only took my entire moring)
    The solution:
    Dont print to PDF!
    SAVE AS COPY, then select Adobe PDF and click SAVE, this will bring up a dialog box with the options you need (including the "High Quality Print" Adobe PDF Preset)
    This was not clear in any of the instructions i read

  • Frame artifacts appearing in PDF output

    I have a problem with faint artifacts of object frames, rectangle frames and diagonals, etc. appearing in a PDF output when viewed in Acrobat Reader.They are hairline thin and are not visible in the InDesign document on screen.
    Here are the circumstances of it occurring:
    I'm using CS5.
    The PDF is output for a publication that requires PDF X-1a:2003 standard.
    The artwork, and any placed images are in CMYK. Transparency blend space is set to Document CMYK.
    The background layer for the ad. is rich black 50:0:0:100 and the artifacts are showing up over a white logo.
    Placed near the logo is a transparent background PSD image file with a drop shadow on the subject. (This object frame is one of the artifact sources) If this image is removed, the problem disappears.
    Tif files don't seem to cause the same problem, but I'm having difficulty placing tifs and retaining transparency; the background always turns white, which doesn't happen with PSDs.
    Be grateful of advice as to preventing this happening; Thanks.

    We can confirm with a screen shot, but it sounds like a flattening artifact known as stitching. This shows on screen in the PDF, and often in a low-resolution print, but usually is not a problem on press.
    You have to specifically opt to save transparency in the Tiff options dialog. You'll find once you do, though, that the stitching returns -- it's the transparency and flattening that causes this.
    You can embed a screen shot using the camera icon on the web page like this:

  • Strange artifacts on PDF output (when a line is in close proximity to a box)

    Hello all,
    I am hoping that someone can suggest a solution for this purplexing issue.
    I have a rectangle (actually occurs on similar rectangle image boxes or text boxes) that connects to a line (Japanese Dots). Whenever the line is near the rectangle, their is a faint but noticable white line surrounding the rectangle.
    When I initiate EDIT mode in Adobe Acrobat, it reveals that the PDF output/distilled version is introducing this artifact by separating part of the image into a 'chunk'. The artifact (or white line) is the border surrounding this image chunk!
    Also, it is important to add that if I move the line away from the rectangle, the faint white line vanishes.
    Please see attachment.
    Any ideas about how to fix this?

    Rob Day wrote:
    Either export with live transparency (PDF/X-4) or if you have to distill make sure the Print>Advanced>Transparency Flattener is set to High Resolution.
    Thank you Rob!
    Saving as PDF (even with Trans flattener set to high res) didn't help BUT exporting does work.
    What is the purpose of Save As [PDF] if it doesn't work correctly?

  • Opening PDF Output in browser

    Hi ,
    When I send a request to Report Server via WEB DB listener for PDF output report, it is generating 2 requests while opening the PDF output in the browser. If you make PDF browser integration off, it opens in Acrobat Reader properly with single request only. Has anybody come across such problem? Your help in this regards is appreciated. Thnaks in advance
    Aniruddha.

    To clarify what you posted:
    When opening the PDF document, your browser closes. When pressing the control key and opening the document, you get a dialog window (with the choices of open or save). What happens when you select open?
    This is browser behavior, nothing to do with this being a PDF file. Which browser and which platform? If you are using IE7, popup blocker is automatically enabled, and if you are viewing this on a 2003 server, you have server security settings to override. Pressing the control key allows popups.

  • Spool to PDF output in application server

    Hi Experts,
               I have a problem with converting spool to PDF.  If I download the spool to presentation, the outputs is fine, BUT when I download it to application server and try to view it in al11, a set of characters comes out and if I try to save it on my local drive, an error message pops out stating that it could not read the file because it is either not a supported file type or because the file has been damaged.  Please help me.  I've tried doing everything I can already.  I cannot run the convertion of spool file to presentation because it always ends up as run time error, that's why I have no choice but to run it in background.  These files needs to be distributed to all branch offices.  Please, please.......help......I'm desperate......

    Hi Nikhil,
            I'm sorry....but I'm still stucked.  If I try to view the pdf output in AL11 this characters are still displayed "&#9552;&#17478;&#11569;&#11827;&#3338;&#9698;&#58319;&#54029;&#2610;‰&#8303;&#25194;&#3338;&#12119;&#26990;&#16750;&#29545;&#17774;&#25455;&#25705;&#28263;&#3338;&#25966;&#25711;&#25194;&#3338;&#13088;&#12320;&#28514;&#27149;&#2620;&#15373;&#2597;&#17509;&#30324;&#31088;&#25888;&#20559;&#21332;&#12832;†&#8262;&#28526;&#29728;&#17231;&#21842;&#18757;&#21024;&#8302;&#28530;&#28001;&#27680;&#19553;&#28263;&#8261;&#19981;&#2607;&#21625;&#28773;&#8239;&#18031;&#28276;&#3338;&#12115;&#30050;&#29817;&#28773;&#8239;&#21625;&#28773;&#12557;&#2607;&#16993;&#29541;&#18031;&#28276;&#8239;&#17263;&#30066;&#26981;&#29197;&#2607;&#20065;&#28005;&#8239;&#17968;", and when the basis transferred it to the local folder the same error came out that the file could not be read either it is corrupted or file type is not supported.  Please.....I've been on it for hours and can't seem to get the problem.  Here's what I did with the program....Please tell me where I went wrong.....Help......
    PARAMETERS: p_file TYPE LOCALFILE DEFAULT TEXT-F02 OBLIGATORY.
    DATA: gd_buffer TYPE STRING OCCURS 0 WITH HEADER LINE.
               lt_conv   LIKE gd_buffer OCCURS 0 WITH HEADER LINE.
    DATA lv_string TYPE string.
            LOOP AT it_pdf_output.
              TRANSLATE it_pdf_output USING '~'.
              CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
            ENDLOOP.
            TRANSLATE gd_buffer USING '~'.
            APPEND gd_buffer.
            DO.
              counter = strlen( gd_buffer ).
              IF counter GE 255.
                lt_conv = gd_buffer(255).
                APPEND lt_conv.
                SHIFT gd_buffer LEFT BY 255 PLACES.
              ELSE.
                lt_conv = gd_buffer(counter).
                APPEND lt_conv.
                EXIT.
              ENDIF.
            ENDDO.
            IF lt_conv[] IS NOT INITIAL.
              OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
              IF sy-subrc EQ 0.
                IF sy-subrc <> 0.
                  MESSAGE e398(00) WITH 'Error creating file' p_file.
                ENDIF.
                LOOP AT lt_conv INTO lv_string.
                  TRANSFER lv_string TO p_file.
                ENDLOOP.
                CLOSE DATASET p_file.
                IF sy-subrc EQ 0.
                ELSE.
                  MESSAGE e398(00) WITH 'Error closing file' p_file.
                ENDIF.
              ELSE.
                MESSAGE e398(00) WITH 'Error creating file' p_file.
              ENDIF.
            ENDIF.

  • Facing challenges during creation of replica of .IDF file/Pdf output from 4.7 system into of Adobe forms in ECC 6.0 system

    Facing challenges during creation of replica of .IDF file/Pdf output from 4.7 system into of Adobe forms in ECC 6.0 system.
    If anybody has easy way to make those forms...
    Please suggest...

    Hi Shabeer,
    the first thing is that you are running on a very very low RAM.
    For ECC 6.0 with dual stack SAP System to run you should have atleast 4 GB of RAM.
    For your Dispatcher issue kindly check the status of your Oracle database and the connection from SAP To Database.
    You can check the oracle status using brtools utility.
    Regards,
    Prem

  • How do I add hyperlinks in the PDF output

    I am generating the PDF output from my DITA sources by using the menu option File > Save as PDF and hyperlinks are not taken into account.
    What can I do to get them working?
    Thank you for your help.

    What do you mean by "hyperlinks"? Cross-references (using xref or link elements) to other targets in DITA topics? External xrefs to URLs or other targets outside of the scope of the project? Or are you creating other types of hyperlinks?
    Also .. what version of FM are you using (I know you said earlier, but I've forgotten).
    ...scott

  • Dynamic images in reports -- PDF output

    In Reports uilder I can link an image object to a URL as described in the product help. This works well with an HTML output but in PDF only the image URL appears.
    How could I solve this problem?
    Thank you.

    Hi,
    The URL method of including images in valid only for HTML output.
    The Reports Builder Help on "Images says that:
    You can add an image to a report by:
    - selecting a column in the database that contains images
    - importing the image from a file into the report layout
    - linking an image object to a file
    - for HTML output, selecting a column in the database that contains URL links to images or linking an image object to a URL
    If you reference a URL for an image, the image is displayed when you format your report for HTML output. For other output formats, the URL text displays in the Paper Design view
    The reason for this is that Oracle Reports will only write the URL in the output. In case of HTML output, the browser can understand the URL, so it will fetch the image from the URL and show it. But this cannot be done by Acrobat Reader.
    For PDF output you will have to use one of the other methods of inserting an image.
    Navneet.

  • Barcodes not diaplyed in PDF output

    Hi ,
    I am not able to display bar codes in PDF output but its working fine in all other output's. can any one guide me where exactly I need to save xdo.cfg file and what should be the exact content. I got code128.ttf and saved it in windows/font and java/jre/lib/font and also saved in templatebuilderforword/font and did changes to xdo.cfg in templatebuilder directory.
    I am testing through my template builder (BIPUB 11g).
    Your help will be highly appreciated.
    deepu.

    plz see http://www.oracle.com/technetwork/middleware/bi-publisher/learnmore/demo-library-toc-173301.html
    - External Fonts
    - Font Mappings (for PDF output)

Maybe you are looking for

  • Downloading  dmg  file and  Mounting Failed ??

    hi, i might have messed up with the files on my ibook. i somehow deleted previous users account and created mine As Admin. ..... however deleted user account is in deleted user folder as dmg file. now when i log in my account as admin and download so

  • Is it true that a iphone 4s are made with orange unloked

    Is it true that a iphone 4s are made with orange unloked. mundem me ju dergu imei, per mi shiku a eshte unloked

  • Data model binding with a "for in" loop

    I've got a data model representing form items. An example data model element and form item looks like this: <data_model> <item_1>{item1.text}</item_1> </data_model> <mx:DateField id="item1" text="{data_model.item1}"/> I get data back from a database

  • Query in ABAP-HR

    Hi, Can you please tell me the difference between Personnel selection period and date selection period. Thanks, Maheedhar Please refer SAP Help and always search the web before posting Locked by: kishan P on Aug 24, 2010 1:15 PM

  • What does a startup upgrade internally?

    Hi, Does some know what "startup upgrade" in Oracle 10g internally does? In the alert log I see the following: ALTER SYSTEM enable restricted session; MMNL started with pid=12, OS id=3872 Fri Jan 22 10:26:35 2010 ALTER SYSTEM SET systemtrig_enabled=F