Do you have any question about this error?
Message type: E = Error
Message class: 28 - Configuration
Message number: 068
Message text: Object name expected in parantheses
The syntax check found an error in an entry for an object. Parentheses
are missing from around the key.
The cursor shows where the error occurs.
To refer to an object, you enter the object type, class type, and
object key:
(Material)(300)(NR='M4711')
The object identifier and object key are defined in the IMG for
<ZH>Classification</>. In the <LS>Define object types</> step, you can
see the object key for each object type. The fields of the object key
are referred to via a special field ID. The object key for materials is
the material number. The material number is accessed by the field ID
'NR'.
The object key can also consist of several parts, as it does for
documents, for example:
(Document)(017)(TYPE=DRW, VERSION=00, PART=000, NR='bmw-ca31')
The key expressions entered must be in parentheses: (NR='M4711') or
(TYPE=DRW, VERSION=00, PART=000, NR='bmw-ca31'). Check the parentheses
and correct them according to the pattern shown if required.
Error message extract from SAP system. Copyright SAP SE.
28068
- Object name expected in parantheses ?The SAP error message "28068 Object name expected in parentheses" typically occurs in the context of ABAP programming or when working with certain SAP transactions that involve object definitions or references. This error indicates that the system is expecting an object name to be specified within parentheses, but it is either missing or incorrectly formatted.
Cause:
- Syntax Error: The most common cause is a syntax error in the ABAP code where an object name is expected but not provided.
- Incorrect Function Module Call: If you are calling a function module or method and the parameters are not correctly specified, this error may arise.
- Missing or Misplaced Parentheses: If parentheses are not used correctly in expressions or function calls, the system may throw this error.
- Dynamic Object References: If you are trying to reference an object dynamically and the syntax is incorrect, it can lead to this error.
Solution:
- Check Syntax: Review the ABAP code for any syntax errors. Ensure that all object names are correctly specified and enclosed in parentheses where required.
- Correct Function Calls: If the error occurs during a function module call, verify that you are passing the correct parameters and that they are enclosed in parentheses.
- Review Parentheses Usage: Ensure that all parentheses are correctly placed and that there are no missing or extra parentheses in your code.
- Debugging: Use the ABAP debugger to step through the code and identify the exact line where the error occurs. This can help pinpoint the issue.
- Consult Documentation: If you are using specific SAP functions or methods, refer to the SAP documentation for the correct syntax and usage.
Related Information:
If you continue to experience issues after checking these areas, consider reaching out to your SAP support team or consulting with a more experienced ABAP developer for assistance.
Get instant SAP help. Start your 7-day free trial now.
28066
Invalid combination of object identifier/class type: (&1)(&2)
What causes this issue? The syntax check found an error in an entry for an object. The combination of object identifier and class type is incorrect.S...
28065
Syntax error in class entry: expression required in form <(...)...>
What causes this issue? The syntax check found an error which may be due to a syntactically incorrect entry for a class.System Response The cursor s...
28069
Partial key expression
What causes this issue? The syntax check found an error in your entry for an object key. To refer to an object, you enter the object identifier, clas...
28071
Object reference/variable used more than once: &1 &2
What causes this issue? The syntax check on the dependency found 2 different variables, &V1& and &V2&, for the same object.System Res...
Click on this link to search all SAP messages.