Skip to Content

Creating the container Object In Java Mapping

Hi,

i I have a scenarion where i have to set some parameter in the COntainer from the Java Mapping.

How can i get a reference to the current Container object from my Java Mapping . While using user defined function this object is already avaliable as a parameter and we do not have to create it .But in java mapping how do i get the current container object.

regards

Nilesh Taunk.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • May 18, 2006 at 01:17 PM

    Hi Nilesh,

    ASFAIK this is not possible as when you use the Java Mapping, the only parameters that is sent to the EXECUTE method of your Mapping prgram is the INPUTSTREAM which is nothing but the source message of your mapping.

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

  • May 18, 2006 at 01:47 PM

    Why would you use a container class? When you have your own Java code for mapping, you can store your parameters anywhere.

    Let me know more about this.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • When I have understood right, the class provides a methods with a parameter of type com.sap.aii.mappingtool.tf3.rt.Container and expects any values to be filled inside an instance of that class?

      Container and GlobalContainer are interfaces. In a graphical mapping the instance of the GlobalContainer is the mapping class itself (you can see this with a user defined function).

      To achieve your goal you need to spend a lot of effort and have to know the internal code of the Mapping Tool. I think you better add methods to the generic component to enable it to be called from a Java Mapping.

      Regards

      Stefan