For a custom requirement i have created an application using custom container and ALV grid display. As number of columns and rows are to be formed runtime, i have used dynamically created internal table using field symbols. My requirement is to display the row position and column position of the cell which is double clicked in input field on screen painter.
OR if row position and column position are filled in the input fields then the corresponding cell should be highlighted.
For the first condition i used custom event handler class for double click event.
I gave the screen fields name as
DATA: v_rowpos TYPE n LENGTH 2, "input field on screen for input and output
v_colpos TYPE c LENGTH 5. "input field on screen for input and output
CLASS zcl_events IMPLEMENTATION.
v_rowpos = e_row-index.
v_colpos = e_column-fieldname.
When i double click the cell it fills the screen variables with values. But the values are not getting displayed in the input field on screen.
When i debugged, i found that after the execution of method in the class, PBO of the screen is not getting called, hence the values in the fields are not getting reflected on screen.
Please guide me how can i fill the screen fields with row position and column position of the cell selected.
Also how to highlight the cell if the row position and column position are filled in screen fields by user.