Skip to Content
0
Former Member
Jun 04, 2009 at 05:42 PM

Select statement problem

422 Views

Hello all,

I am facing a problem in finding maximum number by using a select stmt.

I had a table contain fields in this seq .

z_doc table:

1.PERNR type pernr

2. Doc_type type C

3.Doc_ID type NUMC

I want to find large number in DOC_ID .

I used select statement as

Select max (doc_id) from Z_doc into wa.

But i am not getting the large number in that .

Pls help me in this issue ..Thanking you.

URS ,

Suman