Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Error in format date Oracle -> SAP

$
0
0

Hi Abapers,

 

 

I am facing the following issue: i have a date field in ORACLE database and in SAP a have the corresponding field as DocDate(8),  

 

When i read the field to the internal table i receive 12-JUN-1. I get the same result even if the field in SAP is declared as DocDate TYPE date,


I tried something like


SELECT field1, field2, to_char(date1, 'YYYYMMDD') date1, field3, .... from table@remoteDB


and my questions are:


is this correct?


If yes how can avoid to write all the fields in the SQL statement: field1, field2, etc, etc getting the fields date correctly.

I have tables with many fields and it will become huge selects.


Thank you and best regards,


João Lages Fernandes




Viewing all articles
Browse latest Browse all 3125

Trending Articles



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