Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3132

Addition hours to timestamp

$
0
0

Hi BI/Abap gurus,

 

 

I am trying to add 8 hours based on the source fields mapped.

I have google around and the FM seems promising.

 

 

sample source fields-crm_due_dt: 20141120163000

And I have tested in SE37, seems to be fine.

but loading data causes error below:-


Error
The function call of TIMESTAMP_DURATION_ADD failed; a field may have been assigned to the parameter TIMESTAMP_IN whose type is not c

 

Any advice please?

CALL FUNCTION 'TIMESTAMP_DURATION_ADD'

       EXPORTING

         timestamp_in  = SOURCE_FIELDS-crm_due_dt

         timezone      = 'UTC'

         duration      = '8'

         unit          = 'H'

       IMPORTING

       timestamp_out   = RESULT.

 

Many thanks.


Viewing all articles
Browse latest Browse all 3132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>