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

Datum field gets changed when getting data from database into itab

RomyA
Explorer
0 Likes
841

Hi!

I am sorry if this has been asked before, I havent been able to find anything related to this in the discussions, but I feel like this is a fairly basic question.
For a smartform, I'm trying to get the data from a database table into an internal table, but for some reason the datum field gets changed, and not just the order but the numbers in general.
Does anyone know if this makes sense, and how I can change it back? I've attached a picture of the database table entries, internal table entries, and how I get the data into the internal table.
Thank you so much in advance!

How I get the data:

RomyA_1-1738952499991.png

Entries in database table: RomyA_2-1738952550281.png
Entries in internal table in debugger: RomyA_3-1738952566950.png

 



2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
0 Likes
794

It's an old ABAP concept. Search in forum and doc the ABAP statements CONVERT, DATE, INVERTED-DATE (ABAP Keyword Documentation).

Read only

thomas_mller13
Participant
0 Likes
753

Use the conversion exit:

thomas_mller13_0-1739040265121.png