cancel
Showing results for 
Search instead for 
Did you mean: 

Reading iDocs using sapidoc3.jar in Java

Former Member
0 Kudos

Hello there,

How can I read an SAP iDoc file using sapidoc3.jar in java? Any samples of reading iDocs?

I have a another question,

I wanted to read an SAP iDoc and extract the data and put the data in to DB, What if I use a normal XML parser say DOM to read the iDOC? or Should I use sapidoc3.jar? Which one is the good option?

Many thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

May be of use for you /people/ayyapparaj.kv/blog/2008/11/20/r3-to-java-sending-idocs-using-sapidoc-jar

Regards

Ayyapparaj

Former Member
0 Kudos

Thanks for your reply.

I had a look at what you have suggested me but my problem is something different.

I don't have to connect with any of SAP systems since I have my sap idocs lying with me at my java side and I just need to parse them and extract the data out and put that data in to my MS SQL Server data base.

Here I have two options,

1) I can use a DOM parser since this is the way we generally deal with XML's.

2) I can use sapidocs.jar to parse idocs since I am new to this API I was looking for some samples. I just need to load idoc, parse the data and put that data into my local DB.

Which option could be better and some sample code for to deal with sapidoc API.

thanks in advance.