Skip to Content
0
Former Member
Jun 06, 2013 at 11:17 AM

Error message not coming in OVS Help

74 Views

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.