BW/4HANA is licensed in blocks of 64 GB. You can expect, the more, the cheaper.
For HANA there are two Options:
--> HANA REAB (only BW/4HANA application)
--> HANA full use Enterprise Edition
There are possibly additional licensing fees for Cold Storage (NLS/DTO).
SAP HANA, The following options are going to be covered:
SAP HANA Runtime Edition
SAP HANA Full Use Edition
SAP HANA Active/Active (Read Enabled)
SAP HANA Express Edition
SAP Cloud Platform, SAP HANA Service
SAP HANA Runtime Edition
SAP HANA Runtime Edition is limited to a runtime environment for SAP Applications. An SAP Application is any application that includes A NetWeaver Application Server, e.g. SAP Business Warehouse (BW), SAP BW/4HANA, SAP Business Suite, SAP S/4HANA and other related products.
SAP offers two options with SAP HANA Runtime Edition:
SAP HANA Runtime Edition for SAP BW (HANA REB)
SAP HANA Runtime Edition for Apps and SAP BW (HANA REAB),
Which includes all capabilities from REB, plus other SAP