cancel
Showing results for 
Search instead for 
Did you mean: 

Data validation for Date Field in Web Dynpro ABAP

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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

Former Member
0 Kudos

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

Former Member

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.

Answers (0)