Hello everybody,
in a class I want to set a new telephone no in an existing entity BuilContactPersonStandardAddressRel. In addition I also set a mobile no, fax and email.
If fax or email are changing, the data is updated in the relation. If the telephone no is changing, the standard telephone no set before, stays the same, and the mobil no is overwritten with the new telephone no set in the code below. This behaviour is the same, when I try to change the standard telephone no through transaction "genil_bol_browser". I can't change it, everytime the mobilno. gets changed.
We are on SAP CRM 7.0 EHP1 SP 12.
Code snippet:
DATA: ls_attributes TYPE crmst_conp_address_buil,
lo_address TYPE REF TO cl_crm_bol_entity.
...first get the entity....
*---set the attributes
ls_attributes-telephonetel = as_bp_extranet-phone.
ls_attributes-telephonemob = as_bp_extranet-mobile.
ls_attributes-faxfax = as_bp_extranet-fax.
ls_attributes-e_mailsmt = as_bp_extranet-email.
CALL METHOD lo_address->if_bol_bo_property_access~set_properties
EXPORTING
is_attributes = ls_attributes.
Regards
Michael