cancel
Showing results for 
Search instead for 
Did you mean: 

Error :JCO_ERROR_FIELD_NOT_FOUND with JCo3

former_member225041
Participant
0 Kudos

Hi Experts,

I have created a java application to send a XML to SAP inorder generate an IDOC by using SAP JCo3. But during parsing i am facing an error

" Field COSMAS01 not a member of EDI_DC40StackTrace:com.sap.conn.jco.JCoRuntimeException: (127) JCO_ERROR_FIELD_NOT_FOUND : Field COSMAS01 not a member of EDI_DC40

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111) "

But same XML is working fine when i am using java application supporting SAP JCo2 version.

Where am i making mistake ? What could be the possible rechecks i need to perform ?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi vinay,

Refer these links,

http://help.sap.com/saphelp_nw04/helpdata/en/f6/daea401675752ae10000000a155106/frameset.htm

https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/705f2b2e-e77d-2b10-de8a-95f37f4c7022

/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection

Regards,

Sunaina Reddy T

Answers (3)

Answers (3)

ravindra_bollapalli2
Active Contributor
0 Kudos

hi vinay,

look this blog it might help u

/people/ayyapparaj.kv/blog/2008/11/21/java-to-r3-sending-idocs-using-sapidoc-jar

let me know u need any further information

bvr

Former Member
0 Kudos

Hi,

Have a look at below link .

https://wiki.sdn.sap.com/wiki/display/JSTSG/%28GP%29AnExceptionIs+Thrown

Regards,

Krishna chaitanya.

Former Member
0 Kudos

You are probably allocating field COSMAS01 to the wrong EDI Segment.

It really is not part of the EDI_DC40 segment but rather part of the sdata field of an EDI_DD40 segment...

Or maybe COSMAS01 is the value of the xml element (idoc name?) on EDI_DC40 and you defined it as an xml element?

Or COSMAS01 is the value of an attribute and you defined it as an attribute name?

What is your IDOC name?

Remember that you most likely will have to adapt your programs when switching from JCO 2.x to JCO3...