Skip to Content

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

Condition on selection screen parameters

Hi friends,

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 ?

Please help.

Thanks,

Dikshitha

Former Member
Former Member replied

Use like below.

REPORT ztest

TABLES: iseg.

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.

Thanks.

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