4 Replies Latest reply: Jul 14, 2012 4:56 PM by Baasanthi Ch RSS

How to resolve Acces Previously Deleted Entity Line 169

Baasanthi Ch
Currently Being Moderated

Hi all,

              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,

Baasanthi.

  • Re: How to resolve Acces Previously Deleted Entity Line 169
    Nithish PP
    Currently Being Moderated

    Hi Basanthi,

     

    Can you provide more details  where this exception is being raised . Is it in your server event of the first drop down field ?

     

    Also post the code.

     

    Regards,

    Nithish

    • Re: How to resolve Acces Previously Deleted Entity Line 169
      Baasanthi Ch
      Currently Being Moderated

      Hi,

             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.

       

      Method GET_P_ZZMEMBER_TYPE.

       

        CASE iv_property.



        WHEN if_bsp_wd_model_setter_getter=>FP_SERVER_EVENT.



          rv_value = 'MEMBERTYPE'.



      ENDCASE.

       

      **************

      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

                exporting

                  TEXTID = CX_BOL_EXCEPTION=>ENTITY_ALREADY_FREED.

            endif.

Actions