Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to increase height of input/output field?

Former Member
0 Kudos

I have created input/output field in a module pool program, by default the height of this field is '1'.

in the properties of this field the height is '1' and in disable mode..

can someone help me, how to increase the height of this field.

I want to big input box for the input field..

thanks

chitra

5 REPLIES 5

Former Member
0 Kudos

Hi,

Height is laways remain constant , you cannot increase it neihter through properties nor through code.YOu can only change the length.

Pooja

I355602
Advisor
Advisor
0 Kudos

Hi,

You cant increase the height of an input/output field (textbox).

Instead you can increase its length.

To display long text say for example string of 100 chars, keep the visible lenght length of the field as 20.

This will result in the textbox with length 20 and to view the data you have to scroll right in the textbox control.

Hope this helps you.

Regards,

Tarun

Former Member
0 Kudos

thanks

Former Member

hi chitra ,

their is a way using oops concept to increase the height of input/output field. check the below code

..
PROGRAM ztest1.


DATA : g_container TYPE REF TO cl_gui_custom_container.
DATA : g_editor    TYPE REF TO cl_gui_textedit.

TYPES: BEGIN OF x_texttable,
  line_length(255) TYPE c,
END OF x_texttable.

DATA : g_t_text TYPE TABLE OF x_texttable.

DATA : g_wa_text TYPE x_texttable.

DATA : ok_code TYPE sy-ucomm.

START-OF-SELECTION.
  CALL SCREEN 100.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'ZTEST_STATUS'.
*  SET TITLEBAR 'xxx'.

  IF g_editor IS INITIAL.
    CREATE OBJECT g_container
      EXPORTING
        container_name         = 'G_CUSTOM'. " container name

    CREATE OBJECT g_editor
      EXPORTING
        parent                 = g_container.
  ENDIF.

ENDMODULE.                 " STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
  CASE ok_code.
    WHEN 'SAVE'.
      CALL METHOD g_editor->get_text_as_r3table
        IMPORTING
          table           = g_t_text
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT




PROCESS BEFORE OUTPUT.
  MODULE status_0100.

PROCESS AFTER INPUT.
  MODULE user_command_0100.
.

0 Kudos

hi

I am still not geting howz it increasing the hieght of the text box

can u please elaborate it where are u using the input fied? in the

above code