02-27-2009 8:54 AM
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
02-27-2009 9:05 AM
Hi,
Height is laways remain constant , you cannot increase it neihter through properties nor through code.YOu can only change the length.
Pooja
02-27-2009 9:26 AM
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
03-02-2009 9:55 AM
03-02-2009 11:48 AM
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.
.
01-28-2011 11:04 AM
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