10-17-2005 5:51 AM
I want to split a screen so that on left side there is one image and right there should be a selection screen(or any screen). Let me know how can I do it.
Thanks
10-17-2005 5:57 AM
Hi ,
Use CL_GUI_EASY_SPLITTER_CONTAINER class to split the sceen.
With Regards,
Ranganathan
10-17-2005 5:57 AM
Hi ,
Use CL_GUI_EASY_SPLITTER_CONTAINER class to split the sceen.
With Regards,
Ranganathan
10-17-2005 6:00 AM
hi,
define two subscreen area, and using two sub screens you achieve this
cheers,
sasi
10-17-2005 6:14 AM
HI,
Open se38 and try this sap program RSDEMO_EASY_SPLITTER_CONTROL
I think this is exactly what you want.
please reward points if it helps you.
10-17-2005 6:21 AM
Hi,
You have to use custom container and subscreen for spliting the screen.Kindly go through the below sample code and reward points by clicking the star on the left of reply,if it helps.
Declaration should be
Custom Container for first tab
data : o_custom_container1 TYPE REF TO cl_gui_custom_container,
Custom Container for second tab
o_custom_container2 TYPE REF TO cl_gui_custom_container,
Splitter Container for second tab
o_splitter type ref to cl_gui_splitter_container.
You should have a coding like this in PBO.
IF o_splitter IS INITIAL .
CREATE OBJECT o_splitter
EXPORTING
parent = pparent
rows = prows
columns = pcolumns
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
others = 3.
IF sy-subrc ne 0.
PERFORM f9003_error_handle USING text-004.
ENDIF.
ENDIF.
Creating containers for the split grids
call method o_splitter->get_container exporting row = 1
column = 1
receiving container = o_container1.
call method o_splitter->get_container exporting row = 2
column = 1
receiving container = o_container2.
Set where the splits on the screen comes
call method o_splitter->set_row_height
exporting
id = 1
height = 45
exceptions
cntl_error = 1
cntl_system_error = 2
others = 3.
10-17-2005 7:37 AM
U can see this sample code
*&---------------------------------------------------------------------*
*& Report <b>RSDEMO_EASY_SPLITTER_CONTROL</b> *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT rsdemo_easy_splitter_control .
* splitter control
DATA splitter TYPE REF TO cl_gui_easy_splitter_container.
* container for the splitter control
DATA container TYPE REF TO cl_gui_custom_container.
* containers created by the splitter control
DATA container_1 TYPE REF TO cl_gui_container.
DATA container_2 TYPE REF TO cl_gui_container.
DATA init.
DATA ok_code TYPE sy-ucomm.
CALL SCREEN 100.
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
IF init is initial.
* create a container for the splitter control
CREATE OBJECT container
EXPORTING container_name = 'CUSTOM'.
* create the splitter control
CREATE OBJECT splitter
EXPORTING parent = container
orientation = 1.
* get the containers of the splitter control
<b> container_1 = splitter->top_left_container.
container_2 = splitter->bottom_right_container.</b>* create the picture controls inside the containers of the splitter
CREATE OBJECT picture_1
EXPORTING parent = container_1.
CREATE OBJECT picture_2
EXPORTING parent = container_2.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS cntl_system_error = 1
cntl_error = 2.
IF sy-subrc <> 0.
* error handling
ENDIF.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
*& Module EXIT INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE exit INPUT.
CALL METHOD container->free.
LEAVE PROGRAM.
ENDMODULE. " EXIT INPUT
Hope this helps.
Try this sample program its available in control examples.
Reward points and close the thread.
10-17-2005 8:40 AM
Hi,
check this it may help you....
http://help.sap.com/saphelp_erp2004/helpdata/en/d3/2955360b00a115e10000009b38f839/frameset.htm
regards,
venu.