Hi,
I need to pick documents with latest release date and calculate expiry date by adding expiry period (r_expperiod)
to it. Later I need to create a formula (expiry_status) to find "docs already expired" and "Docs expiring in 30 days" and should group by expiry_status.
My problem is to calculate latest release date i need to group by document number first, and use Maximum function to get latest release date and calculate expiry date and expiry_status
But i dont want my report format to be grouped by document no. first because after i group by expiry_status, for each document i will have "expired" and "expired in 30 days" grouping.
To avoid this i tried to have SQL Expression format, but i cannot get a single return value for this since i cannot pass the document number to the expression.
Is there any alternative for me to calculate the latest date with out having the grouping format (by doc number) in my report.
R_DATERELEASED R_DOCNUMBER R_EXPPERIOD
--------- -------------------------------- -----------
01-JAN-01 MF-7023 24
01-JAN-01 MF-7022 24
03-DEC-01 MF-7032 24
01-JAN-01 MF-7032 24
01-JAN-01 MF-7025 24
31-JAN-03 MF-7025 24
10-AUG-00 MF-8035 24
01-JAN-01 MF-8035 24
I thank in advance for your support.
Regards
Chunduru
I need to pick documents with latest release date and calculate expiry date by adding expiry period (r_expperiod)
to it. Later I need to create a formula (expiry_status) to find "docs already expired" and "Docs expiring in 30 days" and should group by expiry_status.
My problem is to calculate latest release date i need to group by document number first, and use Maximum function to get latest release date and calculate expiry date and expiry_status
But i dont want my report format to be grouped by document no. first because after i group by expiry_status, for each document i will have "expired" and "expired in 30 days" grouping.
To avoid this i tried to have SQL Expression format, but i cannot get a single return value for this since i cannot pass the document number to the expression.
Is there any alternative for me to calculate the latest date with out having the grouping format (by doc number) in my report.
R_DATERELEASED R_DOCNUMBER R_EXPPERIOD
--------- -------------------------------- -----------
01-JAN-01 MF-7023 24
01-JAN-01 MF-7022 24
03-DEC-01 MF-7032 24
01-JAN-01 MF-7032 24
01-JAN-01 MF-7025 24
31-JAN-03 MF-7025 24
10-AUG-00 MF-8035 24
01-JAN-01 MF-8035 24
I thank in advance for your support.
Regards
Chunduru