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

Error

Former Member
0 Likes
627

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
Read only

Former Member
0 Likes
608

A state ment after an ENDFORM.

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
609

A state ment after an ENDFORM.

Rob

Read only

0 Likes
608

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

Read only

0 Likes
608

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

Read only

Former Member
0 Likes
608

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