‎2007 Apr 09 1:23 PM
Hi Experts,
1.Could you please tell me how to convert a normal screen into a subscreen during runtime.
2.how to display a screen in Custom Control.
your quick response will be highly appreciated.
thanks
samm
‎2007 Apr 09 1:34 PM
hi
good
try this
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN
THANKS
MRUTYUN^
‎2007 Apr 09 1:28 PM
u have to create a object refering to the class CL_GUI_CUSTOM_CONTAINER.
data : g_custom_container TYPE REF TO cl_gui_custom_container.
in PBO u have to write code for tht
Eg.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING
CONTAINER_NAME = 'CUSTOM'.
CREATE OBJECT GRID
EXPORTING
I_PARENT = g_custom_container.
ENDIF.
CUSTOM is custom control name in layout.
‎2007 Apr 09 1:33 PM
‎2007 Apr 09 1:34 PM
hi
good
try this
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN
THANKS
MRUTYUN^
‎2007 Apr 09 1:36 PM
Hi Samir,
2) ans
This code can help you..
<b>****** data declaration*************</b>
data : g_custom_container type ref to cl_gui_custom_container,
alv_grid type ref to cl_gui_alv_grid.
<b>*****Generating and linking objects***********</b>
if g_custom_container is initial.
create object g_custom_container
exporting container_name = ' <custom control name>.
create object alv_grid
exporting i_parent = g_custom_container.
<b>***************loading the grid*********</b>
module transfer_data output.
call method alv_grid -> set_table_for_first_display
exporting i_structure_name = 'S_FLIGHT'
changing it_outtab = itab.
endmodule.
Regards,
Thasneem
‎2007 Apr 12 1:20 PM
Hi Fathima,
your answer helped me to some extent. But i want to display a screen into the custom control. like i want to call a transaction (say : ' VA01 ' ) on to the custom control which i have created. i.e. that transaction should be displayed in the custom control. how to do that ?
thanks
Samir