2006 Nov 30 11:52 AM
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
2006 Nov 30 12:01 PM
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
2006 Nov 30 11:57 AM
Hi,
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'CLEAR'.
**clear all fields**
ENDCASE.
2006 Nov 30 12:01 PM
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
2006 Nov 30 12:08 PM
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
2006 Nov 30 12:15 PM
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'.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |