Hi Jain,
If I understand your question correctly:
- First, you may want to use Function Module CONVERSION_EXIT_INVDT_INPUT to convert from normal date to inverted date.
- Then, just use the converted values for the query.
E.g.
DATA: lv_fdate TYPE datum,
lv_tdate TYPE datum,
lt_56 TYPE TABLE OF t056a.
CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
EXPORTING
input = '19950501'
IMPORTING
output = lv_fdate.
CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
EXPORTING
input = '20130701'
IMPORTING
output = lv_tdate.
SELECT * FROM t056a INTO TABLE lt_56 WHERE datab BETWEEN lv_fdate AND lv_tdate.
Hope it helps. Cheers!