Skip to Content
0
H S
Aug 03, 2020 at 10:52 AM

Entry is too long for the field - Message no. 00092

836 Views

I am trying to make a simple screen with 2 Input/Output Fields and One Button. Here is the full code :

*&---------------------------------------------------------------------*
*& Module Pool       ZABAP_PRACTICE2_MODULE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

PROGRAM zabap_practice2_module.
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0101  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
DATA : v_matnr TYPE matnr,
       v_spras TYPE spras,
       v_maktx TYPE maktx.

DATA ok_code TYPE sy-ucomm.

MODULE user_command_0101 INPUT.
  CASE OK_CODE.
    WHEN 'SUBMIT'.
      CLEAR ok_code.
      SELECT SINGLE maktx FROM makt INTO v_maktx WHERE matnr EQ v_matnr AND spras EQ 'E'.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0101  INPUT
*&---------------------------------------------------------------------*
*&      Module  STATUS_0101  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_0101 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_0101  OUTPUT

When I try to press SUBMIT after entering 100-100 or 100-600 I got the error that "Entry is too long for the field". I am unable to understand why I am getting this. Read somewhere that a new user has to be created to remove this error. Screenshots attached.1.jpg

Attachments

1.jpg (52.4 kB)