cancel
Showing results for 
Search instead for 
Did you mean: 

Regading OVS

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Hitesh ,

If input field it has no fixed values, through some code if you are getting the entries then you need to

use the OVS.

WDR_TEST_OVS is the standard component for reference.

pls check out the link :

regds,

amit

Edited by: amit saini on Oct 22, 2009 8:01 AM

Former Member
0 Kudos

Hi Amit,

I am new to WEBdynpro ABAP.Can u pls tell me step by step solution ,how to achieve this?

Rgds

Hitesh

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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 =

.

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanx all for ur swift reply.

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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 :