cancel
Showing results for 
Search instead for 
Did you mean: 

OVS with mandatory Last_Name?

Former Member
0 Kudos

Hi Experts,

i have an OVS help, that needs to read a custom employee (Ztbl_employee) table based on first_name and Last_name. Since results of search are returned by RFC call , we intend to make Last_name mandatory.

Thus after the OVS search is launched , if user clicks on the 'Start Search' without entering any value in Last_name error message should get displayed. How can i make Last_name mandatory ??

Accepted Solutions (1)

Accepted Solutions (1)

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

Are you using a standard RFC or a custom one? For a custom RFC you can throw an error message inside the RFC when last name is not passed.

Also, how are you making call to the RFC? If you can make changes there, you can do the validations before calling RFC as well.

Let me know if that helps.

Regards

Prasenjit

Answers (2)

Answers (2)

Former Member
0 Kudos

hi John ,

check out this blog :

/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap

regards,

amit

Former Member
0 Kudos

hi,

When you click on Start Search button, then Phase 2 of OVS event handler gets triggered.

There you have values of all fields entered in search criteria and have a check on Last Name .

PHASE_INDICATOR = IF_WD_OVS=>CO_PHASE_2

In this phase, the results set from the search must be determined by the component used. If values were entered on a selection view for the selection parameters, these are now available as instance attribute QUERY_PARAMETERS of the event parameter OVS_CALLBACK_OBJECT.

Refer this blog on OVS : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0487399850DB11864718809925737816End...

SAP online help on OVS :

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0487399850DB11864718809925737816End...

I

Former Member
0 Kudos

Sorry guys on being late. i was too busy with several other problems. i will try to implement you suggestions and get back.