Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: ACI_COMPILER_GENERIC - EXPERIMENTAL, DON'T USE (ACI: Generic Compiler Messages)
Message number: 070
Message text: Missing end statement, expected '&1' was '&2'.
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
ACI_COMPILER_GENERIC070
- Missing end statement, expected '&1' was '&2'. ?The SAP error message ACI_COMPILER_GENERIC070 indicates that there is a syntax error in your ABAP code, specifically that the compiler expected an "end statement" but found something else. The message typically follows this format:
This error usually occurs due to one of the following reasons:
END
statement for a control structure (like IF
, CASE
, LOOP
, etc.).IF
statement without a corresponding ENDIF
.To resolve this error, you can follow these steps:
Check the Code Structure: Review the code around the line where the error occurs. Ensure that all control structures have their corresponding end statements.
IF
statement, make sure there is an ENDIF
.LOOP
, ensure there is an ENDLOOP
.Look for Typos: Check for any typos or syntax errors in your code that might cause the compiler to misinterpret the structure.
Use the ABAP Editor: Utilize the ABAP editor's syntax check feature (by pressing Ctrl + F2
or using the menu option) to identify the exact location of the error.
Commenting: If you have commented out code, ensure that the comments are correctly formatted and do not interfere with the code structure.
Review Nested Structures: If you have nested control structures, ensure that each nested structure is properly closed.
By carefully reviewing your code and ensuring that all structures are properly closed, you should be able to resolve the ACI_COMPILER_GENERIC070 error.
Get instant SAP help. Sign up for our Free Essentials Plan.
ACI_COMPILER_GENERIC062
Scanner error in macro '&1'
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACI_COMPILER_GENERIC061
Missing terminating dot in macro '&1'
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACI_COMPILER_GENERIC111
Illegal line break within literal
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACI_COMPILER_GENERIC112
Literal space exhausted
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.