cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Reusable database modules in SAP HANA XSA?

gmitrani
Explorer

Hi Gurus,

I am trying to build re-usable db component in HANA XSA which can be used in another application's data persistence model. For this scenario, I tried to follow sap help provided at this link but unfortunately I was not able to achieve results. I was able to successfully create a reusable component but when I use it in another application I get error while building the consuming app.

Your module contains a package.json file, it will be used for the build.

2:55:33 PM (DIBuild) npm ERR! code E404npm ERR! 404 Not Found: dependent-module-name-db@0.0.1

The above error tells me that the builder is not able to resolve the dependency. For some reason it doesn't know where to find the dependent module. I was wondering if I could register this component in some sort of registry and then the build-pack finds it but don't know how. can someone help on this?

P.S. : I was wondering ( a silly thought 😄 ) if I could deploy the reusable module which then gets registered in some sort of internal registry in XSA but then I gave up the idea because there is no deploy script in package.json for reusable module.

I highly appreciate any help in this regards. This thing has been holding me since yesterday.

Cheers,

~ A curious developer

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is no repository within XSA itself where you can publish this. It needs to be accessible for NPM. That means you can publish it to the public NPM Registry, your own private NPM registry, or what I suspect most people would choose - any git repository. Yes NPM and pull dependencies directly from Git.