Using sy-datum-low and sy-datum-high in ABAP Program



In this code, you have used ‘BT’ i.e. between so select option will hit any date between today and YYYYMMDD ‘99991231’.

You should declare high dates at INITIALIZATION so that it is visible on the selection screen and you can change it if required.

select-OPTIONS: so_date FOR sy-datum.
INITIALIZATION.
   so_date-sign = 'I'.
   so_date-option = 'BT'.
   so_date-low = sy-datum.
   so_date-high = '99991231'.
APPEND so_date.
Updated on: 2020-02-14T10:24:16+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements