‎2010 Jan 20 7:23 PM
HI all,
I'm trying to implement the functionality of BAPI in RFC server programs (external RFC server programs registered in SAP gateway) to have a better understanding of the BAPIs.
Could anyone please suggest
(1) whats the better way of do it
(2) if any samples are available (apart from the ones available as part of RFC SDK) with how the importing parameters sent from client are received in server program and setting the return/output values
Thanks in advance,
Devi
‎2010 Jan 20 9:51 PM
Hi,
could You describe your problem in more detail? To better understand of BAPIs, You can check [General Introduction to BAPIs (CA-BFA)|http://help.sap.com/saphelp_nw04/helpdata/EN/5c/f3f0371bc15d73e10000009b38f8cf/frameset.htm].
What exactly do You mean by
> implement the functionality of BAPI in RFC server programs
?
Regards,
Adrian
‎2010 Jan 21 8:22 AM
Hi,
This will give you some leads:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2
cheers
Aveek
‎2010 Jan 21 1:06 PM
Hi Adrian/Aveek,
Thanks for your responses.
Aveek - I've also done the same setup of creating a RFC connection and registering the RFC server program.
Now what i'm expecting is when i execute a function module (say FM1), instead of sending the request to SAP server and executing the FM1 there, the RFC server program should have the implementation of FM1 and that needs to be executed.
Inorder to do so, i need some samples (preferrably c/c++/java) to receive the input parameters of FM1, process it and updating the output parameters.
Thanks,
Devi
‎2010 Jan 21 1:21 PM
Hi,
I have never done this in Java or C++. Try to check these links:
[The Java Connector(Jco),Enterprise Connector |http://wiki.sdn.sap.com/wiki/display/WDJava/TheJavaConnector%28Jco%29,Enterprise+Connector]
[Java Connectivity |http://wiki.sdn.sap.com/wiki/display/SI/Java+Connectivity]
[RFC Faqs |http://wiki.sdn.sap.com/wiki/display/XI/RFC+Faqs]
[ABAP Connectivity Home |http://wiki.sdn.sap.com/wiki/display/ABAPConn/ABAPConnectivityHome]
I think some of them can be useful for You.
I have used RFC calls to SAP only from PHP. Examples for this can be found on [SAPRFC Homepage|http://saprfc.sourceforge.net/]
Regards,
Adrian
‎2010 Jan 21 2:01 PM
Check this link for your queries:
http://help.sap.com/saphelp_nw04/helpdata/en/22/042a91488911d189490000e829fbbd/frameset.htm
There is a section on RFC programming in the site.
cheers
Aveek