Skip to Content
Former Member
Feb 17, 2008 at 11:23 PM

Model Binding: "Missing reference when converting data object"



I'm having problems with model binding on fields in a structure witch has refference to a field in another table. For example the MARC structure where field MINBE has a refference field MEINS in table MARA.

When I'm binding this field in my BSP i get the error:

"The following error text was processed in the system:

BSP exception: Missing reference when converting data object MINBE"

Now I have debugged my way to the method GET_CURRENCY_DECIMALS( ) in class CL_BSP_MODEL where the error occours in the following code:

if l_dfies_wa-reftable ne l_dfies_wa-tabname.
  raise exception type CX_BSP_CONV_ILLEGAL_REF
    exporting name = l_fieldname.

l_dfies_wa-reftable contains 'MARA'.

l_dfies_wa-tabname contains 'MARC'.

Does anyone have a solkution to this problem? I havn't been able to find any solution here in this forum yet, and I'm not interested in a solution where I make a copy on the MARC structure and change the refference fields and tables, because the error dosn't occoure if the refference table is the same as the table for the structure.

My very simple BSP example:

<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="Binding view " >
    <htmlb:form  >
        id  = "minbe"
        submitOnEnter = "TRUE"
        value = "//model_binding/marc_structure.minbe" />

Regards Michael.