Hi Guys,
What is the problem in below code?. When I run this program in foreground the message u2013 NO DATA FOUND is displayed on the screen. But when I run the background and try to view the spool, it gives message in red No List available and there is no spool to view.
G_lastdate = u201820080602u2019.
SELECT startdate account tcode cua_prog FROM ztcode
INTO TABLE gi_stats WHERE startdate GT g_lastdate.
If sy-subrc NE 0.
WRITE:/ '*** No Data Found ***'.
Endif.
Can somebody point out the problem?