Skip to Content

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

input check of report

I have selection option parameter to choose the date range called so_dt. this field gets data from the table ztbl_name.

Here is the common input check

IF NOT ztbl_name[] IS INITIAL.

SELECT dt

INTO wa

FROM ztbl_name

UP TO 1 ROWS

WHERE dt IN so_dt.

ENDSELECT.

IF NOT SY-SUBRC IS INITIAL.

MESSAGE E001(zmsg).

ENDIF.

ENDIF.

Can any body explain the code snippet above? and is it the best practice?

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question