Skip to Content
0
Former Member
Jun 14, 2011 at 04:57 PM

Saving the layout of report..

37 Views

Hi Gurus,

I want to save the layout in my report which uses object oriented programming. I tried this code which i saw in other threads, but its not working. Can you please help me out as this issue should be resolved <priority normalized by moderator>

MODULE status_0100 OUTPUT.

SET PF-STATUS space.

SET TITLEBAR 'CAMM'.

  • Display the datas in ALV grid for first time*

IF camm_container IS INITIAL.

  • Build the layout and ALV toolbar*

PERFORM build_layout_toolbar.

  • Build the field catalog*

PERFORM build_fieldcat.

CREATE OBJECT camm_container

EXPORTING

container_name = 'CAMM_CONTAINER'.

h_variant TYPE disvariant,

h_variant-report = sy-repid.

CALL METHOD camm_grid->set_table_for_first_display

EXPORTING

  • i_structure_name = 'ZVRPCAMM'*

is_layout = camm_layout

it_toolbar_excluding = camm_toolbar

is_variant = h_variant

i_save = 'A'

  • I_DEFAULT = 'X'*

CHANGING

it_fieldcatalog = camm_fcat[]

it_outtab = it_camm[].

CREATE OBJECT camm_dyndoc_id

EXPORTING

style = 'ALV_GRID'.

Thanks,

Vandana

Edited by: Vinod Kumar on Jun 14, 2011 11:02 PM