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
464

hi guys,

i want to sent some data to standard table TCURR using INSERT statement.

<b>insert tcurr from table tt_tcurr.</b>

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

3 REPLIES 3
Read only

Former Member
0 Likes
438

You have to use this conversion routine for that field in Tcurr table .

<b>CONVERSION_EXIT_INVDT_INPUT.</b>

CONVERSION_EXIT_INVDT_OUTPUT.

Can u please tell us what the business requirement is and y u r updating tcurr.

pass the date to this converison routine and get the output store into ur internal table this will be in the form of a number and now update the tcurr..

i hope this will do.

regards,

vijay

Read only

Former Member
0 Likes
438

Hi execute the code and check the output .

data : date like sy-datum,
       val like sy-datum,
       datum(8) type n .
date = sy-datum.

concatenate date+4(2) date+6(2) date+0(4) into val.  "-->input is MMDDYYYY

CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
  EXPORTING
  input          = val
 IMPORTING
   OUTPUT        = datum. "is Tcurr format compatible

write:/ datum.

"--> store this into ur internal table and

insert in to Tcurr.

hope this helps

regards,

vijay

Read only

anversha_s
Active Contributor
0 Likes
438

<i>pls dont open multiple threads</i>