‎2007 Oct 19 10:24 AM
Hi,
I have one field in screen say LIFNR. When I press refresh button the value entered in LIFNR should be get cleared.
I wrote clear statement to clear that field & I see that the value get it clear but once the control will return back to screen the field LIFNR is populated whatever we entered previously.
any suggestion??
‎2007 Oct 19 10:46 AM
‎2007 Oct 19 12:10 PM
‎2007 Oct 19 12:13 PM
from where is it picking LIFNR value??
clear that field.. or clear that structure...
‎2007 Oct 22 12:35 AM
You may have a "get / set" parameter ID set on the screen field, in which case you will need to clear that too e.g. "set parameter id 'LIF' field l_lifnr." after you have cleared l_lifnr.
Jonathan
‎2007 Oct 21 5:43 AM
Hi,
If it is main screen then In PAI of that screen:
If u r moving this value into other variable or work area which is similar to screen fields or standard table work area
Then At PBO of that screen u want clear that variable or workarea-variable or tablename-variable and also screen variable name.
Note: check that screen attributes must be dont selected HOLD option. (If selected which stores values after coming back to that screen also even u cleared that variable).
If it is subscreen then u need to clear at calling (Main) screens PBO and PAI (procedure is above only).
Regards,
Vijay Mekala
‎2007 Oct 22 9:31 AM
Hi,
try this code in the PAI...............
***********************************************
when 'REFRESH'.
clear: lifnr.
***********************************************
to clear the field before going to a screen write
clear lifnr.
in the PBO of that screen.
<b>reward points of useful.</b>
regards,
Vinod Samuel.
‎2007 Oct 22 11:02 AM
it is possible that when you cleared the field it would clear but when you again try to go on that field it might again take the data from internal table or table or from any other field and display, check it out.
If you still feel difficulty, let me know the code of PAI and PBO of previous screen.
‎2007 Oct 22 11:28 AM
Hi Neha,
I wonder If you have used FIELD statement in Flow logic.If so then,if you wrote the code to refresh the Lifnr value in a module which is called above the <b>FIELD</b> statement then the value will not crear.Because this FIELD statement in Flow logic will fetch the current value in screen to the field LIFNR eventhough you cleared the value.So what you have to do is put the clear statement in a module which should be called after the FIELD statement.
Regards,
Vigneswaran S
‎2007 Oct 23 3:54 AM
hi Neha ,
Try like this :
At the end of the PAI events clear the field LIFNR . And make sure you use the same variable names through out your PBO and PAI and in layout .
Regards,
Ranjita