Question:
Hello everybody!
I want to get the month, year which will be moved into two variant from the field TCURR-GDATU. I know that is easy if it was with type 'date', but not, 'Char'.
Is anybody can help?
Answer:
Hi,
Have a look at FM CONVERSION_EXIT_INVDT_OUTPUT to put TCURR_GDATU (which is in inverted date format) in date format. Then work with the this date (using simple String operators) to obtain the month and the year.
Hope it helps,
mr.
Answer:
Or depending on your input values you can look into CONVERT_DATE_INTERNAL and similiar FMs.
Have a look in SE37 and you'll find lots of conversion FMs from CHAR to DATS and in the opposite direction.
_________________
Kind Regards
Rosie Brent
Please remember to search the forum and check the FAQ before posting questions, thank you.
Tuly Idiot most of the time, part-time Guru
Answer:
I got the data. Thank you very much!
regards,
Lydia