‎2006 Aug 25 12:06 PM
Hi guys ,
I need to know the function module which is used to read all the documents(pdf).?
Regards,
vinothkumar.G
‎2006 Aug 25 12:18 PM
‎2006 Aug 25 12:21 PM
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.