I created analytic view to join VBAK VBFA and VBRK tables. I am trying to identify last invoice created for Contract in VBAK table. Currently if I have 3 invoices created for contract I get three entries in output when I look at:
VBAK-VBELN VBRK-VBELN
1 1001
1 1002
1 1003
I used Left outer join. What I need is:
VBAK-VBELN VBRK-VBELN
1 1003
What is the best way to achieve this result?
Thanks,
Nitesh