on 01-23-2007 5:59 PM
Hi,
sorry for my second question. After calling a BAPI from R/3 I tried to make a "System.err.println()" for every attribute of my BAPI. Until now I'm not able to print an attribute of type <b>"com.ne.getglobalstructure.types.Aedat"</b> getting from R/3 System. I tried to cast it with Date but it doesn't work. How is it possible to convert this type to date or to String?
regards,
Sharam
IWDNodeElement vec = (IWDNodeElement) myVector.get(i);
IWDNodeInfo nodeInfo = wdContext.nodeGlob_Struc().getNodeInfo();
for (Iterator it = nodeInfo.iterateAttributes(); it.hasNext(); ) {
IWDAttributeInfo attrInfo = (IWDAttributeInfo) it.next();
System.err.println("IWDNODEElement: "+
vec.getAttributeValue(attrInfo.getName().toString()).toString()); <= not work for complex Types
}
Error Message:
com.sap.aii.proxy.framework.core.DateTimeAccessException: Type conversion error, field LMODDATE, complex type class com.ne.getglobalstructure.BAPI__Zcmsrmxmear#
Problem is solved!My mistake was that I send the attribute value (Date) from R/3 To WD as "2006-12-01" instead of "20061201".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.