Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

updating database table

Former Member
0 Likes
406

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

2 REPLIES 2
Read only

Former Member
0 Likes
356

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

Read only

anversha_s
Active Contributor
0 Likes
356

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