Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV grid f4 help

suganya_rangarajan
Participant
0 Kudos

Hi,

I am using ALV OOPs for grid display.for editable field I used ref_field and ref_tabname for f4 help.It works fine and gives me the list.But when i double click on one of the values it doesn't get copied to the cell in ALV. Can anyone tell me what might be the issue.

thanks

Suganya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Saganya,

When you call the method set_table_for_first_display you pass an internal table it_outtab. I usually define an associated structure in the data dictionary using se11. You can also define search help in the data dictionary using se11 and associated it it to the required fields in your structure.

CALL METHOD o_grid->set_table_for_first_display

EXPORTING

is_layout = h_layout

i_save = 'X'

it_toolbar_excluding = gt_exclude

CHANGING

it_fieldcatalog = t_fieldcat

it_sort = t_sortcat

it_outtab = t_screen.

7 REPLIES 7

Former Member
0 Kudos

I would define the search help for the fields in the ALV dictionary structure you are using.

suganya_rangarajan
Participant
0 Kudos

Hi Fred,

Can you tell me how to do that?

thanks

Suganya

Former Member
0 Kudos

Hi Saganya,

When you call the method set_table_for_first_display you pass an internal table it_outtab. I usually define an associated structure in the data dictionary using se11. You can also define search help in the data dictionary using se11 and associated it it to the required fields in your structure.

CALL METHOD o_grid->set_table_for_first_display

EXPORTING

is_layout = h_layout

i_save = 'X'

it_toolbar_excluding = gt_exclude

CHANGING

it_fieldcatalog = t_fieldcat

it_sort = t_sortcat

it_outtab = t_screen.

suganya_rangarajan
Participant
0 Kudos

The issue is that I get the search help.But when I double click on the listed values it doesn't get copied to the alv cell.

thanks

Suganya

Former Member
0 Kudos

Is the search help that you created have both import and export parameters?

suganya_rangarajan
Participant
0 Kudos

Hi,

I did not create any search help.I just gave the ref_field as DOKNR and ref_table as DRAW which is an existing SAP table.

Anyway how do i check if the search help has import/export parameter?

thanks

Suganya

suganya_rangarajan
Participant
0 Kudos

Thanks Fred.

I was able to solve the problem with your answer.

I have rewarded points.

thanks

Suganya