Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection screen

Former Member
0 Likes
491

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.

6 REPLIES 6
Read only

Former Member
0 Likes
465

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

Read only

GauthamV
Active Contributor
0 Likes
465

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.
 

Read only

Former Member
0 Likes
465

Hi,

Use concatenate

and pass that in ur selection statement i think u will do how to code.

Best Regards

Ranga

Read only

Former Member
0 Likes
465

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.

Read only

Former Member
0 Likes
465
Parameters: fname TYPE string.
data:file(45) TYPE c .

AT SELECTION-SCREEN OUTPUT.
 
CONCATENATE 'c:\' 'DATA' '_' sy-datum '.xls' INTO file.
fname = file.
Read only

Former Member
0 Likes
465

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