Skip to Content
0
Former Member
Oct 03, 2010 at 08:21 PM

MDM Tuple fields not Editable

34 Views

Hello,

I have developed a Custom WD wrapper application and consumed some standard UIu2019s created in the MDM Web dynpro Configurator. My issue is that when i place tuple fields directly on the user interface of the Item Details Web Dynpro component they are non editable. I have followed SAP documentation and used the following methods to make them editable :

setTupleInternalFieldsPath( java.lang.String[] tupleFieldCodesPath, java.lang.Integer[] tupleValueIds )

And

setTupleInternalFieldProperty( java.lang.String[] tupleFieldCodesPath, com.sap.mdm.wdcomponents.model.userexits.FieldLayoutProperties.FieldLayoutProperty property, boolean value )

I created an event handler method s for both the editrecord event and the recordloaded event of my used component and used the above methods in both but i am still not able to set these fields to editable. Any help would be much appreciated as i have been stuck on this for a long time. Below is the code i have been using.

public void LoadBillingDocs(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin LoadBillingDocs(ServerEvent)

try {

wdThis.wdGetCustSalesDataBillInterface().setTupleInternalFieldsPath(new String[]{"MDM_SALES_DATA","MDM_CURRENCY"}, new Integer[]{149, 12});

wdThis.wdGetCustSalesDataBillInterface().setTupleInternalFieldProperty(new String[]{"MDM_SALES_DATA","MDM_CURRENCY "}, FieldLayoutProperty.READ_ONLY, false);

} catch (WDComponentsException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

//@@end

}

Many thanks