Getting Subtoal in sap abap programming language
DATA : gt_sort TYPE slis_t_sortinfo_alv .
DATA : gs_sort LIKE LINE OF gt_sort.
FORM f_subtotal .
gs_sort-fieldname = 'ZTRN'.
gs_sort-up = 'X'.
* gs_sort-SPOS = 1.
* gs_sort-expa = 'X'.
gs_sort-subtot = 'X '.
APPEND gs_sort TO gt_sort .
ENDFORM.
DATA : gs_sort LIKE LINE OF gt_sort.
FORM f_subtotal .
gs_sort-fieldname = 'ZTRN'.
gs_sort-up = 'X'.
* gs_sort-SPOS = 1.
* gs_sort-expa = 'X'.
gs_sort-subtot = 'X '.
APPEND gs_sort TO gt_sort .
ENDFORM.
Comments
Post a Comment