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

regarding selection screen default value

Former Member
0 Likes
768

hi all,

I have to initialise a selection screen parameter to a default value stored in a string variable. I know that we can initialise directly by specifying the literal value. I want to initialise through a variable.

data: lv_file type string.

concatenate 'c:\' sy-datum '.txt' to lv_file.

parameters:

p_sel TYPE FILE_TABLE-FILENAME DEFAULT lv_file.

but it is raising an error here. Please let me know how to resolve this ...

thanks in advance....

best regards,

subhakar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
600

Hi,

use the initialization event..

parameters:

p_sel TYPE FILE_TABLE-FILENAME.

INITIALIZATION..

data: lv_file type string.

concatenate 'c:\' sy-datum '.txt' to lv_file.

p_sel = lv_file.

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
601

Hi,

use the initialization event..

parameters:

p_sel TYPE FILE_TABLE-FILENAME.

INITIALIZATION..

data: lv_file type string.

concatenate 'c:\' sy-datum '.txt' to lv_file.

p_sel = lv_file.

Thanks,

Naren

Read only

0 Likes
600

Thank you narendran for your prompt reply...

Read only

Former Member
0 Likes
600

You will have to do this the INITIALIZATION event.


parameters: 
p_sel TYPE FILE_TABLE-FILENAME .

Initialization

data: lv_file type string.
concatenate 'c:' sy-datum '.txt' to p_sel. "Assign the value here

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

0 Likes
600

thanks ravi ...its working.points for you all