cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing a IDoc file in the Java

Former Member
0 Kudos

Hi experts,

Could you point me to some article or documentation where is described how to parse a IDoc file. My IDoc file is not a XML but a old format e.g:

E2PITYP001 11000000000000390060000070000010301P 999995829999 1800010199991231

1. I've found out that I should use a JCO. In the version 3 there is a example how to parse a XML IDoc, but this is not my case.

2. Do I need to connect to the SAP server during a IDoc parsing?

3. I would really appreciate a example.

4. Is this requirements feasibility with JCO, or do I have to write my own parser?

Best Regards

Andrej

Accepted Solutions (0)

Answers (2)

Answers (2)

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

ravindra_bollapalli2
Active Contributor
0 Kudos

hi Andrej,

To level of my understanding You have a Idoc and you want to read that one

1. not with use of xml

2. may with file format

keeping 2 option check this thread

/people/ruediger.bachmann/blog/2006/01/07/uploadingdownloading-files-intofrom-sap

to convert idoc not in xml to convert in flat file

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc...

let me know u need any further info

bvr

Former Member
0 Kudos

Thank you for answer, but that links doesn't help me

All examples assume that you get a IDOc Java class from the SAP server. There is not need for parsing.

Do you have any resource which should help me to solve me problem?