Skip to Content

How to use Reusable database modules in SAP HANA XSA?

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 :D ) 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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 23 at 08:45 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.