2012 Nov 26 10:55 PM
Hi everyone
I have 2 questions related to the method cl_gui_frontend_services=>execute :
DATA: w_param TYPE String.
w_param = 'C:\TMP\NewOutput'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = w_param
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 = 0.
Questions:
1. Is it possible to have a list of file extention supported?
2. When the file extention is not supported, can we avoid windows to display the error message and have the exception FILE_EXTENTION_UNKNOWN set?
Regards
Daniel
2012 Nov 27 9:01 AM
2012 Nov 27 9:01 AM
2012 Nov 27 4:02 PM
Hello Raymond
Thank you for your response.
That doesn't give a list of supported extension but at least we can have an idea if the extension is supported or not.
One more question:
If the extension is not supported, I would like to ask the user to select with which software he want to open the file. Like windows does.
Any idea if it is possible to do it through ABAP?
Regards
Daniel
2012 Nov 27 4:45 PM
You have to run the OS command, firstly you have to identify which windows command calls that screen, then you can run OS command following this post https://scn.sap.com/thread/1014193
Regards,
Felipe