cancel
Showing results for 
Search instead for 
Did you mean: 

functiontemplate from repository was <null> BAPI_ROUTING_CREATE

Former Member
0 Kudos

Hi all,

i'm trying to set up communication between a third party sistem and R3 via XI. I'm using BAPI_ROUTING_CREATE but , when i send the XML message (you can read it below), the rfc adapter starts this exception:

Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: 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>.

I'm sure that the bapi is defined into the R3 system, i checked via se37, and the Communication channel for the BAPI is set properly since it works with other bapis.

May be someone can help me?

Best Regards

Luca

<rfc:BAPI_ROUTING_CREATE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<APPLICATION/>

<BOMUSAGE/>

<PROFILE/>

<TESTRUN>

<BAPIFLAG>' '</BAPIFLAG>

</TESTRUN>

<COMPONENTALLOCATION>

<item>

<TASK_LIST_GROUP/>

<GROUP_COUNTER/>

<SEQUENCE_NO/>

<CHANGE_NO/>

<VALID_FROM>2009-02-01</VALID_FROM>

<CHANGE_NO_TO/>

<VALID_TO_DATE>2009-12-31</VALID_TO_DATE>

<DEL_IND/>

<ACTIVITY/>

<OPERATION_ID/>

<BOM_TYPE/>

<BOM_NO/>

<ALTERNATIVE_BOM/>

<ITEM_ID/>

<ITEM_NO/>

<CUTTING_MEASURE_UNIT/>

<CUTTING_MEASURE_UNIT_ISO/>

<COMP_UNIT/>

<COMP_UNIT_ISO/>

<BACKFLUSH/>

<PLANT/>

<MATERIAL/>

<BOM_TYPE_ROOT/>

<BOM_NO_ROOT/>

<ALTERNATIVE_BOM_ROOT/>

</item>

</COMPONENTALLOCATION>

<MATERIALTASKALLOCATION>

<item>

<MATERIAL>A10060</MATERIAL>

<PLANT>2000</PLANT>

<TASK_LIST_GROUP>50000007</TASK_LIST_GROUP>

<GROUP_COUNTER>2</GROUP_COUNTER>

<CHANGE_NO/>

<VALID_FROM>2009-02-01</VALID_FROM>

<CHANGE_NO_TO/>

<VALID_TO_DATE>2009-12-31</VALID_TO_DATE>

<DEL_IND/>

<DOC_NUMBER/>

</item>

</MATERIALTASKALLOCATION>

<OPERATION>

<item>

<TASK_LIST_GROUP>50000007</TASK_LIST_GROUP>

<GROUP_COUNTER>2</GROUP_COUNTER>

<SEQUENCE_NO>0</SEQUENCE_NO>

<CHANGE_NO/>

<VALID_FROM>2009-02-01</VALID_FROM>

<CHANGE_NO_TO/>

<VALID_TO_DATE>2009-12-31</VALID_TO_DATE>

<DEL_IND/>

<ACTIVITY>0010</ACTIVITY>

<OPERATION_ID/>

<CONTROL_KEY>PP01</CONTROL_KEY>

<OBJ_ID>10000017</OBJ_ID>

<OBJECT_TYPE_CIM_RESOURCE>A</OBJECT_TYPE_CIM_RESOURCE>

<WORK_CNTR>A4010</WORK_CNTR>

<PLANT>2000</PLANT>

<STANDARD_TEXT_KEY/>

<DESCRIPTION>ASSEMBLY</DESCRIPTION>

<OPERATION_MEASURE_UNIT>PC</OPERATION_MEASURE_UNIT>

<OPERATION_MEASURE_UNIT_ISO/>

...

..

..

</rfc:BAPI_ROUTING_CREATE>

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

did you import the BAPI into XI?

SWCV -> Imported Objects -> RFC ???

Former Member
0 Kudos

hi Shabarish,

thank you for answering. Yes i imported the bapi into xi and i used the xsd to generate the input,

bye

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Luca,

Please see the thread if you havn't yet.. u may get some help

Former Member
0 Kudos

hi biplab,

thaks for your suggestions, but i checked the existence of the bapi into r3 via se37 and it exists. The rfc communication channel is working propertly because i'm using it with other bapis.

bye