SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Refresh dynamically - once a second - a report list



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> List Generation, LDB, Spool Process, SAP Query, Report Painter
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Sun Nov 18, 2007 8:12 pm    Post subject: Refresh dynamically - once a second - a report list Reply with quote

Yes, it is possible: refresh dynamically - once a second - a report list (jobs in the dispatcher queue)

Code:
REPORT ZIMREEEE NO STANDARD PAGE HEADING.
************************************************************************
* This program displays a list on a screen and refreshes it once in every
* second. The list shows the status of the dispatcher queues:
* the number of jobs waiting for the different services at the moment.
* The remote callable function module should look like this:
*
*FUNCTION Z_ENQUE_SLEEP.
**"-----------------------------
**"*"Local interface:
**"-----------------------------
*CALL FUNCTION 'ENQUE_SLEEP'
*          EXPORTING
*           SECONDS = 1.
*ENDFUNCTION.
************************************************************************
DATA: BEGIN OF ITAB OCCURS 5.
        INCLUDE STRUCTURE THLINES.
DATA: END OF ITAB.
* Run the async. function module the first time
START-OF-SELECTION.
  CALL FUNCTION 'Z_ENQUE_SLEEP'
       STARTING NEW TASK 'WAIT'
       PERFORMING WHEN_FINISHED ON END OF TASK.
  WRITE: ''.
* Run the async. function module and display the freshest data
AT USER-COMMAND.
  SY-LSIND = SY-LSIND - 1.
  CALL FUNCTION 'TH_REQUEST_QUEUE'
       TABLES
            REQUEST_QUEUES = ITAB.
WRITE: 9
'TYPE         WAITING    MAXINQ     QSIZE  SUMWRITETOQ  SUMREADFROMQ'.
SKIP.
  LOOP AT ITAB.
    WRITE:  / ITAB.
  ENDLOOP.
  CALL FUNCTION 'Z_ENQUE_SLEEP'
       STARTING NEW TASK 'INFO'
       PERFORMING WHEN_FINISHED ON END OF TASK.
* When the async. function module finished, this form will be called
FORM WHEN_FINISHED USING TASKNAME.
  RECEIVE RESULTS FROM FUNCTION 'Z_ENQUE_SLEEP'.
* Trigger an event to run the at user-command
  SET USER-COMMAND 'BUMM'.
ENDFORM.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> List Generation, LDB, Spool Process, SAP Query, Report Painter All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.