Skip to Content
author's profile photo
Former Member

how to clear table control view lines?

Dear Experts,

I created one ALV Report with push buttons. User can select multiple line. After select the lines, when user clicks push button in ALV, then am calling POPUP screen 1100 with save and cancel button. which ever line user selected in ALV, that will appear in the POPUP screen 1100 with table control view.

issue :

Ex :

In ALV user selected 3 lines , that appeared in POPUP screen 1100 table control view. Now user wants to select some more line in ALV. so user clicked cancel and reached ALV screen. user selected 2 more line in ALV (total 5 lines). Again user clicked same push button in ALV, But now same 3 lines (old record) are appearing in POPUP screen 1100, new records (5 lines) are not appearing.

Code :

My PBO internal table is having 5 records. but in table control only 3 records are appearing.

***********************************************

PROCESS BEFORE OUTPUT.

MODULE status_1100.

LOOP AT git_prq_items1 INTO gwa_prq_items1

WITH CONTROL ctl_pr_items.

ENDLOOP.

PROCESS AFTER INPUT.

MODULE user_command_1100.

LOOP AT git_prq_items1.

MODULE read_table_control. " if any changes happened in table control - read table control.

ENDLOOP.

********************************************

MODULE status_1100 OUTPUT.

SET PF-STATUS ''.

ENDMODULE. " status_1100 OUTPUT

********************************************

git_prq_items1 - this internal table is having 5 records.

Please suggest where should i correct.

Regards

chessleo.

Edited by: sapleo on May 6, 2011 9:59 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on May 06, 2011 at 08:22 AM

    Hi,

    Set number of lines in table control as below.

    ctl_pr_items-lines = 5.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 06, 2011 at 08:39 AM

    Hi.,

    Clear the records and populate new records., also use refresh table display if u are using oo alv.

    check BCALV_GRID_05 report.,

    Hope this helps u.,

    Thanks & Regards

    Kiran

    Add comment
    10|10000 characters needed characters exceeded