avatar image
Former Member

SAP CRM Desktop Connection - ContactPerson enhancement with Language field

Hi Experts,

I am trying to enhance the Contact form in outlook with language field.So first I enhanced the ContactPerson entity type in Odata service using MPC extension,but it is giving error in the metadata like "Property 'LANGUAGE' of data object 'ContactPerson' has no Internal type assigned" .please find the below code in mpc_ext.

lo_entity_type = model->get_entity_type( iv_entity_name=/crmgws/if_metadata_constants=>entity_contactperson ).

lo_property = lo_entity_type->create_property( iv_property_name = 'LANGUAGE' iv_abap_fieldname = 'SPTXT' ).

lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = '16'). lo_property->set_nullable( abap_true ).

lo_entity_type->bind_structure( iv_structure_name = '/CRMGWS/CONTACTPERSON' iv_bind_conversions = abap_true ).

I am not sure why abap field name "SPTXT" is not considering here...Please sugesst me here.

Thanks in Advance!



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers

Skip to Content