How To Fix MC765 - Field specification with * and - only allowed for DB views


SAP Error Message - Details

  • Message type: E = Error

  • Message class: MC - Aggregate: views, matchcodes, lock objects

  • Message number: 765

  • Message text: Field specification with * and - only allowed for DB views

  • Show details Hide details
  • What causes this issue?

    Including all the fields of a base table by specifying * is only
    allowed for database views.
    As a result, excluding fields by entering '-' in the view field name
    is only allowed for database views.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Enter the fields explicitly for all other view types.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message MC765 - Field specification with * and - only allowed for DB views ?

    The SAP error message MC765, which states "Field specification with * and - only allowed for DB views," typically occurs in the context of data extraction or reporting when you are trying to use a field specification that is not valid for the type of data source you are working with. This error is often encountered in the context of SAP's data extraction tools, such as InfoSets or queries.

    Cause:

    The error is triggered when you attempt to use a wildcard character (* or -) in a field specification for a data source that does not support it. Specifically, this is common when you are working with database views (DB views) or other types of data sources that have strict field selection criteria.

    Solution:

    To resolve this error, you can take the following steps:

    1. Check the Data Source: Ensure that you are using a database view or another appropriate data source that allows for wildcard specifications. If you are using a different type of data source (like a table or a structure), you may need to adjust your approach.

    2. Modify Field Specifications: Instead of using * (which selects all fields) or - (which may be used to exclude fields), specify the exact fields you want to include in your query or report. This means listing out the field names explicitly.

    3. Review Query/InfoSet Design: If you are using an InfoSet or a query, review the design to ensure that it adheres to the requirements of the data source. Make sure that the fields you are trying to select are compatible with the data source.

    4. Consult Documentation: Refer to SAP documentation or help resources for guidance on the specific data source you are using. This can provide insights into the limitations and requirements for field specifications.

    5. Testing: After making changes, test the query or report again to ensure that the error is resolved.

    Related Information:

    • SAP Notes: Check SAP Notes for any specific notes related to the error message MC765. SAP frequently updates its knowledge base with solutions and workarounds for common issues.
    • Transaction Codes: Familiarize yourself with relevant transaction codes such as SE11 (Data Dictionary), SQ01 (Query), and SQ02 (InfoSet) to help you navigate and modify your data sources effectively.
    • Community Forums: Consider visiting SAP Community forums or other user groups where you can find discussions related to similar issues and solutions shared by other users.

    By following these steps, you should be able to resolve the MC765 error and successfully execute your queries or reports in SAP.

    • 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