Condition on selection screen parameters
I have an ABAP query. Here , I have a date field (ISEG_ZLDAT - Cycle count date ) in the selection screen which is a parameter (not a select option). I have to write a condition for the report to pull all the materials which have a cycle count date less than the value entered on the selection screen.
How do I give this condition in the code ? Is there a way to do it without using select options ?
Use like below.
DATA: BEGIN OF itab OCCURS 0,
matnr TYPE matnr,
END OF itab.
PARAMETERS: p_zldat TYPE iseg-zldat.
SELECT matnr FROM iseg INTO TABLE itab
WHERE zldat < p_zldat.