Mapping Data Structure Errors with jdeCallObject
Any Business Function calling an external Business Function must use jdeCallObject. When using jdeCallObject, be sure to match the Error IDs correctly.
You need to match the Ids from the original Business Function with the Error Ids of the Business Function in jdeCallObject. A data structure is used in the jdeCallObject to accomplish this task.
/************************************************************* * Variable declarations *************************************************************/ CALLMAP cm_D0000026[2] = {{IDERRmnDisplayExchgRate_62, IDERRmnExchangeRate_2}}; ID idReturnCode = ER_SUCCESS; /* Return Code */ /************************************************************ * Business Function structures *********************************************************/ DSD0000026 dsD0000026 = {0}; /* Edit Tolerance */ idReturnCode = jdeCallObject(_J("EditExchanbeRateTolerance"), NULL, lpBhvrCom, lpVoid, (void *)&dsD0000026, (CALLMAP *)&cm_D0000026, ND0000026, (JCHAR *)NULL, (JCHAR *)NULL, (int)0);