How To Fix GJ158 - In Function "ICON_CREATE", outputfield_too_short is Detected.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GJ - Joint Venture Accounting

  • Message number: 158

  • Message text: In Function "ICON_CREATE", outputfield_too_short is Detected.

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GJ158 - In Function "ICON_CREATE", outputfield_too_short is Detected. ?

    The SAP error message GJ158, which states "In Function 'ICON_CREATE', outputfield_too_short is Detected," typically occurs when there is an issue with the length of the output field in a function module or program. This error is often related to the graphical user interface (GUI) elements, particularly when creating icons or images that are expected to fit within a certain size or format.

    Cause:

    1. Field Length Mismatch: The output field defined in the program or function module is shorter than the data being processed or displayed. This can happen if the data being passed to the function exceeds the defined length of the output field.
    2. Incorrect Data Type: The data type of the field may not be compatible with the data being processed, leading to truncation or overflow.
    3. GUI Element Size: If the icon or image being created is larger than the space allocated for it in the GUI, this error can occur.

    Solution:

    1. Check Field Lengths: Review the definitions of the output fields in the relevant function module or program. Ensure that the length of the output fields is sufficient to accommodate the data being processed.
    2. Adjust Data Types: Make sure that the data types used for the output fields are appropriate for the data being passed. If necessary, change the data type to a larger or more suitable type.
    3. Modify GUI Elements: If the error is related to GUI elements, check the properties of the GUI components (like icons or images) and ensure that they are correctly sized and formatted to fit within the designated area.
    4. Debugging: Use the SAP debugger to trace the execution of the program and identify where the error occurs. This can help pinpoint the exact field or data causing the issue.
    5. Consult Documentation: Review SAP documentation or notes related to the specific function module or program to see if there are any known issues or recommendations regarding field lengths and data types.

    Related Information:

    • SAP Notes: Check for any relevant SAP Notes that might address this specific error or provide guidance on similar issues.
    • Function Module Documentation: Review the documentation for the function module ICON_CREATE to understand its parameters and expected input/output.
    • SAP Community: Engage with the SAP Community forums to see if other users have encountered similar issues and what solutions they have found.

    If the problem persists after trying the above solutions, consider reaching out to your SAP support team or consulting with an SAP expert for further assistance.

    • 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