Skip to Content
author's profile photo Former Member
Former Member

OBJECTS_OBJREF_NOT_ASSIGNED error

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
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2004 at 02:58 AM

    Hey,

    Sorry for the caps in the subject, I cut and pasted the error from ST22

    Cheers,

    Rich

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.