‎2007 Apr 25 10:42 AM
hallow
I have alv report that when I double click on my first colman it open a new window with table that I wont. I have 2 containers 1 for the main alv and second for the window I open
This is the Error analysis
<b>The attribute screen type with the values 'Normal Screen' and
'Subscreen' determines the use of the screen. If a normal screen is used
as subscreen or vice versa, an error occurs.
The screen "YHR_QUOTA_TEST" 0200 has, in this respect, an inappropriate screen
type.</b>
what can i do to solve error
regards
This is the code for the 2 containers
This for main alv
MODULE pbo OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
CREATE OBJECT grid1
EXPORTING i_parent = g_custom_container.
gs_layout-grid_title = text-020.
CALL METHOD grid1->set_table_for_first_display
create object w_event_receiver.
EXPORTING
i_structure_name = 'YHR_Q4_STR'
it_toolbar_excluding = gt_exclude
is_layout = gs_layout
is_variant = variant
i_save = 'A'
CHANGING
it_outtab = itab
it_fieldcatalog = fcat. " FOR FIELD CATALOG
ENDIF.
CREATE OBJECT event_receiver. "Event For Double Click
SET HANDLER event_receiver->handle_double_click FOR grid1.
This is for window open
MODULE pbo_0200 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF custom_container2 IS INITIAL.
CREATE OBJECT custom_container2
EXPORTING container_name = cont_on_dialog.
CREATE OBJECT grid2
EXPORTING i_parent = custom_container2.
gs_layout-grid_title = text-020.
CALL METHOD grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'YHR_Q4_STR'
it_toolbar_excluding = gt_exclude
is_layout = gs_layout
is_variant = variant
i_save = 'A'
CHANGING
it_outtab = itab
it_fieldcatalog = fcat. " FOR FIELD CATALOG
ENDIF.
‎2007 Apr 25 10:45 AM
Change the screen type for screen 200 in screen attributes and check.
‎2007 Apr 25 10:45 AM
Change the screen type for screen 200 in screen attributes and check.
‎2007 Apr 25 10:48 AM
Ya u r correct Sadiqulla,
Change the screen type Subscreen to Normal screen.
If u r using subscreen u have to attach this screen to the main screen.
Otherwise u cant see the Subscreen.
Thanks & regards
Santhosh
‎2007 Apr 25 10:49 AM
‎2007 Apr 25 10:53 AM
Screen are of three types
Normal Screen,
Sub-screens
Modal Dialog Boxes.
A normal screen cannot be called with a screen, a sub-screen can be.
In the same way a sub-screen cannot exist independently like a normal screen..If u are calling a screen in a screen it must be sub-screen. If u are accesing a screen independetly it must be a normal screen
santhosh
‎2007 Apr 25 10:55 AM
goto SE51
Give the program name and screen number
and select the Attributes radiobutton
change the screen to subscreen