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

Table control in Module Pool

Former Member
0 Likes
692

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

Hi

you need not seperately create check boxes for table control.

it is defaultly available for every table control.

reg

Ramya

5 REPLIES 5
Read only

Former Member
0 Likes
673

Hi

you need not seperately create check boxes for table control.

it is defaultly available for every table control.

reg

Ramya

Read only

Former Member
0 Likes
672

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

Read only

Former Member
0 Likes
672

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

Read only

0 Likes
672

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

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
672

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