‎2006 Sep 22 7:45 AM
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.
‎2015 Jul 17 11:38 PM
I got the same error and fixed it. Problem was that I did not have the START-OF-SELECTION event in my program.
‎2006 Sep 22 7:47 AM
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
‎2006 Sep 22 7:53 AM
‎2006 Sep 22 7:49 AM
Hi,
after the data Declaration part of ZBW_FI_AR_4_DATA just include
"<b>at selection-screen."</b>
Hope now it works.
‎2006 Sep 22 7:58 AM
This in turn gives an erorr saying incorrect nesting...for case endacse..
‎2006 Sep 22 7:51 AM
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
‎2006 Sep 22 7:55 AM
‎2006 Sep 22 8:01 AM
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
‎2006 Sep 22 8:12 AM
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...
‎2006 Sep 22 8:27 AM
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..
‎2006 Sep 22 8:31 AM
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
‎2006 Sep 22 8:07 AM
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
‎2006 Sep 22 8:40 AM
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
‎2006 Oct 04 12:18 PM
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.
‎2006 Oct 04 12:24 PM
Hi Tal Izhar,
What I did is remove the code and placed it into an exit..
‎2006 Oct 04 12:40 PM
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.
‎2006 Oct 04 12:45 PM
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
‎2006 Oct 04 1:12 PM
Hi Chandrasekhar,
What do you mean - full stop ? I understand it's limitation between includes. But i don't know the syntax.
Einav.
‎2015 Jul 17 11:38 PM
I got the same error and fixed it. Problem was that I did not have the START-OF-SELECTION event in my program.
‎2020 Jun 17 3:12 PM