09-18-2007 9:10 PM
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
09-18-2007 9:40 PM
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.
09-18-2007 9:25 PM
I would define the search help for the fields in the ALV dictionary structure you are using.
09-18-2007 9:33 PM
09-18-2007 9:40 PM
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.
09-18-2007 9:45 PM
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
09-18-2007 9:50 PM
Is the search help that you created have both import and export parameters?
09-18-2007 11:20 PM
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
09-19-2007 3:37 PM
Thanks Fred.
I was able to solve the problem with your answer.
I have rewarded points.
thanks
Suganya