cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot produce target element

Former Member
0 Kudos

Hi all,

I am with FTP to RFC scenario.

Seems that the design and config is OK, but if i see MONI for the incoming message, i c:

<i> <?xml version="1.0" encoding="utf-8" ?>

- <MT_FTP_SPHIE019>

- <IT_FICHERO>

- <item>

<LINEAS>00000002W 19R9A2077004050510203047801092007EUR 0000000003299+</LINEAS>

</item>

- <item>

<LINEAS>00000001R 19R9A2077094850510001439001092007EUR 0000000000002+</LINEAS>

</item>

</IT_FICHERO>

</MT_FTP_SPHIE019></i>

Which is good but i cannot see the prefix <b>ns0</b> before the message type name, so i think this provokes following error:

<i>com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element <b>/ns1</b>:ZSPHIE0019. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</i>

However, if i go to IR, message mapping and i see source code to test, i can see the prefix there.

Could you plesae help me on this??

Best regards,

David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Did you test your message mapping with the test data ?

If that is working fine then the FCC paramters.

Cheers,

*RAJ*

Former Member
0 Kudos

Thanks all,

It was obvious!! I missed the Document Namespace in the FCC parameters..

Thanks a lot for your help,

Points rewarded

Answers (2)

Answers (2)

Former Member
0 Kudos

If you dont want ns:0 ,remove the XML namespace in the message type editor.

santhosh_kumarv
Active Contributor
0 Kudos

Hi David,

Check if u have mapped all the mandatory fields in the target.

Once again check the mapping schema.

Regards

San

there is a Way.