Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI implementation in RFC server program

Former Member
0 Likes
650

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

5 REPLIES 5
Read only

Former Member
0 Likes
608

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

Read only

Former Member
0 Likes
607
Read only

Former Member
0 Likes
607

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

Read only

0 Likes
607

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

Read only

Former Member
0 Likes
607

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