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

Scrolling in Table Control Input Screen

Former Member
0 Likes
841

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
813

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.

5 REPLIES 5
Read only

Former Member
0 Likes
814

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.

Read only

Former Member
0 Likes
813

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

Read only

Former Member
0 Likes
813

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

Read only

0 Likes
813

hi,

but u put if condition as i given in code?

Read only

Former Member
0 Likes
813

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