Hello all
I am trying to create a CDS view to join a custom table to a standard SAP table. The join is performed on a field called ID (assume). This ID is of type RAW in the standard table and of type CHAR32 in the custom table.
So what we did was the following:
1. Create a calculation view on top of standard table. I create a calculated column here which converts RAW to CHAR32. Lets call it ID_CHAR.
2. Create the CDS view with join on ID_CHAR and ID of the custom table.
Now the join works fine and returns the expected results. But the query plan preparation time of the CDS view with this join is very high.
Query | Plan Preparation Time |
---|---|
Select of standard Table | 54 ms |
Select of custom table | 114 ms |
Select with join on custom_table.ID = ID_CHAR | 710 ms |
We have more than one place in our application where we face this problem. Any pointers or insights would be helpful.
We are currently in Netweaver 7.40 and not sure when the upgrade to 7.50 will happen.
Regards