‎2006 Nov 27 6:48 AM
hi,
we have selection screen.and have lots of records in database.selection screen only one record to accept and provide output.if we enterd remaing any record we have to get error message like 'record enterd is not valid'.how?
thanks in advance.
‎2006 Nov 27 6:51 AM
HI,
Use the 'PARAMETERS' and it will allow you to enter only one value in the field.
Like
<b>PARAMETERS: field(10).</b>
Regards,
‎2006 Nov 27 6:50 AM
Hi Surendra
It is like validating the data on selection-screen.
We can do this Validation in event AT SELECTION-SCREEN.
Code in this event to validate and prompt error message accordingly.
Kind Regards
Eswar
‎2006 Nov 27 6:51 AM
HI,
Use the 'PARAMETERS' and it will allow you to enter only one value in the field.
Like
<b>PARAMETERS: field(10).</b>
Regards,
‎2006 Nov 27 6:53 AM
hi,
use this.
parameters : field1 like db-fieldname.then,
at selection-screen on field1.chk the value of field1 is valid or not using select query.
RGDS
Anver
‎2006 Nov 27 6:52 AM
Hi ,
At selection-screen.
Select single record from dbtable into var where record = s_record .
if sy-subrc eq 0.
do processing.
else.
message error.
endif.
hope this helps.
‎2006 Nov 27 6:52 AM
Raju,
You can validate the entered value in the event <b>AT SELECTION-SCREEN</b>
here you can check and give the message.
Regards
Vijay
‎2006 Nov 27 6:53 AM
Hi,
U have to validate selection screen.
at selection-screen on field s_rec-low.
if s_low = 12.
else
message e001.
endif.
at selection-screen on field s_rec-high.
if s_low = 12.
else
message e001.
endif.
Rgds,
Sunil.K