cancel
Showing results for 
Search instead for 
Did you mean: 

Search help exit in webdynpro

0 Kudos

Hi,

I have a ALV in which there are 3 columns. I have attached a search help exit to one of the column. whenever the user selects something from the f4 help of the first column then automatically the second column should be populated with some values.

Thank You.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

we can achieve this requirement by using OVS.

In Phase 2 of the OVS component populate the F4 help value list.

In Phase 3 you will get the selected value from the F4 help list by the user.

So based on the value u can retrieve the other two values of the column. Before doing this ensure that conext binding of the all columns should be to a same node..

regards,

Naga

Former Member
0 Kudos

Hi Soudagar,

In OVS Phase2, and your select statement like this

IF ovs_callback_object->context_attribute CS 'ASSET_NAME'.   // Assetname has F4 help, you get Stext next column.
          SELECT SUBTY STEXT FROM T591S
                             INTO TABLE lt_select_list
                             WHERE      sprsl = 'E' AND
                                        INFTY = '0040'.
    ovs_callback_object->set_output_table( output = lt_select_list ).

and in Phase3 set_attribute like this..

IF <ls_selection> IS ASSIGNED.          // F4 help
   IF ovs_callback_object->context_attribute CS 'ASSET_NAME'.
      ovs_callback_object->context_element->set_attribute(
                           name  = `ASSET_NAME`
                           value = <ls_selection>-ASSET_NAME ).

      ovs_callback_object->context_element->set_attribute(                      // This is sec column
                           name  = `ASSET_NAME_TVIEW`
                           value = <ls_selection>-ASSET_NAME_TVIEW ).
   ENDIF.

Cheers,

Kris.

saravanan_narayanan
Active Contributor
0 Kudos

Hello,.

in the phase 3 of the on_ovs (OVS event handler for the WDR_OVS component, you can write the logic of setting the second column values ( its basically setting the value of the context attribute in the Context node that is being passed to the ALV).

BR, Saravanan

RicardoRomero_1
Active Contributor
0 Kudos