Application Development 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: 

Value Check on Selection Screen

Former Member
0 Kudos

Hello Everyone,

Just a quick question. When I use VALUE CHECK in the selection screen, the system checks the input field against the check table even when there has been no input in it. As a result, I get a error message that says 'Entry <space> does not exist in ABCD table'.

How do we enable VALUE CHECKs on input only i.e. without using the Event AT SELECTION SCREEN ??

Thanks in Advance....Jaison

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Jaison,

If you donot want to use the event AT SELECTION SCREEN, you have make your field mandatory so that there is no possibility of VALUE CHECK when it is blank.

You can see this statement from F1 help on VALUE CHECK:

"

The check against a check table is executed even if the input field is empty. Therefore, it is recommended to use the addition OBLIGATORY at the same time.

"

Hope this helps you.

Regards,

Sindhu Pulluru.

4 REPLIES 4

Former Member
0 Kudos

Hi Jaison,

If you donot want to use the event AT SELECTION SCREEN, you have make your field mandatory so that there is no possibility of VALUE CHECK when it is blank.

You can see this statement from F1 help on VALUE CHECK:

"

The check against a check table is executed even if the input field is empty. Therefore, it is recommended to use the addition OBLIGATORY at the same time.

"

Hope this helps you.

Regards,

Sindhu Pulluru.

0 Kudos

Thank you for the reply, Sindhu.

Guess I will have to use AT SELECTION SCREEN afterall, because the field I had in mind cannot be made mandatory.

venkateswaran_k
Active Contributor
0 Kudos

Dear Jaison,

Please note that ,

Note

The check against a check table is executed even if the input field is empty. Therefore, we recommend that you use the addition OBLIGATORY at the same time.

Try using as following example:

   PARAMETERS p_belnr LIKE BKPF-BELNR   VALUE CHECK.

If you are forced to use only at AT SELECTION SCREEN,  then put the DEFAULT value....

kindly post back with your feedback

Regards,

Venkat

0 Kudos

Hello Venkat,

Thanks for the reply. But I believe you didn't understand my query. I am using the same code that you have shown, but the system is doing a value check even when there is no input i.e. it is checking for a blank value in the check table. This causes an error message that I was attempting to work around.

But, as Sindhu pointed out, VALUE CHECK would require the field to be OBLIGATORY since it doesn't distinguish if a input is made or not.

Thanks & Regards...Jaison