‎2006 Nov 21 7:55 PM
Hi ,
i have a problem with table control , for the table control i have put a page down functionality . which when pagedown it increments 20 lines.
but the problem is tablecontrol by default is able to take data for 12 records after that it is not incrementing the lines .
can you let me know why it is not incrementing the lines.
is there any provision to set the number of lines for table control .
let me know .
thank you.
roby
‎2006 Nov 21 8:13 PM
Are you using FM SCROLLING_IN_TABLE or something like it to handle the scrolling?
Rob
‎2006 Nov 21 8:13 PM
Are you using FM SCROLLING_IN_TABLE or something like it to handle the scrolling?
Rob
‎2006 Nov 21 8:25 PM
‎2006 Nov 21 8:35 PM
OK - try something like:
CASE save_ok.
WHEN 'P+' OR
'P++' OR
'P-' OR
'P--'.
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
entry_act = zctl-top_line
entry_to = zctl-lines
last_page_full = 'X'
loops = zlooplns
ok_code = save_ok
overlapping = 'X'
IMPORTING
entry_new = zctl-top_line
EXCEPTIONS
no_entry_or_page_act = 1
no_entry_to = 2
no_ok_code_or_page_go = 3
OTHERS = 4.
ENDCASE.
Rob
‎2006 Nov 21 8:58 PM
Rob,
the problem is not with scrolling.
the problem is once the tablecontrol reaches 12 records it is not incrementing the top_line , current_lines .
is 12 default lines for tablecontrl ? can we increase that ? .
let me know .
Regards,
Roby.
‎2006 Nov 21 9:09 PM
I guess I misunderstood. Do you have something like the following logic in the PAI:
process after input.
module exit_0100 at exit-command.
MODULE init_table_control.
MODULE init_table_control INPUT.
* user uses scroll bar to get down
IF zctl-top_line > zctl-current_line.
zctl-current_line = zctl-top_line.
ENDIF.
ENDMODULE. " INIT_TABLE_CONTROL INPUT
Rob
‎2006 Nov 21 9:24 PM
Rob,
i tried this but its not working. the problem is the table control top_line and current_line are not moving from 13 the lines , if you try to insert a new row.
let me know .
regards,
roby.
‎2006 Nov 22 2:05 AM
Hi Roby,
in order to decide the number of line for a table control. u need to do this way.
in the PBO.
describe table itab lines N.
<tabctrlname>-lines = N.
this will fill the table control with the number of lines N.
Regards
- Gopi
‎2006 Nov 21 9:12 PM
Hi Roby,
Please check this demo program RSDEMO02 perhaps it may help.
Regards,
Ferry Lianto
‎2007 Jan 23 8:50 AM
Hi Gopi,
I had the same problem as Robi and I succeeded,thanks to you!
I confirm that it works.
Thank you so much,Christian