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

IDoc to File Scenario

Hi,

In IDoc to File Scenario, I am using Java Mapping Program to do the Transformation. In the Ouput File I require to Map the IDoc Number, Segment Number, Number of Superior Parent Segments, Hierarchy Level of SAP Segment.

Please let me know how can I access these fields from the Java Mapping Program?

Thanks,

Yogi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 26, 2007 at 05:42 AM

    You need to use either a SAX and a DOM parser and write the code to access the same fields

    Read through these blogs,

    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

    Regards

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 05:55 AM

    Hi,

    Please see the below links...

    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

    /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings

    Regards

    Chilla..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 06:03 AM

    Hi ,

    You can have 2 parsers SAX and DOM to access the fields in Java Mapping.

    On how to create XML docs with SAX and DOM go thruugh these links:

    http://www.cafeconleche.org/books/xmljava/chapters/ch09.html

    http://www.cafeconleche.org/books/xmljava/chapters/ch06.html

    Check these blogs for reference..

    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

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.