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

record selection field in table control

Former Member
0 Likes
965

Hello,

My requirement is to have an additional field in the table control for rows selection.

the purpose of the field is to only use it for 'rows selection' and nothing else so that means it need not be part of DB table which is being referred to while creating the table control.

help required in creating this additional field.

Thanks & regards,

Ravish

Hello,

My requirement is to have an additional field in the table control for rows selection.

the purpose of the field is to only use it for 'rows selection' and nothing else so that means it need not be part of DB table which is being referred to while creating the table control.

help required in creating this additional field.

Thanks & regards,

Ravish

6 REPLIES 6
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
917

nothing else so that means it need not be part of DB table which is being referred to while creating the table control.

I hope you are using the table control wizard.

In the table control properties before selecting the dictionary table just choose the check box w/o selection column and give a name for it,

Read only

0 Likes
917

no, specifying the column name means that column/field has to be existing in your DB/Internal table.

but in my case, there is no field for the row selection functionality.

But i dont want to introduce the field in my DB table/internal table for that purpose.

is there anyway to deal with this.

OR

If i have to introduce that field into my internal table, what should be the data type for that field?

Thanks,

Ravish

Read only

0 Likes
917

Please go through the concepts in SDN.

Creating table control with wizard and create table control from program

Read only

0 Likes
917

I have introduced a field in the internal table names as 'GV_MARK' and specified it as field for selection column.

but now the message pops up as 'field you have marked is already contained in the table'.

is there any solution to this problem?

ravish

Read only

0 Likes
917

Hi,

In TOP Include

data : begin of itab occurs 0,
         gv_mark type c.
include structure sflight.
data end of itab.

in Screen Painter double click on any corner of table control. You will get a POP up screen to maintain the attributes.

select the Check box w/Selcolumn and enter ITAB-GV_MARK. had you created a column in table control with GV_MARK then you would need to delete this column since this is no more required.

in PAI
loop at itab.
module modify_itab.
endloop.
in program
module modify_itab
describe table itab line tc-lines.
if tc-lines > tc-current_line.
append itab.
else.
modify itab index tc-current_line.
endmodule

Hope this is clear to you.

Cheerz

Ram

Read only

Former Member
0 Likes
917

Hi ravish,

see the code in saptechnical

>Tutorial>ABAP-->TableControl/Page2.htm

See the above example detailed screen shots is given how to add additional field in the table control for rows selection

Prabhudas