cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping To Remove Duplicate Lines from files

Former Member
0 Kudos

Hi Expert,

can you please let me know how to remove the duplicate lines from entire file.

Multiple headers are coming after FCC in File adapter.

Regards,

Ravi

Accepted Solutions (0)

Answers (3)

Answers (3)

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Ravi,

Check this Link to handle duplicate:

https://scn.sap.com/docs/DOC-61626

Regards,

Manoj

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ravi,

                Before moving on to java mapping, can you please ask the sender to remove duplicate headers from their end before sending to PI. This will eliminate the need of mapping.

Regards

Anupam

Former Member
0 Kudos

Hi Multiple header is coming at receiver side not at the sender side.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ravi,

               Can you please explain how you did sender side fcc?

and please post sample file if possible. We need to know how we are having multiple headers in receiver side.

Regards

Anupam

Former Member
0 Kudos

Hi Ravi,

can you please check if that is the needed requirement where multiple headers are coming for each file?

If not may be you can check for the occurrence of particular tag in Java code(SAX Parsing) and remove the unwanted lines. I Guess adapter module can be used instead of java mapping

Regards,

Keerthi