Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

Error message not coming in OVS Help

$
0
0

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> ISASSIGNED.
          CLEAR : lv_error.
          LOOPAT 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 ISINITIAL.
            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.


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>