Hy all ,
I need your help in BOL programing for a request that consists to get the value of email when creating a related contact in WEBIC and do some checks: :
![email.png]()
The component of this screen is the ICCMP_BP_CP :
![ct.png]()
So i redefine the methode do_validate_input and i put this code :
****************************************************************************************
DATA: lr_window_controller TYPE REF TO cl_bp_cont_mainwindow_impl,
lr_msg_service TYPE REF TO cl_bsp_wd_message_service,
lr_entity TYPE REF TO cl_crm_bol_entity,
lr_col TYPE REF TO if_bol_entity_col,
lv_email TYPE ad_smtpadr ,
gt_contacts TYPE TABLE OF string ,
ls_contacts LIKE LINE OF gt_contacts .
lr_entity ?= me->typed_context->contpersaddressvalnode->collection_wrapper->get_current( ).
TRY.
lr_entity ?= lr_entity->get_related_entity('BuilStandardAddressRel').
CATCH cx_crm_genil_model_error.
RETURN.
ENDTRY.
IF lr_entity IS BOUND.
lv_email = lr_entity->get_property_as_string( 'E_MAILSMT' ).
if lv_email = '.....' .
display popup ...
endif .
********************************************************************************************************************
In webui screen , when i try to save a contact , i have this exception ;
![error.png]()
Thank you by advance ![]()
Hasnaa .