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

add checkbox in table control

Former Member
0 Likes
1,056

Hi,

I have create a table control for table FKKVKP for one field .

Then I add a check box by using left side checkbox icon in screen painter.Then I add a field in internal table which is created for table control but when I check the field value

in internal table no value comes there.Please help me how to

trace the value for checkbox is checked or not.

Hi,

I have create a table control for table FKKVKP for one field .

Then I add a check box by using left side checkbox icon in screen painter.Then I add a field in internal table which is created for table control but when I check the field value

in internal table no value comes there.Please help me how to

trace the value for checkbox is checked or not.

3 REPLIES 3
Read only

Former Member
0 Likes
709

Hi Mukesh,

Have you created the FCT code for your checkbox, check back.

Cheers!!

VEnk@

Read only

Former Member
0 Likes
709

Hi

U make sure the name of checkbox field of table control is the same of the field of internal table, else u need to transfer the value by your self.

After inserting the checkbox to the table control u need to assign name to it: for example CHECK.

If the field of internal table is called FLAG:

PROCESS PBO.
  
   LOOP AT ITAB WITH CONTROL .......
       
      MODULE FILL_TABLE_CONTROL.
  
   ENDLOOP.

PROCESS PAI.
   
    LOOP AT ITAB.
        MODULE MODIFY_ITAB.
    ENDLOOP.

The PBO module should be:

MODULE FILL_TABLE_CONTROL.
    CHECK = ITAB-FLAG.
ENDMODULE.

The PAI module should be:

MODULE MODIFY_ITAB.
   ITAB-FLAG = CHECK.
   MODIFY ITAB INDEX <TABLE CONTROL>-CURRENT_LINE.
ENDMODULE.

Max

Read only

0 Likes
709

Hi Max,

I created table control having one column using wizard.After that i added checkbox in the table control.Automatically type declaration generated.

begin of ty_tbl_fkkvkp,

vkont type fkkvkp-vkont,

end of ty_tbl_fkkvkp,

My table control name is tbl_fkkvkp.

Now i am selecting the checkbox but the field is not there in the type declaration automatically created.

Can you tell me how to trap the selected row.

Regards,

Mukesh Kumar