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

Record Count progress indicator

Former Member
0 Likes
587

hi,

Help me in Record Count progress indicator

thnks.

2 REPLIES 2
Read only

Former Member
0 Likes
497

hi,

use the following code.

TYPES: BEGIN OF t_mara,

matnr LIKE mara-matnr,

END OF t_mara.

DATA: it_mara TYPE STANDARD TABLE OF t_mara INITIAL SIZE 0,

wa_mara TYPE t_mara.

DATA: gd_count(6) TYPE n,

gd_outtext(70) type c.

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

*START-OF-SELECTION.

START-OF-SELECTION.

SELECT matnr

UP TO 500 ROWS

INTO TABLE it_mara

FROM mara.

CHECK sy-subrc EQ 0.

LOOP AT it_mara INTO wa_mara.

add 1 to gd_count.

concatenate 'Processing personnel data'(m10) gd_count into gd_outtext

separated by ' '.

  • Display indicator for employee count

perform progress_indicator using gd_outtext.

ENDLOOP.

WRITE: /20 'Report is "Complete" OK'.

&----


*& Form PROGRESS_INDICATOR

&----


  • Displays progress indicator on SAP screen

----


form progress_indicator using p_text.

call function 'SAPGUI_PROGRESS_INDICATOR'

exporting

  • PERCENTAGE = 0

text = p_text.

endform. " PROGRESS_INDICATOR

Read only

Former Member
0 Likes
497

HI,

The progress indicator adds a small timer in the lower left corner of the SAP screen. It not onlyprovides the user with the number of records processed but also stops reports timing out. Itdoes this by reseting the timeout timer whenever it is called.

See the code below:

REPORT zprogind.

TYPES: BEGIN OF t_mara,

matnr LIKE mara-matnr,

END OF t_mara.

DATA: it_mara TYPE STANDARD TABLE OF t_mara INITIAL SIZE 0,

wa_mara TYPE t_mara.

DATA: gd_count(6) TYPE n,

gd_outtext(70) type C

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

START-OF-SELECTION.

START-OF-SELECTION.

SELECT matnr

UP TO 500 ROWS

INTO TABLE it_mara

FROM mara.

CHECK sy-subrc EQ 0.

LOOP AT it_mara INTO wa_mara.

add 1 to gd_count.

concatenate 'Processing personnel data'(m10) gd_count into gd_outtext

separated by ' '.

  • Display indicator for employee count

perform progress_indicator using gd_outtext.

ENDLOOP.

WRITE: /20 'Report is "Complete" OK'.

&----


& Form PROGRESS_INDICATOR

&----


*

  • Displays progress indicator on SAP screen

----


form progress_indicator using p_text. call function 'SAPGUI_PROGRESS_INDICATOR'

exporting

  • PERCENTAGE = 0

text = p_text.

endform. " PROGRESS_INDICATOR

Cheers,

Chandra Sekhar.