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

How to create a table control from a program internal table

former_member246786
Participant
0 Likes
1,040

Hi all,

I try to create a table control that matches following requirements :

- the source table is an internal table from program (not a dictionary table)

- I need to specify my own column header titles

- the fields need to be editable

- some of the columns fields must be displayed as checkboxes, other one as texts

When I try using "Table Control WIth Wizard", the generated TabControl has the expected columns titles but the fields are not displayed as checkboxes. Moreoever, when I look at "Dictionnary, program Fields list", the table fields choosed using wizard are locked (a padlock is displayed in front of the line) So, I can not check "checkbox display"

When I try using simple Table Control -I mean without ALV-, I can use the "checkbox display" for wanted fields but I don't know how to specify the resquired columns headers titles

So, could you please help me ? How to do both : maage columsn header titles and display some of the columns as checkboxes ?

thanks for help

Regards

morgan

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
983

Hello.

Just follow the below mentioned steps to create a table control.

1. Declare the internal table in top include and table control.

2. Go to screen editor manually create the table control.

3. Drag and drop the internal table(Work area) fields into the table control.

Just take care of the thing that what ever is declared in top include the name should be the same in table control.Only then it will work fine.

Regards,

Nabheet Madan

3 REPLIES 3
Read only

Former Member
0 Likes
983

Hi Morgan,

Create an Interanal Table in Top Include and activate it first. Then go the Screen Layout and Drag and Drop a Table control.

Enter a name like TC. now press F6 (Dictionary/Program Fields Window). Enter the Interanal Table and Press

Get From Program Push button. Select the required Columns and transfer them. Double click on the Table Control Area only (any corner of the TC) now you get attribute window POP UP. now select the check box for with column Header or remove the available column header and place your own Text Field and give meaningful Text for them. With in the Table control you can Drag and Drop a Check Box which will occupy all the rows. Make sure you include one more column in the TOP include type C with length one.

Hope this is very Clear to YOU.

Cheers

Ram

Read only

christine_evans
Active Contributor
0 Likes
983

Don't panic. You've used the wizard to create your basic table control which is a sensible thing to do, and now you can do what you like with it. You can delete the fields it has created and recreate them as checkboxes. Or I think there may even be an option if you right click on a table control field to convert it to a checkbox. And as for changing the column headings, just edit them.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
984

Hello.

Just follow the below mentioned steps to create a table control.

1. Declare the internal table in top include and table control.

2. Go to screen editor manually create the table control.

3. Drag and drop the internal table(Work area) fields into the table control.

Just take care of the thing that what ever is declared in top include the name should be the same in table control.Only then it will work fine.

Regards,

Nabheet Madan