Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS_TOOL858 - Function &1: &2 parameter &3 is no longer optional


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS_TOOL - Message Class for Web Services and Virtual Endpoints

  • Message number: 858

  • Message text: Function &1: &2 parameter &3 is no longer optional

  • 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 WS_TOOL858 - Function &1: &2 parameter &3 is no longer optional ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    WS_TOOL858 Function &1: &2 parameter &3 is no longer optional


    Cause:

    This error occurs when a function module or method call in ABAP or a related tool (such as Web Services or SAP Gateway) uses a parameter that was previously optional, but in the current version of the function, the parameter has been changed to mandatory (no longer optional).

    In other words, the interface of the function module or method has changed in a newer SAP release or patch, and the calling program or tool has not been updated accordingly. The system now requires that the parameter be explicitly provided, but the call is missing it.


    Explanation:

    • &1 = Function name (e.g., function module or method)
    • &2 = Parameter type or description (e.g., IMPORTING, EXPORTING, CHANGING)
    • &3 = Parameter name that is no longer optional

    For example, if the function module Z_MY_FUNCTION had an importing parameter IV_DATE that was optional before, but now it is mandatory, and your code calls Z_MY_FUNCTION without passing IV_DATE, this error will be raised.


    Solution:

    1. Check the function module or method interface:

      • Use transaction SE37 (Function Builder) or SE24 (Class Builder) to check the current interface of the function or method.
      • Verify which parameters are mandatory and which are optional.
    2. Update the calling code:

      • Modify the ABAP code or tool configuration that calls the function to include the now mandatory parameter.
      • Provide a valid value for the parameter as required by the business logic.
    3. Check SAP Notes / Documentation:

      • Sometimes SAP changes function interfaces in support packages or upgrades.
      • Review relevant SAP Notes or upgrade documentation for changes in function module interfaces.
    4. Test the changes:

      • After updating the call, test the function to ensure it works correctly with the mandatory parameter.

    Related Information:

    • This error is common after system upgrades or applying support packages where SAP may have tightened the interface contracts.
    • It is important to keep custom code and integrations in sync with SAP standard changes.
    • If the function is a standard SAP function module or method, check SAP Help Portal or SAP Notes for interface changes.
    • If the function is custom-developed, coordinate with the development team to understand why the parameter was made mandatory and what values should be passed.

    Example:

    Before (optional parameter):

    CALL FUNCTION 'Z_MY_FUNCTION'
      EXPORTING
        IV_DATE = ' '.

    After (mandatory parameter):

    CALL FUNCTION 'Z_MY_FUNCTION'
      EXPORTING
        IV_DATE = sy-datum. " Pass current date or appropriate value

    If you provide the actual function name and parameter, I can help you with more specific guidance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


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