Statement not accessible error
Hi, we have upgraded the project from 46c to ecc version.
In one standard include MV45AFZZ , one statement is added IMPORT itab1chk FROM MEMORY.
In MV45AFZB , the value for itab1chk is getting exported.
In 46c , we r not getting any error when we run the VA01 transaction.
But in ECC, this transaction going for Dump giving error 'The statement is not accessible ' referring to the statement IMPORT itab1chk FROM MEMORY which is in MV45AFZZ include.
I tried by adding ID <KEY> to the IMPORT AND EXPORT statement. But still getting same error.
Can any one please suggest the solution.
Thanks,
laks.
Hi,
You get this Error normally when you are doing a syntax check on the Includes in which the code lines are not between FORM and ENDFORM.
I dont think this is a serious error atleast till 4.7 as the system will allow you to activate the Include. May be the ECC is a bit more stringent on this issue.
I think your problem will be solved if you try to include all the code lines only in the FORM and ENDFORM.
regards,
Mahesh
Similar Messages
-
Statement not accessible error - Any ideas please.
Hello all:
We were using macro from TRMAC table in 4.6C version and it used to give a warning but after upgrading to ECC6.0 it is syntax error! Please look at the code below:
*SELECTION SCREN / PARAMETERS *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
PARAMETERS: p_mode(1) TYPE c DEFAULT 'N' OBLIGATORY,
p_grp LIKE apqi-groupid DEFAULT 'SKF_POST' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN SKIP 1.
unix_pc_path text-001 text-002 text-003.
*Intialization *
*INITIALIZATION.
*At selection screen *
AT SELECTION-SCREEN OUTPUT.
PERFORM format_unixpath(yunixctrl) USING 'YHOME_UX' yhome_ux.
AT SELECTION-SCREEN.
IF ( rdb_pc = 'X' AND yhome_pc IS INITIAL ) OR
( rdb_ux = 'X' AND yname_ux IS INITIAL ).
MESSAGE e000 WITH 'A filename is required'.
ENDIF.
AT USER-COMMAND *
AT USER-COMMAND.
*Start-of-selection *
START-OF-SELECTION.
IF NOT rdb_ux IS INITIAL.
unix_getname yhome_ux yname_ux v_file_in.
PERFORM upload_parse_unix_file.
ELSEIF NOT rdb_pc IS INITIAL.
v_file_in = yhome_pc.
PERFORM upload_parse_pc_file.
ENDIF.
PERFORM skf_posting.
*End-of-selection *
END-OF-SELECTION.
The program does not like the line "unix_pc_path text-001 text-002 text-003." and gives an error "Statement not accessible". I went through some discussion forums on this here but nothing related to macro. Could anyone please give me an idea how I could resolve this? All the answers will be rewarded.
Thanks.
MithunYou cannot put it in START-OF-SELECTION a you need the unix path in the
AT SELECTION-SCREEN FOR OUTPUT event.. move the statement from the selection-screen block to the INITIALIZATION event.
~Suresh -
"Statement not accessible" error in Implicit enhancement - SAPMF05A
Hi,
I am trying to implement Implicit Enhancement in program SAPMF05A, in module transaktions_init. When I click on Edit -> Enhancement Option -> Show implicit enhancement, it displays implicit enhancement at end of module ( after ENDMODULE) statement. When I click " Enhancement" icon, write code and it gives error statement not accessible.
Please suggest.
Regards,
PriyaYou will have to put the code in a module and then call that module.
Rob -
Statement not accessible error in Implicit Enhancement of SAPMPE03
ENDMODULE.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Include MPMKMO00, End S
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZENH_PE03.
MESSAGE 'hi' TYPE 'I'.
ENDENHANCEMENT.
*$*$-End: (1)
As shown above i added a line MESSAGE 'Hi' Type 'I' in the implicit enhancement portion. But it gives me error "Statement not accessible"
ThanksHi Amber,
just in case you have to do something similar again: ABAP Code must always be between MODULE ... ENDMODULE or FORM ... ENDFORM. In the example in this post the statement
MESSAGE 'hi' TYPE 'I'.
is just after an ENDMODULE. statement and so this code can never be reached (or is not accessible ). The implicit enhancement option outside the existing modularization units is used to define completely new MODULEs or FORMs.
Hope this helps!
Regards
Oliver -
Statement not accessible - Syntax error
Hi all,
There is a form within a standard include. The form has an include within it. Its a custom include. So its an exit i suppose. Now i have a problem in the custom include. There is "statement not accessible" error. Find below the code in the custom include.
*& Include ZZIMOVEKVGR4 *
DATA: r_vkorg TYPE RANGE OF vkorg.
CONSTANTS: c_z_salesorg_zzkvgr4 TYPE rvari_vnam VALUE
'Z_SALESORG_ZZKVGR4'.
* Get the values from variant Z_SALESORG_ZZKVGR4 of TVARVC tavle
CALL FUNCTION 'Z_FILL_RANGE_TABLE_FROM_TVARV'
EXPORTING
name = c_z_salesorg_zzkvgr4
* INITLINE = ' '
* LINE_SEPARATOR = ','
TABLES
rngtab = r_vkorg.
* Check for the sales orgranisation in TVARVC table
IF vbrk-vkorg IN r_vkorg.
* Move field Customer group 4 to KOMPCV structure
MOVE vbrp
ENDIF.
Please help me understand how to overcome the same. The function module called has a select query. Does it have something to do.
Pasting here the form that calls this include.
FORM USEREXIT_ACCOUNT_PREP_KOMPCV.
* KOMPCV-zzfield = xxxx-zzfield2.
*{ INSERT TSTK9B000H 1
* TSTK9A05ZS-Begin of changes For scr 7060
* Only for the sale organisation S096
INCLUDE ZZIMOVEKVGR4. "TSTK9A05ZS
* TSTK9A05ZS-End of changes
*} INSERT
ENDFORM.
Thanks & Regards,
Selvakumar M.Hi,
this form in RV60AFZZ is to modify KOMPCV fields.
I can't see any attempts to change those fields in your include.
You can either move your code directly into form routine USEREXIT_ACCOUNT_PREP_KOMPCV, or correct your code in your include to make it work (as Sudhi told before).
Regards.
Klaus -
Statement not accessible in include called in a user-exit
I am working on an upgrade project, and we receive an error 'Statement not accessible.
In the following user exit:
FUNCTION EXIT_SAPLZLWB_002.
INCLUDE ZZLWBU02 .
ENDFUNCTION.
If I go to the include, I get an the error 'statement not accessible'.
I tried to put all the code in the include between a form...endform statement,
but then I get an incorrect nesting error because the form...endform is between a function...endfunction.
How can I solve this?
Thx!
Edited by: christophe latinne on Jan 9, 2009 4:31 PMthis seems to be a clone of a standard SAP function group, and thats why you can;t access the exits here.
EXIT_SAPLZLWB_002
you can create the exits starting with Z* in order to access those at runtime. -
Hi all
there is an error for the below statemnt
APPEND 'Techn.Platz' TO it_fieldnames.
" Statement not accessible"
Thanks
ProtyushaHi Protyusha,
It seems that you are trying to append the complete line of a tabel with this 'Techn.Platz' . Instead you provide the field name that you are trying to append
For ex: it_fieldnames-fieldname.
If still you are not clear then send me the complete code I will explain you in detail.
Regards,
Md Ziauddin -
Statement Not Accessible for a FM
Hi i am getting Statement not accessible syntax error at the Call Function Statement,(bold line) for the following code. Can somebody clarify me why this is happening. Thanks in advance.
PROGRAM ZHR_FEATURE_RLPGR .
TABLES : PERNR.
TABLES : T74HG, PSKEY, T5UB3, T5UB9, T5UBT, T5UBA .
infotypes:0001,0021.
CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'
EXPORTING
_PERNR = PSKEY-PERNR
_BEGDA = PSKEY-BEGDA
_ENDDA = PSKEY-ENDDA
_BAREA = T5UB3-BAREA
_BENGR = T5UBT-BENGR
_BSTAT = T5UB9-BSTAT
_BPLAN = T5UBA-BPLAN
_SUBTY = PSKEY-SUBTY
_OBJPS = PSKEY-OBJPS
IMPORTING
_RLPGR = T74HG-RLPGR
EXCEPTIONS
EVALUATE_FEATURE = 1
CUSTOMER_ERROR = 2
OTHERS = 3Hi,
Try with as below.
CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'
EXPORTING
_pernr =
_begda =
_endda =
_barea =
_bengr =
_bstat =
_bplan =
_subty =
_objps =
iscobra =
_nontx =
IMPORTING
_RLPGR =
EXCEPTIONS
EVALUATE_FEATURE = 1
CUSTOMER_ERROR = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Ram. -
My Mac OSX (version 10.7.5) is coming up with error message when I try to write a disc "The disc can’t be burned because the disc drive is not accessible (error code 0x80020020)." I have tried several discs with the same message - Same also when I tried my external disc writer. Both disc drives will read my discs that have music or photos on it, it just won't write any new discs - any clues?
Hi Klaus1
So, I tried all the suggestions and followed the links - all to no avail.
as you can see, (screenshot below) my iMac is a 21.5 inch late 2009 model which isn't showing in the updates listed above
My system report shows that my Mac has the following:
I reset the PRAM and the SMC - still have the same error message when I try to burn discs. I've used both CD's and DVD's and tried with my external Discwriter too.
Any further suggestions?? -
How to find invalid statements(not syntax error) executed using v$ views
Hi
I want find invalid statements(not syntax error statements) that executed, when some of the applications runs in the server,
for eg: permissions denied, table/view doesn't exit .. etc
I could not able to find it in v$sql views. is there any other view that gives this information?V$ views only contain parsed statements, not incorrect ones.
Max -
Getting error "Statement not accessible"! Please help!
We upgraded from 4.6C to ECC6.0 and some warnings in 4.6C are "syntax errors" in ECC6.0! I have the following code:
SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-T04.
UNIX_SINGLE 'MYPAR1' MYPAR3 P_BDWAVE TEXT-SS3.
SELECTION-SCREEN END OF BLOCK B4.
UNIX_SINGLE is a macro. I found some information on this error here but could not relate my problem to any of those forums! Could someone please help! Any answers will be rewarded.
Thanks.
--MithunDEFINE CLEAN.
CLEAR &1
REFRESH &1
END-OF-DEFINITION.
You call it like this...
CLEAN MY_INTERNAL_TABLE.
Greetings,
Blag. -
"Statement is not accessible." - Error
Hi,
am working for an ECC upgradation project and am getting the above error "Statement is not accessible." at the below coding.
WS_VBELN = XLIPS-VBELN.
Kindly get me a solution <removed by moderator>
Thanks in adv,
Siva
Edited by: Mike Pokraka on Sep 5, 2008 12:26 PMHi all,
Pls check the code below :
DATA: WS_SPLITTOR(3) TYPE C,
WS_SPLIT(1) TYPE C,
WS_SPLIT1(1) TYPE C,
WS_SPLIT2(1) TYPE C,
WS_SPLIT3(1) TYPE C,
WS_VBELN TYPE LIPS-VBELN,
WS_POSNR TYPE LIPS-POSNR,
WS_NO_OF_LOOP(1) TYPE C,
WS_NO_OF_ITEM(1) TYPE C,
WS_BAL(1) TYPE C,
WS_MODNO(10) TYPE C,
PAR_ID(20) TYPE C.
DECLARATION OF INTERNAL TABLE
DATA: INT_XLIPS LIKE XLIPS OCCURS 0 WITH HEADER LINE,
INT_XLIPS2 LIKE XLIPS OCCURS 0 WITH HEADER LINE.
WS_VBELN = XLIPS-VBELN.
WS_POSNR = XLIPS-POSNR.
MOVE SY-MODNO TO WS_MODNO.
CONCATENATE 'SPLIT' WS_MODNO INTO PAR_ID.
Regs,
Siva -
Compile Error Statement is not accessible
Hi All,
I have report in SAP 4.7 . when i do syntax check on it it give a warning -"statement is not accessible."
But same thing when we compile we are getting as Syntax error in ECC 6.0 .
when I compile it, it prompts
<i><b>Include ZHRIPENR
Statement is not accessible.</b></i>
<i><b>My REPORT program -</b></i>
REPORT ZHRIBANK NO STANDARD PAGE HEADING
LINE-SIZE 80
LINE-COUNT 65.
START-OF-SELECTION.
INCLUDE ZHRIPENR.
END-OF-SELECTION.
<i><b>My INCLUDE program -</b></i>
*INCLUDE ZHRIPENR.
PERFORM BATCH_INIT.
FORM BATCH_INIT.
ENDFORM. " (BATCH_INIT)
when I compile it, it prompts
<i><b>Include ZHRIPENR
Statement is not accessible.</b></i>
Please let me know how can i proceed .
Cheers,
ReddyHi ..
The Reason may be bcoz you are Placing the FORM statements inside the Include.
Just Remove the FORMS from the Include and Place the in ur Main program in the Last.
Note: Subroutine definitions has to be in the end of the code.
REWARD IF HELPFUL. -
"Create Object " statement gives error: statement is not accessible
Hi All
U must b doing good.
I am new in ABAP Objects.
I have writeen a simple Class definition n Implimentasion code.
but whenever i write statement "Create object", it gives error.
'm working on SAP Dev 4.7.
the code was like this:-
class counter definition.
public section.
METHODS: set IMPORTING VALUE(set_value) TYPE i,
increment,
get EXPORTING VALUE(get_value) TYPE i.
private section.
DATA count TYPE i.
ENDCLASS.
CLASS counter IMPLEMENTATION.
METHOD set.
count = set_value.
ENDMETHOD.
METHOD increment.
count = count + 1.
ENDMETHOD.
METHOD get.
get_value = count.
ENDMETHOD.
ENDCLASS.
DATA: cnt_1 TYPE REF TO counter.
DATA number TYPE I VALUE 5.
CREATE OBJECT cnt_1 .
CALL METHOD cnt_1->set
EXPORTING set_value = number.
DO 3 TIMES.
CALL METHOD cnt_1->increment.
ENDDO.
CALL METHOD cnt_1->get
IMPORTING get_value = number.
write: number.
its giving error like:-"Statement is not accessible."
plz tell me the way to resolve this error.
thanx n regards
Prashant tiwarihi prashant....
this is the link to post your therads for abap objects:
[ABAP Objects;.
if you want to reward, on the left of every reply ther would be some radio buttons like answere, helpful answer,... so on. click the radio button which suits you. answered closes the thread and other points are displayed there itself.
---regards,
alex b justin -
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
The system cannot find the file specified
Cannot connect to COWBOYS.
Here are the technical details===================================
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
Error Number: 2
Severity: 20
State: 0
Program Location:
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
timeout)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
===================================
The system cannot find the file specified
I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
many times and cannot connect to my local DB.
How do I connect to my Local DB?
Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
instance ID from name). Please uninstall then re-run setup to correct this problem.
I would happily re install it, if it wasn't my 20th time.
I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
May be the solution is very simple, but I am too frustrated.
Some of the things I have tried:
From a command prompt, enter one of the following commands:
net start "SQL Server Agent (MSSQLSERVER)" OR
net start "SQL Server Agent(instancename)"(for instance)
on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
Details
Product:
SQL Server
ID:
2
Source:
MSSQLServer
Version:
10.0
Component:
SQLEngine
Message:
An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
Explanation
SQL Server did not respond to the client request because the server is probably not started.
User Action
Make sure that the server is started.
Version:
9.0
Component:
SQLEngine
Message:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
Explanation
SQL Server did not respond to the client request because the server is probably not started.
User Action
Make sure that the server is started.
Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.It sounds like there are a couple things going on here. First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance. Once you find this, make sure the service is started.
If not started, try to start it and see if it throws an error. If you get an error, post the error message your hitting. If the service starts, you can then launch SSMS and try to connect. If you have a default instance, you can use the machine
name in the connection dialog. Ex: "COWBOYS" where Cowboys is the machine name. However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format. Ex: COWBOYS\Romo (where Romo
is the instance name you set during install).
You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install. Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
Thanks,
Sam Lester (MSFT)
http://blogs.msdn.com/b/samlester
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
"Mark as Answer" and
"Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
How do I get OS X 10.6 pon my OS X 10.5.8 Power Mac with only a dual processor
how do I get OS X 10.6 on my OS X 10.5.8 Power Mac G5 with only a dual 2 GHz PowerPc G5 processor. I do not see how or where to buy 10.6. Am wondering if it won't download to a powerpc 10.5.8...any ideas how I can do it?
-
I was just recently given an old Apple Personal LaserWriter NTR. I tried connecting it to my Performa 200 running Mac OS 7.5.5 with 10 MB of RAM. Out of the ten times I tried once I got a message stating "scanner motor malfunction." It never printed
-
I need to add Material Desc. & Vendor Desc. in the standard report FBL3N. I am not able to find the where the ALV Function Module is called in the standard program for this report so that i can add the fields to the internal table passed to this ALV
-
Acrobat XI - PDF Optimizer problems
In Acrobat XI, I know that the PDF Optimizer moved to the Save or Save As function. The problem that I am facing is that on one (out of 30) of the Macs that I support, when I choose PDF Optimizer, the Optimizer window does not appear. I uninstalled a
-
I have windows 7 - 64 bit and my officejet 6310 series - i cannot open my solutions center.
my system crashed and everything but my programs were rebooted. i have the cd but it is for XP and 2000. i can print but i cannot open my solutions center.. it states that it is not completely installed. PLEASE HELP CSK43 --