Junk Display in PDF Format - Ramya

Hi All,
I have created my customer invoice report and giving right output from the Reports 6i,but when i run the same report from the Oracle Applictions,the word format is completely changing in to some other languge(junk Characters).
could anybody help me in this regard
Thanks in Advance

Hi Ramya,
What is the O/S in which you have deployed your reports server?
Let me know what is happening in detail. We have faced similar issues and fixed it succesfully.
Would be glad to share the same to the forum community.
Thanks
Guru
[email protected]

Similar Messages

  • Hangs when calling report to be displayed in PDF format

    I am calling reports from a form using RUN_PRODUCT to be displayed in PDF format. Initially, there is no problem generating and displaying reports, but inevitably at some point when a report is run it just hangs. Rebooting the server temporarily fixes problem. Any ideas on what is happening?
    Using Forms & Reports Server 6i on Windows NT 4.0

    It seems that the key to the solution is to shrink the margins.....
    Greetings,
    Sim

  • Clicking one level coloumn to be display in 'pdf format' of report(obiee)

    Hi All,
    we are developed a report and its containing 4 coloumns in obiee analytics.
    when we click 2nd coloumn(Year) it will navigate to next level(quarter) of same table.
    In the same way when we click on quarter level, it can display the month level in 'pdf' format in a seperate window.
    how it can be achieve.
    Please help me on this.
    Thanks,
    sunil

    Thanks srini..
    You provided the link is most helpful.
    And i need full information about this topic.
    we are using Finance data and users the we reports in pdf format. In that once we click on the any hierachical coloumn it will display pdf file e.g take Invoice of previus month.
    We are using OBIEE 10g software.
    Could You please provide me such information on this.
    Thanks,
    sunil.

  • Report displayed in PDF format

    Can somebody point me in the right direction, I am producing a report from a table that uses the standard portal report creation capabilities and is displayed when selecting the link on the portal page. What I would like to do is when the report is displayed is to display it as a pdf document.
    Thanks
    Keith

    Hi,
    There is an destination format. This can be used for the output type. When you type here PDF a PDF document is generated.
    When you call a report from a form you can call the report with a parameter like this :
    SET_REPORT_OBJECT_PROPERTY( v_report_id
    , REPORT_DESNAME
    , <name of the pdf doc> )
    SET_REPORT_OBJECT_PROPERTY( v_report_id
    , REPORT_DESFORMAT
    , 'PDF' );
    succes!

  • Action - Display smartform in PDF format

    Hi All,
    I have a requirement whereby on triggering of a print form action in crmd_order, the smartform should be displayed in PDF format and from there, user should be able to choose whether to save or to print the form. How can this be done?
    Thanks!
    Cady

    Hi,
    Here's the solutions.
    1 .Show the PDF as pop-up upon trigger, very much the same how PDF attachment always pops up in the internet explorer. But this pops up in GUI.
    Call the smartform FM with the GETOTF checked,
    control_parameters-GETOTF = 'X'.
    control_parameter-no_dialog = 'X'.
    control_parameter-langu = <ur language>.
    output_options-tddest = 'LOCL'.
    output_option-tdimmed = 'X'.
    output_option-tddelete = 'X'.
    i_otf = job_output_info-OTFDATA.
    CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
      EXPORTING
        i_otf                          = i_otf
    EXCEPTIONS
       CONVERT_OTF_TO_PDF_ERROR     
       CNTL_ERROR                   
       OTHERS                        
    2. Triggering action in ICWC and PDF pops up in new window.
    Call function 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language             = sy-langu
        IMPORTING
          e_devtype              = devtype
        EXCEPTIONS
          no_language              
          language_not_installed
          no_devtype_found       
          system_error             
          others                       
    control_parameters-langu = sy-langu.
        control_parameters-no_dialog = 'X'.
        control_parameters-getotf       = 'X'.
    CALL FUNCTION '<your_form_FM>'
      EXPORTING
       CONTROL_PARAMETERS      = control_parameters
       OUTPUT_OPTIONS                 = output_options
    IMPORTING
       JOB_OUTPUT_INFO                = output_data
      TABLES
       orderadm_h       = <your tables>
      EXCEPTIONS
       FORMATTING_ERROR      
       INTERNAL_ERROR            
       SEND_ERROR                  
       USER_CANCELED            
       OTHERS                           
    call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = l_pdf_len
          bin_file                = l_pdf_xstring
        TABLES
          OTF                    = OUTPUT_DATA-OTFDATA
          LINES                 = LT_LINES
        EXCEPTIONS
          err_max_linewidth       
          err_format                  
          err_conv_not_possible 
          err_bad_otf                 
          others                        
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE  EXPORTING add_c_msg = 1.
        l_pdf_len = xstrlen( l_pdf_xstring ).
        cached_response->set_data( data   = l_pdf_xstring
                            length = l_pdf_len ).
    cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
                                             url = display_url.
    RETURN.
    Declare display_url as an attribute in the implementation class as well as page attribute.
    Push the display_url value to page attribute using the SET_MODELS method in the implementation class.
    Clear display_url in DO_INIT_CONTEXT so that PDF only pops up when action is triggered.
    Put this piece of code in the page htm.
    I can't seem to be able to put the code here. It's a java script.
      IF display_url IS NOT INITIAL.
    * I can't show the script here for i kept getting error when i tried putting the java script here.
      ENDIF.
    3. To trigger a print action and send PDF attachment in background, a spool will still be created. 
    Call the smartform FM as usual.
      lt_spoolid[] = es_job_output_info-spoolids[].
      READ TABLE lt_spoolid INTO lw_spoolid INDEX 1.
      CHECK lw_spoolid IS NOT INITIAL.
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid                = lw_spoolid
          no_dialog                  = 'X'
        IMPORTING
          pdf_bytecount            = lw_bytecount
        TABLES
          pdf                             = lt_lines
        EXCEPTIONS
          err_no_otf_spooljob      
          err_no_spooljob            
          err_no_permission        
          err_conv_not_possible   
          err_bad_dstdevice         
          user_cancelled             
          err_spoolerror               
          err_temseerror              
          err_btcjob_open_failed  
          err_btcjob_submit_failed
          err_btcjob_close_failed  
          OTHERS                      
      IF sy-subrc NE 0.
    */    Set to incorrectly processed.
        CALL METHOD cl_log_ppf=>add_message
          EXPORTING
            ip_problemclass = '2'
            ip_handle       = ip_application_log.
      ENDIF.
      CHECK sy-subrc = 0.
    * Convert PDF from 132 to 255, combine everything into a single string.
      LOOP AT lt_lines INTO lw_lines.
    * Individually replace the space with a '~'.
        TRANSLATE lw_lines USING ' ~'.
        CONCATENATE lw_buffer lw_lines INTO lw_buffer.
      ENDLOOP.
    * Replace '~' by space.
      TRANSLATE lw_buffer USING '~ '.
      DO.
    *   Putting in the first 255 chars into the variable.
        lw_record = lw_buffer.
    *   Append 255 chars as a record.
        APPEND lw_record TO lt_record.
        SHIFT lw_buffer LEFT BY 255 PLACES.
        IF lw_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    * Object with PDF.
      lt_objbin = lt_record.
      DESCRIBE TABLE lt_objbin LINES lw_lines_bin.
    * Object with main text for the mail.
      lw_objtxt = <your text>
      append lw_objtxt to lt_objtxt.
      DESCRIBE TABLE lt_objtxt LINES lw_lines_txt.
    * Document information.
      lw_doc_chng-obj_name    = 'Smartform'.
      lw_doc_chng-expiry_dat  = sy-datum + 20.
      lw_doc_chng-obj_descr   = <your text>.
      lw_doc_chng-sensitivty  = 'F' 
      lw_doc_chng-doc_size    = lw_lines_txt * 255.
    * Pack to main body as RAW
    * Obj to be transported not in binary form
      CLEAR lw_objpack-transf_bin.
    * Start line of object header in transport packet.
      lw_objpack-head_start = 1.
    * Number of lines and object header in object packet.
      lw_objpack-head_num = 0.
    * Start line of object contents in an object packet.
      lw_objpack-body_start = 1.
    * Number of lines of the object contents in an object packet.
      lw_objpack-body_num = lw_lines_txt.
    * Code for document class.
      lw_objpack-doc_type = 'RAW'.
      APPEND lw_objpack TO lt_objpack.
    * Packing as PDF.
      lw_objpack-transf_bin = lc_x.
      lw_objpack-head_start = 1.
      lw_objpack-head_num   = 0.
      lw_objpack-body_start = 1.
      lw_objpack-body_num   = lw_lines_bin.
      lw_objpack-doc_type   = 'PDF'.
      lw_objpack-obj_name   = <your text>.
      CONCATENATE '<your text>' '.pdf' INTO lw_objpack-obj_descr.
      lw_objpack-doc_size   = lw_lines_bin * 255.
      APPEND lw_objpack TO lt_objpack.
    * Document information.
      CLEAR lw_reclist.
    * Email receivers.
      lw_reclist-receiver = <email address>
      lw_reclist-express  = 'X'.
      lw_reclist-rec_type = 'U'. "Internet address.
      lw_reclist-com_type ='INT'.
      APPEND lw_reclist TO lt_reclist.
    * Send mail.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = lw_doc_chng
        TABLES
          packing_list                 = lt_objpack
          object_header              = lw_objhead
          contents_txt                = lt_objtxt
          contents_bin               = lt_objbin
          receivers                     = lt_reclist
        EXCEPTIONS
          too_many_receivers            
          document_not_sent            
          document_type_not_exist   
          operation_no_authorization 
          parameter_error                 
          x_error                             
          enqueue_error                   
          OTHERS                          
      IF sy-subrc = 0.
        COMMIT WORK.
      ELSE.
    */    Set to incorrectly processed.
        CALL METHOD cl_log_ppf=>add_message
          EXPORTING
            ip_problemclass = lc_2
            ip_handle       = ip_application_log.
      ENDIF.
    4. Trigger action and send PDF attacment as mail. No Spool.
    control_parameters-GETOTF = 'X'.
    control_parameter-no_dialog = 'X'.
    control_parameter-langu = <ur language>.
    output_options-tddest = 'LOCL'.
    output_option-tdimmed = 'X'.
    output_option-tddelete = 'X'.
      CALL FUNCTION 'your smartform FM
        EXPORTING
          control_parameters = lw_ctrl_params
          output_options     = lw_output_options
          user_settings      = space              "Has to be set to SPACE so it will get parameters from lw_output_options.
          et_orderadm_h    
          et_orderadm_i     
          et_cancel          
          et_appointment    
          et_partner        
          es_but000         
        IMPORTING
          job_output_info    = lw_output  "OTF format
        EXCEPTIONS
          formatting_error  
          internal_error    
          send_error        
          user_canceled     
          OTHERS            
    * Get the OTF data.
      lt_otf = lw_output-otfdata[].
    * Convert OTF format to PDF.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lw_bin_filesize
        TABLES
          otf                     = lt_otf
          lines                  = lt_lines
        EXCEPTIONS
          err_max_linewidth       
          err_format                  
          err_conv_not_possible 
          err_bad_otf                 
          OTHERS                    
    The rest will the similiar to no.3, * Convert PDF from 132 to 255, combine everything into a single string. onwards.
    Cheers,
    ck.

  • Display report on the web in pdf format

    I am attempting to display a report in pdf format where I have passed parameters to it and it doesn't work.
    We are using Oracle Reports 6i.
    If I use the following CGIcmd line
    a: server=reports destype=cache desformat=HTML userid=test/test@db paramform=no %*
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?a+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    This report is displayed in HTML format.
    For the following test I only changed the format from HTML to pdf.
    The CGIcmd line became
    b: server=reports destype=cache desformat=pdf userid=test/test@db paramform=no %*
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?b+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    In this instance there is no report but there is a 'broken image' icon displayed in the top left hand corner of the screen. There are no error messages.
    This is the preferred method.
    As a test I also tried allowing the parameterer form with both HTML and pdf reports.
    The CGIcmd line was set to
    ax: server=reports destype=cache desformat=HTML userid=test/test@db %* %P
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?ax+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    This displayed the parameter page and when you accept the parameters, the correct report is displayed in HTML format.
    When I use the following CGIcmd line
    bx: server=reports destype=cache desformat=pdf userid=test/test@db %* %P
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?ax+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    As before, this displays the parameter page and when you accept the parameters, the correct report is displayed in pdf format.
    The only problem is where we are attempting to use the URL to go directly to the report in pdf format.
    Thanking you in advance of any help
    Michael Redford

    Hello ,
    You can try out the following
    1. Click on the Report name and bring up the property palette to show all of the properties for the whole report.
    2. Under Report Escapes->Before Form Value, change form method from POST to GET .
    Thanks
    The Oracle Reports Team

  • How to get a report in pdf format.

    Hi Experts,
    Could any one let me know that, how to get the report in PDF format.
    Once a report is generated it should be displayed in pdf format or downloaded in pdf format.
    Thanks in Advance,
    Regards,
    Irfan Hussain

    Hi,
    Check out this code:
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    * Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    * Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    * Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    *** Alternative way could be to submit another program and store spool
    *** id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
    *        to sap-spool
    *        spool parameters   %_print
    *        archive parameters %_print
    *        without spool dynpro
    *        and return.
    * Get spool id from program called above
    *  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
    *       FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
    *       FORM get_job_details                                          *
    FORM get_job_details.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
    *       FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    *       FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    Regards,
    Gayathri

  • URL Portlet PDF format, in new window?

    I have successfully installed the URL portlet and can render an Oracle report within in HTML format. I want it to display in PDF format, but it doesn't work...it displays source code. Is there a way to do this?
    Also, the report display in place...how can I have just the URL displayed to link out to new window? Thanks...

    Are you trying to render the PDF document inside the portlet? Portlets are really only meant to render content that can be displayed inside an HTML table. For a PDF document to share a page with other content, it needs to be in its own frame.
    You can create a portlet that just has a link in it if you want the report to display in a new window. This is pretty easy using Content Areas.
    null

  • Font problem in reports produced in PDF format

    Dear all,
    All our reports are developed by developer suite 10g (under windows) and deployed on an Application Server 10g (on Linux).
    We had a problem with displaying the arabic letters, but this was solved by following the steps in the metalink Note no 726205.1 for generating arabic pdf reports on unix.
    Now, the problem is that the font used in the reports is ARIAL, but when the reports are displayed (in PDF format) the font is TAHOMA. This font conversion happens in both Arabic and English reports !
    I wonder how can I correct this behaviour.
    Thanks in advance for your time.
    Naglaa

    Steve,
    I remember that fonts in PDF generated by Oracle Reports is a big topic and a subject of many Metalink notes (metalink.oracle.com).
    Note.210318.1 Ext/Pub How To use font embedding in Reports 9i for PDF output
    Note.207711.1 Ext/Pub How to Use Font Subsetting in Reports 9i for PDF Output
    Note 232975.1 "Windows/Unix Font Issues: What Information is Required to address the Issue and How to Work Around Issue"
    Especially on Unix and Linux systems, there are some font mapping required. I suggest to run this question on the Reports forum here on OTN where I think you have better chances for an answer.
    Frank

  • Infoview: Footer missing when viewed in PDF format

    Hi,
    Our setup is BO XI R2 SP4 FP4.10 on Windows 2003, two productive machines, running in two different sub-nets. Both servers have Adobe reader 8.1.2 installed.
    On the master server the reports display correctly when displayed and are saved in PDF format. We also have a 2nd Server running in a different sub-net with an exact copy of all reports, universes and Windows setup. Here we have some reports that are showing a strange behaviour. When displayed in PDF format, the footer is missing.
    I've just exported/imported (via a BIAR) a copy of one report and its associated universe but still get the same behaviour.
    Any ideas would be very welcome.
    Cheers
    Andrew

    Never heard of such an issue.  Can you share such a PDF with the forum?  See http://forums.adobe.com/thread/1408375

  • Displaying a spool which is in PDF format in SAP

    Hi Friends,
    We have a requirement where we need to display a W2 form for employee in PDF format.  Through SP01, I can see the pdf file.  How can I programatically display this W2 using ABAP program.
    I have tried various function modules related to spools, but most of them didn't work as the spool was in ADSF format.
    Your inputs or suggestions are awaited.

    Hello,
      DATA:
        V_LRQCLIENT      TYPE TSP01-RQCLIENT,
        V_LRQO1NAME      TYPE TSP01-RQO1NAME,
        V_LCLIENT        TYPE RSTSTYPE-CLIENT,
        V_LNAME          TYPE RSTSTYPE-NAME.
    Begin of addition SCR FIE759-ECC6.0 D11K924073 04/13/2010.
      data rq       type tsp01.
      data bin_size type i.
      data dummy    type table of rspoattr.
    End of addition SCR FIE759-ECC6.0 D11K924073 04/13/2010.
      DATA:
        C_LSP01          TYPE RSTSTYPE-AUTHCHECKD    VALUE 'SP01'.
    Begin of Insertion for D11K915826
      DATA:
        V_LPAGENUM       TYPE TSP01-RQAPPRULE.
    End   of Insertion for D11K915826
    Retrieve spool details.
    Access using full primary key, RQIDENT.
    Begin of Change for D11K915826
      SELECT SINGLE RQCLIENT RQO1NAME RQAPPRULE
        INTO (V_LRQCLIENT, V_LRQO1NAME, V_LPAGENUM)
    End   of Change for D11K915826
        FROM TSP01
       WHERE RQIDENT = P_SPOOL.
    Return code check is not needed, always successful.
    Begin of Insertion for D11K915826
      IF V_LPAGENUM > 99 AND SY-BATCH IS INITIAL.
        MESSAGE S000(ZPES) DISPLAY LIKE C_E WITH TEXT-015 TEXT-016.
      ELSE.
    End   of Insertion for D11K915826
      V_LNAME     = V_LRQO1NAME.
      V_LCLIENT   = V_LRQCLIENT.
    Call function module to retrieve spool attributes.
      call function 'RSPO_GET_ATTRIBUTES_SPOOLJOB'
        exporting
          rqident     = p_spool  "Spool no
        importing
          rq          = rq
        tables
          attributes  = dummy
        exceptions
          no_such_job = 1
          others      = 2.
      if sy-subrc <> 0.
        message e126(po) with P_SPOOL.
      endif.
    IF V_OBJTYPE+0(3)  = C_OTF.
      --- convert spool request into PDF, dependent on document type ---
      if rq-rqdoctype = 'OTF' or rq-rqdoctype = 'SMART'.
    Convert spool to PDF.
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            SRC_SPOOLID                    = P_SPOOL
    Begin of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
            NO_DIALOG                     = SPACE
           IMPORTING
             pdf_bytecount                 = bin_size
             bin_file                      = pdf_xstring
    End of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
          TABLES
            PDF                            = I_PDF
          EXCEPTIONS
            ERR_NO_OTF_SPOOLJOB            = 1
            ERR_NO_SPOOLJOB                = 2
            ERR_NO_PERMISSION              = 3
            ERR_CONV_NOT_POSSIBLE          = 4
            ERR_BAD_DSTDEVICE              = 5
            USER_CANCELLED                 = 6
            ERR_SPOOLERROR                 = 7
            ERR_TEMSEERROR                 = 8
            ERR_BTCJOB_OPEN_FAILED         = 9
            ERR_BTCJOB_SUBMIT_FAILED       = 10
            ERR_BTCJOB_CLOSE_FAILED        = 11
            OTHERS                         = 12.
        IF SY-SUBRC <> 0.
    Begin of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         message e712(po) with sy-subrc 'CONVERT_OTFSPOOLJOB_2_PDF'.
    End of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
        ENDIF.
    Begin of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
    ELSE.
    elseif rq-rqdoctype = 'LIST'.
    Convert Spool to PDF.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            SRC_SPOOLID              = P_SPOOL
    Begin of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
            NO_DIALOG               = SPACE
           IMPORTING
             pdf_bytecount            = bin_size
             bin_file                 = pdf_xstring
    End of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
          TABLES
            PDF                      = I_PDF
          EXCEPTIONS
            ERR_NO_ABAP_SPOOLJOB     = 1
            ERR_NO_SPOOLJOB          = 2
            ERR_NO_PERMISSION        = 3
            ERR_CONV_NOT_POSSIBLE    = 4
            ERR_BAD_DESTDEVICE       = 5
            USER_CANCELLED           = 6
            ERR_SPOOLERROR           = 7
            ERR_TEMSEERROR           = 8
            ERR_BTCJOB_OPEN_FAILED   = 9
            ERR_BTCJOB_SUBMIT_FAILED = 10
            ERR_BTCJOB_CLOSE_FAILED  = 11
            OTHERS                   = 12.
        IF SY-SUBRC <> 0.
    Begin of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         message e712(po) with sy-subrc 'CONVERT_ABAPSPOOLJOB_2_PDF'.
    End of change SCR FIE759-ECC6.0 D11K924073 04/13/2010.
        ENDIF.
    Begin of addition SCR FIE759-ECC6.0 D11K924073 04/13/2010.
    ELSE.
         message e789(po) with rq-rqdoctype.
      ENDIF.
      pdf_size = bin_size.
    End of addition SCR FIE759-ECC6.0 D11K924073 04/13/2010.
      IF I_PDF[] IS NOT INITIAL.
    Transfer pdf document to Unix.
        Use FM GUI_DOWNLOAD to download the pdf data to presentation server.
    Thanks.
    ramya.

  • Displaying report in .pdf format while Running oracle reports over the web

    I am running a report over the web via IE. I am suing .pdf
    format as the file type. The problem I am facing is that the
    report comes out with a blank in acrobat reader if there are
    just one or two records - i.e less thatn one pagefull. THe
    reports displays output only when there ar more than one
    pagefull of records.
    Any explanation for this bezarre behavior and any suggestions?
    I will very much appreciate your help.
    Regards
    Prasad.

    in R12 I found 2 choice
    1) when submitting requests (if available) you can set the output format by using the Options button (upon sompletion section):
    layout --> format --> select format you need (RTF/HTML/EXCEL/PDF)
    2) in the request form (view->request) selecr the report you want to reprint in the Tools menu select print/republish, in the html page that pop up select output format you want, number of copies =1 submit
    www2p

  • Report Title Displaying in Multiple Lines on PDF Format when i Print in PDF

    Report Title Displaying in Multiple Lines on PDF Format when i tried to print in PDF Format, is there any limit for Report Title Characters
    Displaying Like -
    LRDP
    Open
    Label
    Paradigm
    Forecast
    Report
    Any Info Appreciated
    ~Srix

    Got It .. Just need to chnage the Width Parameter.......!

  • The "portable document format" icon is a Word 2010 icon, so selecting Adobe Reader as action does not work to display the PDF.

    In the Applications tab -- Content Type -- the "portable document format" icon is a Word 2010 icon (not Adobe), so selecting Adobe Reader or preview in Firefox as action does not work to display the PDF. I can see this Applications difference because my other Firefox laptop has the Adobe icon, and I can view PDFs. Essentially, a PDF is coming in as a Word document -- and the computer tries to open it up as a Word file.
    How do I get the correct PDF icon in the Applications list -- the same way it displays (and works) on my other laptop.

    Adobe PDF Plug-In For Firefox and Netscape 10.1.7 ?
    I think you need to add this to the list of applications and the action to take on the type of content. This can also be managed in the about:permissions page. [[Permissions Manager - Give certain websites the ability to store passwords, set cookies and more]]

  • Display W2 form in PDF format in ESS

    I am trying to develop a WebDynpro ABAP application to display W2 Form in the Portal 7.0 ESS. I have designed a view with an Adobe Form element to hold the W2 form, and looking for any ideas about getting W2 form in PDF format from the ECC 6.0 system by providing parameters like EE number, Tax Company, and year.
    I know that the tcode PU19 can be used for getting W2 in PDF format, but it involves too many steps to generate and view the W2 in PDF format. I am not sure what kind of coding (e.g. classes, methods, logic to retrieve W2) will I need to do in the Web Dynpro application to retrieve W2 in PDF format from the ECC system.
    I will appreciate and reward any useful answers or pointers.
    Thanks,
    Saurabh

    Saurabh,
    Have you found a way to produce the W2s without using tcode PU19.  I am looking at doing W2s in ESS for our company and am interested in anything you have done on this.
    Thanks,
    Robert

Maybe you are looking for

  • Zen Vision M 30GB Warre

    Hello i own a creative zen vision m 30GB and no that the new creative zen has come out I have heard that they won't be making any hardisk MP3 players again so i was wondering if my Zen Vision M broke now would it still be coverd in warrenty and what

  • Final Cut Studio 2 and Logic Studio on MacBook

    I have a white MacBook bought in late 2008. It has a 2.1 GHz Intel Core 2 Duo processor w/ 1 GB 667 MHz DDR2 SDRAM. My question is: has anyone run Final Cut Studio 2 and/or Logic Pro with these specs? And how was it? I was told performance would be w

  • Sales order we have made schedule line category catCN but still reqt coming

    Dear Sir, Sub : For sales order 5000060 line 10 we have made schedule line category as CN but still system is giving requirement against this order (while running MRP T code MD50) Details: One user has made one FG material delivery with PGI without p

  • Start Menu Folder Redirection In Windows Server 2008 R2 (Via GPO) For Windows 7 Professional

    Hi, I'm having the problem where a redirected start menu appears empty. Using server 2008 R2 and the clients are Windows 7 Professional; i am getting empty start menu. Note:- Same is working perfectly fine with Windows XP machines. I believe the poli

  • KEEP LOSING MY BOOKMARKS

    Keep losing my bookmarks when signing on and off, and mostly when i reset Firefox to stop freezeups which happen quite often