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: 

Remaining TextEdit in a tabstrip : known bug ?

Former Member
0 Kudos

Hi,

I use the cl_gui_textedit in a custom control (cl_gui_custom_container) in a subscreen, in the last tab of a tabstrip. (ok, still following ?).

Everything is OK, but when I leave the screen and come back on the first tab, the text editor overlaps the subscreen. Switching to any other tab gives the same result.

I have enabled my transaction for the web, and the bug does not occur in webgui. I assume it's a frontend bug, but I don't find any relevant note. Except the very old 524967 which advices to download the latest sapgui. :[

Is it a known bug ? How to correct it ?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I use the follwoing steps:

wc_viewer->free( ). editor

wc_parent->free( ). container

call method cl_gui_cfw=>flush

exceptions

cntl_system_error = 1

cntl_error = 2.

if sy-subrc NE 0.

  • MESSAGE .

endif.

free wc_viewer.

free wc_parent.

clear wc_viewer.

clear wc_parent.

leave to screen 0.

8 REPLIES 8

raymond_giuseppi
Active Contributor
0 Kudos

Look at OSS [Note 203023 - Understanding screen compression and resizing|https://service.sap.com/sap/support/notes/203023]

Regards

0 Kudos

No, the editor is not overlapping; it appears on a screen where it is not defined ! Moreover, the problem does not occurs in webgui => it's a 6.40 frontend bug.

Former Member
0 Kudos

Do you use more then one cl_gui_custom_container on all of your subscreen for the different tabs?

Be careful how you name the container this has to be unique for each container otherwise you can get this effect

0 Kudos

I use two custom containers, but both on the same tab. And I FREE the created objects when I leave the tabstrip.

Former Member
0 Kudos

I wanted to say this reference:

1) Name

Type Custom Control

Name CONTAINER99 this has to be unique within all your screens and subscreens open.

2) You don't need to free the container when you leave, but if you do this, you should flush after the free and also call free object_name

You use a different subscreen for each tab?

0 Kudos

2) Yes, I have one subscreen per tab, from subscr1 to subscr7.

1) Since the two custom control are on the same subscreen, they have different names.

What do you mean by "call free object_name" ?

Former Member
0 Kudos

I use the follwoing steps:

wc_viewer->free( ). editor

wc_parent->free( ). container

call method cl_gui_cfw=>flush

exceptions

cntl_system_error = 1

cntl_error = 2.

if sy-subrc NE 0.

  • MESSAGE .

endif.

free wc_viewer.

free wc_parent.

clear wc_viewer.

clear wc_parent.

leave to screen 0.

0 Kudos

Had to add a condition :

if wc_viewer is not initial. wc_viewer->free( ). endif.

if the user did not go to the last tab (where editor is created).

Tested, seems to be solved. THANKS !!!