Skip to Content
0
Former Member
Apr 25, 2007 at 09:42 AM

help in error

20 Views

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.