Skip to Content
0
Former Member
Dec 03, 2008 at 08:50 AM

Error with WS_FILENAME_GET

116 Views

Hi experts,

i have this piece of code, but I'm getting an ABAP dump. What could be wrong?

"A RAISE statement in the program "SAPLGRAP " raised the exception

condition "SELECTION_CANCEL".

Since the exception was not intercepted by a superior program

in the hierarchy, processing was terminated. "

PARAMETERS: p_file LIKE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

CALL FUNCTION 'WS_FILENAME_GET'

EXPORTING

  • DEF_FILENAME = ' '

DEF_PATH = 'C:\'

  • MASK = ' '

  • MODE = ' '

TITLE = 'Choose File'

IMPORTING

FILENAME = p_file

  • RC =

EXCEPTIONS

INV_WINSYS = 1

NO_BATCH = 2

SELECTION_CANCEL = 3

SELECTION_ERROR = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.