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

Former Member
34,355

Hi All,

In a syntax check for a function pool SAPLZBWFI i get the error saying "Statement is not accessible" for include ZBW_FI_AR_4_DATA.

The function pool has the foll includes..

INCLUDE LZBWFITOP. " Global Data

INCLUDE LZBWFIUXX. " Function Modules

*******************************************************************

  • User-defined Include-files (if necessary). *

*******************************************************************

  • INCLUDE LZBWFIF... " Subprograms

  • INCLUDE LZBWFIO... " PBO-Modules

  • INCLUDE LZBWFII... " PAI-Modules

INCLUDE ZBW_FI_AP_4_DATA. " BW A/P Data Enhancements

INCLUDE ZBW_FI_AR_4_DATA. " BW A/R Data Enhancements

INCLUDE ZBW_FI_GL_4_DATA. " BW G/L Data Enhancements

The include ZBW_FI_AR_4_DATA has the normal ABAP code.

Please help me figuring out this error.

Thanks in advance..

Smita.

1 ACCEPTED SOLUTION
Read only

zeeshan_xt
Explorer
13,509

I got the same error and fixed it. Problem was that I did not have the START-OF-SELECTION event in my program.

19 REPLIES 19
Read only

Former Member
0 Likes
13,509

You have to activate both the function group and include together as the include is a part of the function group.You can go to se80->right click on function group and activate

Read only

0 Likes
13,509

Activation in SE80 gives the same error..

Read only

baskaran00
Active Participant
0 Likes
13,509

Hi,

after the data Declaration part of ZBW_FI_AR_4_DATA just include

"<b>at selection-screen."</b>

Hope now it works.

Read only

0 Likes
13,509

This in turn gives an erorr saying incorrect nesting...for case endacse..

Read only

Former Member
0 Likes
13,509

Hi,

Goto transaction SE80. Select "Envionment" main menu option, select inactive object. Chech here you function group is listed or not. if yes then activate it.

i think it will help.

Thanks

Read only

0 Likes
13,509

No it does not come as an inactive objetc...

Read only

Former Member
0 Likes
13,509

Hi,

two checks:

1)on dbl-clicking on the include name are you able to navigate to that include and is that include active.

2) Comment this include statement and then check if the same error is occuring for 'ZBW_FI_GL_4_DATA'.

If yes then maybe you can rewrite the include statement's again above the commented lines and check.

Please close the thread is solved

Regards

Nishant

Message was edited by: Nishant Rustagi

Read only

0 Likes
13,509

Hi Nishant,

Yes dbl click on the include does take me to the code..and it is active...i m working on ECC 6.0...in 4.6c it just gives just a warning....but in ECC 6.0 it gives an error msg....

Code lies only in the include where the error occurs...the other two includes contain no statements...also i tried commenting the include ZBW_FI_AR_4_DATA but then it is throws no errors...

Read only

0 Likes
13,509

Hi Smita,

on syntax checck its giving that error....even then, try ACTIVATING it, it ll work fine.. even i had this problem, but then cudnt figure out wat causes the error in syntax check, even though it gets activated and the code also works perfectly fine...

hope it helps..

Read only

0 Likes
13,509

Hi,

This is not the issue with the include but with the code that you have written.

basically what's it's trying to say is that the code that you have written is not accessible.

If this include has data declaration then move it after the TOP include and this will work

So write all the includes having only data declaration together and then after that you should have the UXX include.

Regards

Nishant

Message was edited by: Nishant Rustagi

Read only

anversha_s
Active Contributor
0 Likes
13,509

hi,

chk whthr u reaching inside that on double clicking

ZBW_FI_AR_4_DATA.

if u r reaching there, look i fit is active or not.

if not activate it.

come back to main program

activate the whole program, by right click the main program and click that activate.

rgds

anver

mark all hlpful answers

Read only

Former Member
0 Likes
13,509

Hi,

Check whether following are includes and not report programs :

ZBW_FI_AP_4_DATA

ZBW_FI_AR_4_DATA

ZBW_FI_GL_4_DATA

Goto SE38, enter the name and open the include. Click GOTO->ATTRIBUTES. Check whether the TYPE is INCLUDE.

Best regards,

Prashant

Read only

former_member257018
Discoverer
0 Likes
13,509

Hi all,

I have the same problem. While upgrading to ECC6

I have a lot of check problems. all of them "Statement is not accessible". If I understood well, I should rewrite the code and take out code statements from the data includes ?

Thanks.

Einav.

Read only

0 Likes
13,509

Hi Tal Izhar,

What I did is remove the code and placed it into an exit..

Read only

former_member257018
Discoverer
0 Likes
13,509

Hi Smita,

My problem is that this error occured in many programs

(many of them in infotype - HR module - that we developed alone ). There is no exit, I should remark the code and write it again in another include. The question is, if there is any note or Support package that fix it ? instead of ficing code.

thanks,

Einav.

Read only

Former Member
0 Likes
13,509

Hi smitha,

Generally 'statement no accessble' error occurs when we forget fullstop at the end of any statement

so check in the INCLUDE ZBW_FI_AP_4_DATA(before INCLUDE ZBW_FI_AR_4_DATA) if any full stop missed

Read only

former_member257018
Discoverer
0 Likes
13,509

Hi Chandrasekhar,

What do you mean - full stop ? I understand it's limitation between includes. But i don't know the syntax.

Einav.

Read only

zeeshan_xt
Explorer
13,510

I got the same error and fixed it. Problem was that I did not have the START-OF-SELECTION event in my program.

Read only

13,509
*Some heroes don't wear capes.