‎2005 Jun 08 4:01 PM
hi,
this is my code for my alv sorting,
w_sortinfo_alv-tabname = 'I_RESULTS_SORTED'. " Internal
w_sortinfo_alv-fieldname = 'KOSTL'. " Give Fieldname
w_sortinfo_alv-GROUP = '*'.
w_sortinfo_alv-subtot = 'X'.
append w_sortinfo_alv to i_sortinfo_alv.
is there anyway I can sort by khinr ascending then by
kostl ascending, and total by kostl.
thanks.
‎2005 Jun 08 4:12 PM
Sure, it should be as easy as adding it to the table.
w_sortinfo_alv-tabname = 'I_RESULTS_SORTED'. " Internal
w_sortinfo_alv-fieldname = 'KHINR'. " Give Fieldname
w_sortinfo_alv-up = 'X'.
append w_sortinfo_alv to i_sortinfo_alv.
w_sortinfo_alv-tabname = 'I_RESULTS_SORTED'. " Internal
w_sortinfo_alv-fieldname = 'KOSTL'. " Give Fieldname
w_sortinfo_alv-up = 'X'.
w_sortinfo_alv-GROUP = '*'.
w_sortinfo_alv-subtot = 'X'.
append w_sortinfo_alv to i_sortinfo_alv.
Regards,
Rich Heilman
‎2005 Jun 08 4:12 PM
Sure, it should be as easy as adding it to the table.
w_sortinfo_alv-tabname = 'I_RESULTS_SORTED'. " Internal
w_sortinfo_alv-fieldname = 'KHINR'. " Give Fieldname
w_sortinfo_alv-up = 'X'.
append w_sortinfo_alv to i_sortinfo_alv.
w_sortinfo_alv-tabname = 'I_RESULTS_SORTED'. " Internal
w_sortinfo_alv-fieldname = 'KOSTL'. " Give Fieldname
w_sortinfo_alv-up = 'X'.
w_sortinfo_alv-GROUP = '*'.
w_sortinfo_alv-subtot = 'X'.
append w_sortinfo_alv to i_sortinfo_alv.
Regards,
Rich Heilman
‎2005 Jun 08 4:53 PM
Hi Jamie
Rich's answer should solve your problem. For your further work related with the ALV Grid control you can refer to the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">"An Easy Reference for ALV Grid Control"</a>.
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>