Iconet Services Ltd - SAP ABAP / SAPScript Consultant

Home Page
Company Profile
Search Internet for SAP Information
Subscribe to SAP R3 Mailing list
Sample ABAP Programs
ABAP How to
General Purpose layout set

F4 for GUI_DOWNLOAD FILENAME

PARAMETERS: p_file(60) DEFAULT 'c:\test.xls'.

DATA: gui_filename TYPE string,

gui_directory TYPE string,

actual_file TYPE rcgfiletr-ftfront.

*-------------------------------------------------------------------

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

*-------------------------------------------------------------------

GUI_FILENAME = 'test.txt'.

GUI_DIRECTORY = 'c:\dir'.

CALL FUNCTION 'C13Z_FRONTEND_FILENAME_GET'

EXPORTING

* I_WINDOW_TITLE =

I_DEFAULT_FILENAME = GUI_FILENAME

I_INITIAL_DIRECTORY = GUI_DIRECTORY

IMPORTING

E_FILENAME = ACTUAL_FILE

* TABLES

* I_FILE_EXTENSION_TAB =

* EXCEPTIONS

* INTERNAL_ERROR = 1

* OTHERS = 2

.

IF sy-subrc <> 0.

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

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

ENDIF.

P_FILE = ACTUAL_FILE.

Back to How To list