Giving the input as sy-datum to GDATU not working..
I am working on customized function module in this function module one of the input is GDATU for this we are giving the input as sydatum.
But it is not working. When we are manually enter the date like DD.MM.YYYY it' working fine.
I have tried below function modules. But it is not working.
Also i have tried below syntax.
CONVERT DATE SY-DATUM INTO INVERTED-DATE DATE_INV.
I have solved this problem. For inverted date conversion i have used.
Variable = 99999999 - SY-DATUM.