SAP / cloud-sdk

The SAP Cloud SDK documentation and support repository.
https://sap.github.io/cloud-sdk/
Apache License 2.0
45 stars 43 forks source link

JAR packaging issues with JCo #1360

Closed melwinlobo18 closed 1 year ago

melwinlobo18 commented 1 year ago

Issue Description

Hello Colleagues, I'm from the SAP Returnable Packaging team. We're trying to call a BAPI/RFC Module in our CAP Java Multi-Tenant application. We tried deploying our application with JAR packaging and ended up getting the JCo module not found exception.

The Cloud SDK suggests WAR packaging for the same as a solution: https://sap.github.io/cloud-sdk/docs/java/features/bapi-and-rfc/overview#jco-classes-not-found-at-runtime

With WAR packaging this issue is resolved, but the problem is CAP framework is not validated with WAR. We're facing some issues with the token handling. Here's the link to the internal CAP ticket: https://github.tools.sap/cap/issues/issues/13547

The CAP colleagues have also mentioned that they'll not be able to support in the future if there's any issue arises due to WAR packaging.

Can you please let us if there's any way to make the JCo library with JAR packaging?

Important information:

Impact / Priority

Affected development phase: Development

Impact: Blocked

Project Details


Checklist

jjtang1985 commented 1 year ago

Hi @melwinlobo18 ,

Thank you for reaching out. My colleague will support you soon.

I would like to point out that we deprecated the JCo/BAPI/RFC support and will remove them in the next major version. Here is the documentation.

Best regards, Junjie

newtork commented 1 year ago

Can you please let us if there's any way to make the JCo library with JAR packaging?

Coincidentally last Tuesday we talked with the JCo maintainers and they confirmed: JCo + JAR deployment is not supported.

I think technically it may be possible but without support, neither from JCo nor from us.

For a feature request please approach the JCo team via Service Now.

Kind regards Alex

melwinlobo18 commented 1 year ago

Hey @jjtang1985 @newtork ,

Thanks for the response.

I would like to point out that we deprecated the JCo/BAPI/RFC support and will remove them in the next major version.

The Note in the documentation suggests OData-based services but unfortunately, that's not an option for us as we have integration with ECC. It also talks about using this documentation if we need to ABAP functions via RFC, using JCo.

If we have some issue implementing or some issue comes with this approach then whom do we reach out to in the future? Will this be handled by the Connectivity Service team?

For a feature request please approach the JCo team via Service Now.

@newtork : Can you please provide me the ServiceNow component for Jco?

Thanks and Regards, Melwin Lobo

newtork commented 1 year ago

whom do we reach out to in the future? Will this be handled by the Connectivity Service team?

and

For a feature request please approach the JCo team via Service Now.

@newtork : Can you please provide me the ServiceNow component for Jco?

I would go with BC-MID-CON-JCO

Kind regards Alex

melwinlobo18 commented 1 year ago

Okay. Thanks for the support @newtork @jjtang1985