Application Development 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: 

Text Editor Scrolling issue at Process After Input time

Former Member
0 Kudos

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  TYPE STRING  ,
conainter_name
(50).


CREATE OBJECT editor_container
EXPORTING
container_name             
= conainter_name
EXCEPTIONS
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_editor
EXPORTING
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 STATUSBAR

CALL METHOD text_editor->set_toolbar_mode
EXPORTING
toolbar_mode
= cl_gui_textedit=>false.

CALL METHOD text_editor->set_statusbar_mode
EXPORTING
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_stream
EXPORTING
text = text_tab.

IF chk_display EQ 'X' .

CALL METHOD text_editor->set_readonly_mode
EXPORTING
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=>TRUE
IMPORTING
text                   = text
*             IS_MODIFIED            =
EXCEPTIONS
error_cntl_call_method
= 1
not_supported_by_gui  
= 2
OTHERS                 = 3.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

IF text IS NOT INITIAL .

        wa_permas-performance_det = text.
ENDIF.

3 REPLIES 3

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Is there anyone who could reply me as soon as possible please ????

0 Kudos

Hello Abdul,

did find a solution to this problem? I have same problem and find no solution.

Thanks.