2016 May 02 10:24 AM
Hello,
can someone tell me how I can get the actual lines in a tablecontrol?
I need them to set them in the following example:
FORM v_scroll
USING tablecontrol TYPE cxtab_control.
tablecontrol-v_scroll = 'X'.
tablecontrol-lines = 20. " Here is the problem, i need the actual count of the lines of the tablecontrol to set them dynamic. If i set the lines to 20
its just possible to view 20 entries. Is there a way to do that?
ENDFORM.
Thanks for your help!
2016 May 02 11:14 AM
hi,
just count the no of rows of internal table to be displayed using describe table and then pass tablecontrol-lines = lv_lines or incase u need 5 more lines then lv_lines + 5.
hope it helps
2016 May 02 11:14 AM
hi,
just count the no of rows of internal table to be displayed using describe table and then pass tablecontrol-lines = lv_lines or incase u need 5 more lines then lv_lines + 5.
hope it helps
2016 May 02 12:15 PM
Hi, i can't use the command describe tablecontrols LINES lines, because the tablecontrol is not an internal table anymore. Is there some other solution?
Regards
Pascal
2016 May 02 11:23 AM
Hi,
Have you created table control with wizard.
Its better you can go head and create it .The system automatically will take care of number of rows displayed.
Regards
Raj
2016 May 02 12:11 PM
Hi, yes i built it with the wizard. What is the right setting in the wizard?
Regards
Pascal
2016 May 02 2:41 PM
hi,
if you have a table control with wizard then look for modules TC_ATTR and get_lines of tc where you can change the lines.
hope it helps