2008 Nov 15 7:27 AM
Hi Experts,
In my module pool i have used function module 'set_table_for_first_display'.
I am displaying internal table having field for checkbox in custom control .
When user clicks any checkbox value 'X' is not getting populated in checkbox field in internal table for that particular row.
Please suggest,
Regards,
Kaustubh.
hi....
In PAI of screen pu this code.....u will get the data in internal table for checkbox
call method <ur ref object>->check_changed_data .
call method cl_gui_cfw=>flush.
call method cl_gui_cfw=>dispatch.
<ur ref object> is object of type *cl_gui_alv_grid *which u have used for alv display
regards
vivek
2008 Nov 15 8:32 AM
hi....
In PAI of screen pu this code.....u will get the data in internal table for checkbox
call method <ur ref object>->check_changed_data .
call method cl_gui_cfw=>flush.
call method cl_gui_cfw=>dispatch.
<ur ref object> is object of type *cl_gui_alv_grid *which u have used for alv display
regards
vivek
2008 Nov 15 3:20 PM
Hi,
Just check the Field Catalog you have maintained for the List and check for the Options.
also in the Grid Layout that you are maintaining just try these:
data: g_layout TYPE lvc_s_layo, " Grid Layout
constants: c_flag(4) TYPE c VALUE 'FLAG', " FLAG field
c_a TYPE c VALUE 'A', " Value 'A'
In building layout:
g_layout-sel_mode = c_a.
g_layout-excp_fname = c_flag.
Edited by: Neha Shukla on Nov 17, 2008 6:48 AM
2008 Nov 15 7:04 PM
Hi,
The same will get reflect in the Internal Table after executing the given below statement:
rs_selfield-refresh = 'X'. "For Refreshing the ALV
Make sure you execute this in the USER_COMMAND of the ALV...
2008 Nov 16 8:02 AM
Hi,
Just call the method check_changed_data of the class cl_gui_alv_grid with reference to your instance in PBO.
Your problem will be solved.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |