I have a table m_models which has two fields, model_id and instance. Model id is a string and instance is an instance of a class, it can be either workitem class - ZWorkitem, or invoice classs zinvoice class.
Now both of above classes are inherited from cl_bsp_controller2, and some of their data is different.
Now I want to retrieve instance of the class from table when model id is invoice, but i am not able to speficy the class type for the object that should store the instance, if i use cl_bsp_controller2 i miss some data and when i use zinvoice it gives me another error.
Can you please advise?
I can provide more details of the issue if you want.