How To Fix KW346 - Invalid function result


SAP Error Message - Details

  • Message type: E = Error

  • Message class: KW - CO-ABC Activity-Based Costing

  • Message number: 346

  • Message text: Invalid function result

  • Show details Hide details
  • What causes this issue?

    You chose an incorrect function or a nonexisting parameter for the
    result of an environment function.

    System Response

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

    How to fix this error?

    Please check your input.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message KW346 - Invalid function result ?

    The SAP error message KW346 "Invalid function result" typically occurs in the context of SAP's pricing and condition techniques, particularly when dealing with condition records or pricing procedures. This error indicates that a function or calculation related to pricing has returned an unexpected or invalid result.

    Causes:

    1. Incorrect Condition Records: The condition records may not be set up correctly, leading to invalid calculations.
    2. Missing or Incorrect Master Data: If the master data (like material master, customer master, etc.) is incomplete or incorrect, it can lead to invalid results.
    3. Pricing Procedure Issues: The pricing procedure may not be configured correctly, or there may be missing steps or conditions.
    4. Custom Code or User Exits: If there are custom enhancements or user exits that manipulate pricing logic, they may be causing the error.
    5. Data Type Mismatch: There may be a mismatch in expected data types for certain fields used in calculations.

    Solutions:

    1. Check Condition Records: Review the condition records for the relevant pricing conditions to ensure they are set up correctly.
    2. Validate Master Data: Ensure that all relevant master data is complete and accurate. Check for missing entries or incorrect data.
    3. Review Pricing Procedure: Examine the pricing procedure assigned to the transaction. Ensure that all necessary steps and conditions are included and configured correctly.
    4. Debug Custom Code: If there are any custom enhancements or user exits, debug the code to identify any issues that may be causing the invalid result.
    5. Check Data Types: Ensure that the data types of fields used in calculations are compatible and correctly defined.

    Related Information:

    • Transaction Codes: You may want to use transaction codes like VK11 (Create Condition), VK12 (Change Condition), and VK13 (Display Condition) to manage condition records.
    • Transaction Logs: Check the application logs (transaction SLG1) for more detailed error messages that may provide additional context.
    • SAP Notes: Search for relevant SAP Notes in the SAP Support Portal that may address known issues related to this error message.
    • Documentation: Review SAP documentation on pricing procedures and condition techniques for a deeper understanding of how these elements interact.

    If the issue persists after checking these areas, it may be beneficial to consult with your SAP support team or reach out to SAP support 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
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