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

Mapping java, help please!

Hello,

I'm new in the use of XI and I'd like to make a java mapping but I don't know how to do it and how to be able to make the java IDE recognize the incoming and outcoming interfaces while I code the mapping.

I read a lot of things in this website but I didn't understand what to do...(maybe the words were too technical,I don't know).

Can someone can explain me how to do it from the beginning to the end with a short example?

How to make the java IDE (Borland JBUILDER but I can get ECLIPSE) recognize the interfaces and their structures.

What do I need to do, import or implement in the java IDE?

Where can I find a java code example for a mapping?

I hope someone will be able to answer to these qestions.

Thank you.

Christophe.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 08, 2005 at 08:25 AM

    Hi Christophe,

    go thru the following -

    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

    Also these weblogs will help u.

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

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

    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1947. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

    Also, as an example refer to the following weblog -

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

    All the best!!

    Regards,

    Divya

    Message was edited by: Divya Vidyanandan Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you Divya but I already read that documents but I didn't understand everything.

      Do we have to deal with the XML structure?

      Can't we export the structure with "java proxy generation" and then,in the java IDE import it?

      For example, in XI, for a Message Type's structure looking like:

      MTName

      --Row

      ---FirstName

      ---LastName

      ---Birthday

      Can't we have in the java IDE the possibility to type something like:

      MTName TEST = new MTName();

      if (TEST.FirstName=="FakeName") Action();

      else Action2();

  • author's profile photo Former Member
    Former Member
    Posted on Aug 08, 2005 at 08:50 AM

    Hi christophe,

    For java mapping,you need to have aii_map_api.jar on your XI server.

    To program a Java mapping, you must define a Java class that implements the Java interface : com.sap.aii.mapping.api.StreamTransformation.

    After creating ur java program,zip this file along with the class file, and import it into Xi as 'imported archives' under the mapping objects.

    Regards,

    Priyanka

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      You can very well code in ur IDE.

      Then you can import it in 'imported archives' along with the class file.

      In the mapping create a user defined function which calls the java program which you have imported into XI.And finally, you can use the userdefined func in the mapping editor.

      Regards

      Priyanka

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.