How To Fix 28068 - Object name expected in parantheses


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 28 - Configuration

  • Message number: 068

  • Message text: Object name expected in parantheses

  • Show details Hide details
  • What causes this issue?

    The syntax check found an error in an entry for an object. Parentheses
    are missing from around the key.

    System Response

    The cursor shows where the error occurs.

    How to fix this error?

    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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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:

    1. Syntax Error: The most common cause is a syntax error in the ABAP code where an object name is expected but not provided.
    2. Incorrect Function Module Call: If you are calling a function module or method and the parameters are not correctly specified, this error may arise.
    3. Missing or Misplaced Parentheses: If parentheses are not used correctly in expressions or function calls, the system may throw this error.
    4. Dynamic Object References: If you are trying to reference an object dynamically and the syntax is incorrect, it can lead to this error.

    Solution:

    1. Check Syntax: Review the ABAP code for any syntax errors. Ensure that all object names are correctly specified and enclosed in parentheses where required.
    2. 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.
    3. Review Parentheses Usage: Ensure that all parentheses are correctly placed and that there are no missing or extra parentheses in your code.
    4. 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.
    5. Consult Documentation: If you are using specific SAP functions or methods, refer to the SAP documentation for the correct syntax and usage.

    Related Information:

    • ABAP Documentation: Review the official SAP ABAP documentation for guidelines on syntax and object references.
    • SAP Community: Check forums and community discussions for similar issues and solutions shared by other developers.
    • SAP Notes: Search for relevant SAP Notes that may address this specific error or provide additional context.

    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.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant