Getting a java exception when trying to unmarshal IDoc data into the SAP etd Error: Cannot convert a value of ' ' from type java.lang.String to NUM at field PSGNUM. (Doc ID 1028343.1)

Last updated on APRIL 02, 2014

Applies to:

Sun e*Gate - Version 4.1.2 and later
Microsoft Windows (32-bit)
Microsoft Windows (32-bit)
***Checked for relevance on 02-April-2014***

Symptoms

The PSGNUM in the Data Control record of the IDOC_INBOUND_ASYNCHRONOUS (created via BAPI wizard) object is defined as an Int. The PSGNUM field in the data segments of the IDOC_CREMAS03_4X_46C (created via IDOC wizard) object is String. The following line of code throws an exception since the two fields are not compatible: getEAI_SAP_JCO().unmarshal(getEAI_SAP_IDOC());
Error: Cannot convert a value of ' ' from type java.lang.String to NUM at field PSGNUM

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms