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

Close

How To Fix UJK_EXCEPTION079 - *CASE statement is incomplete


SAP Error Message - Details

  • Message type: E = Error

  • Message class: UJK_EXCEPTION -

  • Message number: 079

  • Message text: *CASE statement is incomplete

  • 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 UJK_EXCEPTION079 - *CASE statement is incomplete ?

    The SAP error message UJK_EXCEPTION079, which indicates that a CASE statement is incomplete, typically arises in ABAP programming when the syntax of a CASE statement is not properly structured. This can happen for several reasons, such as missing the ENDCASE statement, not providing all necessary branches, or having an incorrect logical structure.

    Cause:

    1. Incomplete Syntax: The CASE statement is not properly closed with ENDCASE.
    2. Missing Branches: Not all possible conditions are covered, or there are no ELSE or WHEN branches defined.
    3. Logical Errors: The conditions defined in the CASE statement may not be logically sound or may lead to ambiguity.

    Solution:

    To resolve the UJK_EXCEPTION079 error, you can follow these steps:

    1. Check Syntax: Ensure that the CASE statement is correctly structured. A typical CASE statement should look like this:

      CASE <expression>.
        WHEN <value1>.
          " statements
        WHEN <value2>.
          " statements
        WHEN OTHERS.
          " statements
      ENDCASE.
    2. Add Missing Parts: If you have a CASE statement that is missing the ENDCASE or any WHEN branches, add them accordingly.

    3. Review Logic: Ensure that the logic of your CASE statement is sound. If you are using multiple conditions, make sure they are mutually exclusive or properly handled.

    4. Testing: After making changes, test the program to ensure that the error is resolved and that the logic behaves as expected.

    Related Information:

    • Documentation: Refer to the official SAP ABAP documentation for detailed information on the syntax and usage of CASE statements.
    • Debugging: Use the ABAP debugger to step through the code and identify where the CASE statement is failing.
    • Community Forums: If you continue to face issues, consider checking SAP community forums or Stack Overflow for similar cases and solutions provided by other developers.

    By following these steps, you should be able to identify and fix the issue causing the UJK_EXCEPTION079 error in your ABAP code.

    • 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
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker