2009 Feb 27 12:21 PM
Hi,
My screen has 100 fields. I want to clear all the fields when I leave that screen.
Do I need to write CLEAR for all 100 fields.... or is there any other simple way for doing this?
Please let me know..
Regards
Sandip
2009 Feb 27 12:26 PM
Hi Sandeep,
If all those fileds in one work area...or structure..
you can do the clear: wa.
otherwise you dont have other option.
just you need to write code for all the 100 fields to clear.
Regards!
Hi Sandeep,
If all those fileds in one work area...or structure..
you can do the clear: wa.
otherwise you dont have other option.
just you need to write code for all the 100 fields to clear.
Regards!
2009 Feb 27 12:23 PM
Hi Sandeep,
Define all the fileds inside one block and at selection-screen output or any event of your requirement you clear the complete block.
Much Regards,
Amuktha.
Edited by: Amuktha Naraparaju on Feb 27, 2009 1:24 PM
2009 Feb 27 12:25 PM
Hi friend,
Try clearing the screen table by looping it in At selection-screen output event using MODIF id.
Thanks..
Edited by: Sap Fan on Feb 27, 2009 1:26 PM
Edited by: Sap Fan on Feb 27, 2009 1:27 PM
2009 Feb 27 12:26 PM
Hi Sandeep,
If all those fileds in one work area...or structure..
you can do the clear: wa.
otherwise you dont have other option.
just you need to write code for all the 100 fields to clear.
Regards!
2009 Feb 27 12:51 PM
Hi
Create a table with 3 fields
a) program
b) field
c) value.
In the beginning of the program set the program , field and value to the table.
before using the clear get the data from the table into a internal table and using field symbols try clearing the value of the variable
Hope it may be useful
Regard
Santosh
2009 Feb 27 12:55 PM
If its a table control use:
Refresh Control <CTRLNAME> FROM SCREEN <100>.
Or,
USE:
CLEAR for each element or whole structure.
Regards,
Gurpreet
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |