Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix SDDL_PARSER_MSG103 - Either "WITH PARAMETERS" or "RETURNS" was expected here


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SDDL_PARSER_MSG - Message Class for DDL Parser

  • Message number: 103

  • Message text: Either "WITH PARAMETERS" or "RETURNS" was expected here

  • Show details Hide details
  • What causes this issue?

    Instead of '&V1&', the specification of a list of importing parameters
    with 'WITH PARAMETERS' or the specification of the return parameters
    with 'RETURNS' is expected at this position.
    This error can occur, for example, whenever the function name is missing
    or whenever the keyword is incorrect or was written incorrectly. (
    <DS:ABEN.CDS_F1_DEFINE_TABLE_FUNCTION>CDS-Tabellenfunktionen</>)

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message SDDL_PARSER_MSG103 - Either "WITH PARAMETERS" or "RETURNS" was expected here ?

    The SAP error message SDDL_PARSER_MSG103 indicates that there is a syntax issue in the definition of a service definition language (SDL) or service interface in SAP. Specifically, the error suggests that the parser was expecting either the "WITH PARAMETERS" clause or the "RETURNS" clause in the service definition, but it did not find either of them.

    Cause:

    This error typically occurs due to one of the following reasons:

    1. Missing Clause: The service definition is incomplete and does not include the required "WITH PARAMETERS" or "RETURNS" clause.
    2. Incorrect Syntax: There may be a syntax error in the service definition that prevents the parser from correctly interpreting the structure.
    3. Misplaced Keywords: The keywords may be in the wrong order or incorrectly placed within the service definition.

    Solution:

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

    1. Check the Service Definition: Review the service definition where the error occurred. Ensure that it includes the necessary clauses:

      • If your service is supposed to accept parameters, make sure to include the "WITH PARAMETERS" clause.
      • If your service is supposed to return a value, ensure that the "RETURNS" clause is present.

      Example of a correct service definition:

      DEFINE SERVICE my_service
      WITH PARAMETERS
        param1 TYPE string,
        param2 TYPE int
      RETURNS
        result TYPE string.
    2. Validate Syntax: Ensure that the syntax of your service definition adheres to the expected format. Check for any typos or misplaced keywords.

    3. Refer to Documentation: Consult the SAP documentation for the specific version you are using to understand the correct syntax and structure for service definitions.

    4. Use the SAP Development Tools: If you are using tools like ABAP Development Tools (ADT) in Eclipse, utilize the syntax checking features to identify and correct errors in your service definition.

    5. Test Changes: After making the necessary corrections, test the service definition again to ensure that the error is resolved.

    Related Information:

    • SAP Documentation: Refer to the official SAP Help Portal for detailed information on service definitions and the syntax used in SDL.
    • Community Forums: Check SAP Community forums or Stack Overflow for similar issues and solutions shared by other developers.
    • SAP Notes: Look for any relevant SAP Notes that might address known issues or provide additional guidance on service definitions.

    By following these steps, you should be able to identify and correct the cause of the SDDL_PARSER_MSG103 error in your SAP environment.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author