on 01-25-2016 10:36 AM
Hello,
I want to create a Selection Option exactly like the following:
Where the current date and the greater equal sign appears by default. Current date is easy but I am not sure how to apply >= symbol and logic.
I appreciate if you could share your ideas with me.
Thank you!
BR,
Arman
Message was edited by: Arman Sheikholeslami
Are you using WDR_SELECT_OPTIONS?
If so, then you can limit the range field (hide field HIGH) and set the initial values using method ADD_SELECTION_FIELD of IF_WD_SELECT_OPTIONS.
Parameter I_NO_INTERVALS should remove the HIGH field from the display.
Then just set your range to
SIGN = I
OPTION = GE
LOW = Default Date
And pass in through parameter IT_RESULT.
If you want to limit it to only GE, no other options, you can use Parameters I_COMPLEX_RESTRICTIONS and I_USE_COMPLEX_RESTRICTION. This would force the user to only use GE instead of being able to switch to single value or <, so something like that.
For example (limited example, but is hopefully enough to point you in the right direction):
DATA:
ls_restrict TYEP if_wd_select_options=>t_complex_restrictions
.
ls_restrict-m_include-ge = abap_true .
...
sel_opt->add_selection_field(
i_id = [Name]
it_result = [range table]
i_complex_restrictions = ls_restrict
i_use_complex_restrictions = abap_true
) .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.