Dear Experts,
Pl see the code below. Sometimes it throws a dump with sy-subrc = 7. I am calling this method to execute a file. The reason of dump is not known or I am not able to trace it. Please advise on how to find the cause of dump or is there anything wrong with parameters. Most of the times it run fine. The Dump file is also attached for reference.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = 'C:\WBSAP\WB.BAT'
application = 'cmd'
parameter = gv_exenm "'/c C:\C\int.exe'
default_directory = 'C:\WBSAP'
maximized = ' '
minimized = 'X'
synchronous = 'X'
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.
Thanks & Regards,
Anil.