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

Close

How To Fix VR126 - There are no fields in the selected layout


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VR - Output for SD Reporting

  • Message number: 126

  • Message text: There are no fields in the selected layout

  • Show details Hide details
  • What causes this issue?

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

    System Response

    How to fix this error?

    Maintain the selected display variant using the customizing tool.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VR126 - There are no fields in the selected layout ?

    SAP Error Message:
    VR126 - There are no fields in the selected layout


    Cause:

    This error occurs when you try to use or print a form layout (such as a SAPscript or Smart Form layout) that does not contain any fields or elements to display data. Essentially, the layout is empty or not properly assigned with fields, so SAP cannot find any data to output.

    Common scenarios include:

    • The selected layout (form) is empty or has no text elements or windows defined.
    • The layout is not correctly assigned to the output type or message type.
    • The form was created but no fields or placeholders were inserted.
    • The layout is inactive or not generated properly.

    Solution:

    1. Check the Layout Content:

      • Go to the form layout (SAPscript or Smart Form) in the respective transaction (e.g., SE71 for SAPscript, SMARTFORMS for Smart Forms).
      • Verify that the layout contains windows, text elements, and fields/placeholders.
      • Ensure that the fields you want to print are actually inserted into the layout.
    2. Assign the Correct Layout:

      • Check the output type configuration (e.g., in NACE or SPRO) to ensure the correct form layout is assigned to the output type/message type.
      • Make sure the layout name is correct and active.
    3. Activate and Generate the Layout:

      • For Smart Forms, ensure the form is activated and generated.
      • For SAPscript, ensure the form is active and the print program is correctly linked.
    4. Check the Print Program:

      • Verify that the print program or driver program is passing data correctly to the form.
      • If no data is passed, the form will appear empty.
    5. Test the Form Independently:

      • Use the test function in the form transaction to print a sample output and verify that fields appear.

    Related Information:

    • Transactions:

      • SE71 - SAPscript form maintenance
      • SMARTFORMS - Smart Forms maintenance
      • NACE - Output determination
      • SPRO - Customizing for output types
    • Notes:

      • Ensure that the form layout is not just a blank template.
      • If you recently changed the layout, check if the changes were saved and activated.
      • Sometimes, transport issues cause layouts not to be updated in the target system.
    • Additional Checks:

      • Check authorization to access the layout.
      • Review spool requests and logs for more detailed error messages.

    Summary:
    The VR126 error means the selected form layout is empty or missing fields. To fix it, verify and update the form layout to include the necessary fields, ensure it is correctly assigned and active, and confirm that the print program passes data to the form.

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