Skip to Content
author's profile photo Former Member
Former Member

Which is the best: IDoc or XML?

Guys, how are you doing?

I'm developing a generic connector which will read and parse HRMD_A07 messages from SAP. The goal is to create employees inside an Identity Management system. I used to use IDoc EDI messages, like "idoc.txt" attached file. But I read some interesting articles about using XML messages instead of flat files IDocs. I also read that generate XML files could have lower performance than generate IDoc.

My problem is that parse a XML file inside Java (my development language) is easier than parse EDI messages such as IDoc flat files. I must have something which can easy to be configured by SAP customers in order to send personal data of employees to my connector.

I also heard about RFC but in my opinion is not so easy to configure a new RFC port and some customers may no allow this kind of integration. I think to create partners and XML or IDoc ports are the best choices.

Does anybody here could help me to understand which type of messages are the easiest way to get person data from SAP HR system?

Thank you!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 24, 2013 at 06:43 AM

    Hi Alan,

    I feel it is better to go with Idoc process.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Madhu, many thanks.

      Another quick question. Assuming I'm going to use IDocs, instead of XML. Would be possible to use the Java IDoc Class Library to parse a received IDoc file? I don't want to use RFC where SAP uses a TRFC port to post an IDoc outside. This option requires more efforts to be configured by a SAP customer. The problem is that I didn't find any documentation on how to parse a received IDoc file. Everything I found was about parse an IDoc online, while receiving it by RFC...

      Thank you again!!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.