cancel
Showing results for 
Search instead for 
Did you mean: 

Date validation

Former Member
0 Kudos

Hi,

I have to do a date validation in which i have to restict the user from entering date before the current date. How can i acheive this validation. is there any standarad validation available in crm ui for date.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ansal,

By defining date types and duration in configurations you can achieve this. Were you already configured?

Rgds

Hari

pavelduchac
Participant
0 Kudos

Hi Ansal,

You can place your validation code into SET_??? method of the attribute.

Put it after check of value change (new value/old value comparison)

-----------------

*   only set new value if value has changed
    IF <nval> <> <oval>.
     
* <place your code here>

ie. - check sy-datum > <nval>, then issue error message

      current->set_property(
                      iv_attr_name = 'DATE'
                      iv_value     = <nval> ).

    ENDIF.

Former Member
0 Kudos

Hi,

were you able to achieve this need? Can you post the solution?

Thanks.