to find a largest number
Hello all ,
I had field in ztable name is doc_id.
and it has the data like
like this .i want to pic the largest number in that fields .
Could u please help in this .
Use the below code.
SELECT * From ztable INTO gt_table.
SORT gt_table doc_no descending.
READ gt_table index 1.
You ll have the larggest no. now in gt_table-doc_no.