cancel
Showing results for 
Search instead for 
Did you mean: 

Error message not coming in OVS Help

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Kiran,

Thank u. Issue solved. One doubt, Why the messages are not displaying in OVS event handler?

We have to use only WDDOMODIFYVIEW method to display messages?

Thanks,

Venkat.

former_member184578
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

former_member217546
Participant
0 Kudos

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