cancel
Showing results for 
Search instead for 
Did you mean: 

file - webservice -file

Former Member
0 Kudos

Hi everybody,

In my scenario, the sender file has from and to dates.It calls a webservice from a sap system and returns the sales order details and creates a receiver file on the sender side.

I have used adapter modules AF_Modules/RequestResponseBean(moudle key 1) ,CallSapAdapter(2) and AF_Modules/ResponseOnewayBean(3).

I have configured 3 communication channels ---sender file, receiver soap, receiver file.

The sender file adapter is throwing error ---Adapter framework caught exception :error: while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RFC ClientException :function template from repository was null..

What do you think is the error? how to make it work?

thanks,

Ramya

Accepted Solutions (0)

Answers (4)

Answers (4)

santhosh_kumarv
Active Contributor
0 Kudos

>>error: while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RFC ClientException :function template from repository was null..

Looks like the problem is with the RFC channel call....

Refer Note 730870 Q16.

Q 16: While sending a message to the RFC Adapter the error "... functiontemplate from repository was <null>" is shown. What is the reason? 

              A: After receiving a message from the Adapter Engine, the RFC Adapter 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 sent to the RFC Adapter, 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 the transaction SE37.

~SaNv...

Former Member
0 Kudos

Hi,

Also check is the web service connection is fine as errors says RFC client exception...

check is the webservice call is working fine or not using some external tool

HTH

Rajesh

former_member183908
Active Contributor
0 Kudos

Hi Shenoy,

-->Also maintain the Module Configuration Under Module Tab

-->It should be as follows:

Module Key                                         Parameter Name                                       Parameter Value

         1                                                      passThrough                                                 true
         3                                                      receiverChannel                                       your Receiver File CC name
         3                                                     receiverService                                        your receiver business system

Thanks

former_member183908
Active Contributor
0 Kudos

Hi Shenoy,

-->It might be because of the naming convention the modules which you are using under module tab are case sensitive.

-->And the other might be with your Service Pack levels.

Thanks