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

ABAP objects - what a headache!!!

Howdy,

Objects is really getting me down.

I had a program that worked really nicely when I'd created the classes locally within the program.

Now I've created the class globally via SE24 and whenever I try to run the program I get a dump beacuse of a null value (?).

Anyway I think this is occuring because I have this code:

DATA: r_html TYPE REF TO zzcl_http_assign.

and then when I try to create the object via:

CREATE object r_html.

I get an error saying that:

"You cannot create an instance of the class "ZZCL_HTTP_ASSIGN" outside the class. -"

Anyone have any idea what is going on????

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 14, 2005 at 05:36 PM

    In SE24, under the properties tab, make sure that the instantiation field is set to "Public".

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2005 at 05:39 PM

    Also, I know that it is a little confusing now(ABAP objects), but keep working with it, eventually it will just click. Good Luck.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 05:50 PM

    Thanks a bunch Rich!!!

    I'd never have figured that out by myself 😔

    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.