Symptom
An OData GET request which is trying to filter ($filter) on an expanded ($expand) entity set against a V4 service fails with the below dump. The same request might succeed in other systems which has higher SAP_GWFND versions.
Category ABAP programming error
Runtime Errors MOVE_CAST_ERROR
Except. CX_SY_MOVE_CAST_ERROR
ABAP Program /IWBEP/CL_V4_FILTER_NODE======CP
Application Component OPU-GW-COR
An exception has occurred which is explained in more detail below. The exception is assigned to class 'CX_SY_MOVE_CAST_ERROR' and was not caught in procedure "BUILD_FROM_TABLE" "(METHOD)", nor was it propagated by a RAISING clause. Since the caller of the procedure could not have anticipated this exception, the current program was terminated. The reason for the exception is:
During the 'CAST' operation ('?=' or 'MOVE TO') an attempt was made to assign a reference to a reference variable. The current content of the source variable is not compatible with the target variable however.
Source type: \CLASS=/IWBEP/CL_V4_MED_NAV_PROP
Target type: "\INTERFACE=/IWBEP/IF_V4_MED_PRIM_PROP_R"
/IWBEP/CL_V4_FILTER_NODE-BUILD_FROM_TABLE
Read more...
Environment
SAP Gateway
Product
Keywords
filter+expand, expanding, filtered, howto, how-to, $expand, $filter , KBA , OPU-GW-COR , Framework , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.