cancel
Showing results for 
Search instead for 
Did you mean: 

Any switch function to turn on/off RFC functions?

Former Member
0 Kudos

Hello all,

I'd like to know whether there are any switch functions which can control the remote function calls?

for example, if I turned on this function, then, ABAP remote enabled function modules can be called remotely from .NET or JCo.

if I turned off this function, then, any Java or .Net program can not call ABAP RFMs anymore.

I have developed a JCo program which is used to retrieve data from DEV system smoothly for more than one year, but currently the program does not work, error message:"Problem retrieving JCO.Function object".

I have investigate the reason, i am sure the reason is not occurred on local PC side since it can connect our QAS system well, and the logon process to DEV is successful. So, I suspect any IT member has changed some parameters to turn off the RFC function.

Waiting for all your valuable suggestions.

Thank you in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

TomCenens
Active Contributor
0 Kudos

Hello Li

There are parameters existing that can deny RFC calls made to the SAP gateway, sometimes used when setting up SSL + SNC for example to only allow secure connections using a certain protocol and not regular RFC calls.

For example parameter snc/accept_insecure_rfc could have such an effect.

You can get information on these and some other parameters on:

[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/23/3a91f8d1724bc6b9e693eb735bcf2f/frameset.htm]

Kind regards

Tom

Former Member
0 Kudos

There is no single rfc enabling paramater as far as i know. But there is a ton of parameters and other reasons that could cause your error.

any IT member has changed some parameters

Why not try to ask them?

Besides, how did you logon so far? Most rfc problems are cause by incorrect destination settings or user problems. It could be a gateway port was changed, or a user got locked or changed. You should also try to get the proper error message from your call. "Problem retrieving JCO.Function object" looks like the code could be missing.

Cheers Michael

Former Member
0 Kudos

Hi Michael,

Thanks for your reply.

"Problem retrieving JCO.Function object" is the error message which was defined in Java code:


public JCO.Function createFunction(String name) throws Exception{
		try{
			IFunctionTemplate ft = mRepository.getFunctionTemplate(name.toUpperCase());
			if (ft == null )
				return null;
			return ft.getFunction();
		}
		catch (Exception ex){
			throw new Exception("Problem retrieving JCO.Function object.");
		}
	}

JCO.Function function = null;
function = this.createFunction("BAPI_COMPANYCODE_GETLIST");

The RFM "BAPI_COMPANYCODE_GETLIST" exists in DEV, can be be executed from SE37, however can not be called from Java... Status of user is also ok, I can logon by GUI through this user.

It's really strange RFM in QAS can be called while in DEV can not (for more than one year it always works well.)

Thank you very much.

Nick

Former Member
0 Kudos
		catch (Exception ex){
			throw new Exception("Problem retrieving JCO.Function object.");
		}

Isn't it possible to get an error text or number here, instead of just printing "Problem retrieving JCO.Function object." ?