Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

exceptions in cl_gui_frontend_services=>file_open_dialog

hi when upgrading from 4.5 to 6.o Im getting the following exception

When the pop up box is cancelled during the download option, a success message is displayed in 6.0 whereas an error message is displayed in 4.5.

here is the code

CALL METHOD cl_gui_frontend_services=>file_open_dialog

EXPORTING

DEFAULT_EXTENSION = '*.xls,'

DEFAULT_FILENAME = '*.xls,'

FILE_FILTER = '.'

CHANGING

file_table = W_FILENAME

rc = w_rc

EXCEPTIONS

FILE_OPEN_DIALOG_FAILED = 1

CNTL_ERROR = 2

ERROR_NO_GUI = 3

NOT_SUPPORTED_BY_GUI = 4

others = 5.

IF W_RC IS NOT INITIAL.

READ TABLE W_FILENAME INTO W_AREA INDEX 1.

IF SY-SUBRC = 0.

L_FILE = W_AREA-FILENAME.

ENDIF.

ENDIF.

IF SY-SUBRC EQ 3.

MESSAGE I999 WITH 'Action Cancelled by user'(044).

EXIT.

ENDIF.

plz tell me where is the eror

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question