Skip to Content
Former Member
Apr 08, 2008 at 08:57 AM

Validate month and year



I'm a very beginner in ABAP so please don't hurt me for my question. 😉

On my dynpro I have two fields which the user has to fill out. One for the month (01 - 12) and the second is for the year (4 characters). Now I want to validate both fields in PAI. I also want that the user could enter either e.g. "08" or "2008". If he enters just "08", the system should complete it to "2008".

Is there a easy way to do this?

Thanks for your help,