Hi all,
We're implementing a data model for CRM on HANA (our version currently is 73 and we're planning to upgrade to new SP09) and we have a issue with some conversions of fields to make some joins.
One of these situations is when we want to make a join between to fundamental tables for us, BUT000 and CRMD_PARTNER. The join between these tables is performed with CRMD_PARTNER-PARTNER_NO and BUT000-PARTNER_GUID.
The issue is that CRMD_PARTNER-PARTNER_NO is a NVARCHAR(32) and BUT000-PARTNER_GUID is VARBINARY(16).
So, to make this join the approach is to convert the BUT000-PARTNER_GUID to NVARCHAR(32) through rawtohex function but with this solution the performance is really bad because we can't filter BUT000 table with some useful filters and this table has about 5 M records...
Another option is to make the convertion in CRMD_PARTNER side where we can make some filters, but we need to convert CRMD_PARTNER-PARTNER_NO to VARBINARY(16).
In HANA Studio rev 70 we could use the VARBINARY data type in calculated columns but in HANA Studio rev 73 this data type simply disappeared for some reason that we don't know (we've confirmed and this data type does not exist in next SP's 08 and 09)...
We've tried to use CRMD_ORDER_INDEX but this table does not have the PARTNER_FCT field that's important for us to identify the different partner functions that we have in some business transaction.
Does anyone have a better approach?
Thank you very much.
Pedro Amaro