cancel
Showing results for 
Search instead for 
Did you mean: 

Annotation with reference to unit code for field OPENQTYTOTALVALUE is missing

03-31-2021 3:25 PM
4513 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

Annotation with reference to unit code for field OPENQTYTOTALVALUE is missing

Please find the below screen shot.

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

rahulpippalla
Participant

Hello Durga Prasad,

This might help You out .

You need to add Unit of measure semantic to the quantity field as shown in the below code.

DEFINE VIEW SalesOrderItem as select from ...
{
   
    @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,
    
}

Regards,

Rahul Pippalla.

amangarg1
Contributor
0 Likes

Hello,

I see that you are trying to use quantity fields but haven't added any field for UoM. Please add a field for UoM and add 'Semantics.quantity.unitOfMeasure' annotation to specify this UoM field as reference field in your quantity fields.

Please refer:

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/7.5.9/en-US/fbcd3a59a94148f6adad80b9c97...

Let me know if this helps.

Thanks,

Aman Garg