Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Schema Mapping for XSJS, XSOData, & XSOData Exits

$
0
0

Hi,

Before reading my question you may find it helpful to reference this other topic, though it does not provide the answer I'm searching for - Schema Mapping for XS Components.

 

I'm trying to reference custom ABAP tables from both XSJS services and an XSOData service that uses stored procedure exits on a HANA SP6 system. Since the tables are ABAP-based their schema changes as we promote them through the landscape (e.g. sapdev, saptest, sapprod) so our XSJS and XSOData + exits need to update accordingly. 


In the linked post above Thomas Jung recommends to create & reference Attribute Views in XSODATA so that the schema name doesn't change as we transport, however, based on my tests Attribute Views do not support CREATE, UPDATE, and DELETE statements.

 

I even tried via SQL console to see if I could run CUD on an Attribute View, but it comes back with "data manipulation not legal on this view":

update "_SYS_BIC"."DMM.DMM_DAL.s.db/AV_ZDMM_GPH_NOTIFS"   set "DATEMODIFIED" = '20151013'  where "DATEMODIFIED" = '20141013';

Furthermore, based on comments to this video oData Create/Update/Delete Support in SAP HANA SPS6 - YouTube, it looks like the SQL exits need to reference the source tables to handle CUD commands.  If that's the case, then it puts be right back to square one.

 

So I've figured out how to manage changing schemas in XSJS, but since my system is SP6 I can't use XSJS exits on an XSOData service.

 

My question then, is what would be the best approach to handling changing schemas in XSOData & corresponding SQL procedure exits in SP6?

 

Thanks,

Shawn


Viewing all articles
Browse latest Browse all 6412

Trending Articles