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 Wizard

Former Member
0 Likes
2,073

I built a table control using the TC wizard, and i cannot figure out how to get the MARK field in my element list which would allow me to select a single row, or multiple rows, what do i need to do to get that.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
1,120

I would suggest you delete the generated Code and Table control from your program, screen and Screen Flow.

Now, add one more field in your internal table, i.e. SELECTION TYPE CHAR1.

Start the table wizard again and

In step "Definition of Columns ", Don't select the SELECTION field

In the Next step, Check the checkbox "Line Selection Col." in the Line Selectibility frame.

In the Selection Col fld enter SELECTION

and follow the directions for rest.

Regards,

Naimesh Patel

6 REPLIES 6
Read only

naimesh_patel
Active Contributor
0 Likes
1,121

I would suggest you delete the generated Code and Table control from your program, screen and Screen Flow.

Now, add one more field in your internal table, i.e. SELECTION TYPE CHAR1.

Start the table wizard again and

In step "Definition of Columns ", Don't select the SELECTION field

In the Next step, Check the checkbox "Line Selection Col." in the Line Selectibility frame.

In the Selection Col fld enter SELECTION

and follow the directions for rest.

Regards,

Naimesh Patel

Read only

0 Likes
1,120

I'm not using an internal table, just the dictionary table. Is it possible to still have the MARK field there doing it this way?

Read only

0 Likes
1,120

Generally in this kind of scenario, what I do is, Create a internal table with the Z table strucutre and one more field for the selection and use it in the internal table.

Like:


DATA: BEGIN OF ITAB OCCURS 0.
        INCLUDE STRUCTURE MARA.
DATA: SELECTION TYPE CHAR01,
      END   OF ITAB.

DATA: WA_ITAB LIKE ITAB.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,120

Hi,

Refer to standard programs "demo_dynpro_tabcont_loop" and "demo_dynpro_tabcont_loop_at".

Visit [Table controls on the screen|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac3735c111d1829f0000e829fbfe/content.htm].

Select "Line Selection" option while creating the layout.

Regards,

Srilatha.

Read only

Former Member
0 Likes
1,120

while going through the table control wizard, in the "Table Name" step, i need to select the data from the data dictionary, NOT an internal table and work area. If i do it this way, going through to the step "Table Control Attributes" It will not allow me to change the Line Selectability, which i need to do. what is my problem?

Read only

Former Member
0 Likes
1,120

Hi,

if you are using dictionary table you can set the mark in the properties of table control. just doble click on the table control when you finish with the wizard and then you will see option for Line Sel -- here you can give none, single or multiple.. after that you can put w/selcolumn in which you can give the sel column name for selection.

Thanks

Kamesh

Edited by: Kamesh Bathla on Aug 13, 2008 9:20 PM