cancel
Showing results for 
Search instead for 
Did you mean: 

Type conversion error

Former Member
0 Kudos

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#

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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