Container object in Message Mapping

Hello
I am having a scenario where I want to reuse the previous value of a map to calculate another value.For the same I tried container parameters in Message Mappings by using a simple Java function calling
container.getGlobalContainer().setParameter("test","value");
in another simple user defined java method I used container.getGlobalContainer().getParameter("test").
But my target value is coming as null.
Anybody knows how to use container methods to reuse values in Message Mappings??
Thanks in advance.
Regards
Rajeev

Hi,
There is also another method by which you can use values across different functions.
IN your Integration Builder, while you are in your Message Mapping, under the Design tab there is a small menubar.
Choose the rightmost option which is called Edit Java Sections. Using this you can use global variables which have a scope of the entire mapping. That means you can use them anywhere in the mapping.
Only remember to populate the variables with valid data before using them in other functions.
Let me explain with an example.
Once you click on Java sections, a smaller box opens up which has 3 fields.
Under the first field called Global Variables we can give something like:
String a;
Under second field called Initialization Section we can give:
a = " ";
Now we can use this variable a in any UDF to store some value and this same variable can be used again to retrieve the value.
This eliminates the need of using containers within the same mapping.
Glad to be able to help.
Regards,
Kshitij

Similar Messages

  • Get the value of Container element in message mapping

    Hi,
    Is it possible to read the value of container elements(bpm) in a UDF defined in message mapping. If yes, please tell me how?
    Thanks and regards,
    Siji

    Siji,
    Refer thread - Creating the container Object In Java Mapping
    Regards,
    Geetha

  • Fill Container Object in Java Mapping

    Hi Everyone,
    I use BPM and defined a container object of type integer. Now I want to fill this container object in Java Mapping. After I fill it in the next step there is a switch using the value of the container.
    How can I fill the container in Java Mapping?
    Thanks for the input.

    How can I fill the container in Java Mapping?
    Mandatory to fill the container in JAVA Mapping? If not then you can try the below:
    1) Define a Container Object...already done
    2) Let the JAVA Mapping create the required message....transformation step.
    3) include a Container Operation before the Switch step (and after the Transformation)
    4) Mode as Assign...Target will  be your Container Object (integer)....Expression will be the node from the output message of JAVA mapping.
    Regards,
    Abhishek.

  • Using Container Object in Java Mapping

    Hi All,
    I need to use a Container object inside a Java Mapping, just like the one wich is used in the Graphical Mapping.
    Here is the scenario:
    I have an Interface Mapping with three steps on it.
    The first step is a Java Mapping just to put some info in the Container. The second step is a XSLT transformation that uses an XSLT file to transforms from IDOC to xCBL. The third step is another Java Mapping that get the info from the Container and insert in the xCBL.
    Does any one knows how to do it inside the Java Mapping Code? We cannot make modifications in the XSLT file because of some internal restrictions.
    Thanks,

    Hi,
    If you make the container variable is a part of your message (input of Java Mapping) then you can access as normal fields.
    Just have a look at these discussions-
    How to use Container Variable across Maps
    xi 3.0 - Using BPM variables in messages
    Hope this helps,
    Regards,
    Moorthy

  • 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.

    Nilesh,
    sorry.. I think this is actually possible.
    In the setParameter()
    public static AbstractTrace trace;
    public void setParameter(Map param) {
              map = param;
              trace =
                   (AbstractTrace) param.get(
                        StreamTransformationConstants.MAPPING_TRACE);
    Likewise, in this method setParameter, you can get and set Container objects.
    I have shown how to use the TRACE .
    Sorry for the confusion
    Regards,
    Bhavesh

  • Accessing container variable of BPM in Message Mapping function

    Hi,
    I have a scenario in BPM where i have a container variable that is used as a loop counter.I want to access that counter defined , every time when i go around the loop and perform certain actions based on that counter. so how can i access that variable in my message Mapping function.

    Hi Sudharshan,
    check these links, hope they give you the required information (i think there is some problem with SDN site, check these links after a while)
    Re: How to use Container Variable across Maps
    Container object in Message Mapping
    Copy value of container (abstract interface) to an other container
    Regards
    Vishnu

  • Objects tool bar in message mapping is in disabled mode

    Hi all,
    In my message mapping the objects tool bar is in disiabled mode. It is not working any more, so it difficult to map objects in message mapping pane. Is there any particular option need to enable at any where? please kinldy help on this any body?

    Hi,
    VJ is right you need to install it on your local system and it could be downloaded here:
    http://java.sun.com/products/archive/index.html
    Regards
    Patrick

  • Message mapping in PI 7

    Dear Experts,
    In XI 3.0, we have created some interfaces that now have to be migrated to PI 7. I know XI but I have no experience with PI 7. Now I have some problems during this migration:
    1) From the IR, I exported a TPZ file from the software component we created, but how can I import this in PI? I used "import design objects" but then I get an error when I try to edit the object: "Original language Dutch for current object collides with permitted display or editing language EN"...
    Then I can only display the object, not edit or even copy it...
    2) in PI, how can I create a message mapping between 2 messagetypes? Basic question but I just can not find it.
    Hope you can help me out. Thanks in advance,
    William.

    >
    > In XI 3.0, we have created some interfaces that now have to be migrated to PI 7. I know XI but I have no experience with PI 7. Now I have some problems during this migration:
    >
    > 1) From the IR, I exported a TPZ file from the software component we created, but how can I import this in PI? I used "import design objects" but then I get an error when I try to edit the object: "Original language Dutch for current object collides with permitted display or editing language EN"...
    > Then I can only display the object, not edit or even copy it...
    >
    The interfaces in XI 3.0 used default language Dutch, but in PI7.1 you have selected it as EN, this may be cause error.
    > 2) in PI, how can I create a message mapping between 2 messagetypes? Basic question but I just can not find it.
    >
    it is simple, right click on name space-->select new-->then select Mapping Objects--> select message mapping new,then add your two message types
    before that you have to create data type and message type.
    Regards,
    Raj.

  • Container Element in the Mapping UDF

    Is there any way that to access the BPM container Element in the Mapping UDF. Can some one share the UDF code for this

    Hi,
    Refer BPM Container Element and Container in UDF Relation
    BPM Container Element and Container in UDF Relation
    Creating the container Object In Java Mapping
    Thanks
    swarup

  • Writing Exception into ccBPM container trace from Graphical mapping

    Hi guys,
    I followed the Guarneri's blog /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    It works fine within message monitor, but at the trace of ccBPM nothing appears! I'm talking about the trace of the container at the message mapping in the ccBPM. (I increased the trace level, but didn't solve)
    Anyone knows if it is possible to use this approach for the ccBPM container trace as well, or I'm missing something here?
    Thanks in advance & regards,
    Ricardo.

    Hi Gonzalo,
    you wrote:
    >>Mark the tag 'Create new transaction' in your transformation step in your BPM. Then navigating in the sxmb_moni_bpe transaction wil bring you to your message. But it is hard to find the XML there.
    The low technology solution is simulating the data flow in your bpm throw a sequence of chained mapping tests. <<
    I already have the option "create new transaction". but maybe I'm searching in the wrong place. Could you point me where to find at ccBPM?
    Thanks &regards,
    Ricardo.

  • GlobalContainer object values acessed among UDF's  in message mapping ?

    hi
    i have scenario where i am using globalContainer variable functionality in my message mapping.
    in edit java section
    String usr;
    Container container ;
    GlobalContainer globalContainer ;
    intialize usr = "";
    in First UDF
    String inlogin_sess =  " ashutosh test value" ;
    globalContainer.setParameter(usr,inlogin_sess);
    return any value :
    now if i create another 2nd UDF and use :
    String  out =globalContainer.getParameter(usr);
    return out ;
    now 2nd UDF is giving null pointer exception...
    for testing the code functionality..
    IF i  use the  SET and GET in 1st UDF :
    globalContainer.getParameter(usr);   in 1st UDF than it is working sucessfully...
    globalContainer.setParameter(usr,inlogin_sess);
    String  out = globalContainer.getParameter(usr);
    return out ;
    in help.sap it is mentioned that Globalcontainer objects  values can be fetched   among UDF's in one message mapping....
    [http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm]
    i have gone a lot of thread in sdn where Global container are used like sequence no creation etc, but every where  the
    GET and SET are used in SAME UDF...
    any clue where is leak..
    Regards,
    ashutosh R

    Hi Abhishek
    Your point is legimate, but for my their is no such issue..
    even i try to use it as :see image..
    [http://www.screenshots.cc/show.php/14137_GlobalVariable.JPG.html]
    UDF1 :
    globalContainer.setParameter(usr,inlogin_sess);
    return any value :
    and in UDF2 
    String  out = globalContainer.getParameter(usr);
    return out ;
    mainting the sequence
    My concern is object globalContainer is local in UDF1, so it will through nullpointer ,if we try to access in UDF2.
    if we declare globalContainer   in edit jave -GlobalVariables also, still it is having the error..
    Regards
    AshutoshR

  • Accessing container variables from ccBPM in Message Mapping?

    Hello Friends,
    I have created a ccBPM and require to send response messages to the sending system at different points as the message proceeds from one state to another. I do not want to create multiple message mapping stating different status in every message mapping. The message mapping remains the same only the status is changing. So I am thinking if I can access container elements in ccBPM at message mapping then I should be able to use only one message mapping.  Is it possible at all?
    Let me know if you have other solutions. Let me know if I am not clear?
    Thanks & Regards,
    Anand Patil

    Hi Abhishek,
    Your suggestion to use Parameterized Mapping did solve my issue. I was looking something like this. Thanks.
    Now I have only one Message Mapping and it is used in multiple places. Thanks a lot
    Best regards,
    Anand Patil

  • How to Access a BPM container variable in XI graphical  message mapping

    Hello XI BPM and Mapping experts,
    is it possible to access a BPM container variable from an graphical mapping?
    If yes, how ?
    We need this for the following scenario:
    IDOC to BPM.
    BPM  transforms and sends transformed IDOC to fileadapter
    If both steps are successful  a STATUS.SYSTAT01 IDOC should be send back to SAP-ISU with status 06.
    If one of these steps fails  the status in the SYSTAT01 should be set to 05. (Exception branch of block)
    We want to avoid to write 2 mapping programs for mapping the SYSTAT01.
    Instead we would like to use a BPM Container Variable which contains the status.
    In the mapping for the SYSTAT01 we want to use this Container Variable.
    Is this possible?
    Thanks for soon answers.
    Regards Marlies

    Hi Marlies,
       Is not possible to acces a BPM container variable from graphical mapping. For other hand, you can to use runtime variables for this purpose.
       You could create an abstract interface with a message type having a single node with the required value and using this message in other mapping.
    Best regards
    Ivá

  • PI 7.1 EHP1 SP3, Message Mapping cannot select object in the folder ?

    Hi,
    I am very new with PI 7.1 EHP1, i am not sure whether there is some new restriction or bug, because i was trying to create Data Type, Message Type in site the folder, but the Message Mapping cannot select those object insite the folder. The message mapping only can select those object without folder.
    Please advise ?
    Thank You and Best Regards
    Fernand Lesmana

    Hi Swarup,
    I just finish installed the PI 7.1 EHP1 SP03, so i would like to test the functionality of the PI. just create 2 DT 2 MT insite the folder.
    but when i am trying to create Message Mapping, the message mapping, i can't find these 2 MT ???.
    after that i created new MT but outsite of the folder (still same namespaces) and the message mapping can see the MT ?
    so i can make sure not duplication coz i just create those object.
    any idea ?
    Thank you and Best Regards
    Fernand Lesmana

  • XI Configuration Design questions with multi-mapping message mapping object

    Hello,
    I'm having trouble designing a particular scenario for multi-mapping.  Currently i'm working with a Vendor create and change.  BPM is not being used.
    This is what i need:
    I need a CREMDM04 to turn into one or multiple ADRMAS/CREMAS IDocs and potentially a CLFMAS IDoc based on the values in the inbound CREMDM04 IDoc.
    This is what i currently have:
    A CREMDM04 inbound idoc is multi-mapped to a CREMDM03 (1...9999), another CREMDM03 (0...9999), and a CLFMAS01 (0...9999).  At a minimum only the first CREMDM03 IDoc will be created and at a maximum all three will be created.  The parameters on creating the second CREMDM03 IDoc and the CLFMAS01 IDoc are based on the values in the inbound CREMDM04 IDoc, whereas the first CREMDM03 IDoc will always be created and the values will just be converted/mapped from the inbound CREMDM04 IDoc.  This multi-mapping is currently set-up via a graphical message map and works successfully in the test-tab of the mapping object.  It has a main message and has sub-messages which are the IDocs.  I’m mapping the CREMDM04 to a CREMDM03 to then map it through an ABAP-Class and then to an XSL where the CREMDM03 inbound structure is expected to split into ADRMAS and CREMAS Outbound IDocs for Vendor Create/Change in the remote R/3 systems.
    After the graphical map we have a necessary ABAP Class call that calls a BAPI to the remote system.  This ABAP Class must come after the graphical map since the parameter for the BAPI is based on a converted value from the graphical multi-map.
    After the ABAP Class call there is finally an XSL message split the CREMDM IDoc into an ADRMAS and CREMAS IDoc.  There need to be two interface mappings (one per ADRMAS and CREMAS) since the ABAP classes and XSLs are specific to the ADRMAS and CREMAS.
    The CLFMAS IDoc can go directly to the remote system, but since it’s within this one multi-map, I’m not sure if is possible?  I’m not sure if it will fail once it tries entering the XSL mapping (this is the standard CREMDM message split offered from SAP).
    There are three interface mapping scenarios I can think of, but cannot get to work:
    CREMDM04 to ADRMAS02
    CREMDM04 to CREMAS03
    CREMDM04 to CLFMAS01
    Currently I have the Interface Mapping structured as follows:  (I cannot get this to activate as it appears it does not work)
    Multi-Mapping ==> ABAP Class Call ==> Standard XSL Message Split
    How should i design the interface mapping objects and the configuration objects for this scenario?
    Any help is appreciated and I definitely will reward points (no need to include it in your response).

    Hi,
    I suggest you may use multiple steps interface mapping. It's composited with 3 message mappings as step by step.
    Mapping 1: One to one mapping. For the output schema, use a composition schema which includes those 3 IDOCs you want.
    Mappign 2: ABAP Mapping. I am not sure the ABAP class you mentioned is an ABAP mapping or not. If it does, That's ok. If not,
    call that ABAP class in your ABAP mapping and do corresponding change for your message. Return back the same structure as output.
    Mapping 3: One to multiple mapping to split the message.
    So basically as interface mapping, it's one to multiple mapping. And internally, you have 3 steps to realize the mapping.
    And as my experience, for both one to multiple message mapping & multiple steps interface mapping, it works well in my project. And
    in ID, you have to configure it via "advance" function in receiver determination or interface determination.
    Let me know if any confusion.
    Thanks
    Nick

Maybe you are looking for

  • Facing the problem in creating dll

    Hi, I have written the JNI example. I have make the .class file, .header file and .c file. But when I am trying to make the dll..its shows the following error. C:\jni test>cl -IC:\j2sdk1.4.2_17\include C:\j2sdk1.4.2_17\include\win32 -LD HelloWorldImp

  • I never receive my serial number for my product by email and I don't see in my product online.

    How to find my information. The Adobe service is really bad for that... I think to cancel everything !!!

  • Reducing AI file sizes for PDF distribution

    Greetings all, Using CS2 Illustrator, I have a file that is approximately 14.5M large. It's completely black and white, with a b/w photo. I was thinking that when I saved it as a pdf file, the size of the pdf document would be considerably smaller so

  • Delay unloading Acrobat dlls when using Acrobat 9

    In our Java desktop application, we use Acrobat 9 to display a pdf file. This pdf is opened in another window. When the window is closed the acrobat dlls loaded are expected to close by itself so that the corresponding javaw process can close. The ja

  • Service Operation "Retry" status in Integration Broker

    Hi all We are using PeopleTools v8.49. Can someone please tell me what and/or when service operations (messages) with a "Retry" status are triggered for retrying? Is it a ping of the node, the next service operation or something else? Can the "retry"