cancel
Showing results for 
Search instead for 
Did you mean: 

validate the OVS input field in WDA

former_member210804
Active Participant
0 Kudos

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     .

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Narasimha,

Please refer the below document

How to validate the fields on OVS window - Webdynpro ABAP

Hope this helps you.

Regards,

Rama

Answers (4)

Answers (4)

former_member210804
Active Participant
0 Kudos

Hi experts,

Thank you for the Instant reply.

Best regards,

Rao

amy_king
Active Contributor
0 Kudos

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.

Cheers,

Amy

Former Member
0 Kudos

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

Former Member
0 Kudos

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