Adding a Sort Button in SM30

Hello Everyone,
        I have a Z table which I am maintaining it through SM30 which has got 5 fields (ZREFERENCE, Profit Center, GL Account, Posting date and amount), currently the data is getting sorted on the basis of ZREFERENCE field. The requirement is after clicking a sort button the data should get sorted on the basis of the field that I have selected. I have created a button on application tollbar.  Need further help in displaying the data in required sorted format...
Thanks & Regards,
Viraj

You can try creating your own PAI module in which u can mention code something like below:
DATA: fld(30),
      lin TYPE i,
      off TYPE i.
GET CURSOR FIELD fld LINE lin OFFSET off.
fld gives you the fild name on which u put the cursor. Based on that u can try sorting. Dunno if this works or not, but u can give it a try.

Similar Messages

  • URGENT can anyone let me know how to include sort buttons in table maintian

    hi
    can anyone let me know how to include sort buttons in table maintianence
    as generally table maintianec done have sort buttons i need to include the sort buttons kindly let me know on that asap
    or can we use module pool in between table maintianece screen
    if yes how touse and how to cod for that
    regards
    Arora

    You can change the coding of Table Maintenance.
    >> Goto SM30, give table name and goto Display/Maintain mode and copy all the GUI status from standard program into your function group. Add sort button in the GUI Status of Maintain & Display mode.
    >> Goto to tablemaintenance screen generated using SE51.
    >> Select change mode.
    >> After PROCESS BEFORE OUTPUT, create one module to assign your function group program name to " X_HEADER-GUI_PROG = "
    >> In PROCESS AFTER INPUT, add another module at the end to perform the action.
    -Alpesh.Saparia

  • Why is my sort button gone

    I opened a spreadsheet that was made a few weeks ago and added more data. I tried to sort all of the data together but my sort button was missing!!!!

    Hi Gretchengracie,
    Your profile shows iOS. This forum is for Numbers on a Mac running OS X. You will get a quicker and better answer here in iWork for iOS :
    https://discussions.apple.com/community/app_store/iwork_for_ios?view=discussions
    Regards,
    Ian.

  • Missing sort button on Spotify iPad.

    As stated on the subject, where is the the sort button gone? i noticed this after the 30oct auto update on my iPad Appstore. There are no issues on previous Spotify app (at-least for me) yet this new released remove one of the neat feature that you guys having a hard time to implant on iPhone.
    So again, where is the sort button on IPad ?

    Best bet is to suggest it be re-added over on the Ideas Exchange:
    http://community.spotify.com/t5/Spotify-Ideas/idb-p/ideaexchange
    This feature wasn't implemented on iPhone and it looks like in the new "design" iPad app, it is using the same views as iPhone.

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts
      As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?
      Thanks for your help .

    Hi guixin,
    1. Before calling REUSE_ALV_LIST_DISPLAY
    2. Write this code :
    data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.
    exclwa = '&OUP'.
    append exclwa to excl.
    exclwa = '&ODN'.
    append exclwa to excl.
    3. Then while calling the FM,
       pass this parameter also .
    IT_EXCLUDING     = excl
    It will work fantastic.
    regards,
    amit m.

  • Strange bug -- adding one more button OR page causes Form warning to appear

    I'm building a simple interactive document in InDesign CS4 on the Mac, to be exported/delivered as a PDF. There are a few text-based buttons on the Master Page that are set to Go To a Text Anchor on Release. There are 4 buttons of these buttons on the page, and each one leads to a different page in the document, and they all work fine. They are all built the same way.
    I want to export a PDF that opens cleanly in Reader, meaning no unexpected dialog boxes or warning messages appear. Up until this point, my document opens cleanly in Reader.
    However, when I create a FIFTH button (using the exact same method used to create the other buttons), OR I add ANY more pages to my document (which currently stands at 16 pages, but will need to ultimately be upwards of 40), for some reason, opening the PDF in Reader causes Reader to start displaying the large, distracting pink warning message at the top of the page:
    "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
    The fifth button I create (from scratch) causes this message to appear.
    Or, if I add another page (using my Master Page, where the buttons are used), this message appears. Even if the fifth button is not created, and I add another page from the Master, this message appears.
    If I add a blank new page (without using the Master Page), the message does NOT appear.
    So, for some reason, adding ONE more button, or referring to the Master Page in the document ONE more time by adding a 17th (or more) pages, seems to kick InDesign/Acrobat Reader into thinking my document is suddenly a form, and causes Reader to display that obnoxious pink message when opening the document.
    I've tried several troubleshooting steps.
    - I've ensured my buttons have unique names.
    - I've tried creating the fifth button from scratch, and also tried creating it from duplicating one of the existing "good" buttons.
    - I've made sure the button has a destination page/Text Anchor to go to.
    - I've opened the PDF in Acrobat Pro 9, and gone through all of the page and buttons in the Forms Manager, and there is nothing out of the ordinary in that view.
    Why is Reader suddenly thinking my document is a form (that "cannot be edited/saved") when I add one more button, or one more page!? It's bizarre, and quite frustrating.
    Thanks for any insights,
    Robbie

    You can use that same workaround with ID CS4 files. You just have to make the PDF and then go into Acrobat to add the security that doesn't allow editing (Acrobat -> Security -> Encrypt with Password) . That gets rid of the warning about the form. Of course if you actually have a form somewhere in your document, you won't be able to use that......

  • Table header sort buttons not displaying correctly.

    HI All,
    I'm having a problem with data table headers that seems to have appeared out of nowhere but is probably something simple I'm overlooking. To be sure it wasn't something deep in my app, I've created a simple project and recreated the problem.
    I created a simple web project and dropped a table onto the main page. I then bound the table to a full select of a myqsql table and then compiled. Simple enough, everything looks okay, until I opened the page in my browser.
    The table displays without borders and the sort buttons in the headings are not displayed but described such as this example
    " Button to sort column Date as the primary sort column."
    Any ideas?
    I'm not sure if this is a Creator error/setting or something else but I thought I'd start with Creator.
    Thanks
    Barry

    Some additional info
    The sort "buttons" have been replaced by links, that don't do anything. I even enabled all the multiple-select, pagination, etc features for the table and rather than be displayed as buttons, links have appeared for these functions as well.
    Thanks

  • Adding a push button on the report toolbar

    adding a save button on the report toolbar, so that after clicking the button, the data fetched on the report will be stored in the application server.

    Hi
    to automate this process ,best way is to create a Z rport and there u can submit this sap standard report and get its output into an Internal table and then u can write this internal table to application server via following demo code -
    this is code for both (download /upload),u can not use CG3y and CG3z as u want to do it as a background job ..
    *& Report ZGILL_AS *
    REPORT ZGILL_AS message-id rp .
    tables: pa0001,pa0002.
    select-options s_pernr for pa0001-pernr no intervals MODIF ID XYZ.
    parameters: p_dwnld AS CHECKBOX ,
    p_upld AS CHECKBOX DEFAULT 'X'.
    parameters: P_DSNI(75) TYPE C MODIF ID ABG DEFAULT
    '/usr/local/sapdata/amit.dat' LOWER CASE.
    data: begin of itab occurs 0,
    pernr(8),
    sp1(1) value ',',
    werks(4),
    sp2(1) value ',',
    persg(1),
    sp3(1) value ',',
    persk(2),
    end of itab.
    data: s_eof(3).
    start-of-selection.
    if p_upld = 'X'.
    OPEN DATASET P_DSNI FOR OUTPUT IN LEGACY TEXT MODE.
    PERFORM FETCH_DATA.
    STOP.
    elseif p_dwnld = 'X'.
    OPEN DATASET P_DSNI FOR INPUT IN LEGACY TEXT MODE.
    IF SY-SUBRC NE 0.
    MESSAGE E016 WITH
    'Error opening seq. file, RC:' SY-SUBRC.
    EXIT.
    ENDIF.
    CLEAR S_EOF.
    DO.
    PERFORM FETCH_file.
    IF S_EOF EQ 'YES'. stop. ENDIF.
    ENDDO.
    endif.
    END-OF-SELECTION.
    if itab[] is not initial.
    perform print_file1 tables itab.
    else.
    write:/ 'No records exists'.
    endif.
    *& Form FETCH_DATA
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_DATA .
    SELECT * FROM PA0001 WHERE PERNR IN S_PERNR.
    MOVE-CORRESPONDING PA0001 TO ITAB.
    TRANSFER ITAB TO P_DSNI.
    APPEND ITAB.
    ENDSELECT.
    CLOSE DATASET P_DSNI.
    ENDFORM. " FETCH_DATA
    *& Form FETCH_file
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_file .
    READ DATASET P_DSNI INTO itab.
    append itab.
    clear itab.
    IF SY-SUBRC NE 0.
    S_EOF = 'YES'. EXIT.
    ENDIF.
    ENDFORM. " FETCH_file
    *& Form print_file1
    text
    -->P_ITAB text
    FORM print_file1 tables P_ITAB structure itab .
    write:/2 'EmpNo',
    14 'Personnel Area',
    34 'Emp Group',
    47 'Emp SubGroup'.
    skip 1.
    loop at p_itab.
    write:2 p_itab-pernr,
    14 p_itab-werks,
    34 p_itab-persg,
    47 p_itab-persk.
    skip 1.
    endloop.
    ENDFORM. " print_file1
    <b>Reward if usefull</b>

  • Avoiding Blind query from executing while clicking sort button on table.

    Hi All,
    I am using jdev11.1.1.6
    I made a simple ADF search page with few mandatory search criteria's.
    The result table can be sortable and filterable by the user.
    The page is working fine as expected with the search criterai's, but i found a problem in the page.
    Once my page got loaded, before entering any search criteria, if i scroll down to the result table and clicked on the "sort" button on any column, my base page query is getting executed
    without any search criteria i.e a blind query is getting executed. i need to restrict this. This is not expected.
    Is there any inbuilt properties for restricting this or this has to be done manaully.
    please help me with this issue.
    Regards
    Siva
    Edited by: Minion on Oct 18, 2012 11:13 AM

    Hi Pandu,
    Thanks for the response,
    I am having more than 80 columns in the table, this means, i need to set the sort property for each and every column separately?
    Do we have any table level property to restrict it.
    First of all is this an intended behavior of ADF ?
    I have implemented few security to access my page, such that only few user can able view all data by restricting few search criteria's result.
    But due to the above mentioned problem my works on implementing security is not working. regardless of the type of user if i just click the sort button its giving all the data for all users.
    Please guide me a best method for restricting this
    Regards
    Siva

  • MS CRM 2015 Adding Custom RIbbon button in dashboard and Changing Colors

    Hi,
    I am Looking for customization in MS Dynamics CRM 2015 and want to Add Custom Ribbon button in dashboard and Changing Colors of that ribbon using customization.xml i am new to crm 2015 and only know how to import export solutions.
    Regards
    Irfan

    Hello Irfan,
    For adding a custom button please refer this blog
    https://community.dynamics.com/crm/b/aeonnexuscrm/archive/2014/10/21/ms-crm-2013-adding-custom-ribbon-button-in-dashboard.aspx
    And for changing colors in Chart
    https://crmchartguy.wordpress.com/2012/08/23/palette-custom-colors-in-charts/
    Hope this helps!
    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

  • How to hide sort buttons in BEx Web?

    Hi,
    I've got an input-ready query with hierarchy on lead column and key figures on data columns. I'd like to hide sort buttons in column headers to decrease the space required and make the screen simpler. Any possibilities to get rid of these, in this case useless, arrows?
    Thanks!
    Aki

    Hi,
    Create a new GUI Status for your program.. put whatever button you require for it..
    In the AT SELECTION-SCREEN OUTPUT event..
    SET pf-status xxx.
    Regards,
    Anand

  • Sort by date added actually sorts by album v1.0.10

    When I try to sort by date added, it sorts it by album for some reason. Squash this bug please.

    Hey gapdude101,
    Just saw your response this evening.  I did a fast search again and I found something that's solved my problem of my iTunes playlists not showing up in the same order on my iPhone or iPad Remote app.  I right-clicked on the playlist in iTunes and selected Copy to Play Order, and I saw the play order on the playlist on my iPhone sync in real time to what I had on the screen in iTunes.  That seems to have solved my problem.  Here's a link to the other article on Apple Support on here where I found this...
    "If you like the way iTunes has shuffled the play order of one of your play lists, you can use the "Copy to Play Order" shortcut menu command to make the shuffled play order the permanent play order."   http://support.apple.com/kb/TA27500?viewlocale=en_US&locale=en_US
    Brian

  • Adding a Glossary button which doesnt move the timeline on !

    I'm using Captivate 3. On each page there is a
    backwards/forwards button. On this one module we've now added a
    'Glossary button'. If the user clicks this it opens up a external
    PDF file in a seperate window. That works fine.
    Say they are at the end of a page , the page is paused as its
    waiting for them to click Back/Forward or Menu.
    However if they click the Glossary button this moves the
    timeline forward as its a kind of 'continue' which is frustrating
    as it then moves to the next page. I just want them to be able to
    click Glossary as many times as they want and the program doesnt
    move on a page.
    Has anyone come across this before ? Just want a button which
    doesnt seem to move on ! Its not set to continue at all. Just set
    to open an external file
    Regards

    Hello P_SJ,
    The way I would tackle this would be to create the button in
    Adobe Flash (including the link to the PDF document) and then
    import this into Captivate as an animation. The reason for me
    suggesting this is because with Images and Animations you can make
    the object persist for the entire project (Options tab > Display
    for > rest of project).
    If you don't need the button to persist then you could just
    disable the Pause after option (Options tab) in the Button dialog
    and set the On success menu option to Open URL or file.
    I guess that even if you did need the button to persist you
    could just copy the button and paste this onto all the relevant
    slides. That might work as well.
    HTH
    Regards - Mark

  • Disabling sort button on the alv list display

    Hi,
       how to disable sort button on alv list display
    thanks

    Fill an itab
    1- Create an itab type SLIS_T_EXTAB.
    2- Populate it with the Function codes you want to exclude ('&OUP', '&ODN').
    3- Pass it as parameter to IT_EXCLUDING
    Regards
    Edited by: Jordi Escoda Ruiz on Apr 24, 2008 10:39 AM

  • How to catching Clear-Sort button event?

    Does any one know how to catch the event when user click the Clear-ALL-Sort button? I would like to do somthing in Java by catching this event.
    thanks in advance.
    John

    I'm not really sure what you mean.
    LIke, I want to use the three event listener functions like a global or static function for all of the buttons which I think I've done for the most part.
    However, I'm having an issue with the current state of the button. Like...
    1 - on
    2 - off
    3 - off
    4 - off
    1 - off
    2 - on
    3 - off
    4 - off
    1 - off
    2 - off
    3 - on
    4 - off
    1 - off
    2 - off
    3 - off
    4 - on
    Really redundant right? So I want to beable to pass something through the event listener functions somehow so I only have to right the listener section once instead of 4 times.
    Know what I mean? If I was in an external document class structure I could just re-create my own event listener class to pass aonther property/parameter. But I don't know what I can do within AS3 internally in the Flash movie to do this.
    Just seems likes there should be a relatively simple way to do this, but I'm not sure how many errors I'd have to wade through or if it's even possible.

Maybe you are looking for