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

Infotype validations

Former Member
0 Likes
684

Hello,

How do I add some parameter validations to a custom infotype? Error messages when pressing enter or saving for required fields.

5 REPLIES 5
Read only

Former Member
0 Likes
651

Hi,

You can hanlde the same in the PAI events of the Modlue pool program.

Just write a module to validate ur input near the statement

FIELD ur_field_name MODULE ur _module _for _validation.

And also create message type such as E001(Msg clas name) if the input entered is invalid.

Double click on it message and this will take you to the message class where u can enter the text that is to be displayed as error messgae.

Regards,

Farhana

Read only

Former Member
0 Likes
651

I created a module on PAI and a validation in it. However, when the message error appears in the infotype all fields turn non-editable so the user cannot change the error...

Read only

0 Likes
651

Just put a LEAVE SCREEN statement after the error message.

Arya

Read only

Former Member
0 Likes
651

No, it doesn't work...

Read only

Former Member
0 Likes
651

Any more tips?