on 10-22-2009 6:49 AM
Hi Experts,
I want to implement OVS help for input field in my in the WebDynpro application .Can any one tell me how to achieve this ??
Regards
Hitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
1.First of all Create component useage OVS_USAGE for component WDR_OVS in your application component .
2.Create controller use for component WDR_OVS in view.
3.Select input help mode u201EObject Value Selectoru201C and the OVS component usage OVS_USAGE for the context attribute MATNR. 4.Navigate to the methods tab of view and create event handler method ON_OVS for event OVS of component WDR_OVS.
Inside in this you have to code.
Some default code will be there. Just change it as per your req.
Refer the SAP Online Help to understand different phases of OVS :
http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/content.htm
hi ,
did u refer the standard web Dynpro Component WDR_TEST_OVS , as suggested earlier .
Also there are couple of threads on SDN regarding this .
U may proceed like this :
1 Declare the the WDR_OVS Component in the used component list in ur WD component
2 select the Component Use OVS with Interface Controller
3 In the Input Help Mode Field, Select u2018Object Value Selectoru2019 from the dropdown. Then press F4 in the Field OVS Component Usage.
4 It will open a Pop-up. Select OVS and press Enter.
5 create context binding of ur UI input field with this context attribute
6 Declare one event handler method with Name ON_OVS in the Method tab of the view. Then Press F4 in the Column Event.
7 Select the Event OVS and Press Enter
It shud help
rgds,
amit
Hi,
First, create a context attribute and bind it to the VALUE property of the Input field.
Refer, the above documents for compoenent usage for OVS.
In the component, properties tab, create an entry for OVS.
Now, have the same entryunder properties tab in the compoenent controller and view .
Now, create a event handler for OVS in that view.
For that context attribute properties, have the Inputhelp mode as OVS and method as OVS event handler name.
For coding in OVS methiod, refer the above links.
Regards,
Lekha.
with reference to the Web Blog ,
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
in the onActionevent of ur OVS , u may procced like this :
CASE OVS_CALLBACK_OBJECT->PHASE_INDICATOR.
WHEN 0.
//declare all text related to the selection dialog box
DATA : TEXT1 TYPE STRING,
TEXT2 TYPE STRING.
<< assign appropriate values to these text strings >>
//Export all text to the OVS Component through the set_configuration()
CALL METHOD OVS_CALLBACK_OBJECT->SET_CONFIGURATION
EXPORTING
WINDOW_TITLE = TEXT1
GROUP_HEADER = TEXT2
COL_COUNT = 1 .
WHEN 1.
//Declare structure containing the fields that should be present on the selection dialog screen as input fields.
types: begin of lst_struct,
<< declare fields>>
end of lst_struct.
//Create corresponding object
data: ls_struct type lst_struct.
<<If required,pass any default value for the fields declared in structure >>
//pass this structure to the OVS Component
CALL METHOD ovs_callback_object->set_input_structure
EXPORTING
input = ls_struct.
WHEN 2.
//dereferencing the data contained in the query_parameters of callback object
FIELD-SYMBOLS: <LF_INPUT_QUERY> TYPE LST_STRUCT.
ASSIGN OVS_CALLBACK_OBJECT->QUERY_PARAMETERS->* TO <LF_INPUT_QUERY> CASTING.
<< Use some Bapi for fetching data according to the values contained in the above field symbol and take the output in some table >> .
//exporting data to be displayed as value help list to the OVS component
CALL METHOD ovs_callback_object->set_output_table
EXPORTING
output = << output table from Bapi >>
table_header =
column_texts =
.
when 3.
//dereferencing the data contained in the selection parameter of callback object
field-symbols: <lfs_selection_struct> type <<as required>>.
ASSIGN OVS_CALLBACK_OBJECT->selection->* TO <lfs_selection_struct> CASTING.
//write selection from value help list back to context attributes
<< Read the Context node and bind structure <lfs_selection_struct> to the node >>
ENDCASE.
I hope it shud help u
Hi ,
OVS is object value selector .
When u need a search help other than a standard one then you can go for OVS. It gives you more flexibility in selcting the values. The standard component WDR_OVS must be used as a component usage in oder to achieve this OVS. By calling this component and passing the necessary values, the OVS returns the desired values.
Refer this online SAP help :
http://help.sap.com/saphelp_erp2005/helpdata/EN/30/d7fa41c915da6fe10000000a1550b0/content.htm
check out this blog as well on OVS :
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
there are many threads on SDN forum regarding this .
I hope it shud help
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,
Refer sap online help on OVS :
http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/content.htm
Demo component : Demo_value_help.
This has been discussed many times.
Please refer the threads :
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.