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

how to use clear screen in module pool program

Former Member
0 Likes
2,676

Hi

I have a requirement that i have to set up a clear push button i screen, by clicking that my screen defaults should be blank

please guide me in this

thanks in adv

sateesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

Hi,

You can write your code in the PAI of your screen.

MODULE USER_COMMAND_0100 INPUT.

WHEN 'CLEAR'.

CLEAR : ITAB (Internal table), W_VAR (variables)

ENDMODULE.

This should work for you.

Regards,

JLN

Hi

I have a requirement that i have to set up a clear push button i screen, by clicking that my screen defaults should be blank

please guide me in this

thanks in adv

sateesh

4 REPLIES 4
Read only

Former Member
0 Likes
853

Hi,

MODULE USER_COMMAND_0100 INPUT.

CASE SY-UCOMM.

WHEN 'CLEAR'.

**clear all fields**

ENDCASE.

Read only

Former Member
0 Likes
854

Hi,

You can write your code in the PAI of your screen.

MODULE USER_COMMAND_0100 INPUT.

WHEN 'CLEAR'.

CLEAR : ITAB (Internal table), W_VAR (variables)

ENDMODULE.

This should work for you.

Regards,

JLN

Read only

Former Member
0 Likes
853

Hi,

Create a push button in the Screen and give the Function code is CANCEL.

In the PAI module ...

Case SY-UCOMM.

when 'CANCEL'.

Clear: <Write all the field here>.

when Others.

Endcase

Regards

Sudheer

Read only

Former Member
0 Likes
853

Hi,

If u want to clear some fields ...then u can give

when 'CLEAR'.

Field1 = ' '.

clear itab.

like this...

if u want to clear the whole screen..

u can call the tcode again....

After save if u want to clear...u can setr

when 'SAVE'.

SAVE the details....

CALL TRANSACTION 'TCODE'.