on 10-18-2016 6:36 PM
I need to invoke a custom SAP RFC call from hybris and retrieve multiple outputs from RFC Response and set in a data object.Could you please provide the steps needed for the same.
Hello Soumya,
The steps would be along the following lines:
1- You need to create an RFC destination in backoffice, under the SAP Integration node.
2- To consume the RFC destination, you might want to add a configuration view for your extension under the SAP Global Configuration view (add a new tab for your module)
3- In your extension, you will have to use the backoffice services (SAPGlobalConfigurationService, etc) to read the backoffice configuration (get the RFC destination ID maintained for your extension, and then get the RFC destination properties based on that ID).
4- To get the JCoConnection, you can user JCoManagedConnectionContainer's method getManagedConnection(...)
5- Then you have to construct the JCoFunction object with the appropriate parameters to pass, and make the call (e.g. jCoConnection.execute(jCoFunction))
You will find more details in the hybris Commerce documentation of the SAP Core Extensions and Features on help.hybris.com (more specifically the sapcorejco Extension).
I hope this helps!
Best Regards,
Mourad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make your RFC, function module, Web Service (REST). Then from Hybris, java file, create HTTP Connection provide all HTTP headers, URL of webservice and read JSON string. Very high level steps. You can google on JAVA HTTP CONNECTION code sample.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.