on 06-06-2013 12:17 PM
Dear All,
I am using OVS help, In that i want to check some condition. If condition satisfys i want to display some error message.
Every thing is working fine, but message is not displaying. How to disply error message in OVS.
Below code iam using in phase3.
WHEN if_wd_ovs=>co_phase_3.
IF ovs_callback_object->context_attribute CS 'ZXYS'.
ASSIGN ovs_callback_object->selection->* TO <ls_selection>.
IF <ls_selection> IS ASSIGNED.
CLEAR : lv_error.
LOOP AT lt_n_language INTO ls_n_language.
IF ls_n_language-zlan1 EQ <ls_selection>-zlan1 OR
ls_n_emp-zlan1 EQ <ls_selection>-zlan1.
lv_error = 'X'.
ENDIF.
CLEAR : ls_n_lan1,ls_n_emp.
ENDLOOP.
IF lv_error IS INITIAL.
ovs_callback_object->context_element->set_attribute(
name = `ZLXY`
value = <ls_selection>-zlan1 ).
ELSE.
lv_string = wd_assist->if_wd_component_assistance~get_text( key = '006' ).
wd_comp_controller->report_message(
i_msg_txt = lv_string
i_msg_typ = if_wd_message_manager=>co_type_error ).
ENDIF.
ENDIF.
ENDIF.
Thanks,
Venkat.
Hi,
You want to display error message in OVS pop up or in the View when the OVS is closed?
If you want to display error message in OVS pop up, It is not possible. For that you can create a Custom Value Help and you can display error message.
If you want to display error message in View, create an attribute and set the flag, Then in WDDOMODIFYVIEW method, if the flag is not initial display error message.
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
OVS is a standard popup and we cannot display messages on OVS popup( when we select value in OVS the OVS popup will get closed and the messages will not appear)
After closing the OVS popup the WDDOMODIFYVIEW method will be called( this will gets called for each and every event) So we can write in that method.
Hope it is clear. Revert back for further clarifications.
Regards,
Kiran
Hi Venkat,
If you want error message in the phase 3 of OVS, please clear the attributes and set the values and you can write the error message in WDDOMODIFYVIEW method.
Thanks,
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.