I added two custom fields through AET to General Data of the BP. Both the fields are dropdown boxes. Based on the value selected on field 'A' then the dropdown values have to enabled or disabled.
My question is when I selected the dropdown value, I am getting the below error
CX_BOL_EXCEPTION - Access Previously Deleted Entity
Class : CL_CRM_BOL_ENTITY
Method : reread_entity
Line = 169
I referred to the existing forums, which are similar to mine but could not able to exactly figure out the issue. Could anyone help me?
Thanks of for your reply. Actually they(not me) added one custom attribute in General Data of the Business Partner screen. I think they added through AET( I dont know whether they added through rapid tool since ours is EHP version). They set the values for this attribute. This attribute type is dropdown. There is no 'V' method defined for this attribute. Till yesterday I was fighting with the issue like this attribute setter method is not being triggered whenever value is selected from dropdown. Now I resolved the issue by uncommenting the below code in 'P' Method. Now the new issue is whenever value is selected from the dropdown, I am gettting the above issue.
rv_value = 'MEMBERTYPE'.
Code in the above Issue class(CL_CRM_BOL_CORE) and method is reread_entity, where exactly the issue is coming.
I am not deleting the entry anywhere but just selecting the dropdown value.
if IV_ENTITY->MY_MANAGER_ENTRY is not bound or IV_ENTITY->CONTAINER_PROXY is not bound.
* entity does not longer exist
raise exception type CX_BOL_EXCEPTION
TEXTID = CX_BOL_EXCEPTION=>ENTITY_ALREADY_FREED.