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

selection screen field validation

Former Member
0 Likes
864

Hi,

Is there any automic field validation way in which i dont' need to write the code at selection screen event in selection screen report.

e.g vendor name.

at selection screen, I have to check form lfa1 that wheher this record which user enters exits in lfa1 or not.

Is there any automatic way, in which i dont need to write the validation code for every selection field.

Thanks,

6 REPLIES 6
Read only

Former Member
0 Likes
684

i don't think so automatic validation....except for few fileds like date where it checks for format and in case of select-options it checks if low value is not exceeding high value.....for others u need to explicitly do validation in at selection-screen event.

Regards

vasu

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
684

I believe that you can do this sort of thing with a foriegn key relationship in the ABAP dictionary, but not for fields like "Vendor Name". It is more geared toward codes rather than free text.

http://help.sap.com/saphelp_nw70/helpdata/en/cf/21ea77446011d189700000e8322d00/frameset.htm

Regards,

Rich Heilman

Read only

Former Member
0 Likes
684

Hi,

While declaring the fields you need to specify the Dictionary varianbles, if that field is having F4 help then the field will be automaically validated with the respective data, if the field doen't have the F4 help then you need to write the code to validate it

Regards

Sudheer

Read only

Former Member
0 Likes
684

goto se38.

CTRL+F8

PARAMETER

click 20. ... VALUE CHECK

read!

Kind regards, Rob Dielemans

Read only

0 Likes
684

Hi,

I have used dict reference & it has F4 help also, but its not validating automatic.

any suggestions...

Thanks,

Read only

0 Likes
684

There is no provision in SAP to validate values automatically except you provide search help for all parameters and all parameters are mandatory. This way you might be able to validate some parameters but i doubt it will take care of all your selection screen elements.

Message was edited by:

Ashish Gundawar