Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Facing issue with Duplicate data in Proxy-JDBC scenario

$
0
0

Hello Experts,

 

This is a Proxy-JDBC scenario.

 

Three tables are getting updated in a single interface .

 

Header Information

Details Information

Serial Number

 

As per the requirement for the Serial number table, if any Material has multiple quantity, multiple number of unique serial numbers will be created. To fulfill this requirement the ABAP code is written in such a way that the quantity field is repeated multiple times. And in PI side we are maintaining only one interface to update the three tables : Header, Details and Serial Number.


 

InvoiceNumberCustomerCodeMaterialNumberQuantityDate
INV100XYZFFS0-FS1440319-02-2015
INV100XYZFFS0-FS1440319-02-2015
INV100XYZFFS0-FS1440319-02-2015
INV111XYZFFS0-FS1443219-02-2015
INV111XYZFFS0-FS1443219-02-2015


<INVOICE>                                                                      ---------------

       <InvoiceNo>1130033531</InvoiceNo>

       <Date>2011-12-31</Date>

       <CustomerNo>DIST63</CustomerNo>

       <SONo>15218418</SONo>

       <MaterialCode>FFS0-FS1440-35BH</MaterialCode>

       <Quantity>3</Quantity>

       <GrossPrice>300</GrossPrice>

       <SerialNumber>AAF2014111</SerialNumber>

</INVOICE>

<INVOICE>

       <InvoiceNo>1130033531</InvoiceNo>

       <Date>2011-12-31</Date>

       <CustomerNo>DIST63</CustomerNo>                                Duplicate Records only the serial number is different

       <SONo>15218418</SONo>

       <MaterialCode>FFS0-FS1440-35BH</MaterialCode>

       <Quantity>3</Quantity>

       <GrossPrice>300</GrossPrice>

       <SerialNumber>AAF2014112</SerialNumber>

</INVOICE>

<INVOICE>

       <InvoiceNo>1130033531</InvoiceNo>

       <Date>2011-12-31</Date>

       <CustomerNo>DIST63</CustomerNo>

       <SONo>15218418</SONo>

       <MaterialCode>FFS0-FS1440-35BH</MaterialCode>

       <Quantity>3</Quantity>

       <GrossPrice>300</GrossPrice>

       <SerialNumber>AAF2014113</SerialNumber>              ----------------------------------------------

</INVOICE>

<INVOICE>

       <InvoiceNo>1130033537</InvoiceNo>

       <Date>2011-12-31</Date>

       <CustomerNo>DIST63</CustomerNo>

       <SONo>15218418</SONo>

       <MaterialCode>FFS0-FS1440-35BH</MaterialCode>

      <Quantity>2</Quantity>

       <GrossPrice>300</GrossPrice>

       <SerialNumber>ABF2014111</SerialNumber>

</INVOICE>

<INVOICE>

       <InvoiceNo>1130033537</InvoiceNo>

       <Date>2011-12-31</Date>

       <CustomerNo>DIST63</CustomerNo>

       <SONo>15218418</SONo>

       <MaterialCode>FFS0-FS1440-35BH</MaterialCode>

       <Quantity>2</Quantity>

       <GrossPrice>300</GrossPrice>

       <SerialNumber>ABF2014112</SerialNumber>

</INVOICE>

 

 

Due to this reason the Header and Detail tables are getting updated as mentioned below:

 

Capture.PNG

 

It should updated as:

 

Header Table

pi idsales orgdivisionvendor nameQuantityinvoice nodate
617984INDLEXSIFY3113003353219-02-2015
617985INDLEXSIFY2113003353119-02-2015

 

Detail Table

det idinvoice nomaterial codepriceqty
6179841130033532FFS0-FS14403003
6179851130033531FFS0-FS14432002

 

 

Please let me know how to handle with these duplicate records in SAP PI

 

Regards,

Sayanti


Viewing all articles
Browse latest Browse all 6719

Trending Articles



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