This repository provides a collection of value objects, including:
- Date and Time
- Unit of measurement
- Quantity
- Quantity for materials
- Mass quantity for materials
- Currency
- Money
The abstract superclass provides core functionality for all value objects. All classes use the same exception class.
SAP Basis Component: 757 SP 4 or higher
ABAP Language Version: ABAP for Cloud Development
DATA(length1) = NEW zcl_vo_quantity( i_quantity = 15
i_uom = NEW #( 'm' ) ).
DATA(length2) = NEW zcl_vo_quantity( i_quantity = 150
i_uom = NEW #( 'cm' ) ).
length1->add( length2 )->get_quantity( ). "16.5
length2->add( length1 )->get_quantity( ). "1650