‎2008 Jan 14 8:40 AM
Hi Experts,
I have custom transaction created in module pool, when I run this transaction It shows me previous value entries in parameters I used in this.
I want to clear all the values from the screen parameter after I execute my transaction. The screen should be blank initialy.
Please Help.
Thanks.
Abhishek
‎2008 Jan 14 8:47 AM
Hi Abhishek
When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter
ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen
in the PAI event.
When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
So please check in the attributes of this field in the screen painter whether you have checked the Parameter
ID field in the screen attributes. This attribute should be unchecked so as not to see any default value on your initial screen.
Thanks and Regards
Shivika
‎2008 Jan 14 8:43 AM
Hi Abhishek,
Try out CLEAR statement before the use of the variable defined by the parameter statement.
if you want to clear the internal table use REFRESH statement.
this may surely help you.
plz reward if helpful,
regards,
srikanth tulasi.
Edited by: srikanth tulasi on Jan 14, 2008 9:43 AM
‎2008 Jan 14 8:43 AM
Hi Abhishek
In the PBO of your screen use the statement CLEAR to clear those variables.
~ Ranganath
‎2008 Jan 14 8:45 AM
Hi,
Use CLEAR Statement to clear your screen fields in PBO event.
Regards,
Archana.
Edited by: Archana Karukonda on Jan 14, 2008 9:45 AM
‎2008 Jan 14 8:47 AM
Hi Abhishek
When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter
ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen
in the PAI event.
When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
So please check in the attributes of this field in the screen painter whether you have checked the Parameter
ID field in the screen attributes. This attribute should be unchecked so as not to see any default value on your initial screen.
Thanks and Regards
Shivika
‎2008 Jan 14 8:50 AM
Hi,
Clear all the parameters under the event
"PROCESS BEFORE OUTPUT."
Ex :
PROCESS BEFORE OUTPUT.
MODULE parameters_clear.
Double click on it it will create module in ABAP editor.
CLEAR : All parameters name.
‎2008 Jan 14 8:51 AM
Hi ,
clear the screen field before displying the screen.
i.e. In PBO of screen in which you are displaying parameters,
first you have to clear the screen varible.
e.g. parameters name(5) type c.
PROCESS BEFORE OUTPUT.
MODULE Clear_var.
MODULE Clear_var.
clear name.
ENDMODULE.
‎2008 Jan 14 9:01 AM
Thanks Shivika, My Parameter IDs were set from Dictionary..thank a lot problem resolved.