‎2006 Dec 26 3:59 AM
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
‎2006 Dec 26 4:01 AM
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
‎2006 Dec 26 4:01 AM
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
‎2006 Dec 26 4:05 AM
‎2006 Dec 26 4:02 AM
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 hereRegards,
Ravi
Note - Please mark all the helpful answers
‎2006 Dec 26 4:07 AM