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: SDDL_PARSER_MSG - Message Class for DDL Parser
Message number: 103
Message text: Either "WITH PARAMETERS" or "RETURNS" was expected here
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.
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:
- Missing Clause: The service definition is incomplete and does not include the required "WITH PARAMETERS" or "RETURNS" clause.
- Incorrect Syntax: There may be a syntax error in the service definition that prevents the parser from correctly interpreting the structure.
- 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:
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.
Validate Syntax: Ensure that the syntax of your service definition adheres to the expected format. Check for any typos or misplaced keywords.
Refer to Documentation: Consult the SAP documentation for the specific version you are using to understand the correct syntax and structure for service definitions.
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.
Test Changes: After making the necessary corrections, test the service definition again to ensure that the error is resolved.
Related Information:
By following these steps, you should be able to identify and correct the cause of the SDDL_PARSER_MSG103 error in your SAP environment.
Get instant SAP help. Sign up for our Free Essentials Plan.
SDDL_PARSER_MSG102
The keyword "FUNCTION" was expected here
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG101
VIEW, "TABLE FUNCTION", or "ABSTRACT" was expected instead of '&1'
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG104
The keyword "PARAMETERS" was expected here
What causes this issue? At this position, the keywords 'WITH PARAMETERS' are expected. If there are no input parameters, the word 'RET...
SDDL_PARSER_MSG105
A list of input parameters is expected after "WITH PARAMETERS"
What causes this issue? The list of input parameters must be in the form [<(><<)>Annotation_1>] <(><<)>im_par_1>:...
Click on this link to search all SAP messages.