How To Fix DB035 - Selection screen & & was not called using CALL SELECTION-SCREEN


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DB - Messages for logical databases and background processing

  • Message number: 035

  • Message text: Selection screen & & was not called using CALL SELECTION-SCREEN

  • Show details Hide details
  • What causes this issue?

    You wanted to process screen "&V1& &V2&". This is a selection screen,
    generated from PARAMETERS, SELECT-OPTIONS and SELECTION-SCREEN
    statements.
    You can only call a selection screen with the "CALL SELECTION-SCREEN"
    statement, or as the initial screen of a report, transaction or dialog
    module. However, this is not the case here.

    System Response

    The system terminated the program.

    How to fix this error?

    Contact the program author or your SAP contact person.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message DB035 - Selection screen & & was not called using CALL SELECTION-SCREEN ?

    The SAP error message DB035 indicates that a selection screen was not called using the CALL SELECTION-SCREEN statement. This error typically occurs when there is an attempt to access a selection screen that has not been properly initialized or called in the program.

    Cause:

    1. Incorrect Call: The selection screen is not being called correctly in the ABAP program. The CALL SELECTION-SCREEN statement must be used to invoke a selection screen.
    2. Screen Number Issue: The screen number specified in the CALL SELECTION-SCREEN statement may not exist or may not be defined properly.
    3. Program Flow: The program may be trying to access the selection screen in a context where it has not been initialized or is not appropriate (e.g., after a SUBMIT statement without proper handling).
    4. Missing Definition: The selection screen might not be defined in the program or might be defined in a different program/module.

    Solution:

    1. Check the CALL Statement: Ensure that the selection screen is being called correctly using the CALL SELECTION-SCREEN statement. The syntax should look like this:

      CALL SELECTION-SCREEN '1000' STARTING AT 10 10.

      Replace '1000' with the appropriate screen number.

    2. Verify Screen Definition: Make sure that the selection screen you are trying to call is defined in the program. You can define a selection screen using the following syntax:

      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
      SELECT-OPTIONS: s_field FOR fieldname.
      SELECTION-SCREEN END OF BLOCK b1.
    3. Check Program Logic: Review the program logic to ensure that the selection screen is being called at the correct point in the program flow. If you are using SUBMIT to call another report, ensure that the selection screen is being handled correctly.

    4. Debugging: Use the debugger to trace the program execution and see where the error occurs. This can help identify if the selection screen is being called at the right time and context.

    5. Documentation: Refer to the SAP documentation for more details on using selection screens and the CALL SELECTION-SCREEN statement.

    Related Information:

    • ABAP Documentation: Check the official SAP Help Portal for detailed information on selection screens and their usage in ABAP.
    • SAP Community: Engage with the SAP Community forums to see if others have encountered similar issues and how they resolved them.
    • SAP Notes: Look for any relevant SAP Notes that might address specific issues related to selection screens and the DB035 error.

    By following these steps, you should be able to identify the cause of the DB035 error and implement a solution to resolve it.

    • 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