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

Clear a parameter at selection-screen

Former Member
0 Likes
646

Hi guys, haven't found the answer to this one yet:

at my selection screen, I have the field p_name(40), it's default value is "Insert your name here", what I need is:

when the user selects the field to input data, the field must be cleared to receive the name.

already tried "at selection-screen" but it didn't react to field selection (or did I anything wrong?)

thank you

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
613

What you are asking for is simply not apart of the functionality of the SAPgui. The actions which you are talking about, placing the cursor is a field, and firing an event to the application is not possible within the SAPgui presentation client. Instead, keep you parameter P_NAME clear with not default value and just have a selection screen comment beside it.


report zrich_0001.

selection-screen begin of line.
selection-screen comment 1(10) com1.
parameters: p_name(40) TYPE C.
selection-screen comment (30) com2.
selection-screen end of line.

initialization.

com1 = 'Name'.
com2 = 'Please enter your name here'.

Regards,

RIch Heilman

5 REPLIES 5
Read only

Former Member
0 Likes
613

hi,

u can try using

at selection-screen output.

case sscrfields-ucomm.

when 'CLK'.

clear p_name.

Read only

gopi_narendra
Active Contributor
0 Likes
613

Take out the default value for your parameter.

Instead put the text 'Insert Your Name here' as the selection screen parameter text whihc the users can understand.

So just take out the default value.

Regards

Gopi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
614

What you are asking for is simply not apart of the functionality of the SAPgui. The actions which you are talking about, placing the cursor is a field, and firing an event to the application is not possible within the SAPgui presentation client. Instead, keep you parameter P_NAME clear with not default value and just have a selection screen comment beside it.


report zrich_0001.

selection-screen begin of line.
selection-screen comment 1(10) com1.
parameters: p_name(40) TYPE C.
selection-screen comment (30) com2.
selection-screen end of line.

initialization.

com1 = 'Name'.
com2 = 'Please enter your name here'.

Regards,

RIch Heilman

Read only

0 Likes
613

that's I was looking for, the "on-field" event, too bad that the gui still doesnt have it... thank you guys anyway, till next time

Read only

Former Member
0 Likes
613

that's I was looking for, the "on-field" event, too bad that the gui still doesnt have it... thank you guys anyway, till next time