Define sort order in searchhelp...

I have remade the premk searchhelp and I was wondering If I could influence the sort order of the fields displayed.
it sorts by default on the first field in the output list but I also want to sort it on a second column.
I can't find in the selopt tables in function HRMC_PREM_EXIT where the sort order is defined or whether it's sap standard to only sort on the first field ? can I influence the sort order in the view perhaps ?
kind regards
arthur de smidt
Edited by: A. de Smidt on Jul 28, 2008 10:44 AM

Hello Arthur De Smidt,
In the PARAMETER_SORT variable, take the field names
Eg.:
If you want a table to be sorted by carrid and connid,
data:
  w_sort(20) type c value 'CARRID CONNID'.
Now pass w_sort to the parameter  PARAMETER_SORT in the FM.
Dont call the FM twice. Use a character work variable which has the field names separated by space and pass that work variable to the FM.
Hope it helps you.
Get back for further help.
Regards
Indu.

Similar Messages

  • Defining sort order using parameter fields

    Post Author: vandersee
    CA Forum: General
    I've created a report, the contents of which is sorted depending on a parameter selected (method used is as described in the help topic entitled "Defining sort order using parameter fields".  Is it possible to vary the Sort Direction (ascending/descending) using parameters also, so that if I choose to sort by field A it will be ascending, but descending if I choose to sort by field B?

    Post Author: V361
    CA Forum: General
    You can create a Parameter {?Sort Order}  make it a string, and add items A to Z and Z to A and a formula and sort the group using the formula.
    Group Expert, select the group, select options, check use a formula as group sort order
    if {?Sort Order} = "A to Z" then crAscendingOrder else crDescendingOrder
    And your group will sort based on what is selected in the parameter.

  • Sort order inconsistent behavior

    There seems to be inconsistent behaviour when defining a default sort order sequence.
    Everything works as expected when the display sequence and the order in which the columns are defined in the query are the same but as soon as the display sequence is changed the default sort order doesn't work for the second column in the order sequence.
    I have put up an example at [apex.com|http://apex.oracle.com/pls/otn/f?p=36885:1]
    In report EMP the display sequence and query sequence are the same and the default sort on "Job" and "Hiredate" is correct working. Even when the user sorts on "Manager".
    The sort order sequence then becomes "Manager", "Job" and "Hiredate". As also descripted in the following Sorting on multiple columns
    And exactly the behaviour we are looking for.
    Report EMP2 is a copy of EMP with the only difference the order in which the columns are displayed
    Now the default sort order doesn't work as expected. The report is first ordered on "Job" but then on "Employee" instate of "Hiredate" as is defined. Interestingly "Employee" is the second column in the query.
    It seems that instate of the query_column_id the column_display_sequence is used in the order by. At least for the second column in the defined sort order sequence.
    This may also explain the behaviour mentioned with [derived columns and sort sequence|http://forums.oracle.com/forums/thread.jspa?messageID=1006429&#1006429]
    The display sequence in report EMP2 is where the wizard came up with.
    Nicolette

    Stew
    At the report attributes you can define the sort sequence of a column. When you do that initialy the report is sorted as you defined it. So in my example that is first by "Job"and within "Job" by "Hiredate". When the user sort explicit on an other column this column is put before the columns you have defined.
    So when the user clicks on "Manager" the sort order becomes "Manager", "Job", "Hiredate". When the user then sort on "Employee" the sort order becomes "Employee", "Job" an "Hiredate".
    This works when the order in which the columns appear in your query are the same as the order in which they are displayed.
    BUT as soon as the display order changes the sort sequence doesn't work anymore. Even worse is that also the initial sort sequence doesn't work for the second column any more. (I haven't tested for three or more columns)
    In the example I have put on apex.com in the second report the sort sequence of the report attributes is the same as in the first report. But the initial sort order that is actually done is on "Job" and "Employee" instate of "Job" and "Hiredate". Where "Hiredate" is the second column in the display sequence. But "Employee" is the second column in the query.
    So to really make use of the sort sequence you have to keep your display sequence equal to the order in witch they appear in the query. This isn't really practical.
    Nicolette

  • Can I transfer my hand made album sequence (sort order) defined in element when I turn a local album into a mobile album used with IPAD. Or do I have to change the dates artificially?

    Can I transfer my hand made album sequence (sort order) defined in elemenst when I turn a local album into a mobile album used with IPAD. Or do I have to change the dates artificially?

    Andrew, I know I am extremely late to the party but I too use Grid View.  I had the same problem that you had but have found this to work for me.  I used it and it is still holding as my default sorting even after switching between the Artist page and Grid View.
    Once you are inside of the Artist page continue to click on the Album column until it shows Album by Artist/Year.
    That will give you each album sorted by the year instead of it randomly sorting it for you each time you leave an Artist's page and then back again.
    Hope this helps.

  • Exporting from Lightroom 1.3: Different sort order than defined in Grid view

    Just did an export from Lightroom 1.3 and ended up with a the wrong export order.
    Here is what I did.
    1. Create a collection
    2. Drag the pictures I want to export into that collection
    3. Select: Sort: Import order (In lightroom grid view - the sort order was correct)
    4. Export from Lightroom with "Userdefined name - sequence"
    The result is a total different sort order than I can see in the Lightroom Grid view.
    Very annoying.
    Any ideas?
    Also - in the new export dialog there seems to be no option anymore to CHANGE a user-defined export like in the previous version. What do you do if you want to change something?
    Overwrite with the same name?
    Remove old export and add the new one changed?
    greetings
    gfisch

    Are you seeing this only in Lightroom? They are not 'still in the parent, Germany folder.' only visible their if you have 'Include Photos from Subitems' checked in the Menu/Library of Library.
    Uncheck that you you will only see them in their correct folders.
    Don
    Don Ricklin, MacBook 2Ghz Duo 2 Core running 10.5.1 & Win XP, Pentax *ist D
    See LR Links list at my
    Blog for related sites.

  • BPC 7.5NW: Hierarchy Upload from BW - Sort Order

    Hi,
    we are currently updating from BPC 7.0NW to 7.5 NW SP10. (BW has been upgraded to 7.02 SP09)
    As master data and hierarchies had been uploaded using the coding from 'HowTo Upload automated...' so far, we now have to use standard Data Manger packages.
    Maintaining packages and package links was successful. Everything works fine so far.
    The only problem are Hierarchies, better the sort order of hierarchie nodes. At the moment they are always sorted in an alphabetical order.
    We introduced property MBR_SEQ to all dimension using program UJA_MIGRATE_MBR_SEQ.
    We loaded hierarchies with different settings.
    Searching SDN and SAP Notes lead to notes 1603352 or 1581331.
    But manually changing hierarchies each time, new members are assigned, is not an option!
    Do I miss any option in the selection screen of the Data Manager package?
    Are there any options in transformation or conversion file?
    Thanks and regards
    Steve

    For your Information...
    We were now adviced to include parameter DM_KEEP_SRC_SEQ with value Y in AppSet parameters (Web-Administration).
    Please have a look at note '1626929 - Keep hierarchy sequence for Load Hierarchy from BW package'.
    It works!
    For the first hierarchy to be uploaded...
    If there are more than one hierarchy defined for upload, only the first hierarchy is sorted correctly, all following ones are sorted alphabetically again.
    Regards
    Steve

  • How to keep sort order in Shuttle item's source and destination boxes?

    I have defined a shuttle item on a page and the list of values in the source box is populated by a SQL with sort order specified. In the Settings of the shuttle item, Show Controls value is set to Moving Only instead of All. When a user moves selected values from the source box to the destination box or vice versa, the list of values does not maintain the original sort order. For example, if I have 26 values A through Z, a user can put value Z before A in the destination box. And when a user move A from the destination box to the source box, A is the last item in the source box. The reset button clears everything in the destination box and resets the source box to the original sorted list. This is not the solution that I am looking for. I would like to see the items in the source and destination boxes to maintain their original sort order all the time.
    Is it possible?
    APEX v4.0.1.00.03
    Oracle 11g (v11.2.0.1.0)

    Hi,
    See if this post help
    Re: Sort Shuttle Right
    Regards,
    Jari

  • Sort order of text is not as expected

    Hi
    I need to sort a characteristic by its medium text in BEX (3.5.). However, the sort order is not as expected: uppercase letters are sorted first when selecting ascending order:
    AAA
    AXZ
    Abc
    BBB
    Baa
    Bbb
    But this only applies when I use language=EN. For other languages defined in our system (fx. DE), the sort order is ignoring the cases:
    AAA
    Abc
    AXZ
    Baa
    BBB
    Bbb
    The user wants that texts is sorted like this.
    I have read note 952625 on sort collation sequences. And now I wonder if
    a) The standard sort collation sequence for English is different from fx. German og Danish.
    b) We have a different setting somewhere (locale setup) that generates these differences.
    Our BW system is technical 7.0, but most of our cubes are still 3.5 and also our BEX is still running 3.5.
    OS = AIX, Unicode systems=no. Database = DB6.
    Best regards and thanks in advance for any reply
    Martin

    Hi Martin,
    Did you find the answer to your question? Do you know why it happened?
    Thanks,
    Vitaliy

  • Default Sort Order for Library View

    It would be fantastic if there were a user defined preference for a default sort order in Library view. For example, some users may prefer to always view the images by File Name, or Rating, etc, without having to change the sort order for each individual folder they view via Lightroom.
    Thanks!

    Thanks for your suggestion Allan, but it doesn't work.
    I'm specifically referring to the defaults that Aperture 3 adopts when you use the "File, Import, Folders as Projects with the projects and albums setting.
    What I'm finding is regardless of the setting in the Library preferences, the default sort order for the project is Date and Manual for the album.
    Yet if I create a project manually the default sort order is as per the Library prefs. Strange.

  • Hyperion Planning- Account dimension - Sort Order Issue with ODI 11.1.1.5

    Hello Experts,
    First of all, I thank you everybody in this forum for posting their valuable suggestions.
    I am facing a strange issue with ODI (Version 11.1.1.5) while loading metadata to Planning ACCOUNT dimension (Version 11.1.2.x). I am using a Oracle view to load metadata to this dimension. I have defined the sort order in the view and enabled SORT_ORDER_BY_INPUT. For the fresh load to the dimension, everything is working fine. But, when I move a member from one parent to another parent, and define it as the top member of new parent, it is missing its sort order.
    But it is working fine if you define it as the second, third...or last member under new parent. I have tried all the possible ways by flipping all the properties but unable to fix it.
    Please help me here to resolve this issue.
    Your help is greatly appreciated!!
    Thanks
    Edited by: user11965311 on Sep 20, 2011 7:07 PM

    To be honest I think you are best logging it with Oracle because it sounds like you are doing everything correctly so it could be a bug.
    Have you tested this on any previous versions of ODI or is it a new installation?
    If it does get logged with Oracle please keep me informed of the outcome as I would be interested to hear.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Sort order in an hierarchy

    Hello Experts,
            How to sort order of the objects in an hierarchy without any change in the master data based on the monthly ratings of the business. Ex:
    East
       NY
       NJ
    West
       CA
            Now I want the order in East to be changed so that NJ comes first.
            Can this be possible and if so how?
    Thanks,
    Nikki

    Aneesh,
            I activated the hierarchy and also ran the attribute change run but still doesn't show the new order i.e.
    NJ
    NY
         The technical names defined are 1 for NY and 2 for NJ and in the report it still shows NY and then NJ under East. Please throw some light on this issue at the earliest.
    Thanks,
    The hierarchy is defined as time dependent hierarchy structure. Would this matter? Should it be defined as hierarchy structure time dependent?

  • Add_item : Attributes list collection sort order

    Hello:
    I created multiple custom attributes and added them to my custom item type. I need to apply these attributes while adding an item programmatically.
    1) How do i define the order of the Attributes list via the Portal builder so as to match the corresponding values read from a list/table,etc. ?
    2) The ordering arrow buttons in the attribute list of my custom item type does not match the result set from my query. I tried all options of "order by" clause. Here is the query - (componenttype is the name of my custom item type)
    select iatts.ID
    ,atts.caid
         ,atts.DATA_TYPE     
         ,atts.CAID
         ,atts.NAME,atts.DISPLAY_NAME
         ,iatts.ITEM_TYPE_ID
    from wwsbr_item_types itypes
    ,wwsbr_item_type_attributes iatts
    ,wwsbr_attributes atts
    where --itypes.caid = 133
    itypes.name like 'ComponentType'
    and itypes.ID = iatts.ITEM_TYPE_ID
    and iatts.ATTRIBUTE_ID = atts.ID
    --and atts.CAID = 133
    order by atts.id
    3) I need to expect a certain order of the attribute ids, when bulk collecting into the attributes array, in order to populate the values collection in the same. So, how do I determine the order of the attributes ids ?
    4) Is there a better way to do this ?
    Thank You.
    regards
    Ananth

    Document Sets are great tools for grouping multiple documents together. However, if every set has exactly one document, it would be better to just upload the file and not place it within a Document Set:
    Uploading documents using object model - http://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx
    Uploading documents using web services -
    http://cecildt.blogspot.com/2010/10/upload-documents-to-sharepoint-2010.html
    If you have requirements to use Document Sets, keep in mind that this adds a layer of complexity beyond a simple Document Library. Behind the scenes, each Document Set is treated as a separate folder, and although can you query items within it, there might
    be extra steps for getting the sort order to ignore the folder structure. Can you try setting the Scope to be "Recursive" and also specify that you are looking only for files and not folders:
    <Eq><FieldRef Name='FSObjType'/><Value Type='Lookup'>1</Value></Eq></Where>
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Sort Order of IndirectList not maintaned automatically?

    For a 1:N association I use the IndirectList class and defined a sort order on it in the Mapping Workbench.
    On first read, the sort order is correct. But once any objects in this list are modified or inserted which affects the sort order during a UnitOfWork, this sort order is not automatically refreshed by the IndirectList.
    Is this how it should be? Do I have to keep an eye on the sort order by myself or can I specify an automatic refresh somewhere?
    Thanks for any help.
    Martin

    Hi Martin,
    Did you find the answer to your question? Do you know why it happened?
    Thanks,
    Vitaliy

  • Sort Order Definitions:

    looking for help in the sort order choices and how each one works to sort in grid view. Some are self evident but others I am not sure of...like PICK and EDIT COUNT.
    can anybody define how they sort...not finding any info in the LR4 help system
    Thnak you.

    Thank you for the tip. I've modified my Formular in order to look like this:
    // Declare and initialize variable
    Local NumberVar ProjectNo;
    // Extract Main project no out of database field and store it in local var.
    ProjectNo := ToNumber(
                    Left(
                        {Dienstleistungen.verweistAuf},
                        InStr({Dienstleistungen.verweistAuf},'-') - 1
    if (ProjectNo) = 0 then
    0
    else
    ProjectNo
    But this produces the same effect as above. Still no luck. Did I miss something?
    Thank you.

  • Project Server 2010 TimeSheet line classification sorting order- Issue

    Hi,
    We have PS 2010 SP-2 environment , and having few time sheet custom line classifications in order to sort them I have prefixed my custom time-sheet line with numbers like 100, 110, 115 and it is perfectly sorted in Line Classification settings under server
    settings, please see below.
    But strangely when a user creates time sheet and click insert new row then "Add an existing task" modal dialogue box shows "Standard" OOTB line classifcation on top and all custom line classifications underneath it.
    Please check below
    Don't know why it is not considering sorting order defined under "Line Classifications" settings. Same configuartion used to  work fine in PS-2007. But dont know why its not working in 2010.
    May be some silly configuration I am missing or something serious here, seriously not able to make out why this is happening.
    Please let me know, Thanks much !!!
    Sachin Vashishth MCTS

    Hey Thanks Guillaume,
    That's what I want to confirm in context of 2010. Because same configuration used to work in our 2007 environment. So want to confirm its default behavior or I have missed something in configuration.
    Any other idea do you have, like putting some java-script code in modal dialogue box to get this sorting done or any other customization.
    As of now considering "javascript" but need some pointers to get start working on this.
    Thanks much !!!
    Sachin Vashishth MCTS

Maybe you are looking for

  • Sales and Costs Report

    Hi All, I have a requirement for a report in which I have to display the "sales" of the last working day and the "costs of sales" for it and also the sales and costs of sales for the total month(i.e from 1st day of the month till last working day). I

  • Error during the scheduling of splits

    The long text saying that the person might be not available.  But how is it possible to get an overview of the personal assignments to check if person is available or not?

  • Integrate p6SPY with Sun Java System Application Server 7 ...?

    Dear PALs, Let me know how can I Integrate p6SPY (w3.p6spy.com) with "Sun Java System Application Server 7 2004Q2" on Windows ? When I try to follow the steps given at http://www.p6spy.com/documentation/install.htm#unspec ,my server throws INFO ( 182

  • Extract data from queue

    Hi experts I am looking to extract data from the TM to BI system. How to extract the data from the queue and is there any Function module or program to do it. Please let  me know the procedure on this. Thanks in advance sai

  • Best Video Filter for blown footage

    I have footage shot with the iris open too wide.  Can anyone suggest the best filter or combination of filters to use to correct the footage or am I completely hosed?  Currently I've tried a combination of brightness/contrast and gamma corrections an