auto refresh display outside of a dialog step

Question:
Hello there.
Is it possible to have a transaction displaying a list ; and then to have an automatic refresh of this list at constant time intervals.
I want at the same time the transaction to be free for user action.
This means, the refresh has to be triggered OUT OF A DIALOG STEP, doesn't it ?
I believe to remember that idocs or workflow income know to do such some things.
Regards.
Answer:
Yes it is.
Essentially what you do is set up a timer in a separate task and refresh the report in the call back procedure for that timer.
Have a look in the Abappers Knowledge Corner
topic 0014 - Real Time Displays
.
_________________
Regards
R
Abap KC

SFMDR

Answer:
And here is how...
First, create a function module in SE37 to wait 30 seconds.
Make sure the function attribute is marked as RFC capable.
(in the Processing type section - tick Remote-enabled module)
FUNCTION Z_WAIT_30_SECS.
DATA: ZTIME LIKE SY-UZEIT.
GET TIME.
ZTIME = SY-UZEIT + 30.
DO.
  GET TIME.
  IF SY-UZEIT >= ZTIME.
     EXIT.
   ENDIF.
ENDDO.
ENDFUNCTION.
Then create this test program.
REPORT ZREFRESH LINE-SIZE 132 no standard page heading.
DATA: ZNUM LIKE SY-TABIX.
GET TIME.
WRITE: /01 'Update Number:', ZNUM, SY-UZEIT.
CALL FUNCTION 'Z_WAIT_30_SECS'
   STARTING NEW TASK 'IF'
   PERFORMING START_REFRESH ON END OF TASK.
AT USER-COMMAND.
IF SY-UCOMM = 'REFR'.
   SY-LSIND = SY-LSIND - 1.
   ADD 1 TO ZNUM.
   GET TIME.
   WRITE: /01 'Update Number:', ZNUM, SY-UZEIT.
   CALL FUNCTION 'Z_WAIT_30_SECS'
     STARTING NEW TASK 'IF'
     PERFORMING START_REFRESH ON END OF TASK.
ENDIF.
*----------------------------------------------------------------
* Program Subroutines
*----------------------------------------------------------------
FORM START_REFRESH USING TASKNAME.
* The SET USER-COMMAND initiates the communication back to the program
  SET USER-COMMAND 'REFR'.
ENDFORM.
*-- End of Program
I hope this will help
Answer:
Gladian... Ever thought of following the links above ???
_________________
Regards
R
Abap KC

SFMDR

Answer:
Sorry for my late answer, but I was on holiday .
Your example treats a report. In my case I have a program with PBO and PAI (tab control to refresh). Then it doesn't work .
That's normal as the SET USER-COMMAND works only with lists.
So I'm still bored with that problem.
Kind regards.
Answer:
Try using FM ABAP4_SET_USER_COMMAND.
Here you have to pass your SY-UCOMM which will refresh the screen for you.
KRK
Answer:
Hello,
unfortunately, if you have a glance at the ABAP4_SET_USER_COMMAND code, you will see that's it's only a call to : SET USER-COMMAND .
noway.
regards.

More Articles:

please any sophisticated abaper coming in!?
RFBIBL00?
Multiple User creating Production Order?
LSMW Customer Master e-mail address?
Table entries to transport.?
View Icons?