How To Fix ICA93021 - SUBSTRING Function


ICA93021 - Overview

  • Message type: E = Error

  • Message class: ICA93 - ICA Document Converter Field Function Long Text Messages

  • Message number: 021

  • Message text: SUBSTRING Function

  • Show details Hide details
  • Returns a substring by extracting the specified number of characters
    from the value of a string field, counting from the 'Start' index.
    &PARAMETERS&
    1. <LS>String Field</>: A field from which the value is extracted. By
    default, it is the assigned field.
    2. <LS>Start Position</>: Index of the first character to be included in
    the returned substring.
    If start is a positive number, the index counts from the start of the
    string.
    If start is a negative number, the index counts from the end of the
    string.
    3. <LS>Start Position</>: The number of characters to be extracted. If
    length is 0, it extracts characters to the end of the string.

    How can this happen?

    The field <LS>SGTXT </>(<LS>Item Text</>) has the value<LB>
    </>'AB1234567890'.
    When it's set to SUBSTRING (SGTXT, 2, 10), the value '1234567890' is
    returned.
    When it's set to SUBSTRING (SGTXT, 2, 0), the value '1234567890' is
    returned.
    When it's set to SUBSTRING (SGTXT, -10, 10), the value '1234567890' is
    returned.
    When it's set to SUBSTRING (SGTXT, -10, 0), the value '1234567890' is
    returned.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message ICA93021 - SUBSTRING Function ?
    The SAP error message ICA93021 related to the SUBSTRING function typically indicates that there is an issue with the parameters being passed to the function. This error can occur in various contexts, such as when working with ABAP code, SQL queries, or other data manipulation scenarios within SAP systems.
    
    Cause: The ICA93021 error usually arises due to one of the following reasons: Invalid Parameters: The parameters provided to the SUBSTRING function may be out of range or not valid. For example, if the starting position or length specified is greater than the length of the string. Data Type Mismatch: The data type of the input string or the parameters may not be compatible with what the SUBSTRING function expects. Empty Strings: Attempting to perform a substring operation on an empty string can also lead to this error.
    Solution: To resolve the ICA93021 error, consider the following steps: Check Parameters: Ensure that the starting position and length parameters are

    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:
  • ICA93019 REVERSE Function
    Returns opposite value of the numeric field.How can this happen? The <LS>TSL</> (<LS>Transaction Currency Amount</>) field i...

  • ICA93013 INITIAL Function
    Set value of the field to its initial state.How can this happen? The <LS>TSL</> (<LS>Transaction Currency Amount</>) is set ...

  • ICA93101 DERIVE_FROM_TARGET_ATTR Function
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • ICA93102 DERIVE_FROM_FSITEM_ROLE Function
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

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