Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module to read the pdf document.

Former Member
0 Likes
2,279

Hi guys ,

I need to know the function module which is used to read all the documents(pdf).?

Regards,

vinothkumar.G

2 REPLIES 2
Read only

Former Member
0 Likes
906

Read this thread:

Read only

Former Member
0 Likes
906

Hi

If you need to open and show a pdf file you can use the method EXECUTE of class CL_GUI_FRONTEND_SERVICES.

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = 'MY_FILE.pdf'

  • APPLICATION =

  • PARAMETER =

default_directory = path

  • MAXIMIZED =

  • MINIMIZED =

  • SYNCHRONOUS =

  • OPERATION = 'OPEN'

EXCEPTIONS

cntl_error = 1

error_no_gui = 2

bad_parameter = 3

file_not_found = 4

path_not_found = 5

file_extension_unknown = 6

error_execute_failed = 7

synchronous_failed = 8

not_supported_by_gui = 9

OTHERS = 10

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.