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

Dialog Prg CL_GUI_TEXTEDIT

Former Member
0 Likes
450

Hi abapers,

Am developing a dialog program.

am updating 2 Ztables Headr & Item. in my item table am placing 2 fields of char 255.

so for that am using the class CL_GUI_TEXTEDIT (with help of CONSTRUCTOR method)

which places 2 text editor(s) which i can enter some text.

in transaction am having more than 20 fields.

when am running the Transaction for first time when am using vertical scroll to enter some text in text editor(s).

((am placing the text editors at the bottom of the screen ))

they are working fine.

so when am entering the data for second time am using vertical scroll up in order to enter data from the first field

onwards.

at this time the text editor(s) are remaining at the same position.

means the fields before the text editors are over lapping with these text editors .

so am not able to enter the data in those fields.

these text editors are not moving up and down when am using the vertical scroller .

they remain fixed in the same position.

any one of please give me the solution where the text editors also should move up and down when i used the scroller.

Thanks & Regards,

Rajesh konda

Hi abapers,

Am developing a dialog program.

am updating 2 Ztables Headr & Item. in my item table am placing 2 fields of char 255.

so for that am using the class CL_GUI_TEXTEDIT (with help of CONSTRUCTOR method)

which places 2 text editor(s) which i can enter some text.

in transaction am having more than 20 fields.

when am running the Transaction for first time when am using vertical scroll to enter some text in text editor(s).

((am placing the text editors at the bottom of the screen ))

they are working fine.

so when am entering the data for second time am using vertical scroll up in order to enter data from the first field

onwards.

at this time the text editor(s) are remaining at the same position.

means the fields before the text editors are over lapping with these text editors .

so am not able to enter the data in those fields.

these text editors are not moving up and down when am using the vertical scroller .

they remain fixed in the same position.

any one of please give me the solution where the text editors also should move up and down when i used the scroller.

Thanks & Regards,

Rajesh konda

2 REPLIES 2
Read only

Former Member
0 Likes
396

Hi

This problem is because of object creation. it should be created only once.

when you are creating the object of this class type , check if object is initial or not.

data: ref_text type ref to cl_gui_text_edit.

if ref_text is initial.

create object ref_text.

endif.

do it every where , the object you are creating.

it will get resolved.

Thanks

Vishal Kapoor

Read only

Former Member
0 Likes
396

solved by me..!