2007 Nov 26 6:21 AM
Hi All,
I want a pop up window for saving the output file at the desired location
of user. How can I get the pop up window for "Saving" the file at desired
location.
Thanks in Advance. Pts will be rewarede.
Regards
Jitendra.
Hi All,
I want a pop up window for saving the output file at the desired location
of user. How can I get the pop up window for "Saving" the file at desired
location.
Thanks in Advance. Pts will be rewarede.
Regards
Jitendra.
2007 Nov 26 6:28 AM
Hi Jitendra,
Use FM <b>F4_Filename</b>
Using this FM ucan select the location where u want to store the file.
Regards,
Hemant
2007 Nov 26 6:32 AM
Hi Hemant,
I know this function module but when this pop up window comes
it has 2 buttons with lable " Open" and "Cancel".
I want to have the lable as "Save" and "Cancel".
How can this be done....
Thanks & Regards
Jitendra.
2007 Nov 26 6:36 AM
2007 Nov 26 6:48 AM
hi,
go through this code
u can down load to system.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
START-OF-SELECTION.
FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
WRITE:/ ITAB.
ENDLOOP.