‎2007 Jan 06 7:36 AM
hi guys,
i want to sent some data to standard table TCURR using INSERT statement.
insert tcurr from table tt_tcurr.
tha data is getting updated but the problem is this table stores date in inverted format.
In what format i should send date, in inverted format or normal date format or how
Please suggest.
ahmed
‎2007 Jan 06 8:30 AM
It uses the conversion routine.
CONVERSION_EXIT_INVDT_INPUT
SO ur value will be stored in inverted format only.If u read the table values again its get converted into the orginal format using CONVERSION_EXIT_INVDT_OUTPUT
routine.
I.e Ur data is stored internally in one format thats use of conversion routine.
If u fetch the data & see it will be in the format which u give so dont worry
‎2007 Jan 06 8:38 AM
hi,
inverted _date
**************************
CALL FUNCTION 'CONVERSION_EXIT_INVDT_OUTPUT'
EXPORTING
input = '79948992'
IMPORTING
OUTPUT = d_date.
write d_date.
Output:10/07/2005
or
CONVERT INVERTED-DATE TCURR-GDATU INTO DATE VALID_FROM_DATE.
<u>2) Reversal</u>
CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
EXPORTING
input = '07/10/2005'
IMPORTING
OUTPUT = c_date.
write c_date.
Output: 79949289
Rgds
Anver