on 02-09-2007 3:16 PM
Hello,
while using the select option screen i tried to fill a default value in one of my fields. I used:
*add a new field to the selection
wd_this->m_handler->add_selection_field(
i_id = 'Z_TEST'
it_result = lt_range_table
i_memory_id = 'SXV'
i_no_intervals = abap_true
i_no_extension = abap_true ).
I checked that the parameter ID SXV is filled but there is no default value in the dynpro.
Any ideas?
best regards
stefan
Hi Stefan.
Is it necessary to use memory id's for you?
It is quiet easy to work with field-symbols and
add a value to the range table:
data:
ls_tmprange type rsparams.
field-symbols:
<fs_param> type any,
<fs_range> type any,
<fs_rangetable> type table.
ls_tmprange-low = some value.
ls_tmprange-sign = some value.
ls_tmprange-option = some value.
assign lt_range_table->* to <fs_rangetable>.
create DATA lr_headerline like LINE OF <fs_rangetable>.
ASSIGN lr_headerline->* to <fs_range>.
move-CORRESPONDING ls_tmprange to <fs_range>.
append <fs_range> to <fs_rangetable>.
After that you can call add_selection_field with lt_range_table.
Hope this helps.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sasha,
you did understand me very well, but I mixed up the range_table and the value_set, sorry. What you wrote is exactly what I need.
But when I using your coding I get the error that field lr_headerline is unknown. Could you please give me one more hint how to declare it.
Thanks a lot.
best regards
stefan
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.