‎2008 Feb 19 10:19 AM
Hi people i have a problem.
I must search in table tcurr the value about the data: Sy-datum. But when i search in the field GDATU i can't find the correct data.
I give you an example.
A date inserted in 18.02.2008, in gdatu have this value: 79919781
I know GDATU is an inverted_data field but i can't understand this value and how to make a search about this.
Anyone can help me?
P.s
I use this table to convert from euro to $.
‎2008 Feb 19 10:51 AM
Hi,
Please try the following piece of code. This is an usage of Ninth's Complement which SAP uses to invert dates. Dates are inverted to aid in sorting.
The following code converts inverted date into a normal date.
DATA: inv_date TYPE D value '79919781' .
DATA: date TYPE D.
CONVERT INVERTED-DATE inv_date INTO DATE date .
WRITE: DATE. "18.02.2008
<REMOVED BY MODERATOR>
Edited by: prosenjit chaudhuri on Feb 19, 2008 11:54 AM
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 6:08 PM
‎2008 Feb 19 10:27 AM
Use the Function module
CONVERSION_EXIT_INVDT_OUTPUT
CONVERSION_EXIT_INVDT_INPUT
For more details, check the conversion routines maintained at GDATU data domine.
Thanks,
‎2008 Feb 19 10:51 AM
Hi,
Please try the following piece of code. This is an usage of Ninth's Complement which SAP uses to invert dates. Dates are inverted to aid in sorting.
The following code converts inverted date into a normal date.
DATA: inv_date TYPE D value '79919781' .
DATA: date TYPE D.
CONVERT INVERTED-DATE inv_date INTO DATE date .
WRITE: DATE. "18.02.2008
<REMOVED BY MODERATOR>
Edited by: prosenjit chaudhuri on Feb 19, 2008 11:54 AM
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 6:08 PM