cancel
Showing results for 
Search instead for 
Did you mean: 

Input field in the smartform

Former Member
0 Kudos

Hi Friend,

I want to take some input text ( not single line....want multuple lines ) from the user, and then i want to print the same one in Smarform.

Please advise me.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a text-editor using custom container, there the user can enter more lines and then u can call the smartforms.

IF area IS INITIAL.

CREATE OBJECT area EXPORTING container_name = 'EDIT_CONTROL'.

ENDIF.

IF editor IS INITIAL.

CREATE OBJECT editor EXPORTING parent = area.

ENDIF.

editor->set_wordwrap_behavior(

EXPORTING

wordwrap_mode = 2

wordwrap_position = 80 ).

editor->set_text_as_r3table(

EXPORTING

table = source_table ).

editor->set_toolbar_mode(

EXPORTING

toolbar_mode = '0' ).

IF row <> 0.

editor->highlight_lines(

EXPORTING

from_line = row

highlight_mode = 1

to_line = row ).

regards,

Santosh Thorat