Skip to Content
0
Former Member
Jun 09, 2006 at 09:44 AM

Report programs

21 Views

Hi all,

I have a situation where I would be processing a table

with 3000 or more lines. It is a pretty long process and

the output is a list view.

I tried to create a progress indicator with following

code:

Before the start of loop:

DATA: L_LIST_COUNT TYPE I.

DATA: L_SCREEN_COL_COUNT TYPE I.

DATA: L_PROGRESS_UNIT TYPE I.

DATA: L_LOOP_COUNT TYPE I VALUE 0.

DESCRIBE TABLE IT_BUILD_LIST LINES L_LIST_COUNT.

L_SCREEN_COL_COUNT = SY-LINSZ - 2.

L_PROGRESS_UNIT =

( L_LIST_COUNT / L_SCREEN_COL_COUNT ) + 1.

With in the loop:

L_LOOP_COUNT = L_LOOP_COUNT + 1.

IF L_LOOP_COUNT GE L_PROGRESS_UNIT.

FORMAT COLOR = 4.

WRITE: '>'.

L_LOOP_COUNT = 0.

ENDIF.

The problem is I dont see the progress. The whole

processing is done and the list view is displayed. When

I go back i see the progress code output.

Is it possible to view the progress when loop runs??

Thanks in advance.