on 10-19-2009 4:07 PM
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 ??
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi John ,
check out this blog :
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :
I
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.