11-14-2007 9:36 AM
hi,
i have a field called ZID in the zdetails table which i have created in se11.
hw can i find the maximum value of that field out of the records filled in?
thanks in advancce
11-14-2007 9:40 AM
tables : ZDETAILS.
select max( ZID ) into ZDETAILS-ZID from ZDETAILS.
write : / ZDETAILS-ZID.
regards
shiba dutta
11-14-2007 9:40 AM
tables : ZDETAILS.
select max( ZID ) into ZDETAILS-ZID from ZDETAILS.
write : / ZDETAILS-ZID.
regards
shiba dutta
11-14-2007 9:43 AM
Hi
try this..
DATA : zid like zdetails-zid.
select max( ZID ) into ZID from zdetails
where <cond>.
Message was edited by:
Perez C
11-14-2007 10:13 AM
DATA : zid type i.
select max( ZID ) from zdetails into zid GROUP BY zid.
write: zid.