08-26-2013 12:54 PM
Hello,
I am having one screen - Say 1000.
On screen 1000 I am having one Sub-screen area, and I am calling another sub-screen 1001 which is having custom control on it.
I have created one TEXTEDIT control for subscreen.
Now when my screen 1000 will be called I am able to see one TEXTEDIT control. Up to this is fine.
I want this textedit control should be refreshed automatically in 5 seconds and only textedit control should be refreshed.
I can have whole screen be refreshed by RFC_PING_AND_WAIT but it removes all my entered data as well.
So is there any way I can refresh my only subscreen by any means and not the whole screen?
Please advise.
Thanks and regards,
Ravindra Sonar.
08-26-2013 2:28 PM
The subscreen would have a unique dynpro number as you mentioned 1001, so you could try: LEAVE TO SCREEN (1001).
Works for me.
08-27-2013 5:57 AM
08-30-2013 7:10 AM
Hello Glen and Kiran,
I am not sure how LEAVE TO screen would help me?
Also there is no way I can set a new SY-UCOMM to a sub-screen too. Its not working.
Please have a look on the attached screen shot . I have smaller the example with -
Here in above -
1. I am calling TextEditor from sub-screen 1001. and it is been called in Normal screen 1000.
2. How to refresh only sub-screen 1001, automatically after 5/10 seconds -- WITHOUT LOSING VALUES IN THE PARAMETER ABOVE THE SUB-SCREEN ?
Thanks and regards,
Ravindra Sonar.
09-04-2013 5:51 AM
Just bringing up !!!
Please suggest anyone if you have any small hint or idea of doing it.
09-04-2013 6:16 AM
Hi Ravindra,
You can use this method...in ever particular interval...
IF CONTROL_NAME IS NOT INITIAL.
***for clearing of object and methods using cl &*******
CALL METHOD TEXTEDIT-Name->free
* EXCEPTIONS
* cntl_error = 1
* cntl_system_error = 2
* others = 3
.
FREE edit_nec.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
and again initiate the object in PBO of 1001 screen.
Many Thanks / Himanshu Gupta