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

Initialization of Screen (Module Pool)

abhishek_katti
Explorer
0 Likes
2,235

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,379

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,379

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

Read only

Former Member
0 Likes
1,379

Hi Abhishek

In the PBO of your screen use the statement CLEAR to clear those variables.

~ Ranganath

Read only

Former Member
0 Likes
1,379

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

Read only

Former Member
0 Likes
1,380

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

Read only

Former Member
0 Likes
1,379

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.

Read only

Former Member
0 Likes
1,379

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.

Read only

abhishek_katti
Explorer
0 Likes
1,379

Thanks Shivika, My Parameter IDs were set from Dictionary..thank a lot problem resolved.