Skip to Content
0
Former Member
Jun 25, 2008 at 03:25 PM

please let me know where i have to correct for my alv display

15 Views

perform display_report.

FORM display_report .

IF NOT itab[] IS INITIAL.

PERFORM create_fldcat.

PERFORM create_layout.

PERFORM display_report_alv.

else.

MESSAGE s047.

endif.

ENDFORM.

FORM create_fldcat .

REFRESH t_report_fieldcat.

PERFORM add_report_fields USING:

'1' 'component' c_report_tabname text-001 ,

'2' 'release' c_report_tabname text-002 ,

'3' 'EXTRELEASE' c_report_tabname text-003 ,

'4' 'COMP_TYPE' c_report_tabname text-004 .

ENDFORM. " create_fldcat

FORM create_layout .

CLEAR w_layout.

w_layout-colwidth_optimize = 'X'. "Optimise column width

w_layout-zebra = 'X'. "Stripy rows

w_layout-cell_merge = 'X'. "Merge cells

ENDFORM. " create_layout

FORM display_report_alv .

DATA: v_repid LIKE sy-repid.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = v_repid

is_layout = w_layout

  • it_sort = t_report_sort "DS1K932739*

it_fieldcat = t_report_fieldcat

TABLES

t_outtab = itab.

ENDFORM. " display_report_alv

FORM add_report_fields

USING &1 TYPE any

&2 TYPE any

&3 TYPE any

&4 TYPE any.

CLEAR w_report_fieldcat.

w_report_fieldcat-col_pos = &1.

w_report_fieldcat-fieldname = &2.

w_report_fieldcat-tabname = &3.

w_report_fieldcat-reptext_ddic = &4.

w_report_fieldcat-seltext_l = &4.

w_report_fieldcat-seltext_m = &4.

w_report_fieldcat-seltext_s = &4.

APPEND w_report_fieldcat TO t_report_fieldcat.

ENDFORM. " add_report_fields

in the debugging mode i came to know that &1,&2,&3,&4 are not referring to the location they have to.

can anyone tell me the solution please. i am new to ALV and trying to work onthis.

<REMOVED BY MODERATOR>

<LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>

requesting an immediate help in this regard.

thanks in advance

Edited by: Alvaro Tejada Galindo on Jun 25, 2008 3:44 PM

Edited by: Alvaro Tejada Galindo on Jun 25, 2008 4:03 PM