Skip to Content
author's profile photo Former Member
Former Member

Open PDF file in R3

Hi every body,

I have a report, i want to open the report in PDF file inside the R3,

I know how to download to my PC, but i need to open it automatically by PDF.

BR,

Ali

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2009 at 05:26 AM

    Hi see the code given by Rich in the following thread

    convert-abap-list-to-pdf-and-display-without-downl

    кu03B1ятu03B9к

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2009 at 10:22 AM

    Hi

    you can use this FM to read PDF

    POC_PDF_FORM_READ

    FOPC_REPORT_SHOW_PDF

    SSFCOMP_PDF_PREVIEW

    go to se37 -> Just type pdf and hit F4 and you would find many FM regarding PDF

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2009 at 11:16 AM

    Hi,

    Use this FM..Hope it helps.

    CONVERT_ABAPSPOOLJOB_2_PDF

    Regards

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

    • Ali:

      This one really got me going after looking at Rich's Hielman's post. Unfortunately, I am not on a 7.00 unicode system, rather 4.6C.

      I started looking at this from the perspective of a smartform. My original idea was to generate the pdf file write it to the file system and then call it using an html viewer in a dialog page.

      I subsequently found a better approach, at least for smartforms and sapcript using the fm 'HR_IT_DISPLAY_WITH_PDF'.

      This fm takes an otf table from the smartform and does all the work for you. Enjoy

      
      REPORT z_render_spool_as_pdf .
      
      DATA: ls_control_param      TYPE ssfctrlop.
      DATA: ls_composer_param     TYPE ssfcompop.
      
      ls_control_param-device = space.
      ls_control_param-getotf = 'X'.
      
      ls_control_param-getotf = 'X'.
      ls_control_param-no_dialog = 'X'.
      
      DATA: l_document_output_info TYPE ssfcrespd,
      l_job_output_info TYPE ssfcrescl,
      l_job_output_options TYPE ssfcresop.
      
      
      * Subsitute your smartform name below:
      CALL FUNCTION '/1BCDWB/SF00000034'
       EXPORTING
      *   ARCHIVE_INDEX              =
      *   ARCHIVE_INDEX_TAB          =
      *   ARCHIVE_PARAMETERS         =
          control_parameters         = ls_control_param
      
      *   MAIL_APPL_OBJ              =
      *   MAIL_RECIPIENT             =
      *   MAIL_SENDER                =
      *   OUTPUT_OPTIONS             =
      *   USER_SETTINGS              = 'X'
       IMPORTING
            document_output_info = l_document_output_info
            job_output_info = l_job_output_info
            job_output_options = l_job_output_options
       EXCEPTIONS
         formatting_error           = 1
         internal_error             = 2
         send_error                 = 3
         user_canceled              = 4
         OTHERS                     = 5
                .
      IF sy-subrc <> 0.
      * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      
      
      CALL FUNCTION 'HR_IT_DISPLAY_WITH_PDF'
           TABLES
                otf_table = l_job_output_info-otfdata.
      .
      
      

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.