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

Regarding CLEAR

Former Member
0 Likes
651

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
Read only

Former Member
0 Likes
633

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
Read only

Former Member
0 Likes
633

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

Read only

awin_prabhu
Active Contributor
0 Likes
633

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

Read only

Former Member
0 Likes
634

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!

Read only

santosh_kumarm
Participant
0 Likes
633

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

Read only

Former Member
0 Likes
633

If its a table control use:

Refresh Control <CTRLNAME> FROM SCREEN <100>.

Or,

USE:

CLEAR for each element or whole structure.

Regards,

Gurpreet