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

Creating Objects ?

Former Member
0 Likes
628

Hi All,

I have create a local class definition and its corresponding implementation in my custom program. When i tried to create a object of this class it gave a error "Statement is not accessible" line pointing to the the create object statement. But when i placed the create object statement under START-OF-SELECTION event, the error went away and the code executed successfully.

Can you please let me know the reason behing this and generally under which event the local class definition and implementation should be placed and why ?

Thanks & Regards,

Navneeth K.

5 REPLIES 5
Read only

Former Member
0 Likes
598

Hi navneeth,

Being an active SCN member having more than 1000 points you should have read the [Rules of Engagement.|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].

And according to that you cannot post Duplicate/Cross-Forum Posts as you have done by posting the same question in the ABAP General Forum below;

As you got answers for the above thread, i think you can close this one.

Regards

Karthik D

Read only

0 Likes
598

>

> As you got answers for the above thread, i think you can close this one.

Better to close both ones...

Read only

matt
Active Contributor
0 Likes
598

He should close the other one. This one is in the right place.

Read only

0 Likes
598

Sorry

Read only

0 Likes
598

Now you can see what sort of mess this creates

Please close both threads, cross reference them and resist the temptation to cross-post in future.

Thanks,

Julius