Problem with DDIC length calculation in CL_SQL_METADATA_ORA

[] [] [] [] [] [] [] [] [] []

Symptom
You are using DB connect to connect an external Oracle database with a UTF-8 character set to an SAP system. When the method GET_COLUMNS of the class CL_SQL_METADATA_ORA is called for a table of the external database, an unusable ABAP Dictionary (DDIC) length is returned for some or all of the VARCHAR2 [...]

MDI: Method getDescription for data elements terminates

[] [] [] [] [] [] [] [] []

Symptom
Calling the MDI method getDescription() for a data element leads to a NullPointerException.
You receive the following stack traces:
java.lang.NullPointerException at com.sap.mdi.ddtypes.DDDataelement.getDescription(
DDDataelement.java:305)
at com.sap.dictionary.types.mdi.util.TextServices.getDescription(
TextServices.java:165)
or
com.sap.dictionary.types.mdi.util.TextServices.getQuickInfo(
DdDataType.java:219)
or the following SAP Java Connector (JCo) exception:
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:
The function module “DD_DTEL_GET” cannot be used for ‘remote’ calls.
In addition, the method getReptext() may also be affected.
Other terms
MetaDataInterface, DDDataelement, Dictionary metadata, getDescription
Reason and Prerequisites
A [...]