‎2004 Nov 04 12:16 PM
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...??
‎2004 Nov 04 2:30 PM
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
‎2004 Nov 04 3:12 PM
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
‎2004 Nov 04 8:05 PM
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
‎2008 Dec 09 6:59 AM
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.
‎2008 Dec 09 7:10 AM
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.