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

Defaulting a variable value in PARAMETERS?

Former Member
0 Likes
496

Hi,

My requirement is to declare a PARAMETERS with below given value as s file name

<ServerName>_<sy-datum>.csv.

This should appear in the Selection Screen.

Can any one help me in this.

Thanks.

Edited by: Pranabkrjha on Aug 8, 2010 7:54 AM

Edited by: Pranabkrjha on Aug 8, 2010 7:55 AM

2 REPLIES 2
Read only

asik_shameem
Active Contributor
0 Likes
439
INITIALIZATION.
CONCATENATE sy-host '_' sy-datum '.csv' INTO p_file.
Read only

Former Member
0 Likes
439

Hi,

You should check p_file is initial or not before assigning any value to it, as you want to make it as default value and not to assign the same value once again to p_file if changed by user.

INITIALIZATION.

If p_file is initial.

CONCATENATE sy-host '_' sy-datum '.csv' INTO p_file.

endif.