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

Regarding SUBSCREEN

Former Member
0 Likes
589

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

hi

good

try this

SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN

THANKS

MRUTYUN^

5 REPLIES 5
Read only

Former Member
0 Likes
566

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.

Read only

0 Likes
566

i want to display an entire normal screen in custom control

Read only

Former Member
0 Likes
567

hi

good

try this

SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN

THANKS

MRUTYUN^

Read only

Former Member
0 Likes
566

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

Read only

0 Likes
566

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