Hi following is the code am using to sort and subtot..
but i have a requirement..
this code will show the initial sub total...
but now i want to block it.... in the sence that the subtot should come or shld be displayed whenever subtot button is pressed and how can i block it in the code??
but i need the field subtot = 'x' also....
is there any other fireld that can be used along...
FORM Z_FILL_SORT USING P_SPOS P_FIELD P_ST.
WA_SORT-SPOS = P_SPOS.
WA_SORT-TABNAME = 'T_FINAL'.
WA_SORT-FIELDNAME = P_FIELD.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = P_ST.
APPEND WA_SORT TO T_SORT.