on 2008 Jun 05 8:12 AM
Hi all,
How can I call an ABAP program from outside SAP, for example from a C++ executable, a .NET assembly or a JAVA package ? Are their "adapters" provided by SAP for this ?
Angela
Hi Angela
You can use RFC to do so. SAP provides a rfcsdk with containing a library and various examples. Check this sap note for a start: 27517 - Installing RFCSDK
Also have a look at the related notes there.
Regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello again
You can try this link: [27517 - Installing RFCSDK|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_mid/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d3237353137%7d]
Also have a look at
Regards
Michael
Hi,
I don't have OSS or anything of the sort, I'm trying to learn NetWeaver and SAP development using "SAP NetWeaver 70 - Java and ABAP VMware Trial".
Is there any way to get information of using RFC to call ABAP programs besides these notes ?
Is there any other way to do what I can to do? For example, what if I develop an EJB inside NetWeaver, will I be able to access this from any J2EE client ?
Angela
Hi angela,
I am not sure whether this EJB solution will work at all - but surely this is much more complicated than necessary.
Here's an easier solution:
1.) wrap your report into a function module which is rfc-enabled (you cannot call reports directly from outside)
2.) use the SOAP wrapper (look at service "/bc/soap/rfc" in SICF) to call that function module via HTTP - no need to download and install anything, except maybe a SOAP library for your favourite language. Example is <a href="http://help.sap.com/saphelp_47x200/helpdata/en/2d/64d041e74911d6b2e400508b6b8a93/frameset.htm">here</a>.
You only need the RFCSDK (which is available for customers only) if you want GUI functionality, e.g. show popups and similar. But then, EJB won't be a solution either as that would be running on the server, not on the client.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Angela,
as Olivier has already stated: RFC SDK is only available for SAP customers, and it is not part of the trial version.
Rgds, Boris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for this confirmation. So, now the question is, will I also hit a licencing wall if I try to do the same thing with J2EE. That is, if I try to create an EJB (hosted by SAP NetWeaver) and try to call that EJB from lets say JBOSS, will this be possible or will I need some "SAP EJB SDK" to be able to call the SAP EJB from standard J2EE clients?
Angela
Hi Angela,
as mho already stated:
For external connections to ABAP, the sap-proprietary "remote function call (RFC)" is a common way.
SAP delivers an RFC-library for this, and for some development environments SAP even offers a connector on top of this library to make connectivity more easy (SAP Java Connector, SAP Business Connector, SAP Connector for Microsoft .Net). An RFC is always starting function modules in ABAP, not ABAP programs, and these function modules need the attribute "remote-enabled".
(Remark: in the context of SAP NetWeaver Process Integration, SAP offers adapters for connectivity, also for ABAP systems.)
For ABAP systems on basis code line 6.20 and above, the remote-enabled function modules can externally be used as web services.
Information on RFC can be found in the SAP Help Portal http://www.help.sap.com, e.g. [RFC Call - Example Program|http://help.sap.com/saphelp_nw04/helpdata/en/3d/733760ccb411d2b4550060941936e3/frameset.htm]. A search in SDN provides links to the Help Portal as well.
>
> For example, what if I develop an EJB inside NetWeaver, will I be able to access this from any J2EE client ?
This part is beyond the ABAP question, and my guess is pretty simple: like on any other J2EE server.
Regards, Boris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
9 | |
8 | |
8 | |
7 | |
7 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.