2008 Nov 07 4:17 AM
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
2008 Nov 12 9:35 AM
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
2008 Dec 08 9:37 AM