cancel
Showing results for 
Search instead for 
Did you mean: 

RFC

Former Member
0 Kudos

Hi SDN's

Can u just give me a the solution for to connect 'RFC through JCO by importing and exporting parameters.

if u give code, it will be helpfull for me.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Renushree,

code to call RFC through JCo

http://searchsap.techtarget.com/tip/0,289483,sid21_gci823325,00.html

Regards

Abhimanyu L

Answers (3)

Answers (3)

former_member189631
Active Contributor
0 Kudos

Hi Renushree,

Please Gothrough this link,

http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm

Regards,

Ramganesan K.

former_member189631
Active Contributor
0 Kudos

Hi Renu Shree,

U can Find the RFC Function Over BAPI and SE37 Transations.

Functional Module Can be used for RFC when

the remote enabled module option button is checked.

You can ensure a Function Module Which support RFC by SE37--> Enter FM -->

Attributes --> see the Remote enabled Function module..

If its checked then it will support For RFC.

But All BAPIs are RFC enabled.

Regards,

Ramganesan K.

Former Member
0 Kudos

Hi Renushree

you can downlaod it from http://service.sap.com/connectors

It contains sample code and is quite easy to implement.

Cheers.

Please reward points for helpful answers:-)

Former Member
0 Kudos

can u plz explian me, i dot hav rites to access admin stuff for to search on sap sites

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Renushree,

following package holds the API to access RFC

import com.sap.mw.jco.*;

JCO.Client mConnection;

JCO.Pool pool;

are classes which are used to connect to SAP R/3

mConnection =

JCO.createClient("210", // SAP client

"DEV07", // userid

"dra", // password

"EN", // language (null for the default language)

"10.111.16.26", // application server host name

"00"); // system number

mConnection.connect();

//will connect to your SAP R/3 system

mRepository = new JCO.Repository("ARAsoft", mConnection);

IFunctionTemplate ft =

mRepository.getFunctionTemplate("RFC FM Name");

JCO.Function function = ft.getFunction();

//this will get the reference to function module

JCO.Structure PO_HDR = function.getImportParameterList()

.getStructure("<Import Parameter Name>");

//to get Import Parameters

You can follow the other things from the URL which i sent u

Regards

Abhimanyu L

Former Member
0 Kudos

where i can get Standard RFC's which is created by sap

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Renushree,

All the BAPI's which are created by SAP you can view through

transaction SE37 in your R/3.

You can create your own RFC using the same transaction.

For More Info:

http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/frameset.htm

Regards

Abhimanyu L

Message was edited by:

Abhimanyu Lagishetti

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Renushree,

See this link for JCO connection code:

http://help.sap.com/saphelp_erp2004/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm

Regards, Suresh KB

Former Member
0 Kudos

A slightly better transaction is BAPI (perhaps one of the few SAP tcodes which actually describes what ir does!) that shows the business objects. SE37 will show all function modules, including those that can't can called remotely. BAPI only shows ones which will work remotely.

Cheers