How to use create_sort_rule? Please help!

Hi Experts,
          I want to craete a sort rule for a field. There is a method called create_sort_rule in IF_SALV_WD_SORT interface.
It has following parameters:
inputs:
SORT_ORDER : LIKE IF_SALV_WD_C_SORT=>SORT_ORDER  DEFAULT  IF_SALV_WD_C_SORT=>SORT_ORDER_ASCENDING
SORT_POSITION : TYPE I OPTIONAL
GROUP_AGGREGATION: TYPE ABAP_BOOL  DEFAULT ABAP_FALSE
Output:
VALUE: TYPE REF TO CL_SALV_WD_SORT_RULE
How to use this in a code?
I want to column 'PRODUCT' should be sorted in ascending order, position 1 (it is first column) and it has to group aggregated.
Please help me!
Thanks
Gopal

Hi Gopalakrishna balgia,
I think i have answered in the below thread. Check it out.
How to show Subtotal in webdynpro ALV(ABAP)? Kindly help!
Regards
Rakesh

Similar Messages

Maybe you are looking for

  • How to place a movieclip on top of external swf

    Hi there. I have a main.swf in which i load a xml flash slideshow (.swf). I want to place a menu which will be shown in front of the slideshow gallery. I place the menu at an upper layer but the menu appears behind the slideshow. Can anyone help with

  • Hotmail ad is causing Adobe Flash Player error...need a fix or workaround

    Hi, I'm using Internet Explorer 9.0.8112.16421 (64-bit edition) on a 64-bit Windows 7 machine and using Adobe Flash Player "Square" 10.3.162.28 ActiveX 64-bit. Whenever I check my e-mail on Hotmail, I get the following error: Here are some problems:

  • Web link to PDF loads as gibberish

    Link works fine on PC's. With a Mac the link shows as gibberish when the page loads. However clicking anywhere in the address field of Safari and reloading the page (pressing enter) loads the pdf just fine. Verified that the latest AdobePDFViewer.plu

  • White screen after Apple charging screen, only loads OS X in Safe Boot

    Well, since yesterday, I have been annoyed because of a problem that my iMac has: On booting up the Mac, it does the chime and appears the Apple logo and its loading bar, and begins loading. Everything's ok, isn't it? Well, problem is about to happen

  • Java Virtual Machine error?

    Hi to all! I made one application in which i can choose stuffs for printing, and maximum number of that stuffs is 15. Problem is that when I click on the button for adding stuffs all Forms have just closed and I got only log file with error. But some