on 04-18-2017 8:05 AM
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
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.