Sort option

i have a formula that retreives a date time stamp based upon a modification to the data.
i created a datepart formula to retreive the month, day , year, and time
then concatenated it to use in the sort option
i am unable to use this formula as a group of a sort option.
this is my formula(same for day, month, year, time)
if {@modification type}='O' then (datepart('d',{PR_ITEM_HIST_RPT;1.CREATE_DATE})  )
else if {@modification type}='U' and {PR_ITEM_HIST_RPT;1.Pack_chnge_date}>={PR_ITEM_HIST_RPT;1.CHANGE_DATE}
then (datepart('d',{PR_ITEM_HIST_RPT;1.Pack_chnge_date}))
else if {@modification type}='U' and {PR_ITEM_HIST_RPT;1.Pack_chnge_date}<={PR_ITEM_HIST_RPT;1.CHANGE_DATE}
then (datepart('d',{PR_ITEM_HIST_RPT;1.CHANGE_DATE}))
then i use this
totext({@datepart mnth}&{@datepart day}&{@datepart year}&{@time part})
what would be hindering my use of this?

Not sure why it does not work, but I suspect it has to do with your concantenation.
Instead of breaking out the date components and then concantenating, try using the following formula to generate your sorting factor:
      ToText(Date(field))
Gary

Similar Messages

  • Sort option in BEX Report

    Hi All,
    In the Bex Reoprt. I need to sort a Keyfield . If right click on keyfield
    following options are coming (but, sort option is not there in this) again if i double click on keyfield sort option is coming but it is not working... what is the reason can anyone explain me.
    *Back to Start
    Keep filter value
    Fileter and Drildown according to
    Add Drilldown according to
    Swap key figures with
    Calculate
    Goto
    Coditions
    Cur.Translation
    All Characteristics
    Properties*
    full point sure for this....
    thanks,
    KN

    You can make a descending sorting for your key figure using the condition TopPercent (Top%) and take the value 100. To sort ascending, use the BottomPercent (Bottom%) condition on your key figure.
    Then 100 % of the values of your key figure will be shown in a descending sorting by default in your query (without using a view).
    I used the feature in the newest BEx Query Designer (7.x) and it works fine, I don't know if it's available in the older version (3.x).
    Please assign points.
    Kind regards,
    Ben De Windt
    Belgium

  • Print or download ALV report with sort options

    Dear friends,
    How i can download into excel or print ALV report with sort options, like customer name column with similar values should not repeat in the print out or download file.
    Regards,
    Praveen Lobo

    Hi Praveen,
    Use this code, its working:-
    *FOR SORTING DATA
    DATA : it_sort TYPE slis_t_sortinfo_alv,
           wa_sort TYPE slis_sortinfo_alv.
    *          SORT W.R.T. CUSTOMER NAME
      wa_sort-spos = 1.
      wa_sort-fieldname = 'NAME1'. "field customer name
      wa_sort-tabname = 'IT_KNA1'. "internal table with records
      wa_sort-up = 'X'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    "this will sort the ALV o/p for customer with same name
    "now the name will not be repeated
    "records with same name will be grouped
    *          DISPLAY RECORDS IN ALV GRID
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program                = sy-repid "report id
        it_fieldcat                       = it_field "field catalog
        it_sort                           = it_sort "sort info
      TABLES
        t_outtab                          = it_kna1 "internal table
      EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2.
      IF sy-subrc <> 0.
      ENDIF.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir
    Edited by: Tarun Gambhir on Dec 31, 2008 1:13 PM

  • How can I save my finder arrange/sort options once and for all?

    I'm opening the Finder View Options panel and resetting the arrange and sort options several times a day and it's driving me nuts. The Finder ignores my desperate pleas to apply these options system-wide and seems to purposely forget the options I chose the day before.
    I notice that the Icon view, List view, and even the Cover Flow view in the Finder get a "Use as Defaults" button in the View Options. Those of us in the Column View don't get that button, though. What have we done to deserve this?
    I'd like the Finder to now and forevermore open every window with the following options:
    Column View
    Arrange By > Kind
    Sort By > Name
    Can anyone help me make this happen? Thanks!

    I've found setting the Arrange By to anything other then None gives different results then what I expected.
    Select Column View from the Tool bar then open View Options and set Arrange By to None and Sort By to Name.
    If you then see the names in reverse alphabetical order click on list in the tool bar then on the Name column header to put them right. in Alphabetical order, then switch back to column view on the Tool bar. you should be good to go from there
    Whoever thought up Finders View logic should have their head checked.

  • Help on Oracle Report sort option!

    Hi,
    My query in Q_1 of Oracle report is select &a_code ori_code ,&a_desc ori_description from &a ori_lup order by &b. When click on OK button it says
    ORA-00936: missing expression
    select ori_code,ori_description from ori_lup order by ==>
    I am not able to resolve this problem.
    What I am trying to do is I have some maintenance tables which have almost same columns like code, description. I want to define a single report and pass on parameters to this report, so that I can use same report for different tables. If I dont give order by clause it is working fine, but I should also provide sort option based on user selection of sort by code/description.
    Thanks for your help.
    Param Dasana
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Andrew Tselischev ([email protected]):
    Hi
    If I correcly understand you need sorted query, if the parameter 'b' is given, and not sorted query otherwise.
    This may be done, for exeample, by the following way.
    1. Delete the text 'order by' in your query as follows:
    select &a_code ori_code ,&a_desc ori_description from &a ori_lup &b
    2. Create 'AFTER PARAMETER FORM' trigger:
    function AfterPForm return boolean is
    begin
    IF LENGTH( LTRIM( RTRIM( :b ) ) ) > 0 THEN
    :b := 'ORDER BY ' | | :b;
    ELSE
    :b := '';
    END IF;
    return (TRUE);
    end;
    I think it will help for you.
    Andrew<HR></BLOCKQUOTE>
    Thanks Andrew , it worked with your suggestion!!!
    Param.
    null

  • DRQ# Payment Wizard Loses Sort Option

    Hi,
    The sort function in the SAP payment wizard, loses it's settings in Step 6. In Step 3, you can sort the BP name field to sort by alpha, but in Step 6 the sort converts back to numeric, by BP Code. Our client is having problems with this when making their invoice selections in the wizard, as their invoice filing system is alphabetic and they have a large pile to sort through when making payments.
    I would have thought the sort option should retain throughout the wizard from Step 3 to Step 6. Additionally it would be nice if in Step 6 there was also the option to sort again if needed.
    Thanks,
    Lianne

    Dear SAP,
    Is this question so difficult, nobody can give a response so far??
    with regards,
    Eddy Rademakers

  • Sort option in Repetitive Area on AR Invoice PLD is disabled / greyed out

    Hi Experts,
    I have an issue whereby in my PLD the sort option under Print Layout Design Manager -> Repetitive Area -> Sort is greyed out / disabled in the AR Invoice PLD. Does anyone know why this might be? I've not seen this before and I can't find any notes relating to specifically to this issue in an AR Invoice PLD.
    2007A PL06 Hot Fix 01.
    Many thanks for any help,
    Caroline

    Hello Khushwant,
    In SAP when your business Process is Sales Order --> Delivery --> AR Invoice
    SAP would print the Batch Numbers along with the Delivery document.
    But your Business Process is Sales Order --> AR Invoice
    SAP would print the Batch Numbers along with the Invoice document.
    Whichever document releaves inventory, SAP will Open the Batch selection screen when adding that document and the Batch Report will be printed on a seperate sheet along with that document.
    The functionality change in SBO 2007, is that the Batch number print on the Delivery / Invoice document itself instead of on a seperate Page as in 2005.
    Could you please explain your Business Process in relation to what I have mentioned earlier.
    Printing the Batch Number as part of the Invoice document itself in SBO 2005 is going to be a tough task.
    Let me know if where and how you want to print this information.
    Regards
    Suda

  • Sorting options in table maintenance

    Hi All,
    I have created one ztable and created table maintenace generator for the same and also created the transaction code for the same to maintain the data just like SM30.
    Here my requirement is as soon as we execute the transaction code, it will display all the fields to maintain. with the options of  change, new entries, copy as, select all, deselect all, delete etc..  But along with that I need to have the sorting options at the application tool bar.
    Thanks in advance.
    Regards
    Ramesh .

    you may have to change the tablemaintenance function group , you may need to include those option by changing the pf-status and the corresponding function needs to handled in the pai.
    instead of that...
    i would suggest you to use custom program to maintain the table entries.

  • Sort options right justified in list view

    New to Maverick's, but I can't get my finder window to "stick" with the layout of the "sort options". My biggest beef is that I have the "Name" sort far left followed by "Date modified", etc.. yet every day in every new finder window, the 2nd sort jumps to right justified. I want this sort option to stick to the left alongside name. I use large monitors and scrolling over everytime to drag the sort modifier to the left is frustrating. Is there a solution?

    My guess would be the Images folder (Pictures in English) is designed to have the special, contextual grouping types.
    I don't know why they couldn't make them available in the dropdown menu, also, but they're not.
    I did a little testing and found if I called it Pictures unsorted, the options were available, but if I called the folder unsorted Pictures, they weren't.
    Try naming the folder starting with Images
    Edit: If I select the dimension and resolution column headers in the folder, then change the name of the folder, the columns are retained.

  • Sort Folders in Library by Date or other sort options

    I find myself hunting for folders that I've imported in the Library module.
    It would be so nice if there was an option to sort folders in the Library by date imported or date last edited or ANYTHING other than alphabetically. Seems like a easy and really obvious fix.
    Thanks!

    I too use folders as a primary means of organization. In fact, if Lightroom did not support folders, it would have been a deal breaker - I absolutely would not have bought it, period - its that important to me). We are perhaps a dieing breed - but not dead yet.
    I use collections extensively too for organization, but more for special purposes as opposed to a "lowest common denominator of organization" (folders).
    That said, I name my folders so they show up in the order I want them too - i.e. use a prefix (e.g. numeric) and they'll always be ordered properly. Interesting note: Lighroom is smart enough to auto-detect numeric prefixes and order them correctly without needing to pad with zeros (e.g. '2 Day After New Years' will come before '10 Resolutions - Holding Firm'). However, plenty of other software is not, so I pad anyway (e.g. '02 Day After New Years'... - that way they show up in the correct order when served via DLNA or anything that has alphabetic ordering but is not "numeric-prefix-smart" like Lightroom.
    PS - One of the functions of my up-n-coming Lr-sidekick-app/plugin duo is a (possibly full length) folder pane (which would generally be placed on an auxiliary monitor) - so folders are available in develop mode too. I may add a folder-sort option, although I don't need it m'self.
    Cheers,
    Rob

  • Playlist sorting options

    I would love to be able to sort my playlists by Artists, then drill down by album so as not to clutter my Spotify. It's pretty hard to organize my playlists the current way. Any ideas on a future iteration that will enable this capability?

    Please implement alphabetical sorting at the least.  It is something I have considerd lacking since day one.  I still love the service and have paid for nearly 3 years now, but it seriously needs better sorting options so that I can instantly get to an album/playlist.  It's daft because it all has to be done manually, and android puts new playlists at the top and mac at the bottom of the list.  Just a button to organise, it can't be that difficult?  I fail to see why all these apps and integration can be used to best effect without proper sorting options.  It really is a drag, people.  Thanks for listening...

  • How do I add 'Traffic Lights' as sorting option?

    Hi! We use MD04 most often. We are able to set the traffic lights, however 'Traffic Lights' does not show up on that next screen as a sorting option. Any ideas on why not? Thank you for any help!  Maria

    Thanks for your response Steve, but Spier is correct I'm looking to add it as a print driver. I can export to pdf fine but sometimes when that isn't working or if I want the file to be compressed further I do File>Print and chose a printer, usually there is an option for Adobe PDF but the only option I currently have is Postscript. Looks like it was taken away. Thanks everyone!

  • How do you make smart mailbox sorting options persistent?

    I have a smart mailbox that I would like to sort based on flags, and I would like for this selection to persist from session to session. I thought I remembered this working in Lion, but for some reason it's not working for me in Mountain Lion:
    In the smart mailbox I can select "sort by flags," and this sorting option will persist next time I start mail -- but only if I have selected the smart mailbox when I close mail. If I have one of the other mailboxes opened when I close mail (say the Inbox), then the sorting of my smart mailbox defaults back to "sort by date."
    Any idea what I'm doing wrong?

    You only have to right click on this folder and edit the smart folders rules.
    Edit: Nevermind, you mean sorting with this pop-up menu. I didn't read exactly what you mean. For this I don't know what to do.

  • Group Sort Option

    I have a formula on a group level.  That is in basic sum(x)-sum(y)/sum(y).
    I need to use this as a group sort option and it does not seem to allow me to

    Hi Brian,
    In order to sort with the result of sum(x)-sum(y)/sum(y) use the group sort order based on sum(x). Since we cannot sort on the result of the formula that contains summaries.
    Thanks & Regards,
    Raghavendra.G

  • How to give the sorting option in displat table

    Hi Expert,
    How can we give the sorting option in item (material) display table?So that user can filter the data in long table where thousands of data is displaying
    Thanks,
    Kundan

    The sort option should be enabled by default. Click on the right side of each column to sort.

  • Use Parameter to choose Group and Sort options

    I've got a report that gets used for several different puposes, and needs to be grouped or sorted differently each time.  How can I use a parameter to let the user choose the group and sort options at runtime?
    I'm using CR2008, and SAP B1 2005.  The various grouping options I want to offer include SKU, Vendor and Description, and sorting within those Groups by SKU or Description.
    I'm a newbie with CR, so detailed instructions would be really helpful.

    You can create a report using parameter field. Follow these steps
    -- Create new parameter in the field explorer window
    -- The parameter shouls be static and enter all the field names on which you want to create in the values option
    -- Now create a formula like this
    if {?Parameter}="fieldname1" then
    else
    if {?Parameter}="fieldname2" then
    else
    -- Now insert new group and select this formula
    -- Now the group will change according to the parameter selected
    Please note that if you have different data types of fields you must need to convert totext()
    as If condition will allow only one data type output.
    Also when you insert any group by default the data is sorted on grouped field. If you want to sort on another field then you need to insert a summary field on that and go to report>group sort expert>select the field-->All based on the summary inserted.
    Hope this helps!
    Raghavendra

Maybe you are looking for