cancel
Showing results for 
Search instead for 
Did you mean: 

IF_WD_SELECT_OPTIONS

Former Member
0 Kudos

Hi All,

I have created some Inputfields in Two Tabstrips via method of if_wd_select_options like this Coding below and set parameter obligatory true.

How can I achieve Error Messages if User has not given a Value in this Mandatory Field and want to change Tabstrip? Is there Methods to do it and pls give some Coding. Thanks!

wd_this->mr_selopt->add_selection_field( i_id = 'INP_CHARGABLE_ORDER'

I_DESCRIPTION

= wd_assist->CHARGABLE_ORDER_TXT

I_OBLIGATORY

= abap_true

I_MEMORY_ID

= 'AUN'

I_NO_EXTENSION

= abap_true

I_NO_INTERVALS

= abap_true

I_VALUE_HELP_TYPE

= IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP

I_VALUE_HELP_ID

= 'ZAUF' "'VMVA'

it_result

= lt_range ).

Regards

Beserithan Malabakan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi beserithan.......

you can make use of the method GET_VALUE_OF_PARAMETER_FIELD in the interface if_wd_select_options. it returns the value of your parameter. check for the value. if itis not there.... just generate an error message using the code wizard.

--regards,

alex b justin

Former Member
0 Kudos

Hello Alex,

is there no other possibility for this, which is triggered by Interface?

Regards

Beserithan Malabakan

Former Member
0 Kudos

hi bserithan...

you have to do your checking manually.....

and this is one of the easiest ways.

be little more clear for better solution.

--regards,

alex b justin

Answers (2)

Answers (2)

Former Member
0 Kudos

Not answered really

thomas_szcs
Active Contributor
0 Kudos

Beserithan,

You can check for the presense of error messages by calling method check_selection_screen or any of the other check methods.

Best regards,

Thomas

Former Member
0 Kudos

Hi Thomas,

sorry for lately Reply. What do you mean with check methods?

Regards

Beserithan

thomas_szcs
Active Contributor
0 Kudos

Hello Beserithan,

Interface IF_WD_SELECT_OPTIONS has three methods starting with CHECK_. As said above, calling method CHECK_SELECTION_SCREEN returns the number of error messages thrown by the SelectOptions component. If the number was greater than zero, the user did something wrong.

Best regards,

Thomas