cancel
Showing results for 
Search instead for 
Did you mean: 

Open Tiff and PDF Files

kngupta141
Participant
0 Kudos

Hi Every one,

I am trying to open the file in SAP container of type TIFF and PDF files but unable to succeed.

I can open the file by using class front end services but opening the file is not sufficient for me i should be able to close file. Since i am unable to succeed in closing file with class front end services.

Here are possible ways i have done

1) Using class front end services i am able to open the PDF and TIFF files, but i should be able to close file ----- If any one has suggestion please suggest me

2) Using Class CL_GUI_HTML_VIEWER I am able to open PDF file in container but not TIFF files,. Tiff file are getting opened outside the container. In order test this behavior if any one has tiff files just open file in IE

3) So i tried of converting image TIFF in PNG by using CL_IGS_IMAGE_CONVERTER but i am getting control error while conversion. I have seen this link as help

4) I have tried to use CL_GUI_ECL_VIEWER but here also i am control error.

So now i am totally stuck. Any ideas and suggestion or working code will be very helpful.

Regards,

Gupta

Message was edited by: Nagaraja Gupta Kadimesetty

Accepted Solutions (0)

Answers (1)

Answers (1)

kngupta141
Participant
0 Kudos

Does any one has any ideas?

kngupta141
Participant
0 Kudos

Does any one has any ideas?

Former Member
0 Kudos

Hi Gupta,

Are you calling the below method?

CALL METHOD cl_gui_frontend_services=>file_open_dialog
      CHANGING
        file_table              = gt_file_table
        rc                      = gw_rc
        user_action             = gw_user_action
*    file_encoding           =
      EXCEPTIONS
        file_open_dialog_failed = 1
        cntl_error              = 2
        error_no_gui            = 3
        not_supported_by_gui    = 4
        OTHERS                  = 5
            .
    IF sy-subrc EQ 0.
      READ TABLE gt_file_table INTO gw_file INDEX 1.

      if sy-subrc eq 0.

     *read file data

endif.
    ENDIF.

Thanks,

Sree

kngupta141
Participant
0 Kudos

yes, i am using fileopen_dialog and execute to select and view the file