on 11-27-2007 9:31 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not answered really
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.