cancel
Showing results for 
Search instead for 
Did you mean: 

RfcClientException: functiontemplate from repository was <null>

Former Member
0 Kudos

HI All,

I am doing the File to RFC, the file was picked from FTP but data is not loaded into target sytem. When i have checked the Communication chennal for receiver (RFC) its showing this msg

"Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>"

Please help me how to reslove this problem.

Thanks in advance,

Venkat.

Accepted Solutions (1)

Accepted Solutions (1)

SudhirT
Active Contributor
0 Kudos

Hi,

Check in the R3 system in SE37 whether the particular RFC BAPI is available or not. I guess it is not there.

Thanks!

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks for the info provided.

Former Member
0 Kudos

Hi Thanks for your help,

Now problem was resloved. in R3 side the function modules are not defined.

Thanks,

Venkat

prateek
Active Contributor
0 Kudos

This problem usually occurs when the RFC metadata is not understood by XI. This could happen if the Business system used is not WebAs abap type. Or if there is some improper usage of RFC while configuring the IR or ID objects. Another area could be checking whether you have imported the latest version of RFC or not.

Regards,

Prateek

Former Member
0 Kudos

HI Venkat.

Please Refer SAP Note: 730870. Q16.

Fyr from SAP Note:

>Q 16: While sending a message to the RfcAdapter the error "... functiontemplate from repository was ><null>" is shown. Which reasons are possible?

>

>A: After receiving a message from the Adapter Engine, the RfcAdapter extracts the payload from the message. Normally this should be an XML document in the RFC-XML format. In this format the root element of the XML document represents the name of the function module and is enclosed in the fixed RFC namespace 'urn:sap-com:document:sap:rfc:functions'. But this only will be checked at a later >point, when the conversion from XML to native RFC is done. As prerequisite of this conversion the structures and types of the function module parameters has to be known. This is also called metadata or function template. To get this function template the name of the function module is extracted from the root element of the XML document and is queried against the metadata repository of the communication channel. If the metadata repository doesn't have a function module with this name, the exception named above is thrown. Possible reasons are

>

>The XML document, which was send to the RfcAdapter, is not a RFC-XML document. So the root element name of this document is not the name of a function module and thus can't be found in the metadata repository.

>

>The metadata repository doesn't contain an entry for this function module name. Normally the metadata repository will be an R/3 system and it's function module repository can be searched with transaction code SE37.

Regards

Goli Sridhar