‎2008 Aug 11 9:51 PM
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.
‎2008 Aug 11 9:56 PM
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
‎2008 Aug 11 9:56 PM
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
‎2008 Aug 11 10:21 PM
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?
‎2008 Aug 11 10:28 PM
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
‎2008 Aug 11 10:20 PM
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.
‎2008 Aug 13 7:20 PM
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?
‎2008 Aug 13 8:17 PM
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