cancel
Showing results for 
Search instead for 
Did you mean: 

Set default values in OVS for select-options

Former Member
0 Kudos

Hi All,

My requirement is when user does F4 on a select options field and out table will be shown and user can select multiple values. (till here i already completed programming and working fine).

If the user press F4 again then by default all the selected values should be highlighted in the output table from phase 2. Is it possible in OVS?

Any input will be appreciated..

Regards

Syed

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Syed,  U can refer this link for more detailed.  http://scn.sap.com/thread/3312283  Thanks  Vijay

Former Member
0 Kudos

Thanks Vijay, Arun and Amol.

I am looking something to do in phase 2 rather than in phase 1.

Pahse 1 is just to provide extra fields for filtering. I do not have phase 1 and my requireemnt doesn't need it. So i directly display all possible entries for the field using set_output_table in phase 2.

my requirement is, if user selects 3 entries first time (Eg: entries 1,4 & 6 from 6 possible entries of the field) and then user click again F4 then phase 2 displays all possible entries. But i want to set already selected records from user earlier search (Eg: 1, 4 & 6 needs to be set as selected) so user has visibility what he selected and can change if he wants.

Regards

Syed

florian_halder
Participant
0 Kudos

Hey Syed,

I have the same requirement as you have described, did you find any solution for your problem?

Thanks in advance, Florian

Former Member
0 Kudos

Hi,

Go through the following blog. OVS Search help for select option. In that in the final code

paste the below code in phase 1 method.

http://webdynproabap.wordpress.com/2012/10/27/ovs-select/

Paste this code in the phase 1

      ls_search_input-ebeln = '3000000000'.

*     pass the values to the OVS component

I_OVS_DATA-M_OVS_CALLBACK_OBJECT->set_input_structure(

input = ls_search_input ).

Best regards,

Arun Krishnamoorthy

Former Member
0 Kudos

Hi Syed,

Refer the below link for How to Achieve OVS Search Help in Select Option.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707f0d73-94f0-2d10-97a2-a3776e211...

and

Please use the below code to set the default value in the parameter field:

DATA : lr_value TYPE REF TO data.  

FIELD-SYMBOLS : <fs_value> TYPE sflight-carrid. 

CREATE DATA lr_value TYPE sflight-carrid.  

ASSIGN lr_value->* TO <fs_value>.   

<fs_value> = 'AA'.  

CALL METHOD wd_this->lo_select->add_parameter_field    

EXPORTING     

i_id                         = 'CARRID'   

i_value                      = lr_value      .

Regards,

Amol.