‎2005 May 09 6:58 PM
Hello,
The requirement is to dynamically change the text of a text-element on a screen . I know that we can change the characteristics like visibility, input, output etc - of a element thro' the screen structure but do not know how to change the text displayed. I know that I need to do this in the PBO module but how is where I need help. How do you change the text displayed on the screen dynamically ?
Thanks,
Anu
‎2005 May 09 7:28 PM
‎2005 May 09 7:28 PM
‎2005 May 10 5:08 AM
Hi,
I have no idea about changing the text element dynamically.
But you can refresh the screen by the following sample coding.
You can accomplish this with a RFC enabled Function module.
1. Create a function module. The only functionality will be to wait for 10 secs.
2. Create a subroutine which will set a user-command.
3. and at user-command call the function module.
Below is the code, I found on the web. It is quite simple..
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.
: *----
: *
: SET USER-COMMAND 'REFR'.
: ENDFORM. "
: FUNCTION Z_WAIT_30_SECS.
: *"----
: ""Local interface:
: *"----
: DATA: ZTIME LIKE SY-UZEIT.
: GET TIME.
: ZTIME = SY-UZEIT + 30.
: DO.
: GET TIME.
: IF SY-UZEIT >= ZTIME.
: EXIT.
: ENDIF.
: ENDDO.
: ENDFUNCTION.
Hope this helps.
Regards,
J.Jayanthi
‎2005 May 10 7:35 AM
Design them as labels on the same position, display only one at a time on screen (Depending on a condition).
Rgds,
Manohar
‎2005 May 10 7:26 PM
Thanks Rich. You sent me down the right direction.
I will try the other options suggested later. I logged in yesterday and saw Rich's response and went back to work on it thinking -'Duh!' Did not see the other options. Will try them now.
Anu