‎2007 Jul 11 1:09 AM
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
‎2007 Jul 11 2:15 AM
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
‎2007 Jul 11 1:48 AM
hi,
u can try using
at selection-screen output.
case sscrfields-ucomm.
when 'CLK'.
clear p_name.
‎2007 Jul 11 2:05 AM
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
‎2007 Jul 11 2:15 AM
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
‎2007 Jul 11 4:40 AM
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
‎2007 Jul 11 4:41 AM
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