2020 Sep 05 1:28 AM
I am creating an ABAP CDS view over table MSKU. My purpose is to expose this table as OData. I created basic view with all the fields. Now when I look into data in Hana Modeler then I see KULAB values as 0.000 only. When I check data in MSKU in SE16N then I see valid values. I did cast this field as char and decimal but still I am getting 0.000 values only. We are on S4HANA 1809.
Thanks,
2020 Sep 05 7:26 AM
Hi,
Please check by using replacement object NSDM_E_MSKU.
Regards,
Girdhari
2020 Sep 05 7:26 AM
Hi,
Please check by using replacement object NSDM_E_MSKU.
Regards,
Girdhari
2020 Sep 05 1:39 PM
Hi Kalpesh,
Have you used annotation for quantity and unit?
@Semantics.currencyCode
currency_code as CurrencyCode,
@Semantics.amount.currencyCode: 'CurrencyCode'
gross_amount as GrossAmount,
@Semantics.unitOfMeasure
unit_of_measure as UnitOfMeasure,
@Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
quantity as Quantity,
2020 Sep 05 6:20 PM
Thanks, NSDM_V_MSKU is the view I have to use for MSKU. It is displaying fine now.
Thanks,
Kalpesh