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

Table control

Former Member
0 Likes
791

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
772

Are you using FM SCROLLING_IN_TABLE or something like it to handle the scrolling?

Rob

9 REPLIES 9
Read only

Former Member
0 Likes
773

Are you using FM SCROLLING_IN_TABLE or something like it to handle the scrolling?

Rob

Read only

0 Likes
772

ROB,

NO I AM NOT USING THAT FM.

THANKS ROBY.

Read only

0 Likes
772

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

Read only

0 Likes
772

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.

Read only

0 Likes
772

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

Read only

0 Likes
772

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.

Read only

0 Likes
772

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

Read only

ferry_lianto
Active Contributor
0 Likes
772

Hi Roby,

Please check this demo program RSDEMO02 perhaps it may help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
772

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