Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

finding maximium value fo ra field in the Z table created in se11

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

tables : ZDETAILS.

select max( ZID ) into ZDETAILS-ZID from ZDETAILS.

write : / ZDETAILS-ZID.

regards

shiba dutta

3 REPLIES 3

Former Member
0 Kudos

tables : ZDETAILS.

select max( ZID ) into ZDETAILS-ZID from ZDETAILS.

write : / ZDETAILS-ZID.

regards

shiba dutta

Former Member
0 Kudos

Hi

try this..

DATA : zid like zdetails-zid.

select max( ZID ) into ZID from zdetails

where <cond>.

Message was edited by:

Perez C

Former Member
0 Kudos

DATA : zid type i.

select max( ZID ) from zdetails into zid GROUP BY zid.

write: zid.