‎2008 Jan 24 5:48 AM
HI Experts,
I want to give a input parameter box (length 400 chars)
and it shud be like one box.user enters some text in it. and i have display tht. How to do it.???
Pls help..
Regards
Sameer
‎2008 Jan 24 5:51 AM
Hi Sameer ,
Try this.
SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-000.
PARAMETERS: s_text TYPE char450.
SELECTION-SCREEN END OF BLOCK b_0.
Reward if useful.
Regards,
Chitra
‎2008 Jan 24 5:56 AM
hi Sammer
Parameter: pa_test type char256. is the max you can give.. even tought the display length on selection screen remains restricted.
‎2008 Jan 24 5:57 AM
‎2008 Jan 24 6:04 AM
Hi Sameer, pls chk this,
Look at class cl_gui_textedit
(1) Screen
In dynpro create a custom container, call it 'INPUTBOX' or so
(2) In program top, declare
codeDATA: container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit.[/code]
(3) in PBO
if editor is initial.
CREATE OBJECT: container EXPORTING container_name = 'TEXTBOX',
editor EXPORTING parent = container
wordwrap_mode = 2
wordwrap_position = 80
wordwrap_to_linebreak_mode = 1.
CALL METHOD editor->set_text_as_r3table
EXPORTING table = texttab.
ENDIF.
(4) in PAI
read the text
codeIF NOT init IS INITIAL.
CALL METHOD editor->get_text_as_r3table
IMPORTING table = texttab.[/code]
exit and release
code CALL METHOD editor->free.
CALL METHOD container->free.
CLEAR: editor, container.
ENDIF.[/code]
Look at SAP Textedit.
kindly reward if found helpful.
cheers,
Hema.