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

Close

How To Fix VN133 - Program & does not contain FORM routines


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VN - Nachrichtensteuerung

  • Message number: 133

  • Message text: Program & does not contain FORM routines

  • Show details Hide details
  • What causes this issue?

    The program you have entered has no FORM routine.

    System Response

    In this case, the system only gives a warning message which you should
    observe. If you enter an incorrect program or FORM routine here, no
    parameters or text variables will be replaced. In addition, you will
    not be able to alter the change indicator or run a program to determine
    the output issue date.
    Program RSNAST00 (RSNASTOSO) ignores the warning message generated by
    the incorrect entry so that processing can continue and the posting can
    be made.

    How to fix this error?

    Please correct your entries. Check whether the problem is due to a
    typing error.
    Maintain a valid program that facilitates the functions described
    above.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VN133 - Program & does not contain FORM routines ?

    SAP Error Message:
    VN133 - Program & does not contain FORM routines


    Cause:

    This error occurs when a program (usually a module pool or a report) is expected to contain certain FORM routines (subroutines), but these routines are missing. The message typically appears during runtime or activation when the system tries to call a FORM routine that does not exist in the specified program.

    In the context of SAP, FORM routines are modular blocks of code defined using the FORM ... ENDFORM statements. If a function module, screen flow logic, or another program calls a FORM routine that is not implemented in the program, the system raises this error.


    Common Scenarios:

    • A screen flow logic (e.g., PBO/PAI modules) calls a FORM routine that is not defined.
    • A function module or another program calls a FORM routine in a program that does not exist.
    • The FORM routine was deleted or renamed but the call was not updated.
    • The program was copied or modified, and the FORM routines were not included or implemented.

    Solution:

    1. Check the program for the FORM routine:

      • Go to the ABAP Editor (SE38 or SE80).
      • Open the program mentioned in the error message.
      • Search for the FORM routine name that is missing.
    2. Implement the missing FORM routine:

      • If the FORM routine is missing, create it with the correct name and logic.
      • Syntax:
        FORM form_name.
          " Your code here
        ENDFORM.
    3. Correct the call to the FORM routine:

      • If the FORM routine name is misspelled in the call, correct it.
      • Ensure that the FORM routine is called with the correct name and parameters.
    4. Check screen flow logic (if applicable):

      • If the error occurs during screen processing, check the PBO (Process Before Output) and PAI (Process After Input) modules.
      • Make sure the FORM routines called in the screen flow logic exist in the program.
    5. Transport and copy issues:

      • If the program was copied or transported, verify that all FORM routines were included.
      • Re-import or re-implement missing routines if necessary.

    Related Information:

    • Transaction SE38 / SE80: To edit and check ABAP programs.
    • Screen Painter (SE51): To check screen flow logic and associated FORM routines.
    • ABAP Documentation: For understanding FORM routines and modularization techniques.
    • Message Class VN: The message class VN is related to Vendor Master or Purchasing documents, so the program might be related to procurement or vendor management.

    Summary:

    • Cause: The program is missing the FORM routine(s) that are being called.
    • Solution: Implement or correct the FORM routine(s) in the program.
    • Check: Program code, screen flow logic, and calls to FORM routines.

    If you provide the exact program name and FORM routine name, I can help you with a more specific example or code snippet.

    • 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