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: 

cl_gui_alv_grid problems with onF4

Former Member
0 Kudos
181

hi,

In my program I have a grid with some fields.

On a particular field a F4-available is enabled.

When I click on f4 on this field, I need info from another field in the same row. This works fine with command read table itab assigning <lf_row> index rs_row_no-row_id.

But when the table is sorted or filtered by the user, the rs_row_no-row_id isn't the same as the index of the itab.

Is there a solution where I can see the itab key or rowid, so I can read my internal table correctly?

Regards

Alexander

3 REPLIES 3

Former Member
0 Kudos
91

u remove the sort and filter icons from the application toolbar....

0 Kudos
91

This is not an option.

Sorting and filtering is a requirent from the customer, because the list can contain more than 1000 rows.

Former Member
0 Kudos
91

Hi,

Try to use the following methods,

GET_FILTERED_ENTRIES

GET_FILTER_CRITERIA

GET_INTERNAL_FILTER

GET_INTERNAL_LAYOUT

GET_INTERNAL_SORT

[http://www.scribd.com/doc/3219268/BC-ALV-Gird-Control|http://www.scribd.com/doc/3219268/BC-ALV-Gird-Control]

[http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm|http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm]

to get the filtered and sorted data. the same filter critria and sorting should be do in your internal table. after that try to apply your field help assignment.

Regards,

Boobalan Suburaj