‎2009 Jan 02 9:53 AM
Hi
Can any one resolve my doubt please i create a table control and i drag the check box into table control and in table control i have records i get that records from one custom table and my requirement is how to select the check box in that table control
‎2009 Jan 02 9:58 AM
Hi
you need not seperately create check boxes for table control.
it is defaultly available for every table control.
reg
Ramya
‎2009 Jan 02 9:58 AM
Hi
you need not seperately create check boxes for table control.
it is defaultly available for every table control.
reg
Ramya
‎2009 Jan 02 9:58 AM
Hi,
As the table control is having the check box in the fields, u need to map ur internal table field data with the check box as it should be of single char in the internal table.
This has to be done in the PBO module itselef while u r sending the data to table control.
Regards,
Naresh
‎2009 Jan 02 9:59 AM
Hi
the check box is defaultly available in table control(need not create seperately).
once u select the 1st column , the line that is selected will be available in the control table .
reg
Ramya
‎2009 Jan 02 10:23 AM
Hi ramya
Thank u for ur answer
but my doubt is i have table control like this
checkbox records
WIRE DRAWING
STRANDING
INSULATION
JACKETING
ARMORING
TESTING
ASSEMBLY
STRANDING - NEUTRAL
like this i have table control
if i check wire stranding it is not selecting
‎2009 Jan 02 10:40 AM
Hi,
Take a flag field in internal table of size 1 datatype character.
And take a checkbox as field in table control by simply drag and drop.
Take name for fields in table control on screen as <wa_fieldname>.
Now, use this code, its working:-
At screen flow logic
PROCESS BEFORE OUTPUT.
* MODULE status_8002.
LOOP WITH CONTROL po_tab. "table control name
MODULE pass_data.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE user_command_8002.
LOOP WITH CONTROL po_tab. "table control name
MODULE modify_data.
ENDLOOP.
In PBO,
*&---------------------------------------------------------------------*
*& Module PASS_DATA OUTPUT
*&---------------------------------------------------------------------*
pass data form internal table into table control using work area
*&---------------------------------------------------------------------*
MODULE pass_data OUTPUT.
READ TABLE it_ekpo into wa_ekpo INDEX po_tab-current_line.
ENDMODULE. " PASS_DATA OUTPUT
In PAI
*&---------------------------------------------------------------------*
*& Module MODIFY_DATA INPUT
*&---------------------------------------------------------------------*
*&modify data from table control into work area and then update internal table
*&---------------------------------------------------------------------*
MODULE MODIFY_DATA INPUT.
MODIFY IT_EKPO INDEX PO_TAB-CURRENT_LINE FROM WA_EKPO.
ENDMODULE. " MODIFY_DATA INPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_8002 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_8002 INPUT.
"in this module check sy-ucomm
CASE sy-ucomm.
"your code
ENDCASE
ENDMODULE.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir