Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP objects - what a headache!!!

Former Member
0 Likes
665

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????

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
617

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

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
618

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

Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
617

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

Read only

Former Member
0 Likes
617

Thanks a bunch Rich!!!

I'd never have figured that out by myself