How To Fix WL366 - Result of operation '& & &' is a time; type '&' not allowed


WL366 - Overview

  • Message type: E = Error

  • Message class: WL - Workflow: run-time messages

  • Message number: 366

  • Message text: Result of operation '& & &' is a time; type '&' not allowed

  • Show details Hide details
  • What causes this issue?

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

    System Response

    How to fix this error?

    Only the following operations are permitted with date/time:
    'date - date' returns an integer
    'date - number' returns a date
    'time - number' returns a time
    'time - time' returns an integer
    The result of any calculation or assignment must be type-compatible
    with the operand(s) and may not lead to an overflow, i.e. the result
    element must be large enough when selected.
    The following abbreviations are used in the message:
    'I': integers (ABAP data type: Int1, Int2, Int4)
    'P': packed numbers with decimal places and signs (Dec, Packed)
    'N': character string with numerical values (Numc)
    'C': character strings (Character)
    'D': date
    'T': time
    'O' or 'o': objects from the Business Object Repository

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WL366 - Result of operation '& & &' is a time; type '&' not allowed ?
    The SAP error message WL366, which states "Result of operation '& & &' is a time; type '&' not allowed," typically occurs in the context of ABAP programming or when working with time-related data types in SAP. This error indicates that there is an issue with the data types being used in an operation, particularly when dealing with time values.
    
    Cause: The error is caused by attempting to perform an operation that involves incompatible data types. Specifically, it suggests that the operation is trying to use a time data type in a context where it is not allowed or expected. This can happen in various scenarios, such as: Arithmetic Operations: Trying to perform arithmetic operations (like addition or subtraction) on time data types directly. Type Mismatch: Using a time data type in a place where a different data type (like a numeric or character type) is expected. Function Module or Method Calls: Passing a time

    Already have an account? Login here!




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
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