I have where I have a selection screen that finds the file, you can say where to get the file. After that I need to close that window. How do I close it???
Below is an example of my program. After I choose the file and execute the program, I have a <b>write</b> statement. I don't see that statement on the screen. How do i terminate the input screen and display text.
Parameters : AUSZFILE LIKE RFPDO1-FEBUMSF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR AUSZFILE. "mo271101
DATA: L_FILES TYPE FILETABLE,
H_FILES TYPE FILE_TABLE,
L_RC LIKE SY-SUBRC.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG CHANGING
FILE_TABLE = L_FILES
RC = L_RC
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
OTHERS = 5.
IF SY-SUBRC <> 0 OR L_RC < 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO "mo271101
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
READ TABLE L_FILES INDEX 1 INTO H_FILES.
AUSZFILE = H_FILES-FILENAME.
Thanks in advance 😊 😊