[58081] in SAPr3-news

home help back first fref pref prev next nref lref last post

Re: 2 ALV's im Split container Layout Problem.

daemon@ATHENA.MIT.EDU (Frank Freyer)
Tue Sep 12 01:04:53 2006

To: sapr3-news@mit.edu
Date: 11 Sep 2006 22:04:39 -0700
From: "Frank Freyer" <leander63@web.de>
Message-ID: <1158037479.025685.267560@i42g2000cwa.googlegroups.com>

Tony schrieb:

> Hallo Frank,
>
> kannst du mir noch etwas mehr zum DISVARIANT-HANDLE sagen ?
> mir ist jetzt nicht ganz klar wie ich das mache....
> ich habe gerade keinen Plan.
>
> gruss
> tony
>
> > Hi Tony,
> >
> > die Layouts "h=E4ngen" an am Report- Namen. Wenn Du mehr als
> > ein ALV im Report einsetzt, kannst Du Sie =FCber den DISVARIANT-HANDLE
> > differenzieren.  Das sollte es schon sein.
> >
> >
> > Gru=DF,
> > Frank

jo, Beispiel:

FORM display_alv_1 .
  data: lt_fieldcat type lvc_t_fcat,
        ls_variant  type disvariant,
        ls_layout   type lvc_s_layo,
        lt_toolbar_excluding type ui_functions.
.=2E.
  ls_variant-report    =3D sy-repid.
  ls_variant-variant   =3D gd_variant.
  ls_variant-handle    =3D 1.
  ls_layout-sel_mode   =3D 'B'.
.=2E.
  CALL METHOD go_gui_alv_grid->set_table_for_first_display
    EXPORTING
      i_buffer_active      =3D abap_false
      i_bypassing_buffer   =3D abap_true
      i_consistency_check  =3D ' '
      i_structure_name     =3D 'MY_STRUCTURE'
      is_layout            =3D ls_layout
      i_default            =3D abap_true
      i_save               =3D 'A'
      is_variant           =3D ls_variant
      it_toolbar_excluding =3D lt_toolbar_excluding
    CHANGING
      it_outtab            =3D gt_data_1[]
      it_fieldcatalog      =3D lt_fieldcat.
ENDFORM.

FORM display_alv_2 .
  data: lt_fieldcat type lvc_t_fcat,
        ls_variant  type disvariant,
        ls_layout   type lvc_s_layo,
        lt_toolbar_excluding type ui_functions.
.=2E.
  ls_variant-report    =3D sy-repid.
  ls_variant-variant   =3D gd_variant.
  ls_variant-handle    =3D 2.
  ls_layout-sel_mode   =3D 'B'.
.=2E.
  CALL METHOD go_gui_alv_grid->set_table_for_first_display
    EXPORTING
      i_buffer_active      =3D abap_false
      i_bypassing_buffer   =3D abap_true
      i_consistency_check  =3D ' '
      i_structure_name     =3D 'MY_STRUCTURE'
      is_layout            =3D ls_layout
      i_default            =3D abap_true
      i_save               =3D 'A'
      is_variant           =3D ls_variant
      it_toolbar_excluding =3D lt_toolbar_excluding
    CHANGING
      it_outtab            =3D gt_data_2[]
      it_fieldcatalog      =3D lt_fieldcat.
ENDFORM. =20


Gru=DF,
Frank


home help back first fref pref prev next nref lref last post