cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create target element/ns1:MT_CONTRACT.Value missing in queue context

Former Member
0 Kudos

Hi Friends,

AgrmntID,Company_Code,Vendor_No,PurDoc_Type,ValidPeriod_Start,ValidPeriod_End,Pur_Group,Currency,Incoterms,Item_Cat,Tax_Code,Part_No,Document_Desc,Net_Price,Tgt_Qty,Price_Unit,Plant,Price_Revision

002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N

002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N

002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,6000005,CARD-Twiglets Original 45g x 12,0,125.00,145,AN03,N

002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N

002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,6000005,CARD-Twiglets Original 45g x 12,0,125.00,145,AN03,N

that is csv file am trying to convert to xml. but am getting error "Cannot create target element /ns1:MT_CONTRACT. Value missing in queue context."

my data types is: MT_CONTRACT_SNDR MT_CONTRACT

SUB_ELEMENT: Recordset Recordset

SUB_ELEMENT: Item Item

SUB_ELEMENTS: AgrmntID AgrmntID

Company_Code Company_Code

Vendor_No Vendor_No

like this all the 18 elements under Item node. I kept Recordset occurance 0-1 and Item 0-Unbound and all 18subelements as 0-1 in both sender and receiver. And in content conversion:

Document Name: MT_CONTRACT_SNDR

Document Offset: 1

Recordset Structure: Item,*

Record Sequence: Asending

Recordsets per Massage: 1

Key Field Type: String (Case-Sensitive)

Item.fieldSeperator : ,

Item.endSeperator: 'nl'

Item.fieldNames: AgrmntID,Company_Code,Vendor_No,PurDoc_Type,ValidPeriod_Start,ValidPeriod_End,Pur_Group,Currency,Incoterms,Item_Cat,Tax_Code,Part_No,Document_Desc,Net_Price,Tgt_Qty,Price_Unit,Plant,Price_Revision

KINDLY SUGGEST ME WHAT MISTAKE AM DOING. AM NEW TO SAP PI

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (5)

Answers (5)

Former Member
0 Kudos

Please someone answer this error, am stuck from many days. Am unable to find proper solution. Even our basis team unable to solve. kindly help

baskar_gopalakrishnan2
Active Contributor
0 Kudos

There are many possible reasons for this error. THe problem is at the receiving SAP system (ECC) for sure.

you might want to check these links

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/daea401675752ae10000000a155106/content.htm

Former Member
0 Kudos

I have this error in audit log. On searching I read that the error is connectivity problem between abap stack and java stack. but I made restart the server but error not cleared. can anyone of you suggest me to solve?

Audit Log for Message: 7c06ee0d-d70b-406f-07bc-f56228cc1d6a

Time Stamp Type Description

10.08.2011 18:05:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for ZFM_SRM_CONTRACT_CREATE with TID XIV0Rk3TSBG6y7lFLYACmTQW.

10.08.2011 18:05:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XIV0Rk3TSBG6y7lFLYACmTQW.

10.08.2011 18:05:07 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.

10.08.2011 18:05:07 Error Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught..

10.08.2011 18:05:07 Information The message status was set to WAIT.

10.08.2011 18:05:07 Information The asynchronous message was successfully scheduled to be delivered at Wed Aug 10 18:10:07 IST 2011.

10.08.2011 18:10:07 Information The message status was set to TBDL.

10.08.2011 18:10:07 Information Retrying to deliver message to the application. Retry: 1

10.08.2011 18:10:07 Information The message was successfully retrieved from the receive queue.

10.08.2011 18:10:07 Information The message status was set to DLNG.

Time Stamp Type Description

10.08.2011 18:10:07 Information Delivering to channel: CC_Contrct_Recivr

10.08.2011 18:10:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for ZFM_SRM_CONTRACT_CREATE with TID XIV0Rk3TSBG6y7lFLYACmTQW.

10.08.2011 18:10:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XIV0Rk3TSBG6y7lFLYACmTQW.

10.08.2011 18:10:08 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.

10.08.2011 18:10:08 Error Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught..

10.08.2011 18:10:08 Information The message status was set to WAIT.

10.08.2011 18:10:08 Information The asynchronous message was successfully scheduled to be delivered at Wed Aug 10 18:15:08 IST 2011.

Former Member
0 Kudos

Hi Gopal / Sanjeev,

Sorry those are not two times. actually they were sender and reciever.

Sender data type is: MT_CONTRACT_SNDR

SUB_ELEMENT: Recordset

SUB_ELEMENT: Item

SUB_ELEMENTS: AgrmntID

Company_Code

Vendor_No

Receiver data types is: MT_CONTRACT

SUB_ELEMENT: Recordset

SUB_ELEMENT: Item

SUB_ELEMENTS: AgrmntID

Company_Code

Vendor_No

As you both suggested I compared the payload from SXMB_MONI with payload in test of message mapping. I found a small error. Actually I copied the scenario from other namespace,

I made neccessary changes but in massage type I dint change namespace, that I found when I compared the payloads as you both suggested. thank you so much.

Now am using same file for File to RFC asyncro scenario, to create contract in SRM7.0 using PI 7.1. But am getting this error. My sender message type is MT_CONTRT_FTP_SENDER and receivers is ZFM_SRM_CONTRACT_CREATE. the error is:

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.

Former Member
0 Kudos

chk whether u have mentioned correct parameters under RFC reveiver adapter...like application server, system number and all..

http://www.riyaz.net/blog/understanding-the-rfc-adapter/technology/sap/42/

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Your previous problem is solved. THis is new error. Create RFC communication channel and also make sure you imported right version of RFC meta data and using the rite one. Check all the parameter settings are right in the RFC comm channel. See any error you see it in the ECC side.

former_member194786
Active Contributor
0 Kudos

Hi Naveen,

It seems the content conversion is not happening properly. Check in sxmb_moni to see if the XML payload created after Content conversion is as per the Data type defined.

Copy this XML in test tab to check if the XML created confirms to the data type definition.

Regards,

Sanjeev.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Copy the payload from sxmb_moni and test it in mapping too. This is a queue related issue. Looks like the mandatory field in the target looks for values but mapping does not provide to the target structure element. so you get this error. Debug the data in the mapping tool. That is the best solution.

I also dont understand repeating Recordset two times Item two times etc in structure.