/scripts/ahub.form.attachments.js
0

SAP CRM Desktop Connection - ContactPerson enhancement with Language field

Apr 18, 2017 at 07:05 AM

39

avatar image

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!

Regards,

Kiran

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers

Skip to Content