cancel
Showing results for 
Search instead for 
Did you mean: 

Calling custom search help

Former Member
0 Kudos

Hi SDN,

My reqd is that I need to call a custom search help on press of a button.

A pop up should come on screen for the custom search help.

The result of search help needs to be populated in a table

Kindly provide some sample code for it.

Also is there any equivalent of F4IF_FIELD_VALUE_REQUEST is webdynpro.

Kindly help

Regards

Bidyut

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey,

You can use OVS HELP.you can set Object value selecter in context attribute and creat am method and register for OVS event.In that method write this code.(This may not work but logic isa same.)

NIrad


case ovs_callback_object->context_attribute.
    when 'CURRENCY' .
*... define f4 value help structure
      types:
        s_type_f4_currency type scurx,
        t_type_f4_currency type standard table of s_type_f4_currency.

      data:
        ls_f4_currency type s_type_f4_currency,
        lt_f4_currency type t_type_f4_currency.

      field-symbols:
        <l_selection>    type s_type_f4_currency.

      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.
*... Konfiguration setzen


        when if_wd_ovs=>co_phase_1.
*... Vorbelegung der Eingabefelder
          ovs_callback_object->set_input_structure( input = ls_f4_currency ).

        when if_wd_ovs=>co_phase_2.
*... Befüllen der Werteliste
*          select distinct * from scurx into corresponding fields of table lt_f4_currency.

          cl_salv_wd_test_data=>select_data_from_ddic(
            exporting
              ddic_table = 'SCURX'
            changing
              t_table    = lt_f4_currency ).

          ovs_callback_object->set_output_table( output = lt_f4_currency ).

        when if_wd_ovs=>co_phase_3.
*... Wertrückgabe
          if ovs_callback_object->selection is not bound.
*******TODO exception
          endif.
          assign ovs_callback_object->selection->* to <l_selection>.
          ovs_callback_object->context_element->set_attribute(
            name  = ovs_callback_object->context_attribute
            value = <l_selection>-currkey ).
      endcase.

          when 'CARRID' .
*... define f4 value help structure
      types:
        s_type_f4_carrid type scarr,
        t_type_f4_carrid type standard table of s_type_f4_carrid.

      data:
        ls_f4_carrid type s_type_f4_carrid,
        lt_f4_carrid type t_type_f4_carrid.

      field-symbols:
        <l_selection1>    type s_type_f4_carrid.

      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.
*... Konfiguration setzen

        when if_wd_ovs=>co_phase_1.
*... Vorbelegung der Eingabefelder
          ovs_callback_object->set_input_structure( input = ls_f4_carrid ).

        when if_wd_ovs=>co_phase_2.
*... Befüllen der Werteliste
*          select distinct * from scurx into corresponding fields of table lt_f4_currency.

          cl_salv_wd_test_data=>select_data_from_ddic(
            exporting
              ddic_table = 'SCARR'
            changing
              t_table    = lt_f4_carrid ).

          ovs_callback_object->set_output_table( output = lt_f4_carrid ).

        when if_wd_ovs=>co_phase_3.
*... Wertrückgabe
          if ovs_callback_object->selection is not bound.
*******TODO exception
          endif.
          assign ovs_callback_object->selection->* to <l_selection1>.
          ovs_callback_object->context_element->set_attribute(
            name  = ovs_callback_object->context_attribute
            value = <l_selection1>-carrid ).
      endcase.
  endcase.

*   DATA: l_ref_interfacecontroller TYPE REF TO iwci_wdr_ovs .
*
*
*
*   l_ref_interfacecontroller =   wd_this->wd_cpifc_wdr_ovs( ).
*     l_ref_interfacecontroller->set_output_table(
*       output =                            " Any table
*       table_header =                      " String
*     ).

endmethod.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bidyut,

If you have your owned search help then just give the name of it in the Node attrubutes of respective node in the component controller or view controller. By deafult it will have the option Automatic, Instead of that you can select one more option DDIC Search help and give your own custom search help. then i will help provide new search help instead of giving the deafult search help.

OVS can be used only when you want to design the your own user-defined value with selection parameters and all. Not for this case.

I hope it is clearn for you.

Best Regards,

Vijay.

Former Member
0 Kudos

Hi Bidyut,

You can use an object value selector (OVS) search help or a freely programmed search help. If you have a search help defined in se11, that can be used too.

Refer the component DEMO_VALUE_HELP for examples on each search help possible.

Regards

Nithya