cancel
Showing results for 
Search instead for 
Did you mean: 

Probelm in OVS Help Attachment

0 Kudos

Hi Everyone,

My requirement as follws,

In my View i have 2 fields R_WERKS & S_WERKS of same data type WERKS_D.

for F4 functionality i created sinle OVS help and attached to R_WERKS & S_WERKS

my question is how to assign single OVS for  two fields without creating two OVS

how to achive this... thans in advance

Regards

Venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Venkat,

try like this...

in Phase2.

   IF     ovs_callback_object->context_attribute CS 'R_WERKS'.
        SELECT Query

       ovs_callback_object->set_output_table( output = lt_select_list ).

      ELSEIF ovs_callback_object->context_attribute CS 'S_WERKS'.
        SELECT Query

      ovs_callback_object->set_output_table( output = lt_select_list1 ).

In Phase 3.

   IF ovs_callback_object->context_attribute CS 'R_WERKS'.
        ASSIGN ovs_callback_object->selection->* TO <ls_selection>.
      ENDIF.

      IF ovs_callback_object->context_attribute CS 'S_WERKS'.
        ASSIGN ovs_callback_object->selection->* TO <ls_selection1>.
      ENDIF.

Cheers,

Kris.

0 Kudos

Thanx krish,

i solved it with different approch ,,,, i hav eone more question to close this discussion.

i have 2 query parameters in my OVS Help then how to write Single Select Query for

     1). 1 parameter is initial & 2 parameter is not initial

     2). 1 parameter is not  initial & 2 parameter is  initial

     3). 1  and 2 initial

     4)  both are not initial

Regards

Venkat

chengalarayulu
Active Contributor
0 Kudos

You can achieve this by using Range Tables

Former Member
0 Kudos

Hi Venkat,

        1.Go to the attribute you bounded for the UI element

       2. In INPUT HELP choose OVS

        3.Give the name of the OVS

Regards

Rajashiva

0 Kudos

HI Rajashiva,

you are not getting my point, let me explain clearly

for example first field R_WERKS i will get the value `R_WERKS = 0001` by using OVS help

for the second field S_WERKS, if i select OVS Help and pick up the value it will disturb the first value

as per my requirement it should not be disturb my first value

let me know if u require more clarification... below is the sample snap shot

former_member199125
Active Contributor
0 Kudos

then we dont have choice, we must have to use two different OVS helps.because it will hold single selection object and it wil assing to attributes.

if it is some button action then we can think of some flag help in last phase of ovs. so we need to use two different ovs

Regards

Srinivas

chengalarayulu
Active Contributor
0 Kudos

Venkat,

here, help listener will take place or else check with context element...

if you are getting CONTEXT_ELEMENT initialize, then it makes very easy to set the attribute..

there is a way, do work around CONTEXT_ELEMENT.