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: Statement is not accessible

Former Member
0 Likes
508

Hi,

In an include BDCRECX1, the variable NODATA has been declared as a parameter. When I try to use this variable in my program the program is giving an error stating that Statement is not accessible.

I have put include BDCRECX1 in my program.Even then why I am getting this error? How to solve this?

3 REPLIES 3
Read only

Former Member
0 Likes
463

This type of error is generally issued when you have code that resembles this


FORM A.
   Do Something
ENDFORM.
A = B.   "<==  This line is not accessible.
Form B.
Do Something Else.
ENDFORM.

Read only

Former Member
0 Likes
463

First declare your include ...

include BDCRECX1 .

start-of-selection.

and then use NODATA .. in the program ...

Read only

vinod_vemuru2
Active Contributor
0 Likes
463

Hi Suman,

Where did u included the statement INCLUDE BDCRECX1.

Ur include statement should present before u access the variable nodata. Check this and revert back.

Thanks,

Vinod.