Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call RFC(BAPI) from AWS Lambda using NodeJS #220

Closed
public2public2 opened this issue Jun 17, 2021 · 4 comments
Closed

Call RFC(BAPI) from AWS Lambda using NodeJS #220

public2public2 opened this issue Jun 17, 2021 · 4 comments
Labels

Comments

@public2public2
Copy link

Dear Srdjan,

I hope my note make you happy & safe!

I have one request, can you please explain how to call SAP BAPI using NodeJS and AWS lambda.
I have gone through your material shared earlier in [https://github.com/sap/node-rfc]

But I don't know from where I should start?

What I have understood so far....

    • Create nodejs project
    • Install node-rfc module along with other dependency
    • RFC port of the backend must be exposed public to internet
    • Download the LINUX ON X86_64 64BIT version( Because Lambda run on Linux AMI)
    • SAP connectivity from your AWS Lambda- Both should be hosted on same premises
    • AWS Lambda layers- A Lambda Layer is a ZIP archive that contains libraries.
    • Docker container- not much understood
    • Create sapnwrfc.ini- for server connection details
    • Create a program to call RFM(Remote Function Module) with BAPI name

Please help me start and guide me step by step so I can deploy lambda to call BAPI using nodeJS

Thanks in Advance.

@bsrdjan
Copy link
Contributor

bsrdjan commented Jun 23, 2021

I am not using Lambda and can't provide more detailed steps. It should work just like from on-premise Linux.

If on-premise system is S4HANA >= 1909 the new Websocket RFC protocol can be used, over HTTPS port exposed in internet. SAP Business Connector is required otherwise. More info: #212 (comment)

The detailed configuration can be provided as a consulting service, if needed.

@gimapei
Copy link

gimapei commented Nov 12, 2021

I think, you can't using lambda. there are no netweaver sdk. lambda doesn't support netweaver sdk.
that's why you can't using node-rfc on lambda service.

@frumania
Copy link

frumania commented Dec 2, 2021

Thanks to @manishvyas1911 research, this is actually even easier to do.

We have created a simple walkthrough to setup your AWS Lambda Project for Node RFC.

@bsrdjan
Copy link
Contributor

bsrdjan commented Mar 22, 2022

Thanks for the input. Potential users shall consider that node-rfc cloud to on-prem connections via SAP Cloud Connector are not supported yet: #121

@bsrdjan bsrdjan closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants