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

How to make table control rows dynamic/unlimited using TC with Wizard

Former Member
0 Kudos
643

Hi Friends ,

I have designed a table control layout using table control with wizard.

Now the problem is when we design a TC layout ,then we have to design it on the page . The page has upper & lower limits. so the maximum size & maximum rows in layout is limited. I have tried to create a TC layout with maximum size & maximum rows . Maximum rows created in Layout is 25.

Now suppose if enduser wants 100 entries to enter by coping a file of 100 records in my TC present on entry screen , then ONLY 25 entries are displayed on entry scren before doing any user action or saving and after saving only these 25 entries are sved in DB. Means enrtries from 26 to 100 are not displayed on entry screen or saved in DB.

So my requirement is to display all 100 entries at a time in entry screen before saving with scrolling up & down facility and these 100 entries should also get saved in DB after clicking save button. In short I want dynamic entry screen table control which can show/dieplay Any Number . of entries whatever the number may be entered by enduser .

Plz note that I have used all 3 facilliteis i.e.

1. Scrolling

2. INSERT/DELETE

3. SELECT/DESELECT

while designing TC with wizard .

Scrolling buttons like FIRST PAGE, PREV. PAGE, NEXT PAGE, LAST PAGE are displayed.

BUT they are not functioning though there is system generated code present in both MPP and in PBO & PAI. After clicking any of them , data which is dislaying on entry screen ( Here it is 25 entries ) is getting cleared/disappeared from enry entry screen.

Waiting for ur response & solutions.

Thanks & Regards,

Ashish

3 REPLIES 3
Read only

Former Member
0 Kudos
405

Hi,

Is it mandatory to use a TC? Can't you use a editable ALV and upload your file instead of copy-paste it?

Otherwise you can achieve this with the help of method CLIPBOARD_IMPORT in class CL_GUI_FRONTEND_SERVICES. Use it in your PAI to catch all entries added to clipboard before actually saved them to DB or updating TC...


CALL METHOD cl_gui_frontend_services=>clipboard_import
  IMPORTING
    data   = t_data[]
    length = l_len.

Kr,

m.

Edited by: Manu D'Haeyer on Sep 24, 2011 12:42 PM

Read only

Former Member
0 Kudos
405

Hi Ashish ,

Do one thing .

At PAI of screen holding TC , there is module name tc_mark on request .

in this module , there is work area declared g_tc_wa .

Now go to tc_init module of pbo , where u have given your select command .

select * from ........................................

use this code .

if g_tc_wa is initial .

   SELECT * FROm

   g_tc_wa = 'X'.

   REFRESH CONTROL 'TC' FROM SCREEN dynnr.

   ENDIF.

Just do this , m sure all buttons, insert, delete , scroll bar.. everything will work .

Read only

Former Member
0 Kudos
405

Hi,

Is your problem solved?? I am facing the same, All the rows are not coming in table control. Please help.

Regards,

Sharbani