Skip to Content

validate the OVS input field in WDA

Hi Experts,

I have to validate the input field OVS . If i entered data which is not present in the database table, it should not proceed furthur..

How do i achieve this. Guide me.

Best regards,

Rao     .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Dec 30, 2013 at 07:41 AM

    Hi Narasimha,

    Please refer the below document

    How to validate the fields on OVS window - Webdynpro ABAP

    Hope this helps you.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 30, 2013 at 01:17 PM

    Hi Rao,

    You can perform your validations in the OVS event's Phase 2 and issue a message through the IF_WD_MESSAGE_MANAGER object (see the code wizard). If you are familiar with writing SAPgui search help exits, the OVS event phase indicator is similar in concept to the callcontrol-step in a search help exit.

    Component Usages in Web Dynpro ABAP Part II: Object Value Selector (OVS)

    Cheers,

    Amy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 21, 2013 at 08:54 AM

    Hi Narasimha,

    As you might be writing data base query to show the values in the OVS popup. So in the available input field(for which OVS is attached), when the user enter's and input value and on performing any action read that input value and check whether the value exists in database or not.

    If yes, allow him to proceed further else show and error message.

    Thanks

    Katrice

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 23, 2013 at 10:33 AM

    Hello Narasimha,

    In your event handler method(handling OVS event ).

    you need to read the value of  phase_indicator attribute of if_wd_ovs interface via(OVS_CALLBACK_OBJECT) which will be available as input parameter in your method.

    Once the value is equal to co_phase_2 you could read the values entered by the user in the selections screens of OVS component, via query_parameters attribute and you could then apply your logic ...validate user input and if it fails you could throw,,error message,,via set_messages method of if_wd_ovs_inteface.

    Regards

    Anurag

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 30, 2013 at 02:46 PM

    Hi experts,

    Thank you for the Instant reply. 😊

    Best regards,

    Rao

    Add comment
    10|10000 characters needed characters exceeded