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: 

Regarding CLEAR

Former Member
0 Kudos
100

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

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!

5 REPLIES 5

Former Member
0 Kudos
82

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

awin_prabhu
Active Contributor
0 Kudos
82

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

Former Member
0 Kudos
83

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!

santosh_kumarm
Participant
0 Kudos
82

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

Former Member
0 Kudos
82

If its a table control use:

Refresh Control <CTRLNAME> FROM SCREEN <100>.

Or,

USE:

CLEAR for each element or whole structure.

Regards,

Gurpreet