Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh only subscreen and not a whole screen.

former_member214878
Active Participant
0 Kudos

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.

5 REPLIES 5

former_member201275
Active Contributor
0 Kudos

The subscreen would have a unique dynpro number as you mentioned 1001, so you could try: LEAVE TO SCREEN (1001).

Works for me.

Former Member
0 Kudos

hi,

check  this link

http://scn.sap.com/thread/703458

former_member214878
Active Participant
0 Kudos

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.

0 Kudos

Just bringing up !!!

Please suggest anyone if you have any small hint or idea of doing it.

himanshu_gupta13
Employee
Employee
0 Kudos

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