cancel
Showing results for 
Search instead for 
Did you mean: 

Display latest record in BEX query

Former Member
0 Kudos

Hello Experts,

How can I display the latest date in the Date field. How can this be achieved in Bex query?

rgds

Imran

Accepted Solutions (1)

Accepted Solutions (1)

ravi_chandra3
Active Contributor
0 Kudos

Hi Imran,

Use the exception aggregation with the function last and reference charactersitic as date.

Regards,

RaviChandra

Former Member
0 Kudos

Hi Ravi,

Tried, not working, still throws all records!!!

Please guide further

rgds

ravi_chandra3
Active Contributor
0 Kudos

Hi

I think it has to work, In the reference characteristic which IO have you passed and did you select the last value in the exception aggregation drop down box.

Can u provide the layout of your report with some data in it .

Regards,

RaviChandra

Former Member
0 Kudos

Thanks Ravi,

This is resolved.

Full points alloted.

I had to apply the appending logic and made the change accordingly

pass vkont from zdm_header with condition erch - Belegdat < zdm_auto_details - ACTIVITY_DATE
and ACTPERIOD = '3000' or '4000' and SIMULATION = ''  and STORNODAT = ''
and retain latest record fetched for ENDRAPE

Thanks again.

rgds

Imran

Answers (0)