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

refresh the screen

Former Member
0 Likes
852

hi how to refresh the screen.

i have around 40 fields in my screen.i want to keep everything as initial once i save the values.

how to do this.

Whether i have to do for one by one field...or is there any statement for the whole screen.

6 REPLIES 6
Read only

Former Member
0 Likes
811

Put all the fields in a work area and then clear that workarea.All the fields inside that workarea will get cleared.For eg

clear <work area> " Work area contains all the fields.

Read only

dani_mn
Active Contributor
0 Likes
811

HI,

you have to mention all your fields in CLEAR: statement.

CLEAR: field1,

field2....

Regards,

Read only

Former Member
0 Likes
811

after u SAVE clear all the variables

Read only

anversha_s
Active Contributor
0 Likes
811

hi sumi,

there is an easy way.

suppose u have data base table DB_STUDENT and it ahs the fields name and age.

u declred like this in the code.

eg : TABLES db_student.

suppose field name in the screen are db_student-name and db_student-age.

so after save just give

clear db_student.

only 1 statemnet is needed.

rgds

anver

Read only

Former Member
0 Likes
811

I am not using Internal table...

So istead of clearing each textbox...i called the tcode again

call transaction 'TCODE'.

it Solved the problem

Read only

Former Member
0 Likes
811

Hi,

When 'SAVE'

clear itab.(Clers work area)

Regards

Amole