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

parameters validation against check table fields

Former Member
0 Likes
1,716

Hi,

Though in general we use 'AT SELECTION-SCREEN ON <field> ' event to validate input fields. My question is - is there any way to validate input fields without any custom code.... like

 if i write code like this... 

parameters: p_bukrs like t001-bukrs, 
                     p_today like sy-datum. 

If i enter anything wrong in p_bukrs and click on ENTER it was not throwing any error, but if i enter any wrong date like 99.99.9999 then i was getting error msg. Looks like silly, but why dont we have auto check flexibility against check tables ... as in other softwares.

Thanks

Sri.

1 ACCEPTED SOLUTION
Read only

former_member585060
Active Contributor
0 Likes
831

Hi,

Try with VALUE-CHECK option of PARAMETERS

Example:-

PARAMETERS : p_bukrs LIKE  t001-bukrs VALUE CHECK.

Regards

Bala Krishna

Edited by: Bala Krishna on Jul 31, 2009 10:17 PM

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
832

Hi,

Try with VALUE-CHECK option of PARAMETERS

Example:-

PARAMETERS : p_bukrs LIKE  t001-bukrs VALUE CHECK.

Regards

Bala Krishna

Edited by: Bala Krishna on Jul 31, 2009 10:17 PM

Read only

Former Member
0 Likes
831

Hi Sri,

I do not think so that we have any such direct validation for screen fields. We use " AT SELECTION-SCREEN ON <field> " for validations.

If you want then you can keep F4 help for the screen fields so that no incorrect value is entered.

Regards,

Saba

Edited by: Saba Sayed on Jul 31, 2009 6:31 PM

Read only

Former Member
0 Likes
831

No Solution