Application Development 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: 

Defaulting a variable value in PARAMETERS?

Former Member
0 Kudos

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

asik_shameem
Active Contributor
0 Kudos
INITIALIZATION.
CONCATENATE sy-host '_' sy-datum '.csv' INTO p_file.

Former Member
0 Kudos

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.