Skip to Content
0
Jun 02, 2008 at 06:17 PM

Message not printing in Background.

17 Views

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?