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

How to set data obligatory on matchcode ?

Former Member
0 Likes
590

Hello,

I create a Zmatchcode. It's run ok, the user can choose a parameters by search help...nice !!!

My problem is :

Now, I would that if the user don'use the matchcode and enter some random data on parameters an error message is showed.

I would that the user have only the possibility to entry data present on matchcode, and not other data.

How to do it ?

Tks.

1 ACCEPTED SOLUTION
Read only

rvinod1982
Contributor
0 Likes
517

Hi,

The Zmatchcode might be showing data from a particular table. In the AT-SELECTION SCREEN event, check using SELECT query whether the value entered in the parameter exists in the table or not.

Regards,

Vinod

2 REPLIES 2
Read only

rvinod1982
Contributor
0 Likes
518

Hi,

The Zmatchcode might be showing data from a particular table. In the AT-SELECTION SCREEN event, check using SELECT query whether the value entered in the parameter exists in the table or not.

Regards,

Vinod

Read only

Former Member
0 Likes
517

Hi

In the At Selection Screen event you can write a select query to check whether the value exist in the respective table.After the select query check sy-subrc.If it is not equal to zero then the value doesn't exist.In that case u can use Message of type E to show an error .

Thanks!!

RJ