cancel
Showing results for 
Search instead for 
Did you mean: 

what are the steps required to invoke custom RFC call from hybris 6.1

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks mourad. will contact you if i get any issues

Answers (1)

Answers (1)

Former Member
0 Kudos

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.