cancel
Showing results for 
Search instead for 
Did you mean: 

How to make ALV field to accept values only from OVS, no manual entry

Former Member
0 Kudos

Hi Friends,

I am working on Webdynpro ABAP. My view contains ALV, one of the field in this ALV is input-enabled, and has OVS attached. I need to prevent user from entering anything manually in this field. He should only do F4 & select values from OVS screen. Not sure how to do this.

Can someone please help.

Thanks so much!

Regards

JB

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisPaine
Active Contributor
0 Kudos

Hi James,

you might notice that this is one of the items I've requested in the UI enhancements thread.

In the past I have gotten around this by making the field a link to action UI element and have launched the value help directly from the action using something like:


 call method cl_wdr_value_help_handler=>handle_ovs
    exporting
      context_element      = context_element
      component_usage_name = 'JOB_SELECTION_OVS'
      context_attribute    = 'JOB'.

I've included an icon/image in the link to action UI element as this means there is still something to click on when no values are selected.

NB I've not done this in an ALV before - but in normal tables/form fields - but I can't see that it would be too different.

Hope this helps you,

Chris