Skip to Content
avatar image
Former Member

OVS with mandatory Last_Name?

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 ??

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 19, 2009 at 04:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2009 at 05:46 PM

    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?blog=/pub/wlg/9502

    SAP online help on OVS :

    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0487399850DB11864718809925737816End?blog=/pub/wlg/9502

    I

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

  • avatar image
    Former Member
    Oct 20, 2009 at 04:01 AM

    hi John ,

    check out this blog :

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

    regards,

    amit

    Add comment
    10|10000 characters needed characters exceeded