‎2007 Mar 29 1:17 PM
Hi how to refresh a screen in a module program.
I want to clear all the fields ....
‎2007 Mar 29 1:22 PM
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
‎2007 Mar 29 1:22 PM
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
‎2007 Mar 29 1:57 PM
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.
‎2007 Mar 29 2:01 PM
Hi,
If all the values are referred to workarea , then simply use
CLEAR WA_ITAB.
‎2007 Mar 29 1:23 PM
create a PF status as "REFR" ie refresh
Call screen <screen Number>
in PBO clear all screen values if ok_code eq REFR
aRs.
‎2007 Mar 29 1:27 PM
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