Application Development and Automation 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: 
Read only

input box in selection screen

Former Member
0 Likes
4,885

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,379

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

Read only

former_member156446
Active Contributor
0 Likes
1,379

hi Sammer

Parameter: pa_test type char256. is the max you can give.. even tought the display length on selection screen remains restricted.

Read only

Former Member
0 Likes
1,379

Declare a parameter of type character with lenth 400

Read only

Former Member
0 Likes
1,379

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.