on 11-06-2007 7:12 AM
Hi ,
I want to Initialize a container Object in the Java section so that i can use the corresponding methods.
Whenn i declare --
Container container;
It gives me error, container has not been initialized.
When i write container = null, i get null pointer exception.
please help me with the declaration part.
Thanks !!
Harpreet
hi harpreet,
u dnt need to "declare" ur container object. its already declared...check the signature of ur UDF.
so Container container; --> is wrong
in ordre to use it u just need to set values in it and when required retreive from it by using,
container.setParameter("name","harpreet");
conatiner.getParameter("name"); --> returns object.
refer this:
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
[reward if helpful]
regards,
latika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What you want to achieve using the container object. You can use the global container if you wanted to access the global value in the UDF.
Thanks and Regards,
Chirag Gohil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not want the UDF. I need to write a code which will work in the clean up section of Java only after the complete message mapping is successful.
I need the container object so that I could use getTransformationParameters method of Map object.
I do not get the container object in the clean up section by default as we get in the UDF.
Hi,
Please refer the below link hope this might help you.
http://help.sap.com/saphelp_nw04s/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm
Thanks and Regards,
Chirag Gohil.
hi harpreet,
can u elaborate what is "Global java section in mapping"
assuming u have ur own class in which u want to use container..
u need to import
com.sap.aii.mappingtool.tf3.rt.Container
and then jus declare it as
Container container;
container.get.........<ur code>
ur code shud work.
regards,
latika.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.