on 03-20-2007 11:54 AM
Hi All,
I was trying to create user defined function for raising exception if any mapping error occur according to the blog
"Throwing Smart Exceptions in XI Graphical Mapping" by Alessandro Guarneri
i have create the jar file and imported the classes but my udf is not able to resolve the method defined in the class.
Please help me in how should i import the jar correctly?
HI,
If yu want raise the exception , here two ways.
-- Throw smart exception
See the below link
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
-- Runtime exception ,failure the MM and this can be handle in determination by selecting the proper radio button
to raise the runtime exceion
throw new Runtimeexception(" write msg here );
Write a UDF in MM itself . if you want to write a jar file externally and import it in MM , i hope you should write a package and import it under imported archievs and later in UDF in import column use the package name..
and use that in UDF
Regards
Chilla
<i>reward points if it is helpful..</i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.created the package com.xi
2. wrote the two classes. then i comiled the package.
3. created the jar file of the classes
4. zipped the package folder and imported into imported achives.
But when i zipped my package com.xi its name changed to com.
So imported archive name is 'com'
does it makes any difference..
in udf in import text box i wrote 'com.*;'
is it correct?
hi all,
thanks ... i was able to execute my function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
did you activate it ?
did you import in inside the same software component ?
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
My request -- first rename from com tosome other name.
-- remove all previously imported archeives
- create the Jar file and import under imported archieves
- in MM use the name in import column inUDF
in UDF you have to use package.class name.
Also see the below links
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Regards
Chilla
Message was edited by:
Chandra Sekhar Chilla
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.