Skip to Content
Author's profile photo varun boyina

SAP PI/PO : Java Mapping to convert EDI 824 File to EDI XML without Third-Party Adapter or SAP B2B ADDON

Reason to Write Java Map:

In one of the client projects there was only one inbound EDI interface and client was not ready to invest in  SAP B2B Addon or Third-Party Adapter for only one interface.Hence java map was used to achieve this functionality.

Bank sends an EDI 824 file to SAP PI/PO through SFTP,this file needs to be converted  and mapped to a proxy.This was handled using a java map.


Attached  file “JavaMap_Convert_EDIFlatFile_To_EDI_Hierarchial_XML.java.txt ”  contains complete java map used in this scenario.

Pre-Requisites:

  1. 1) Idea on Java mapping using DOM.
  2. 2) NWDS studio.
  3. 3) SAP PI/PO  Java Mapping  Jar file(RMcom.sap.xpi.ib.mapping.lib.zip)

Capture.JPG

Input  EDI  Structure:

Below is sample Input EDI data  which will be passed to Java Map:

ISA*00*          *00*          *ZZ*              *ZZ* *130605*1906*U*00400*000000026*0*P*~~GS*AG*202691093*Receiver*20130605*1915*1000258319*X*004010~ST*824*0001~BGN*11*999999999999999999*20130605*192907*02*000000725**U~N1*BK*Bank of ~PER*CC*BOM EDI/EFT OPERATIONS*TE*312-461-6185 OR 2352~OTI*GP*FI*9999~OTI*TA*TN*6700000391*202691093**20130605*1810*000258319*0001*824~REF*TN*6700000391~AMT*OP*500~OTI*TR*TN*6700000390*2026991093**20130605*1810*000258319*0001*824~TED*848*Data error~SE*11*0001~GE*1*1000258319~IEA*1*000000026~



Capture1.JPG

Capture2.JPG

Capture3.JPG

Capture4.JPG

Capture5.JPG

Capture8.JPG

Capture9.JPG

Capture10.JPG

Capture11.JPG

Capture12.JPG

Capture13.JPG

Capture14.JPG

Capture16.JPG

Capture17.JPG

Capture18.JPG

Capture19.JPG

Assigned Tags

      25 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Vijayanand Poreddy
      Vijayanand Poreddy

      Hi Varun,

       

      I have similar requirement and planning to develop Java mapping, Can you please share the source code?

      Also, From where did you get EDI824 Schema?

      Regards

      VJ Poreddy

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Vijay ,

      please provide your email id,I will share the details.

       

      Regards,

      Varun

       

       

      Author's profile photo Shaibayan Chakrabarti
      Shaibayan Chakrabarti

      Can you please share the source code or the Java mapping archive to shaibayan@gmail.com?

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Shaibayan ,

       

      Sorry for the late reply as I did not login to sdn for few months now because of work commitments.

      I am sending you the code to your mail id.Hoepfully it helps you in any of your work.

      Regards,

      Varun

       

      Author's profile photo Ranjith RKC
      Ranjith RKC

      hi varun,

      can you share source code  to my mail id : mukeshchhimpa1@gmail.com

      Author's profile photo Sumaya De la Cerda
      Sumaya De la Cerda

      Great Job!

       

      Varun could you please share the java code with me delacerd@yahoo.com

       

      Thanks a lot

      Author's profile photo Saurabh Kumbhare
      Saurabh Kumbhare

      That's a great blog.

       

      Varun can you please share the source code on saurabhakumbhare@outlook.com.

       

      That would be a massive help.

       Regards 

      Saurabh

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Saurabh ,

      Have sent to your email.

       

      Regards,

      Varun

       

      Author's profile photo Juan Vasquez
      Juan Vasquez

      Nice Job!

       

      Varun could you please share the java code with me jfv0001@hotmail.com

       

      Thanks a lot

       

      Juan

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Juan ,

       

      Have sent the code to your email.

       

      Regards,

      Varun

      Author's profile photo Juan Vasquez
      Juan Vasquez

      Hi Varun

      Thanks for your help

      Author's profile photo Former Member
      Former Member

      Hi Varun,

      Can you please share the source code or the Java mapping archive to: grkrayem@gmail.com

      and thanks for your help.

      Regards,

      Karim

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Karim ,

       

      Sorry for the late reply as I dont check my scn frequently.

       

      Sent the java code to your email id.

      Regards,

      Varun

      Author's profile photo Sugeet Patinge
      Sugeet Patinge

      Hi Varun,

       

      Can you please send the Java Mapping code on sugeetspatinge@gmail.com.

      Thanks in advance.

       

      Best Regards,

      Sugeet Patinge.

       

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Sugeet Patinge ,

       

      Sorry for the late reply as I dont check my scn frequently.

       

      Sent the java code to your email id.

      Regards,

      Varun

      Author's profile photo KARUNAKAR ADAPA
      KARUNAKAR ADAPA
      Hi Varun,
       

      Can you please send the Java Mapping code on askarun7@gmail.com.

      Thanks in advance.

      Best Regards,

      Author's profile photo varun boyina
      varun boyina
      Blog Post Author

      Hi Karunakar ,

       

      Sent the java code to your email id.

      Regards,

      Varun

      Author's profile photo KARUNAKAR ADAPA
      KARUNAKAR ADAPA

      Thank you so-much Varun.

       

      i received the code.

      Best Regards,

      Karunakar A

      Author's profile photo Muniyappan Marasamy
      Muniyappan Marasamy

      it would be better if you put the code in the open source platform and share the link here. like github. or direclty share here. It will help people and they dont have to wait for your timely reply.

       

      Author's profile photo Vamshidhar Bejjanki
      Vamshidhar Bejjanki

      Hi Varun,

      Could you please send the Java Mapping code on praneethrao13@gmail.com

      Thanks in advance.

      Regards,

      Praneeth

      Author's profile photo Raghu Chollety
      Raghu Chollety

      Hi Varun,

      Good blog thanks for the information shared.

      i have the same requirement, can you please share the JAVA code to chraghu515@gmail.com

       

      Best Regards,

      Raghu Ch.

       

      Author's profile photo SAKRIYANAIK NK
      SAKRIYANAIK NK

      GOOD ONE.  CAN you also add a code with this blog.

       

      Regards,

      Krushi.

      Author's profile photo Anil Kumar
      Anil Kumar

      Hi Varun,

       

      Can you please send me the source code of java mapping ?

      I want follow the above approach in our scenario. Thanks in advance.

       

      Regards,

      Anil Kumar

      Author's profile photo Anil Kumar
      Anil Kumar

      Hi Varun,

      can you please send the source code at

      apanilaug95@gmail.com

       

      Regards,

      Anil Kumar

      Author's profile photo Jixin Wang
      Jixin Wang
      Hi Varun,
      Thanks for sharing. 
      Could you please share the Java Mapping code to loyal0724@126.com.