cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

No data in SQL query

hrtmnk
Discoverer
0 Kudos
1,328

I am trying to extract the data from the MSEG table. In SE16N all data appears normally, when I make a SQL query in HANA Studio, no data appears. What can it be?

View Entire Topic
pfefferf
Active Contributor
0 Kudos

Table MSEG is a "simplified object" in S/4HANA. Due to the simplication of the data model the table itself does not contain data anymore. If you access the table via the ABAP layer (e.g. SE16N) then the database interface redirects the query to the CDS View which gets the data out of the new data model in MSEG form. If you do the query directly on the DB that redirect is not done, because as said this is part of the db interface. For details you can check the Simplification List for SAP S/4HANA (search for table MSEG).