‎2005 Oct 31 6:00 AM
Hi ,
Can anybody tell me how to pick the latest date.
I am using a sql query
Select * into table itab from mseg as A inner join mkpf as B where Amblnr = Bmblnr where budat = max ( budat).
endselect.
regards
Mave
‎2005 Oct 31 6:16 AM
‎2005 Oct 31 7:31 AM
Hi,
Select * into table itab from mseg as A inner join mkpf as B where Amblnr = Bmblnr where budat = budat.
sort itab Ascending by mblnr budat.
delete adjacent duplicates from itab comparing mblnr.
hope this helps.
regards
chandu.
‎2005 Oct 31 7:34 AM
Hi,
small change.
For latest date use descending not ascending.
regards
chandu
‎2005 Oct 31 7:57 AM
Hi,
SELECT AFIELD1 AFIELD2 MAX( bBUDAT )FROM MSEG A INNER JOIN BKPF AS B ON AMBLNR = B~MBLNR.
try this out i think this would solve ur problem
regards
suresh krishnan