Code:
---------------------------------------------------------------------------------------------------------------
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
* document = " Path+Name to Document
application = 'www.google.com' " Path and Name of Application
* parameter = " Parameter for Application
* default_directory = " Default Directory
* maximized = " Show Window Maximized
* minimized = " Show Window Minimized
* synchronous = " When 'X': Runs the Application in Synchronous Mode
* operation = 'OPEN' " Reserved: Verb für ShellExecute
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.
---------------------------------------------------------------------------------------------------------------
Step1. cl_gui_frontend_services=>execute method can be used to call any URL. It can be used to call any webdynpro/fpm application from the program as every webdynpro/fpm application have an uniuqe URL.
Step2. Here it calls the URL.
Step3. Still we can open any document by specifying the appropriate executable file, location of the directory of the file and providing the file name.
Step4. Here is one example how we can open a PDF file by the method cl_gui_frontend_services=>execute.
--------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
* document = " Path+Name to Document
application = 'www.google.com' " Path and Name of Application
* parameter = " Parameter for Application
* default_directory = " Default Directory
* maximized = " Show Window Maximized
* minimized = " Show Window Minimized
* synchronous = " When 'X': Runs the Application in Synchronous Mode
* operation = 'OPEN' " Reserved: Verb für ShellExecute
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.
---------------------------------------------------------------------------------------------------------------
Step1. cl_gui_frontend_services=>execute method can be used to call any URL. It can be used to call any webdynpro/fpm application from the program as every webdynpro/fpm application have an uniuqe URL.
Step2. Here it calls the URL.
Step3. Still we can open any document by specifying the appropriate executable file, location of the directory of the file and providing the file name.
Step4. Here is one example how we can open a PDF file by the method cl_gui_frontend_services=>execute.
--------------------------------------------------------------------------------------
No comments:
Post a Comment