Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

data validation

Hi Gurus,

I need to pass one of my date which is stored in v_date to the range of my dates stored in v_01 and v_02 and see if the v_date lies in between v_01 and v_02 using between syntax, can you help me out how to do it.


Rajeev Gupta

Former Member
Former Member replied

DATA : v_fdate TYPE sy-datum,

v_ldate TYPE sy-datum.

IF sy-datum BETWEEN v_fdate AND v_ldate.

write 'Is between'.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question