Application Development 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: 

Parameter is persistent

Former Member
0 Kudos

Hi friends,

Let

   
PARAMETERS : name(10) .
write : name.

Now if in the selection screen , we give , say qwerty and execute it , we get qwerty in the screen .

here if the back button is clicked the initial screen selection screen appears with the value qwerty filled in it.What is the reason for this ? How to make the parameter space empty in selection screen when the back button is clicked .

Regards,

K.Sibi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

write like this


PARAMETERS : name(10) .
start-of-selection.
write : name.

the following write was called when the event at selection screen was triggered. this will work fine.

9 REPLIES 9

Former Member
0 Kudos

write like this


PARAMETERS : name(10) .
start-of-selection.
write : name.

the following write was called when the event at selection screen was triggered. this will work fine.

0 Kudos

Hi,

This code is not satisfying the requirement and its working the same way as the posted code

Regards,

K.Sibi

former_member209217
Active Contributor
0 Kudos

Hi Sibi,

Use at selection-screen event.

Under the event write coding

AT SELECTION-SCREEN.

CLEAR NAME.

Hope it will be useful.

Regards,

Lakshman.

Former Member
0 Kudos

Hi,

Clear the element on the event at selection-screen output.


parameters name(10).

at selection-screen output.
clear name.

start-of-selection. 
write name.

Regards,

Sachin

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

Try like this.


PARAMETERS : name(10) .
AT SELECTION-SCREEN OUTPUT.
CLEAR name.

START-OF-SELECTION.
write : name.

Thaks,

Vinod.

0 Kudos

Hello sachin and vinod,

Thanks for your replies.

It is working fine, as long as i give input in selection selection screen and press F8.

but if i press enter , the values get deleted on the screen itself.

Hope to get it cleared.

Regards,

K.Sibi

Edited by: sibi k kanagaraj on Mar 19, 2009 12:48 PM

0 Kudos

Hi,

Whenever 'Enter' is pressed in selection-screen, 'At selection-screen output' event will execute.

To add:

'At selection-screen output' event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION.

Therefore, this event is not suitable for setting selection screen default values.

Edited by: Sap Fan on Mar 19, 2009 1:00 PM

0 Kudos

Hello,

Clear the value of parameter, when "BACK" pressed.

Like if sy-ucomm EQ BACK, Clear field.

write this code in PROCESS AFTER INPUT.

Edited by: Siddhesh Pathak on Mar 19, 2009 12:56 PM

sarbajitm
Contributor
0 Kudos

AT USER-COMMAND.

CASE Sy-ucomm.

WHEN 'BACK'.

Clear name.

ENDCASE.