‎2007 Sep 20 12:42 PM
Hi all,
ive prepared a table control using the TC wizard.
initally in the input screen i have 4 rows, where the user can input the data and click on SAVE, so that it gets updated to the database.
this is working fine. but if i want to input a fifth record into the Table control, it does not scroll down...and hence im able to enter only 4 rows at a time.
if i press ENTER after the 4th row, the scroll bar does appear but the rest of the rows get "greyed out". and again it wud mean i can enter only 4 rows at one go. wht shud i do to make sure i can enter as many rows as i wish at one go using the scroll bar?
can somebody pls help me with this one??
thanks y'all
pk
‎2007 Sep 20 12:51 PM
hi,
There will one Module <b>tab1_change_tc_attr</b> in PBO.
In that write condition like this.
I think this will work.
MODULE tab1_change_tc_attr OUTPUT.
IF ok_code IS NOT INITIAL.
DESCRIBE TABLE itab_det LINES tab1-lines.
ENDIF.
ENDMODULE. "TAB1_CHANGE_TC_ATTR OUTPUT
reward if helpful.
‎2007 Sep 20 12:51 PM
hi,
There will one Module <b>tab1_change_tc_attr</b> in PBO.
In that write condition like this.
I think this will work.
MODULE tab1_change_tc_attr OUTPUT.
IF ok_code IS NOT INITIAL.
DESCRIBE TABLE itab_det LINES tab1-lines.
ENDIF.
ENDMODULE. "TAB1_CHANGE_TC_ATTR OUTPUT
reward if helpful.
‎2007 Sep 20 12:52 PM
Hello,
Use <b>Describe</b>
eg:
<b>DESCRIBE TABLE</b> it_sdyn_book <b>LINES</b> my_table_control-lines
Reward if helpful,
Regards,
LIJO
‎2007 Sep 20 1:09 PM
hi dhwani and and lijo,
the DESCRIBE stmt is present as part of the TC WIZARD code. and yet it doesnt show the next rows in line.
any other ideas?
pk
‎2007 Sep 20 1:34 PM
‎2007 Sep 21 5:18 AM
Hi Dhwani,
yes i did put the if stmt in the code. still it was a no-go.
anyways jus want to let u all know that the issue is now solved. did an extensive R&D and found this piece of code that helped resolve the issue.
MODULE TABC_GET_LINES OUTPUT.
G_TABC_LINES = SY-LOOPC.
tabc-lines = g_tabc_lines + 100.
ENDMODULE.
the g_tabc_lines + 100 did the trick.
anyways thanx every1 for ur time and effort.
pk