cancel
Showing results for 
Search instead for 
Did you mean: 

How to give OVS for two fields in the same view?

Former Member
0 Kudos

Hi All,

in my scenario i have two fields Service_grp,Service_dept.

i have to give F4 help for these two fields.(i.e OVS ).

i am getting the values in the Service_grp.Now based on the value in the service_grp ,i have to give the values for Service Department.these two fields are in the same view only.

Regards,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The variable ovs_callback_object->context_attribute will tell you on which attribute the F4 help was clicked. So in your OVS handler, have a case statement as follows:

case ovs_callback_object->context_attribute.

when 'SERVICE_GRP'.

when 'SERVICE_DEPT'.

endcase.

While populating the F4 help for the service dept, if you want the service group, just do

ovs_callback_object->context_element->get_static_attributes( ).

This will return you the data in the row that you have pressed F4. Get the service group value and populate your F4 accordingly.

Regards,

Nithya

Former Member
0 Kudos

Hi Nitya,

Thanks alot for ur Valuble Answer.My problem is resolved.

Regards,

Ravi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ravi,

I have prepared a blog on OVS help in WDA.

It will give you a clear idea about OVS along with the sample code.Refer it.

[OVS Help|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]

It will definitely help you out.

Thanks.