Skip to Content

Text Editor Scrolling issue at Process After Input time... Help...!!!

I am loading sub screen in sub screen area, my sub screen have different screen elements including multiple custom controls for text editor by using class CL_GUI_TEXTEDIT and because of multiple screen elements and text editors , screen scrolling is on as below.

When I opened the screen at Process before Output(BPO) all text editors works fine but after some input (i.e. Process after input(PAI)) text editor remains fixed at their positions and can’t scroll with up or down screen scrolling.

So can you tell me how text editor scrolling is possible with other screen scrolling as I already checked Class (i.e. CL_GUI_TEXTEDIT) attributes and methods but didn’t find any attribute or method in this class who could solve my issue?

So how text editor scrolling will be possible with other screen elements scrolling at process after input?

PROCESS BEFORE OUTPUT.

***Text Container Variables .DATA: LINE_LENGTH TYPE I VALUE 254,
EDITOR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
TEXT_EDITOR TYPE REF TO CL_GUI_TEXTEDIT, TEXT TYPESTRING ,
conainter_name(50).

CREATE OBJECT editor_containerEXPORTING
container_name = conainter_nameEXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.

IF text_editor IS INITIAL.CREATE OBJECT text_editorEXPORTING
parent = editor_container* wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = line_length
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
*3)HIDE TOOLBAR AND STATUSBARCALL METHOD text_editor->set_toolbar_modeEXPORTING
toolbar_mode = cl_gui_textedit=>false.CALL METHOD text_editor->set_statusbar_modeEXPORTING
statusbar_mode = cl_gui_textedit=>false.ENDIF.

Fill Text and if display check box selected then display text in Text Editor Readonly mode.

REFRESH text_tab[].
f_text = wa_mas-performance_det.APPEND f_text TO text_tab.

CALL METHOD text_editor->set_text_as_streamEXPORTINGtext = text_tab.IF chk_display EQ 'X' . CALL METHOD text_editor->set_readonly_modeEXPORTING
readonly_mode = cl_gui_textedit=>true.CLEAR wa_mas.

ENDIF.

REFRESH text_tab.

CLEAR: f_text.

PROCESS AFTER INPUT.CALL METHOD text_editor->get_textstream* EXPORTING* ONLY_WHEN_MODIFIED = CL_GUI_TEXTEDIT=>TRUEIMPORTINGtext = text* IS_MODIFIED =EXCEPTIONS
error_cntl_call_method = 1
not_supported_by_gui = 2OTHERS = 3.IF sy-subrc <> 0.MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgnoWITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.ENDIF.

IF text IS NOT INITIAL .

wa_permas-performance_det = text.ENDIF.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 02 at 10:02 AM

    Hey

    Former Member, I have found your question on same case, did you found any solution to this? if any please help ...

    https://archive.sap.com/discussions/thread/3407381#

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02 at 10:06 AM

    whenever my screen change this container has block in screen. please help to sort this out.

    Add comment
    10|10000 characters needed characters exceeded