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

Statement not accessible in a function pool...error..

Former Member
0 Likes
594

Hi,

I have a function pool with a top include which has data declaration as well a statement like

struct1-text_1 = ' value'(017).

This code was developed in 4.6c.

I get a warning for this statement in 4.6c saying "Statement is not accessible".

But the same statement in ECC 6 box gives me an error saying the same, i.e., " Statement is not accessible" which I need to resolve.

What can be done ?

thks

4 REPLIES 4
Read only

Former Member
0 Likes
571

This is an awfully basic question.

It's not accessable because it can never be executed. It's neither in a FM nor a form.

Rob

Read only

0 Likes
571

Yes Rob, I completely agree that it is a basic question. But why this was just shown as a warning in 4.6 and error in ECC 6.0 was my concern. I do understand that i need to find a better location to place this statement. Sorry that I was not clear in my question.

thks

Read only

matt
Active Contributor
0 Likes
571

Warnings in lower releases often become error messages in later releases. As Rob says - this is terribly basic - what don't you understand about the error message?

Just delete the statement from the top include. It simply doesn't do anything.

Read only

0 Likes
571

Thanks