cancel
Showing results for 
Search instead for 
Did you mean: 

JCoException: Division by 0 (type P)

Former Member
0 Kudos

I'm not sure if this is the right forum still posting it here as could not find any appropriate forum for Java Jco problems.

Hi Experts,

I'm getting this exception while calling BAPI_INCOMINGINVOICE_CREATE using SapJco3

Caused by: com.sap.conn.jco.JCoException: Division by 0 (type P) in program /IDT/JOURNEY_AUDIT_SAVE_FRM_GLCP      

  at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:677) ~[na:na]

  at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1830) ~[na:na]

  at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120) ~[na:na]

  at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953) ~[na:na]

  at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1317) ~[na:na]

  at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1288) ~[na:na]

  at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:302) ~[na:na]

Any idea what is going wrong here?

Accepted Solutions (1)

Accepted Solutions (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Amit,

In the BAPI code (or in code it calls) there is some place where a division by 0 occurs. This exception in ABAP is propagated to the Java side, wrapped in a JCoException and thrown to the Java application. So, no issue in your JCo code but in the ABAP code.

Best regards,

Markus

Former Member
0 Kudos

Thanks Markus. I found out the same.

Answers (0)