Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

split messages into different DataBase

$
0
0

Hi Experts,

 

I have the next scenario Proxy to JDBC, I´m using PO 7.4 (only javastack), the proxy send a record with multiple values like this:

 

<Record>

   <ANIO>2015</ANIO>

   <MES>006</MES>

   <IDLIQ>01</IDLIQ>

   <CONSE>71053952</CONSE>

   <DEPTO>015</DEPTO>

   <MATNR>2177463</MATNR>

   <WERKS>S107</WERKS>

   <EAN11>2500000014390</EAN11>

   <MAKTX>NA051415063 BOLSA GRANDE CON 2 BOLSAS AL</MAKTX>

   <INVPV>199.90</INVPV>

   <KBETR>0.40</KBETR>

   <FEINI>20150630</FEINI>

   <FEFIN>20150730</FEFIN>

   <LABST>16.000</LABST>

   <KSCHL/>

  </Record>

  <Record>

   <ANIO>2015</ANIO>

   <MES>006</MES>

   <IDLIQ>01</IDLIQ>

   <CONSE>71053955</CONSE>

   <DEPTO>015</DEPTO>

   <MATNR>2177469</MATNR>

   <WERKS>S107</WERKS>

   <EAN11>2500000014451</EAN11>

   <MAKTX>NA051415069 BOLSA JAQUARD CON FRANJA EN</MAKTX>

   <INVPV>249.90</INVPV>

   <KBETR>0.40</KBETR>

   <FEINI>20150630</FEINI>

   <FEFIN>20150730</FEFIN>

   <LABST>0.000</LABST>

   <KSCHL/>

  </Record>

  <Record>

   <ANIO>2015</ANIO>

   <MES>006</MES>

   <IDLIQ>01</IDLIQ>

   <CONSE>71053954</CONSE>

   <DEPTO>015</DEPTO>

   <MATNR>2177477</MATNR>

   <WERKS>S107</WERKS>

   <EAN11>2500000014512</EAN11>

   <MAKTX>NA051415075 BOLSA JAQUARD CON FRANJA EN</MAKTX>

   <INVPV>249.90</INVPV>

   <KBETR>0.40</KBETR>

   <FEINI>20150630</FEINI>

   <FEFIN>20150730</FEFIN>

   <LABST>0.000</LABST>

   <KSCHL/>

  </Record>

  <Record>

   <ANIO>2015</ANIO>

   <MES>006</MES>

   <IDLIQ>01</IDLIQ>

   <CONSE>71053956</CONSE>

   <DEPTO>015</DEPTO>

   <MATNR>2177463</MATNR>

   <WERKS>S108</WERKS>

   <EAN11>2500000014390</EAN11>

   <MAKTX>NA051415063 BOLSA GRANDE CON 2 BOLSAS AL</MAKTX>

   <INVPV>199.90</INVPV>

   <KBETR>0.40</KBETR>

   <FEINI>20150630</FEINI>

   <FEFIN>20150730</FEFIN>

   <LABST>0.000</LABST>

   <KSCHL/>

  </Record>

  <Record>

   <ANIO>2015</ANIO>

   <MES>006</MES>

   <IDLIQ>01</IDLIQ>

   <CONSE>71053958</CONSE>

   <DEPTO>015</DEPTO>

   <MATNR>2177469</MATNR>

   <WERKS>S108</WERKS>

   <EAN11>2500000014451</EAN11>

   <MAKTX>NA051415069 BOLSA JAQUARD CON FRANJA EN</MAKTX>

   <INVPV>249.90</INVPV>

   <KBETR>0.40</KBETR>

   <FEINI>20150630</FEINI>

   <FEFIN>20150730</FEFIN>

   <LABST>0.000</LABST>

   <KSCHL/>

  </Record>

 

so I need to split each record into their corresponding database for example if WERKS = S107 it has to go through database "107" but only the records with this parameter, and if WERKS = S108 it has to go through database "108" but only the records with this parameter and so on..

 

 

today it goes all the records to all the tables

test1.JPG

This is my integrated configuration

test2.JPGtest3.JPG

test4.JPG

Thank you for your help.

Regards.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>