on 07-15-2011 10:45 AM
HI,
We have imported the SRM SERVER 7.01 and SRM SERVER IC 7.01 onto our PI system. And copied the follwoing mappings from namespace 'http://sap.com/xi/SRM/SupplierEnablement/Global/IC' to our Software Component Version.
1. MM2SUSOrderCreate
2. SUS2MMOrderResponse
After makking some changes in the filed we checked the mapping, but it throwing the following error from UDF.
1)Function another, Line 3:
not a statement if (a.equals("001")) Object iter =storage.fullNameMap.get("/ORDERS02/IDOC/E1EDP01/E1EDP19/KTEXT"); ^
Function another, Line 3:
';' expected if (a.equals("001")) Object iter =storage.fullNameMap.get("/ORDERS02/IDOC/E1EDP01/E1EDP19/KTEXT"); ^ 2 errors
2) Source text of object Message Mapping: MM2SUSOrderCreate | http://pg.com/xi/pdm/b2b/global/suppconn/sus has syntax errors:
Function checkDescr, Line 2:
cannot find symbol symbol : variable context location: class com.sap.xi.tf._MM2SUSOrderCreate_ String value = context.getIterator(0).getValue(); ^
3) Function name2, Line 2:
cannot find symbol symbol : variable context location: class com.sap.xi.tf._MM2SUSOrderCreate_ IResIterator iter= context.getIterator(0); ^ Note: /usr/sap/GDD/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapdcccc054aec611e0c313000000cab07a/source/com/sap/xi/tf/_MM2SUSOrderCreate_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors
4) Source text of object Message Mapping: SUS2MMOrderResponse | http://sap.com/xi/SRM/SupplierEnablement/Global/IC has syntax errors:
Function textTest, Line 6:
array required, but java.lang.String found
buf.append(a<i>);
^
Function textTest, Line 10:
cannot find symbol
symbol : variable result
location: class com.sap.xi.tf._SUS2MMOrderResponse_
result.add(ausg);
^
Could any one please help me out on this?
Regards,
Baskaran K
Hi Baskaran,
I am using the SRM std. content too and getting the below errors after copying into my SWCV and activating.
4) Source text of object Message Mapping: SUS2MMOrderResponse
|http://sap.com/xi/SRM/SupplierEnablement/Global/IC has syntax errors:
Function textTest, Line 6:
array required, but java.lang.String found
buf.append(a<i>);
^
Function textTest, Line 10:
cannot find symbol
symbol : variable result
location: class com.sap.xi.tf._SUS2MMOrderResponse_
result.add(ausg);
^
Can u please let me know what changes have you done to make it working.
Thanks
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Could you please post your UDF here. so that i can check and let you know what's the wrong in the UDF. so that it will be easy to resolve the problem.
Thanks,
Amar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Amar,
Please find the UDF here. These are all not custom created UDF. All are available with SAP standard content SRM SERVER IC 7.01 in Message Mapping MM2SUSOrderCreate under namespace http://sap.com/xi/SRM/SupplierEnablement/Global/IC
1) Check Desc:
*****************
public String checkDescr(String a, String b, Container container) throws StreamTransformationException{
//write your code here
String value = context.getIterator(0).getValue();
if (value.equals("001")) return "something else";//context.getIterator(0).getValue();
//context.insertContextChange();
return "some";
}
2) Another:
*************
public String another(String a, Container container) throws StreamTransformationException{
//write your code here
//write your code here
if (a.equals("001")) Object iter =storage.fullNameMap.get("/ORDERS02/IDOC/E1EDP01/E1EDP19/KTEXT");
context.insertContextChange();
return "some";
}
3) Compound(name2):
**************************
public String name2(String a, Container container) throws StreamTransformationException{
//write your code here
IResIterator iter= context.getIterator(0);
String str="";
while (!iter.isLastOne()){
str=striter.getValue()"\n";
iter.gotoNextValue();
}
return str;
}
Thanks and Regards,
Baskaran K
Hi Bhaskaran,
Still are you facing the issue ? its problem with your content language , Check the mappings Original language on the mapping. Eventhogh it showing "Display Language" English the Original Language is Germany , hence you are getting this error while activating your eidted mappings.
chekcing Original Language --> Open MM2SUSOrderCreate mapping -->properties button (i in Blue Color) --> there you can see ur Original language and Display Language.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Yes, still the problem exist even after changing the Language to German.
I dont think because of Original language.
For ex. It because of Execution Type for UDF 'textTest' in MM 'SUS2MMOrderResponse'. It has the value 'Single Values' instead of 'All the values of Queue' or 'All the values of Context'.
Regards,
Baskaran K
Hi Bhaskar,
Yes, I have faced this issue and resolved it by following steps.
The above Errors becasue of Depricated Java APIs . You can avoid these errors by commenting java code in following java UDF's and activate them.
1. Checkdesr,
2. Compound ( Name2),
3. Another.
OR
add the u201C -Xlintu201D in java class path
When you copied the mappings MM2SUSOrderCreate and SUS2MMOrderResponse, did you copy the datatype, message type and service interfaces associated with these mappings to your SWCV?
When you are copying the mappings, please also copy the entire content associated with it and check if you still have the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The issue seems to be in the custom UDFs that you have written for the copied mappings. Please check the code in these UDFs.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.