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

Calling a screen with CL_GUI_TEXTEDIT

Former Member
0 Likes
666

Hello all...

I'm trying to call a screen with a cl_gui_textedit object using:


CALL SCREEN 0004 STARTING AT 1 1.

Result: empty screen...!!!

Help's...??

5 REPLIES 5
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
607

Hi Flavio

1. Are you sure you have correctly created instances?

2. There may be some problems about OLE Flush for which you can just open an OSS note.

3. May your network have some glitches which interrupts the communication between presentation and application layers?

I hope the reason suits the 1st case.

*--Serdar

Read only

0 Likes
607

See:


* Its work...
  CALL SCREEN 0004.
* Its also work, but the screen is empty...
  CALL SCREEN 0004 STARTING AT 1 1.

You understand...??? So... That's the problem...

My release is 4.6C

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
607

Hi Flavio

Just some work-arounds:

1. Also define the ending point:

<u>e.g.</u>

CALL SCREEN 0004 STARTING AT 1 1 ENDING AT 100 20 .

2. If the screen 0004 is of type dialog (modal) screen, change its type to normal screen and call it again specifying screen coordinates to display it as modal.

*--Serdar

Read only

0 Likes
607

The solution is:

call screen 100 starting at 1 1.

in the pbo of screen 100 initialize the textedit control.

if you initialize the textedit control before first pbo if screen 100, the control is created in a wrong context.

so you have to start up first dynpro with "starting at" and then initialize the control in the first call of the pbo module of screen 100.

Hope this helps.

Read only

Former Member
0 Likes
607

hi,

try to check the code below.

1) create a screen say 100.

2) choose custom container to design a container on the screen 100.

3) name the container as CONTROL.

4) Now call the screen and write the code in PBO Module as below.

5) DATA: w_editor TYPE REF TO cl_gui_textedit,

w_container TYPE REF TO cl_gui_custom_container.

6) MODULE STATUS_0100 OUTPUT.

CREATE OBJECT: w_container EXPORTING container_name = 'CONTROL',

w_editor EXPORTING parent = w_container.

ENDMODULE.