How to convert DEC value to Date
In BPS, I wanted to accept Date value with Layout settings 'From Transaction Data' so I created one 'Key figure - ZPOSTDT' of type 'DATE' with DEC as Data type.
When user enters value, ZPOSTDT field accepts it as a Date and stores in the Transactional cube as DECIMAL value.
But I want to use ZPOSTDT value as Date in my report.
I have searched in Forum to convert Decimal to Date but no direct CODE SNIPPET or FUNCTION MODULE is available.
I tried to convert DEC to STRING and then to DATE but it is also not giving me desired result.
Please tell me how to do it in ABAP code?