Application Development and Automation 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: 
Read only

Refreshing a Screen

Former Member
0 Likes
1,038

Hi how to refresh a screen in a module program.

I want to clear all the fields ....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
929

hii...

what do you mean by refresh?

do you want to clear the values of all the fields on screen?

if yes...

then in the last PBO module of your screen write..

**************************************************

Module CLEAR OUTPUT.

LOOP AT SCREEN.

clear screen-name.

MODIFY screen.

ENDLOOP.

ENDMODULE.

**************************************************

alternatively you can also write..

**************************************************

Module CLEAR OUTPUT.

clear screen.

MODIFY screen.

ENDMODULE.

**************************************************

<b>Reward points for helpful answers,</b>Tejas

5 REPLIES 5
Read only

Former Member
0 Likes
930

hii...

what do you mean by refresh?

do you want to clear the values of all the fields on screen?

if yes...

then in the last PBO module of your screen write..

**************************************************

Module CLEAR OUTPUT.

LOOP AT SCREEN.

clear screen-name.

MODIFY screen.

ENDLOOP.

ENDMODULE.

**************************************************

alternatively you can also write..

**************************************************

Module CLEAR OUTPUT.

clear screen.

MODIFY screen.

ENDMODULE.

**************************************************

<b>Reward points for helpful answers,</b>Tejas

Read only

0 Likes
929

clear screen.

MODIFY screen.

this syntax doesn't work.

I tried writing in PBo module.

My requirement is simple i want to clear all the fields in the screen when the transaction is called ...

I called the custom transaction from my report program by assigning some fields usine parameter iD ... now when i try calling the transaction code manually same value is appearing ....

I want to refresh the hole screen.

Read only

0 Likes
929

Hi,

If all the values are referred to workarea , then simply use

CLEAR WA_ITAB.

Read only

former_member194669
Active Contributor
0 Likes
929

create a PF status as "REFR" ie refresh

Call screen <screen Number>

in PBO clear all screen values if ok_code eq REFR

aRs.

Read only

Former Member
0 Likes
929

Look at EH_ONRESET method of any controller class to get some idea on how to reset the context node values.

For example look at method BP_RESET of controller impl class CL_CRM_IC_BUPACONTROLLER_IMPL.

reward all help full answers

Message was edited by:

sunil kumar