Progress bar in SAP ABAP
Report
REPORT zab_rp_progress_bar.
DATA: lv_vbeln TYPE vbeln_va.
SELECT-OPTIONS : s_vbeln FOR lv_vbeln.
IF s_vbeln IS INITIAL.
MESSAGE 'Pls give sale order number' TYPE 'E'.
ELSE.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = '10'
text = 'Reading records started'.
WAIT UP TO 5 SECONDS.
SELECT * FROM vbak
INTO TABLE @DATA(lt_vbak)
WHERE vbeln IN @s_vbeln.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = '50'
text = 'Reading records finished '.
WAIT UP TO 5 SECONDS.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = '80'
text = 'Preparing final result data'.
WAIT UP TO 5 SECONDS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = 'VBAK'
TABLES
t_outtab = lt_vbak
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDIF.
Input
Output
********************************Thank You*****************************
Comments
Post a Comment