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

Remove Spaces in EDI Files

$
0
0


Hi, I have a requirement of processing EDI Files and map it to an IDOC.  I have used B2B add on in splitting this file into several messages and translating EDI ANSI X12 to XML.  Scenarios are:

 

1) PI will pickup the EDI file from Trading Partner and send it to EDI Separator for splitting

2) EDI Separator will receive the splitted message then translate to XML then send to R/3 as an IDOC

 

Issue here is in splitting the EDI file into several messages. I'm encountering an error in the splitting part because of spaces/blanks in between ISAs.  Sample data below.

 

Sample data (spaces highlighted in yellow):

Capture.JPG

I tried removing the said spaces/blanks and can successfully split the file already.  Now given that the trading partner (sender of EDI file) will not do remove this in their side, how can I remove this in spaces/blanks in PI?

 

Please help. Thank you.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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