I've created a simple object to store some additional attributes which have a 1 to 1 relationship with the BTOrder object.
I've created an implementation class for my simple object and this class inherits from CL_CRM_GENIL_ABSTR_SO_HANDLER.
The "CREATE" method in this class has been redefined, and inside this method I have generated a new GUID and passed this guid to my object list via IV_SIMPLE_OBJ_LIST->ADD_OBJECT( ).
In the DO_PREPARE_OUTPUT method of my custom view I then call the "create" of the entity factory class to create an entity instance.
However, the application terminates with run time error "Access Previously Deleted Entity" (exception class CX_BOL_EXCEPTION).
Can anyone help me out with the correct steps to create a simple object as well as what I might be doing wrong in my implementation class?
I am on CRM 5.0.
Any help would be greatly appreciated!
p.s. At this stage in my program I am only interested in displaying the attributes of my new simple object as editable input fields, I will worry about the saving of the SO when I get there 😊