Skip to Content
0
Former Member
Mar 13, 2007 at 09:00 AM

determine youngest date

20 Views

Hello!

Can this following code work with this logic to determine the

youngest date ?

Regards

Ilhan

DATA it_hs TYPE ty_hsnr occurs 0 with header line.          
DATA wa_hs TYPE ty_hsnr.     
                               
FORM hsnr_determine using mater type MATNR
                    changing nr type stawn.
 select matnr valid stawn from /G2A/LDM_VL_MAT
          into table it_hs WHERE
          MATNR = mater .
<b>sort it_hs by VALID.</b>
read table it_hs INTO wa_hs INDEX 1 .
nr = wa_hs-STAWN.
ENDFORM.