Application Development and Automation 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: 
Read only

checkbox in custom control(module pool)

Former Member
0 Likes
809

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.

4 REPLIES 4
Read only

Former Member
0 Likes
678

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

Read only

Former Member
0 Likes
678

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

Read only

Former Member
0 Likes
678

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...

Read only

Former Member
0 Likes
678

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.