2008 Nov 05 4:04 PM
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.
2008 Nov 05 4:11 PM
Hi Mukesh,
Have you created the FCT code for your checkbox, check back.
Cheers!!
VEnk@
2008 Nov 05 4:12 PM
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
2008 Nov 05 4:23 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |