cancel
Showing results for 
Search instead for 
Did you mean: 

How to select files with different root note?

ng82si
Participant
0 Kudos
235

Hi PI/PI Gurus,

my scenario is very simple: files (MT_A) ->PI ->SAP.

It works actually fine. However, recently a few files with different structures (MT_B) mixed in the source files and producing the problem: InterfaceDetermination did not yield any actual interface

Actually, MT_A and MT_B have the same structure, just the Root Note is different.

In case a file with the wrong Root Note exists, we have to amend it manually to let the sender-adapter work. It is very annoying.

I tried with XSLT-Mapping to change the root note name and create the sender Interface with 2 operations. But they are unsuccessful.

Any suggestion or hints are appreciated.

Regards

Kefei

View Entire Topic
former_member190293
Active Contributor

Hi!

Try to clear "Software Component version of Sender Interface" field on the first tab of your ICo and use XSLT mapping to transform your source structures. Something like:

<xsl:template match="/">

<MT_Target>

<xsl:apply-templates/>

</MT_Target>

</xsl:template>

<xsl:template match="MT_A | MT_B">

....Your transformation here

</xsl:template>

Regards, Evgeniy.

ng82si
Participant
0 Kudos

Hi Evgeniy,

thank you for your inputs!

Aha, it is also cool to transform the message just via one XSLT-Mapping.

Since the Message-Mapping exits already, therefore I just created a XSLT-Mapping to amend the Root Note Name.

So the OM contains 2 level mappings:

- XSLT-Mapping and

- Message-Mapping

It works also well.

Regards

Kefei