Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Sub total in ALV Block List Display

Hello Guys,

I have written the following code to get the sub total in ALV BLOCK LIST DISPLAY.Dont know,why am i cannot see the sub total in the output:

wa_fieldcat4-col_pos = '5'.
  wa_fieldcat4-fieldname = 'I'.
  wa_fieldcat4-tabname = 'IT_FINAL_I'.
  wa_fieldcat4-seltext_l = 'I'.
  wa_fieldcat4-just = 'C'.
  wa_fieldcat4-do_sum = 'X'.
  APPEND wa_fieldcat4 TO it_fieldcat4.
  CLEAR: wa_fieldcat4.

  clear : wa_sort.
  wa_SORT-UP         = 'X'.
  wa_SORT-FIELDNAME  = 'I'.
  wa_sort-tabname  = 'IT_FINAL_I'.
  wa_SORT-SUBTOT     = 'X'.
  APPEND wa_sort to iT_SORT4.

 CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        is_layout                        = v_layout
        it_fieldcat                      = it_fieldcat4
        i_tabname                        = 'IT_FINAL_I'
        it_events                        = it_events
        IT_SORT                          = it_sort4
*   I_TEXT                           = ' '
      TABLES
        t_outtab                         = it_final_i

Please suggest.

Regards

Najam

Former Member
Not what you were looking for? View more on this topic or Ask a question