Application Development 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: 

Error

Former Member
0 Kudos

Hi,

What are the possible cases in which the statement not accessible error could be thrown other than these two conditions

1) period missing condition and

2) the object not activated

1 ACCEPTED SOLUTION

Former Member
0 Kudos

A state ment after an ENDFORM.

Rob

4 REPLIES 4

Former Member
0 Kudos

A state ment after an ENDFORM.

Rob

0 Kudos

Hi Rob,

Thank you but the stmt is within the include and that include is enclosed well within the form and endform and the period is proper it is activated but iam getting a statement not accessible .... can you help

0 Kudos

if u have include, check where u r putting this statment (INCLUDE <include name>),,try changing its position...

former_member223537
Active Contributor
0 Kudos

Hi,

If the Include statement is after the variable is used, then you will get Statement not accessible error.

for eg.

<b>INCORRECT:</b>

v_qty = v_qty + 10.

INCLUDE ZDATA_DECLARATION_TOP.

In Include ZDATA_DECLARATION_TOP

Data : v_qty type i.

So it will give error.

<b>Correct:</b>

INCLUDE ZDATA_DECLARATION_TOP.

V_qty = v_qty + 10.

Best regards,

Prashant