Skip to Content

Abap Object .

Hi Folks ,

i'm writing a program which contain one class and it's implemetation .

i choose to put the code that related to the(Definition and implementation ) class in INCLUDE file , so that my program looks like this :

report repname .

include class_stuff.

DATA: cref type ref to class_struct ,

....

....

.

CREATE OBJECT cref .

...

cref->meth(var1 = val1 var2 = val2 .... ) .

....

...

and so on .

when i try to execute the program it doesn't run properly , i wachted closely with the debugger and i noticed that after the INCLUDE class_stuff statement it's terminate .

can someone know how to explain this situation and how to avoid from short execution of the program ?

is it possible to define local class inside include ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 01, 2005 at 04:58 PM

    Do you have a start-of-selection statement?

    Put one after your "DATA" statement and before your "CREATE OBJECT" statement. Should work then.

    Regards,

    Rich Heilman

    Message was edited by: Rich Heilman

    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.