Hola BSP'ers,
Seems like this error would be pretty straight forward but I am getting bloody from banging head against the wall on this one. First some background, I initially wrote my BSP with one controller and many views. Now I want to switch to one main controller and some sub-controller(actually someone else built the framework and now I a filling in the blanks). So I am getting the error OBJECTS_OBJREF_NOT_ASSIGNED on the tables attribute of my list box and I can't figure out why. the ABAP table is an attribute of my class and it passes a syntax check. So I debugged the code and got the following:
%_lb1->id = 'lb1'.
%_lb1->selections = prm_model->buylocs.
GET REFERENCE OF prm_model->buyloc INTO %_lb1->table.
But interestingly enough when I debugged the code in my original BSP (where I had one controller and many views) the code looked like this:
%_lb1->id = 'lb1'.
GET REFERENCE OF prm_model->buyloc INTO %_lb1->table.
%_lb1->selections = prm_model->buylocs.
So I understand the compilers complaint that I am trying to do something to the list box before I GET REFERENCE to it but where did I go wrong. I would imagine that i defined something wrong but I can't see where. Any ideas?
Happy Holidays!
Rich
Add a comment