on 04-14-2008 1:07 PM
Hi ,
In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
If u ll enter the wrong date it should validate the Date and throw an error message.
Please Reply soon its urgent.
Thanks,
Deepika
hi deepika.....
just read the attribute that is bound to the date field... have the orginal date field in a sy-datum field and use the relational operator.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In our WDA we wanted to perform data validation for date field. (i.e. While creating a new record we have to check if the Start Date is less than End Date.)
If we enter the wrong date it should validate the Date and throw an error message(Pop Up).
Please help us with Code.
Please Reply soon it's urgent.
Thanks,
Sushmitha
Edited by: Sushmitha S on Apr 14, 2008 3:16 PM
Hi,
First read the two attributes start date and end date.
Then write the following condition.
IF item_start_date > item_end_date.
Error message.
Endif.
For pop up error message you need to use Create_window method of the Interface if_wd_window.
Thanks.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.