JDE BSFN throwing error when called from java services

395 Views Asked by At

I am trying to call a JDE BSFN from a Java servlet. The business function throws an exception when it has numeric or date as input parameters. However, it works fine when input parameter is a string.The error is com.jdedwards.system.connector.dynamic.ServerfailureException:Fail to execute BSFNmethod com.jdedwards.system.kernel.callObjectSystemException.

1

There are 1 best solutions below

3
On

In E1, numerics are actually MATH_NUMERIC which is a struct... not an int or float.

struct tag MATH_NUMERIC
{
   ZCHAR String [MAXLEN_MATH_NUMERIC + 1];
   BYTE  Sign;
   ZCHAR EditCode;
   short nDecimalPosition;
   short nLength;
   WORD  wFlags;
   ZCHAR szCurrency [4];
   Short nCurrencyDecimals;
   short nPrecision;
};

Same for JDEDATE,

struct tag JDEDATE
{
   short nYear;
   short nMonth;
   short nDay;
};

So... it sounds like maybe you are not passing the correct type?

Here is more info on E1 types: https://docs.oracle.com/cd/E17984_01/doc.898/e14699/e1_defined_structures.htm#g8d6ab57f7cedeaac_ef90c_10a77c8e3f7__76c5