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

CDS View does not show quantity values

marcus_schiffer
Active Participant
0 Kudos
10,782

I have a simple CDS view:

define view Zmaterial_Cds as select * from mbew

When it is executed, all the quantity fields show only 0.00.

What am I missing ?

Accepted Solutions (0)

Answers (7)

Answers (7)

DmitryKuznetsov
Active Participant

An answer in this case is MBEW is (partially) replaced by a CDS view. There are many tables like this. So, if you want to know all of them - read on.

DD02L contains all table definitions. If we filter by field VIEWREF not empty, we get all of those (at least partially) replaced by a CDS view. See example below in 1909 there are 292 tables like that.

Depending on how and where are you accessing the information you will need to potentially adjust the code.

Dmitry Kuznetsov

BI Consulting

sdebaerd
Participant

If you're on S4/HANA, MBEW should not be used directly.

There is a replacement view:

MBV_MBEW

If you use this view, you'll get the correct results.
When you would use eclipse to see what is inside the CDS, you'll understand why certain columns remain blank, due to the way the data is now stored in the database.

Replacement views can be found, by opening the "old" table in SE11, go in Display -> More -> Extras -> Replacement Object

Former Member

you may use

mbvmbewbase

view

shanthi_bhaskar
Active Contributor
0 Kudos

Check the below views

abehaegel
Explorer
0 Kudos

Hello,

You can find the quantity which is into the table MBEW into the table ACDOCA_M_EXTRACT

put your article on the Period 9999999

you will find the quantity into the field VQUAN1_12

Regards

Alexandre

Pradeep_Reddy1
Participant
0 Kudos

Hi,

we are also facing same problem.

We created simple CDS view to get total stock from MBEW, it is not getting the quantity value. I written below code

@AbapCatalog.sqlViewName: 'z_test_cds11_D'

@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'test data'

define view z_test_cds11 as select from mbew {

key matnr as material,

key bwkey as store,

key mbew.bwtar,

@DefaultAggregation: #SUM

lvorm as TotalStock

}

Thanks,

Pradeep.

joachimrees1
Active Contributor
0 Kudos

I haven't tried but maybe if you use MBVMBEWOLD instead, it will work?

Here's the relevant part from the simplification liste (S/4HANA 1511 FPS2).