‎2008 Oct 30 6:11 AM
hi all,
in my program the selction screen should have an option to download the data.
whereas filename should be set as DATA_DATEDOWNLOADED i mean
DATA_30102008(today date)
vdate = sy-datum.
parameters: p_fname like ibipparms-path modif id G1 default 'DATA_30102008.xls'.
Please help me to get this
do i need to change anything in the code please help.
thanks in advance.
‎2008 Oct 30 6:14 AM
Hello,
You will give the download path in the selection screen or in the programe you need to change the option.
Better use in this way
vdate = sy-datum
Concatenate the vdate according to u r formate.
and pass the file name to parameter.
CONCATENATE 'c:\' 'DATA' '_' vdate '.xls' INTO file.
file_name = file.
Edited by: Santosh Marupally on Oct 30, 2008 7:20 AM
‎2008 Oct 30 6:19 AM
hi
try this code.
Parameters: filename TYPE rlgrap-filename.
data:file(45) TYPE c .
initialization.
CONCATENATE 'c:\' 'DATA' '_' sy-datum '.txt' INTO file.
filename = file.
‎2008 Oct 30 6:19 AM
Hi,
Use concatenate
and pass that in ur selection statement i think u will do how to code.
Best Regards
Ranga
‎2008 Oct 30 6:24 AM
Hi hemalatha,
As Gautham and Rangaswamy said, try to do with concatenate function and check with the debugging mode for the date, whether its picking up correctly as from SAP date format to normal date format while before storing it into PC drive.
‎2008 Oct 30 6:29 AM
Parameters: fname TYPE string.
data:file(45) TYPE c .
AT SELECTION-SCREEN OUTPUT.
CONCATENATE 'c:\' 'DATA' '_' sy-datum '.xls' INTO file.
fname = file.
‎2008 Oct 30 6:33 AM
Hi,
Try like this:
data : v_date like sy-datum,
v_file(50) type c.
parameters: p_fname like ibipparms-path. " default gv_file.
initialization.
v_date = sy-datum.
concatenate '''' 'DATA_' v_date '.xls' '''' into v_file.
p_fname = v_file.
This may help you.
Regards,
Bhaskar