2010 Aug 09 4:04 PM
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
2010 Aug 09 4:15 PM
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,
2010 Aug 09 4:22 PM
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
2010 Aug 09 4:25 PM
Please go through the concepts in SDN.
Creating table control with wizard and create table control from program
2010 Aug 09 4:55 PM
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
2010 Aug 10 5:55 AM
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.
endmoduleHope this is clear to you.
Cheerz
Ram
2010 Aug 09 4:17 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |