cancel
Showing results for 
Search instead for 
Did you mean: 

Default GE Symbol on the Screen

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member16322
Participant
0 Kudos

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

) .

Answers (0)