Default order by of a select

Hi all,
Is it true that when we write just for example select column_name from table_name; then the results are sorted through rowid ?

No! The fact is, there is no guarantee that you will have the same order for each run of the same query. So, order by rowid statement by default is VOID.
Cheers
Sarma.

Similar Messages

  • Default Order unit

    Hi All,
    I have a situation where, i am creating a STO requsition and then converting to STO.
    When i am creating a Stock transfer Purchase requsition the base unit of measure defaults in from the material master as EA. We have left the order unit to be blank in the material master since the material is used by different groups with diiferent order units. We have a source list for the required order unit KG to default in the STO. The order unit from source lists helps creating STO in the required unit only when we hit the Assign source of supply in the item tab and the required order unit pops up in the STO when PR is converted from PO..My questions is there any other way to automatically default the order unit in the purchase requsition with out even hitting the assign source of supply in the item tab?
    Purchase Info record will not work as it is UB doc type. Also we dont wan to maintain in the material master.
    Edited by: AKRUS on Oct 27, 2008 10:30 PM

    Hi,
    Like you said, the order unit is different depending on the vendor/supplying plant.  So SAP can only determine the order unit when a source is determined.
    You can create scheduling agreement using ME37 and put it in your source list but you still need to have the source determination.
    In IMG OMFI, you can create default values for users and select to have the source determination indicator defaulted to PR, then it will be done automatically for you when the PR is created.  Assign the default value created in OMFI as under Parameter ID 'EVO' against the users in SU01.
    Phyllis.

  • Default Order Line type

    Hi
    When I create a SO with a certain order type from where does line type default , without entering any line positive and negative.
    And can we change this default order line type.
    As of now by default SO is taking Default line type as +ve hence for shippable items.
    I want to change default line type to -ve for returnable items.
    Please advice.
    Thanks
    Pankaj

    Hi Pankaj,
    This comes from your order/transaction type setup in OM: when creating any order header transaction type you specify a default line type. If the order category = Order, you select an order line type, if = Return, you select a return line type. If the category is 'Mixed', you specify both default order and default return line types.
    Regards,
    Jon

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

  • Using order by in the select query

    Hi All,
    I have query in which I need the latest record. To get the latest record, I can
    1) Select all entries into an internal table and sort them descending and get the first one
    2) Select all entries into an internal table and order by in the select statement itself.
    Then read the first one.
    Which approach should be better as for as the performance is concern.
    The query is on MKPF table and I have the material document number. I need the latest entry.
    Regards,
    Shahu

    Hi,
    The first one would be better.At the most we should not use order by in select statement bcoz it directly sorts the data according to that in database itself reverting performance issues.
    Otherwise you can use select max* if records are less.
    Reward points if helpful.
    Thanks,
    Ponraj.s.

  • Process order %00000000001 has been selected for deletion

    Hi Guys,
    With the use of strategy type 86 (assem bly processing for process order) when creating the sales order it is giving the error
    Process order %00000000001 has been selected for deletion
    Message no. V1796
    According to process order will be created automatically with the order type PI04. Related setting for the order type Pi04 in the specified plant is done.
    Pls help.

    Solved..Change the customer number

  • Is it possible to rearrange the order of SAP STD Selection Screen?

    Hi.
    Is it possible to rearrange the order of SAP STD Selection Screen?
    Example:
    IW69 has Location data selection at bottom of screen. 
    Is it possible to move that to top of the selection screen?
    We are on ECC6.0.
    Thank you,
    Brett.

    Hello Brett
    You may try to use GuiXT:
    [Adjusting Transactions Using GuiXT|http://help.sap.com/saphelp_sm32/helpdata/en/89/91b9db194f11d5b3a30050dae02d7c/content.htm]
    Regards
      Uwe

  • How to Enter Multipe Orders & Lines on a Selection Screen?

    Hi,
    I have a situation where the user wants a report on sales order items.
    However to choose the specific order lines via the selection screen and run the report for that selection of orders and lines e.g.
    On the selection screen the following are entered:
    Order 1 and Line 3
    Order 1 and Line 4
    Order 2 and Line 3
    Order 3 and Line 4
    etc.
    And the report then shows only these order items.
    I though of coding something like this for the selection screen:
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                    s_posnr FOR vbap-posnr.
    And unfortunately it doesn't work...
    Using normal select-option and parameters, I don't think you can do this as there is no way for the program of knowing which order is linked to which line item.
    Does anyone have any iodeas on how to do this?
    Many thanks!

    Hi,
    Actually I think the only way to do this is if the user uploads a text file, via the selection screen, with all their order and line details in there.
    Would you all agree that this would be the best way forward?
    Many thanks!

  • Default values in SE16 table selection screen

    Hi,
    when we open SE16 along with table name , In the selection screen of that table i want some default values apper for one particular field.
    How can i do that???

    HI.
    STEPS:
    1. Go to SE16.
    2. Enter a table name.
    3. In the selection screen of the table enter values   
    for the fields that you want to set as default values also called variants.
    4. Then click on Goto --> Variant --> Save as Variant
    5. Enter the variant name and short text for the same.
    6. Then click on save on top of the page.
    Steps To retrieve the variant.
    1. go to se16.
    2. Enter table name.
    3. Click on "Get Varian" icon or press "Shift + F5".
    4. Choose the desired variant.
    Thus you will be able to set default values in SE16
    table selection screen.
    Hope this is useful
    Cheers!!!
    Rajesh.

  • Default radio option (for Rating selection) from HAP_MAIN_DOCUMENT

    We have a requirement to remove 'select a value' default radio option (for Rating selection) from HAP_MAIN_DOCUMENT. Can you please let me know is there any BADIs available to acheive this requirement ?

    The normal way to do this is to set the option to "commit selected value immediately" and to place the code in the Keystroke event of the combo box. And instead of the first two lines that you have, you'd use something like:
    if (!event.willCommit && event.changeEx !== "none") {
        // Your other code goes here
    The changeEx property will return the export value, if any, of the selected item.

  • VBAP-SERNR is not provided in BILLING REQUEST as it is in the DEFAULT ORDER

    Dear SD Sales and Delivery experts,
    i would appreciate your support very much!!!
    We want the system to transfer the maintained field VBAP-SERNR from the document DEFAULT ORDER (Program: SAPMV45A / Table control: TCTRL_U_ERF_AUFTRAG) to the succeeding document BILLING REQUEST (Program: SAPMV45A / Table control: TCTRL_U_ERF_GUTLAST). But the table control of the billing request does not provide this field. The Screen Sequence grp. for the order is AU and for the billing request it is GA.
    Does anyone has got an idea how to hit this target?  
    Many Thanks in advance
    Stephan Sislian
    SD Senior Consultant
    argotas GmbH & CoKG
    Germany

    Hi,
    In the approver step there is ABAP class has been maintained (CL_PT_REQ_WF_ATTRIBS) and the methods used is DUMMY.
    Inside the class there is another method (APPROVE)..The code of the method  which is standard is like that:
      DATA: request TYPE REF TO if_pt_req_request,
            event   TYPE tim_req_xfer_event VALUE cl_pt_req_const=>c_reqtrans_approve.
      CALL METHOD cl_pt_req_badi=>get_request
        EXPORTING
          im_req_id  = me->req_id
        IMPORTING
          ex_request = request.
      CALL METHOD cl_pt_req_badi=>initiate_state_transition
        EXPORTING
          im_request    = request
          im_event      = event
    *    IM_RET_VALUE  = 0
        IMPORTING
          ex_new_status = me->status.
    I think the status is coming from the code.There is another method like  SET_WF_ATTRIBS where the code for status retrieval is :
      status = im_attribs-version-status.
    Suvajit..

  • OBIEE Remove Default Order By

    Hi,
    My users have a specific request in a OBIEE report. The report is based on 2 tables connected directly to the transaction system in AS400/DB2. The reason is the report must show real-time data. So far so good, OBIEE is able to connect and show the live data without caching the results (disabled the cache for these tables).
    The problem is they need to see the rows in a report in a chronological order (the newest row inserted on DB2 in the bottom). I don't have any cronological column in the table to apply the OBIEE sort. OBIEE Admin Tools shows the desired order when I click on "view data" option in the Physical Table. The records are being displayed exactly as I need.
    When I created the report on OBI Presentation, I can see on Advanced Tab that it includes a default "Order By" clause in the SQL Statement. I was able to remove the distinct by disabling the database feature DISTINCT_SUPPORTED in the rpd file.
    Also, I tried to comment the //SORT_TYPE = "binary"; in the NQSConfig.ini but it didn't solve the problem. Tried to use a logical ROWNUM column but AS400/DB2 does not support this type of column.
    How can I get rid of the "order by" clause in a OBIEE report? I must have to disable this default order on OBIEE to bring the default table order (as the rows were inserted).
    I appreciate your help,
    Thanks.

    Hi Saichand,
    Thanks for your answers.
    I've uncked the ORDERBY_SUPPORTED feature, restarted BI Server and Presentation. My report does not have any column flagged to sort, even thought it still applying an order by clause in the SQL Statement. I went to the Advanced tab on Answers I can see the order clause in the SQL statement and this is the log generated by the query:
    +++Administrator:2b0000:2b0018:----2010-10-14 09:44:21
    -------------------- Logical Request (before navigation):
    RqList
    INPUT.INPOBK as c1 GB,
    INPUT.INPBNK as c2 GB,
    INPDRA:[DAggr(INPUT.INPDRA by [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] )] as c3 GB,
    INPCR1:[DAggr(INPUT.INPCR1 by [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] )] as c4 GB,
    INPUT.INPTDS as c5 GB,
    INPUT.INPKBT as c6 GB,
    INPUT.INPUID as c7 GB,
    case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end as c8 GB,
    INPUT.INPOBK || ' ' || INPUT.INPBNK as c9 GB,
    case cast(INPUT.INPKBT as INTEGER ) when 0 then 0 else INPDRA:[DAggr(INPUT.INPDRA by [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] )] end as c10 GB,
    case cast(INPUT.INPKBT as INTEGER ) when 0 then 0 else INPCR1:[DAggr(INPUT.INPCR1 by [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] )] end as c11 GB,
    case INPUT.INPTDS when ' ' then ' ' else case when INPUT.INPUID like '%GIFTS%' then '0' else '1' end end as c12 GB,
    INPUT.INPKBT as c13 GB,
    INPUT.INPKSQ as c14 GB,
    Report_Sum(INPDRA:[DAggr(INPUT.INPDRA by [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] )] by [ ] at_distinct [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] ) as c15 GB,
    Report_Sum(INPCR1:[DAggr(INPUT.INPCR1 by [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] )] by [ ] at_distinct [ INPUT.INPOBK, INPUT.INPBNK, INPUT.INPTDS, INPUT.INPKBT, INPUT.INPKSQ, INPUT.INPUID, case INPUT.INPTDS when '  ' then '  ' else case  when INPUT.INPUID like '%GIFTS%' then '0' else '1' end  end , case INPUT.INPKBT when '0' then '0' else INPUT.INPBNK end , INPUT.INPOBK || '  ' || INPUT.INPBNK] ) as c16 GB,
    case cast(INPUT.INPKBT as INTEGER ) when 0 then 0 else max(INPDRA:[DAggr(INPUT.INPDRA by [ ] )] by [ ] at_distinct [ ] ) end as c17 GB,
    case cast(INPUT.INPKBT as INTEGER ) when 0 then 0 else max(INPCR1:[DAggr(INPUT.INPCR1 by [ ] )] by [ ] at_distinct [ ] ) end as c18 GB
    DetailFilter: INPUT.INPOBK <> INPUT.INPBNK
    OrderBy: c1 asc, c2 asc, c5 asc, c6 asc, c7 asc, c8 asc, c9 asc, c12 asc, c6 asc, c14 asc
    +++Administrator:2b0000:2b0018:----2010-10-14 09:44:21
    It seems that OBIEE did not remove the "order by" as expected.
    Can you please let me know how to force OBIEE to do not use the order by clause?
    Thanks,
    Danilo

  • Default Order of trigger execution

    If a table has two or more triggers(of same type like both "before insert") defined on it then what is the default order of executing of the triggers.
    Thanks in advance.

    Prior to 11g, there is none. Two triggers with identical specs (i.e. two row-level before insert triggers) will fire in an arbitrary order. And that order may change between calls. If you have code that depends on a particular order, you're much better off creating a single trigger that makes calls to two different procedures that do whatever the two triggers are doing in an appropriate order.
    In 11g, you gain the ability to force triggers to run in a particular order, but I would generally advise against any architecture that would require this sort of thing.
    Justin

  • OM: Default Order Type doesn't show my Order Types

    Hi All,
    We were using Apps 11i(11.5.10.2)and we are done with all module setups. i am trying to give Default order type as my Order type i coudn't see my values(Order Types) there in the profile option(OM: Default Order Type).
    Please advise me..
    Thanks
    Vijay

    Have you verified that your order type is being queried by the sql query associated with the profile OM: Default Order Type?
    Thanks
    Shree

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Office 2013 Startup Problem with NEW Win 8.1 Install and no prior Office Version

    Although I have seen similar threads on the forum, they all seem to address a different scenario. My environment is as follows: Intel MotherBoard with I07 max processor 64GB RAM 512 GB SSD Boot drive on which Windows 8.1 was installed as first and on

  • How can I lock a table so that a person can only enter data, not manipulate the table?

    I don't want to Lock the table as Numbers does it so perhaps locking is the wrong term. What I want to do is to lock the formatting of the table so it is possible to enter data but not possible to change the position, number of columns etc. I've been

  • Facebook Sharing Button (Notification Center & Safari)

    I have a Retina MacBook Pro, with mountain lion 10.8.2, my tweeter sharing button works fine (Notification center and Safari) but Facebook doesn't, I've deleted my Facebook account and created again but it doesn't seem to work. However if I delete my

  • Hollow Stars for Albums

    So I don't rate my albums until I have rated my songs, but my problem is that I have several smart playlists based on album rating and when I rate a single song in iTunes that CD will then show up on my playlist due to the hollow star rating. Any way

  • Organise photos within Album in iPhoto on iPad

    Yesterday I purchased the iPhoto app for my iPad, this is due to someone recommending it to me as an easy option of presenting artwork as a portfolio. I have a batch of JPEGs in an album that I want to display in a certain order, so I named them for