How to trace an 'order by' issue?

I'm working with Report Builder 6.0.8.25.0. I have a report that prints lines on a quote. The report is supposed to order by the line_id in one of the tables involved. The problem is that sometimes it sorts in ascending and sometimes in descending order. I can see the bad sort in the report previewer and after moving the report to the server and running it through the Sales Online module in 11.5.9.
I have spent quite a lot of time trying to figure out where the bad sort is coming from but have thus far failed to identify the culprit.
Is there a way to trace the report while it's running in the report previewer to identify what forces are acting on the sort?
-Tracy

Hi Tracy,
the column attribute >>group by<< take precedence of the >>order by<< in the sql statement when you have more than one group in data model and the group is a control group.
1. Example:
a. SELECT deptno, ename ORDER BY deptno ASCENDING;
b. deptno + ename are both in group --> Group_1
c. depotno --> column attribute >>group by<< = DESCENDING
d. DESCENDING has no effect!
Deptno Ename
10---- JAMES
10---- TURNER
10---- ALLEN
10---- BLAKE
20---- SMITH
20---- ADAMS
20---- JONES
30---- MILLER
30---- CLARK
30---- KING
2. Example:
a. SELECT car_no, colour_no FROM cars ORDER BY cars_no ASCENDING;
b. Group_1 --> car_no --> attribute >>group by<< --> DESCENDING
c. Group_2 --> colour_no --> attribute >>group by<< --> ASCENDING
d. b. having priority of b.
e. c. has no effect!
car_no colour_no
51450- 4
51450- 3
51450- 2
51450- 1
26337- 4
26337- 3
26337- 2
26337- 1
8021-- 4
8021-- 3
8021-- 2
8021-- 1
Now, when you would like to see colour_no in an ASCENDING order, you must change the order by clause in your sql statement as follows:
SELECT car_no, colour_no FROM cars ORDER BY colour_no ASCENDING;
car_no colour_no
51450- 1
51450- 2
51450- 3
51450- 4
26337- 1
26337- 2
26337- 3
26337- 4
8021-- 1
8021-- 2
8021-- 3
8021-- 4
Know, that the arrows to the left of the column only belongs to the attribute changes. It do not show you the ORDER BY sequence of the sql statement.
regards,
Tom
Message was edited by:
Tom Rakete

Similar Messages

  • How to trace purchase order number with respect to Purchase requestion numb

    Hi friends,
    Can u please help me how to Trace purchase order number with respect to purchase Requetuion  number. Is there any standard report  available in R/3

    Hi Vamsi,
    Thats what!!!
    Goto SE16 - EBAN - Give PR number in the iput screen.
    In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
    There you choose Purchase Order.
    So the output will display for you POs for the PR that you entered.
    Regards,
    Vishal

  • How to trace production order history

    Hi,
      how to trace production order history, with all information like some addtion and deletion of components in production order.
       I need the history like how we are doing ECM in master data history.
    Regards,
    S.Suresh.
    Edited by: suresh subramanian on Jul 16, 2008 7:31 AM

    Dear Suresh,
    Please refer the link,[http://help.sap.com/saphelp_46c/helpdata/en/35/ce8d378d0302cae10000009b38f9b7/frameset.htm]
    Regards,
    R.Brahmankar

  • How to trace planned order data after it has been converted into production

    Hi, There,
    The planned order has been converted into production order.
    However, I need to trace if this planned order is generated by MRP
    run or created manually. I can't get any planned order info from
    table PLAF. Any input?
    Regards,
    Nancy

    Hi,
    Once fully converted, the Planned Order data will not be available in the Table : PLAF.
    If it is available, then You can have the details with the Time Stamp and User data from PLAF.
    But, the refrence will be available in the Production Order.
    You want to make a Track of the Planned Order details and the Quanity, then you need to have/create Z tables so that the data will be availabe.
    This is how most of the Organizations keep a track of the Planned order data.
    Hope this helps..
    Regards,
    Siva

  • How to trace sales order number from delivery number, when batch is split

    Hi All,
    I have created a Sales Order and a Outbound Delivery against the sales order.
    While creating the Outbound delivery, I have split the qty in two batches.
    Now when I go in table LIPS, and search on the basis of the Delivery number, I get two rows, one for each batch. But here the sales order LIPS-VGBEL, and Sales order item no (LIPS-VGPOS) is updated only for the 1st batch line item, but is not updated for the second batch line item.
    Please help me so that on the basis of the delivery number, i will be able to find record from tables for sales order for both the line items (i.e. for each batch).
    Immediate help would be appreciated.
    Thanks in Advance.
    Ankush

    Hi,
    I have created delivery against sales order.
    While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
    Sales order (SO1) - Material (Mat1) - qty (15 ea)
    Delivery against sales order (Del1) - batch split: batch1 - 10 ea
                                                                         batch2 - 5 ea
    In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
       del no.     Item No.      Material   Qty       Batch no       Sales Order no     Sales Order Item no
    1. DEL1       10              Mat1        10 ea    batch1          SO1                    10
    2. DEL1       20              Mat1         5 ea     batch2         ______                 ____
    Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
    I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
    Hope this clarifies the issue faced.
    Regards,
    Ankush

  • How to trace the pr's with ref to sales order incase ici is 2 in mrp view

    Hi, maintained 2 in ici field of mrp4 view of the roh material master. system generated pr's without any ref to sales orders. pls advise how to trace which pr's are for which sales order? pls advise.

    HI,
    It is not possible to do in SAP if you give Individial/collective requirement as 2, It is possible if you give 1 but your point is that there will be more PRs in the system. Iit is not possible through customizing.
    I would like to suggest you some options, which of course requires manual intervention.
    1. Suppose system genrates purchase requistion of quantity 100,(if you maintain ici 2)  then you need to split the pr quantity in to more line items and then specify the Account assignment as Sales order and specify the sales order number.
    OR
    1. You have to maintain the vaious sales order details in a Item text in PR.
    Note: Make sure MRP is behaving correctly.
    Regards,
    Sreenivasa
    Edited by: Sreenivasa Rao on May 5, 2010 9:47 AM

  • How to restrict reversal of Goods issue against production order.

    Dear All,
    How to restrict reversal of Goods issue against production order if production order status is CNF or DLV.
    i want that user can not reverse the goods issued against production order, if they want to do so, then user has to reverse the GRN and reverse the GI then only.
    Please suggest the solution.
    Regards,
    Sandeep Dhruve

    Hy Sandeep,
    You have to use User Exit for this.
    The following enhancement is available for production orders:
    o   CCOWB001    User exit for modifying menu entries
    You can use this function module to deactivate menu entries or
    functions. The locked functions can then no longer be executed by the
    user.
    The enhancement CCOWB001 contains the following components:
    Function exit
    o   EXIT_SAPLCOWB_001   Good movement: Deaktivate functions
          Display documentation
    Regards,
    Dhaval
    Edited by: Dhaval Choksi on Aug 22, 2008 3:01 PM

  • I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!

    I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!
    I have created a navigation system on the master pages and set the presentation to links only mode. I also have other links scattered throughout the program, like a linkable table of contents, etc. Some of them work, some of them don't. Not sure why. Anyone out there having similar issues? Or have any idea on how I can solve this issue? Any help would be appreciated!
    Thanks!

    Links should not create any problems in Keynote.  If they are set up correctly on text, the text will be underlined. Objects that have links will have a curved arrow bottom right, if you click the arrow a popup will display the link information.
    Try this repair for Keynote,  ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in.
    4  
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive

    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions

    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store
    let us know if this helped

  • How to trace an error

    Dear all,
    How to trace a purticular error ?
    from metalink
    Diagnose the issue by running the following trace
    alter system set events '1775 trace name ERRORSTACK level 3';
    Redo the import and reproduce the error. The trace file should be in the
    USER_DUMP_DEST directory.
    alter system set events '1775 trace name errorstack off';
    Trace file will show something like the following:
    ksedmp: internal or fatal error
    ORA-01775: looping chain of synonyms
    Current SQL statement for this session:
    SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01
    I am getting the same ora 01775 error. But when I am tracing, I am not getting any result in my udump. Is there any other setting do I have to make to get the trace file?
    Thanks

    Your question can not be answered.
    Not only you don't include a version (this seems to be too difficult for most posters here), but you also include ambiguous sentences like 'When I am tracing'.
    This results in the question 'did you issue the alter system command and was it successful?'
    As far as I am aware the syntax is
    alter system set events='<errornum> trace name errorstack level 3';
    There are no other 'settings'
    The only other solution is to set up an afterserver error trigger.
    Works like a charm, 8i onwards.
    You uncover way too many things you don't even want to know!
    Sybrand Bakker
    Senior Oracle DBA

  • How to cancel an order if transaction not complete

    How to cancel an order if transaction not complete

    Presuming you're referring to a purchase from the iTunes Store, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. Refunds are not guaranteed, but iTunes support should be able to help you in one way or another.
    Regards.

  • WMS :  How to Process Sales Order Released before Turning on WMS

    Hello Gurus,
    How to process sales orders released before WMS enable flag is turned on in the  new WMS enviournment in Oracle 11.5.10 ?

    Helios,
    Thanks for the document.
    I m looking for how to perform Pick confirm transactions for already printed Pick slips before WMS enabled flag is turn on for the org.
    One option is to close all the deliveries  but if there is no on hand at that point the they will remain option.
    Other option is to Back order those deliveries and re release them post wms enable flag is turned on... The only issue i see here is that if there are more new orders for one of the items  and the orders are released then which orders will get allocated/reserved if there is limited on hand quantity to statisfy the SO need.
    Let me know if you can think off some alternative solution.
    Apprecite help !!
    Thanks,
    Sam

  • Purchase orders dates issue

    Hi All,
    Somehow MRP Pushing the dates to future date i.e to year 2015. Even though the dates changed manually after an MRP run it changing back to year 2015.
    Please advise, how to approach to solve my issue.
    Thanks in advance.
    Quantum.

    I'm not sure what your question is, but MRP will not change automatically a firmed element, e.g. purchase order, or a firmed purchase requisition.
    Could you clarify?

  • How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard

    How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard, please see the attached screenshot for a clearer explanation.
    I understand that if we prefix all files with leading zero's this will probably resolve the issue but I just wondered if anyone new the answer. The ironic situation is that version 6 has no problem.
    I have spent over an hour with techincal support who were unable to provide me with an answer

    It is not clear how you are trying to do the order. Have you tried to select a set of files and then use the arrow buttons to move them in the list? If you select the heading, that will typically reorder the files by that heading and undo everything you had done before.
    You should be able to select groups of files and move them up and down in the list. All of those options appear on your view, so what is the real question?

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • How to trace the missing authorizations using NWBC at object level

    Hi all,
    In SAP R/3 any authorization issue can be tracked down till authorization object level using SU53 tcode and ST01 tcode.
    1 - I have a super user who has all the roles in Solution manager system and test user which I created with just 1 role Incident management role. But when I login with Super user ID I can see in tcode (WDY_APPLICATION - Incident Management ) I have 4 tabs (Overview,Messages,Reports and Queries) but when I execute the same tcode using test ID I can only see Overview and Messages tab. Report and Query tab were missing . Please advice on how to trace the missing authorizations using NWBC at object level? or how to solve this issue......
    2 - How to add a Web dynpro Transaction code (example WDY_APPLICATION - Incident Management )while building a role in PFCG?
    Thanks
    LAK

    Hi Gurus,
    Can anyone please help me with my questions.
    In addition here are few more info that I need
    How to bring in the new authorizations without logiing off and logging in back in NWBC ( Equivalent to Menu-->Refresh in SAP GUI)
    Thanks
    LAK

Maybe you are looking for