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

coading2

Former Member
0 Likes
635

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.

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
614

HI,

Use the 'PARAMETERS' and it will allow you to enter only one value in the field.

Like

<b>PARAMETERS: field(10).</b>

Regards,

6 REPLIES 6
Read only

Former Member
0 Likes
614

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

Read only

dani_mn
Active Contributor
0 Likes
615

HI,

Use the 'PARAMETERS' and it will allow you to enter only one value in the field.

Like

<b>PARAMETERS: field(10).</b>

Regards,

Read only

anversha_s
Active Contributor
0 Likes
614

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

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
614

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.

Read only

Former Member
0 Likes
614

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

Read only

Former Member
0 Likes
614

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