Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

need help in message transformation.

I need help to resolve following error during message transformation.

........ BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BankCheckRecon_Request_MT/Header. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start.............

<b>Note –</b> Message Map and Interface map are working correctly when tested separately in the Repository.

<b>Mapping Rules:</b>

/ns0:BankCheckRecon_Request_MT=/ns0:ComericaCheckRecon_Request_MT=

/ns0:BankCheckRecon_Request_MT/Header=/ns0:ComericaCheckRecon_Request_MT/Header=

/ns0:BankCheckRecon_Request_MT/Header/RecordID=const()

/ns0:BankCheckRecon_Request_MT/Header/HdrNumber=const()

/ns0:BankCheckRecon_Request_MT/Header/SenderBank=const()

/ns0:BankCheckRecon_Request_MT/Header/ReceiverBank=const()

/ns0:BankCheckRecon_Request_MT/Header/AcctNumber=/ns0:ComericaCheckRecon_Request_MT/Header/AcctNumber=

/ns0:BankCheckRecon_Request_MT/Header/PymtType=const()

/ns0:BankCheckRecon_Request_MT/Header/TapeDate=const()

/ns0:BankCheckRecon_Request_MT/Header/ISOCurr=const()

/ns0:BankCheckRecon_Request_MT/Item=ifWithoutElse(stringEquals(/ns0:ComericaCheckRecon_Request_MT/Detail/RecordID=, const()), /ns0:ComericaCheckRecon_Request_MT/Detail=)

/ns0:BankCheckRecon_Request_MT/Item/RecordID=const()

/ns0:BankCheckRecon_Request_MT/Item/ValueDate=currentDate()

/ns0:BankCheckRecon_Request_MT/Item/ChkNumber=/ns0:ComericaCheckRecon_Request_MT/Detail/ChkNumber=

/ns0:BankCheckRecon_Request_MT/Item/ChkAmount=/ns0:ComericaCheckRecon_Request_MT/Detail/ChkAmount=

/ns0:BankCheckRecon_Request_MT/Item/ReceiverBank=const()

/ns0:BankCheckRecon_Request_MT/Item/AcctNumber=const()

/ns0:BankCheckRecon_Request_MT/Item/EncashDate=TransformDate(/ns0:ComericaCheckRecon_Request_MT/Detail/ChkPaidDate=)

/ns0:BankCheckRecon_Request_MT/Item/TransCode=const()

/ns0:BankCheckRecon_Request_MT/Item/AcctNumber_1=/ns0:ComericaCheckRecon_Request_MT/Detail/AcctNumber=

<b>Test Data -</b>

<?xml version="1.0" encoding="UTF-8"?>

<ns0:ComericaCheckRecon_Request_MT xmlns:ns0="http://mazdausa.com/sapr3/fi/transdata/bankcheckrecon">

<Header>

<AcctNumber>2176975528</AcctNumber>

<Filler1> </Filler1>

<ReconDate>123105</ReconDate>

<Filler2> </Filler2>

<RecordID>H</RecordID>

<Filler3> </Filler3>

</Header>

<Detail>

<AcctNumber>2176975528</AcctNumber>

<Filler1> </Filler1>

<ChkNumber>0000200001</ChkNumber>

<Filler2> </Filler2>

<ChkPaidDate>121905</ChkPaidDate>

<Filler3> </Filler3>

<ChkAmount>0001020000</ChkAmount>

<RecordID>D</RecordID>

<Filler4> </Filler4>

</Detail>

<Detail>

<AcctNumber>2176975528</AcctNumber>

<Filler1> </Filler1>

<ChkNumber>0000200002</ChkNumber>

<Filler2> </Filler2>

<ChkPaidDate>121405</ChkPaidDate>

<Filler3> </Filler3>

<ChkAmount>0164840000</ChkAmount>

<RecordID>D</RecordID>

<Filler4> </Filler4>

</Detail>

<Trailer>

<AcctNumber>2176975528</AcctNumber>

<Filler1> </Filler1>

<ChksCount>0000000493</ChksCount>

<Filler2> </Filler2>

<TotalAmount>0766945400</TotalAmount>

<Filler3> </Filler3>

<RecordID>T</RecordID>

<Filler4> </Filler4>

</Trailer>

</ns0:ComericaCheckRecon_Request_MT>

Thanks

Rajesh

Not what you were looking for? View more on this topic or Ask a question