‎2009 Jul 31 11:43 AM
thanks.
when i use cal function gui_download ,how to get sys date on notepad that is file name as bkpf_extract_20090731.
regards
swathi
‎2009 Jul 31 11:47 AM
HI,
DATA : FNAME LIKE RLGRAP-FILENAME.
Use Concatenation befor calling GUI_DOWNLOAD.
CONCATENATE M_PATH SY-DATUM SY-UZEIT INTO FNAME
SEPARATED BY '_'.
CONCATENATE FNAME '.txt' INTO FNAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FNAME
TABLES
DATA_TAB = I_DNLD.
Regds,
Anil
Edited by: Anil Katoch on Jul 31, 2009 12:48 PM
‎2009 Jul 31 11:47 AM
HI,
DATA : FNAME LIKE RLGRAP-FILENAME.
Use Concatenation befor calling GUI_DOWNLOAD.
CONCATENATE M_PATH SY-DATUM SY-UZEIT INTO FNAME
SEPARATED BY '_'.
CONCATENATE FNAME '.txt' INTO FNAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FNAME
TABLES
DATA_TAB = I_DNLD.
Regds,
Anil
Edited by: Anil Katoch on Jul 31, 2009 12:48 PM
‎2009 Jul 31 11:49 AM
Use proper subject line in future
DATA : file_name TYPE string.
DATA:file(45) TYPE c .
CONCATENATE 'C:\' 'bkpf_extract_' sy-datum '.txt' INTO file.
file_name = file.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = file_name
filetype = 'ASC'
TABLES
data_tab = it_data.
‎2009 Jul 31 11:57 AM
Hi,
DATA:wk_file(40) TYPE c,
wk_file_name TYPE string.
CONCATENATE 'C:\' 'bkpf_extract_' sy-datum '.txt' INTO wk_file.
wk_file_name = wk_file.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = wk_file_name
filetype = 'ASC'
TABLES
data_tab = <pass your internal table here>.
‎2009 Jul 31 11:59 AM
Hi, Swathi
First of all Welcome to SDN
Please always use meaningful Subject Line for you Post
Test the code given in above two replies those will solve out your problem.
Regards,
Faisal
‎2009 Aug 02 4:39 PM
‎2009 Aug 02 6:08 PM
Hi, Dear
I think you didn't read the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] if Yes than please read first carefully and if No mean you have read than you must read these more carefully
Because you are posting again and again against the Forum Rules.
Please always Search Before Posting and Open New Thread for your Query but don't think that some one will write all the code for you just try first your end and if face any problem than post.
Please don't mind just go through this link [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Thanks and Best Regards,
Faisal
‎2009 Aug 02 7:09 PM