Question on Ordered Hint

oracle 10g
hi all i attended an interview yesterday and i interviewer asked me a couple of questions
For which i dont have an exact answer. i even tried to search on web but i couldn't find the answer.
1. The ordered  hint is used in conjunction with what?  and why?.
   i explained what ordered hint is but he is not happy.
2. performance of analytical function vs query with sub-query .
i voted for analytical function, interviewer said that analytical functions are slow.please help me to find answers.
thanks
Edited by: new learner on Jul 30, 2010 7:17 AM

new learner wrote:
thanks for the response.
why do we need to use other hints in conjunction with ordered hint for ordered hint to work.
why cant i say
Select /*+ordered*/
from table_a a , table_b b
where a.id = b.id ;
To expand on Dom's comment, you can say it, but if you're going to try to dictate details like this to the optimizer you should also tell it what join method you expect it to use, and what access methods you expect it to use, e.g.
/*+ ordered full(a) use_nl(b) index(b (id)) */Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
+"Science is more than a body of knowledge; it is a way of thinking"+
+Carl Sagan+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Ordered hint question

    Hi all, I have query, in ap_payselect app engine, which is taking a lot of time to execute. so i used ordered hint (/*+ ORDERED */).
    My question is, will that ordered hint change the result? will we get same result with ordered hint as it was with out ordered hint.
    Please help me.
    Thank you.

    The ORDERED hint won't change the result, that will remain the same. Only the explain plan (it is how Oracle will process the query behind the scene) and maybe the execution time could change (faster or slower).
    Find out more:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements006.htm#sthref659
    Nicolas.

  • Ordered hints in Oracle:

    There's a fairly popular Ordered Hint example on the web as follows:
    <CODE>
    select /*+ ordered use_nl(bonus) parallel(e, 4) */
    e.ename,
    hiredate,
    b.comm
    from
    emp e,
    bonus b
    where
    e.ename = b.ename
    </CODE>
    I would like to know what the "parallel(e, 4)" clause does. Where does the "4" come from? What is "parallel" here?
    I also have another question: If I have 5 tables--T_OREGON, T_UTAH, T_VIRGINIA, T_TEXAS, and T_OKLAHOMA--lined up in a join right behind a FROM, coming in at row counts of
    T_OREGON: [a lot of rows; a lot more than T_UTAH]
    T_UTAH: [smaller than T_OREGON] 40550 rows
    T_VIRGINIA: 14 rows
    T_TEXAS: 66 rows
    T_OKLAHOMA: 8 rows
    like so:
    ...from T_OREGON or, T_UTAH ut, T_VIRGINIA va, T_TEXAS tx, T_OKLAHOMA ok...
    my question is, if an Ordered hint can be used here, is it that the smallest table (in this case T_OKLAHOMA) gets placed first in the join and the rest of the table ascension in the join doesn't matter? Or is it that T_OKLAHOMA gets placed first in the join, followed by T_VIRGINIA [at 14 rows], followed by T_TEXAS, T_UTAH, and finally T_OREGON?
    Thank you for any help that you can provide.

    It is why my other question involved the table order
    behind a FROM keyword, (when employing an Ordered
    hint).
    Can anybody help with that question? Thanks again.With rule based optimizer order was important.
    With cost based optimizer (optimizer mode one of the all_rows, first_rows, forst_rows_n) order is not important Oracle itself chooses the order how to join tables.
    If you have gathered statistics leave CBO do his work. See more about optimizer here http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/optimops.htm
    And if you have taken this citation out of http://articles.techrepublic.com.com/5100-22_11-1050199.html then there are at least following problems:
    1) article is 4 years old
    2) article doesn't say anything about downsides using this hint e.g. what if your data changes and order is not relevant anymore, quite high possibility that query is changed but hint forgotten to change, maintaining additional level of complexity where Oracle has invested many many resources to assist users enhancing CBO
    3) and there is at least 1 fallacy in this article these sentences are wrong:
    "When Oracle evaluates table join orders, it must consider every possible combination of tables. For example, a six-way table join has 720 (permutations of 6, or 6 * 5 * 4 * 3 * 2 * 1 = 720) possible ways that the tables can be joined together. This permutation issue becomes even more pronounced when you have more than 10 joined tables in a query: For a 15-way table join, there are over one trillion (1,307,674,368,000 to be exact) possible query permutations that must be evaluated."
    (emphasis is mine - Gints)
    CBO abandons each permutation as soon as the cost is higher than the smallest from previous steps. So in reality CBO is much smarter than article tries to explain.
    If you really want to know how CBO works then I can only suggest to get book Cost based oracle fundamentals by Jonathan Lewis.
    Gints Plivna
    http://www.gplivna.eu

  • Does the Order of the tablesjoins in Where clause matter in ORDERED hint?

    The ORDERED hint requests that the tables listed in the FROM clause of a SQL statement be joined in the order specified. But does the order of the join in "where" clause matters?
    Will be there any performance difference between below query? The order of the table in the FROM clause remains the same, but there is a difference in the order of conditions in the WHERE clause
    SELECT /*+ ORDERED */ a.fp_i f
    FROn iw_owner.revenue_fpct b,
    dw_owner.fp_dinn c,
    dw_owner.nanaged_at_dinn a,
    dw_owner.at_dinn_curr d,
    iw_owner.na_progran e,
    dw_owner.fp_dinn_curr f,
    dw_owner.fpn_of_at_dinn g
    WHERE a.nacc_dinn_i = b.nacc_dinn_i
    AND b.fp_dinn_i = c.fp_dinn_i
    AND a.acc_i = d.acc_i
    AND a.acc_nacc_c = e.npn_pro_c
    AND a.fp_i = f.fp_i
    AND b.org_fpn_dinn_i = g.org_fpn_dinn_i(+)
    AND c.fp_i IN ('JG 04')
    AND b.dte_dinn_i BETWEEN '1-Apr-2011' and '30-Apr-2011'
    SELECT /*+ ORDERED */ a.fp_i f
    FROn iw_owner.revenue_fpct b,
    dw_owner.fp_dinn c,
    dw_owner.nanaged_at_dinn a,
    dw_owner.at_dinn_curr d,
    iw_owner.na_progran e,
    dw_owner.fp_dinn_curr f,
    dw_owner.fpn_of_at_dinn g
    WHERE c.fp_i IN ('JG 04')
    AND b.dte_dinn_i BETWEEN '1-Apr-2011' and '30-Apr-2011'
    AND b.fp_dinn_i = c.fp_dinn_i
    AND a.nacc_dinn_i = b.nacc_dinn_i
    AND a.acc_i = d.acc_i
    AND a.acc_nacc_c = e.npn_pro_c
    AND a.fp_i = f.fp_i
    AND b.org_fpn_dinn_i = g.org_fpn_dinn_i(+)
    Thanks

    Gangadhar Reddy wrote:
    Does it matter the order of first 2 tables?This question makes me really wonder. It's fairly easy to see how explain changes when using hints.
    Your question indicates that you do not look at explain plans?
    Then why are you asking about hints in the first place?
    Using hints is something you do when you want to force a specific execution plan as part of some investigation, because you know something that the optimizer does no, or you have found a bug in the optimizert.
    In all cases you know exactly what you are doing.
    The /*+ ORDERED */ is all about you telling the optimizer to join the tables in the order you specified them in the from clause.
    As to your original question, there exists a similar ORDERED_PREDICATES hint.
    Regards
    Peter

  • How do you get the answers to your security questions in order to buy an app on iphone?

    How do you get the answers to your security questions in order to purchase an app on iphone?

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99852)

  • Question re Order of Sharpening and NR

    Hello all,
    Very quick question regarding order of sharpening and noise reduction. Is NR only supposed to be used to deal with sensor noise (like high ISO noise)? I ask because sharpening obviously introduces noise, which then could be tamed with NR (decreasing sharpness though, right?), but do you really want to do that? Are you supposed to do NR first, then sharpen up and live with the noise introduced therein?
    Thanks, and I apologize for the stupid question!
    Almost forgot--I do NOT have LR storing metadata in XMP files automatically (the checkbox in the catalog settings), but I noticed that after editing and adding metadata to photos, LR creates XMPs anyway. This confused me, but I checked the folder a little while later and noticed that all the XMPs are gone. Does LR temporarily create the XMPs before its stores in info in the catalog?
    Thanks!
    f1fan

    The order in which you do things in Lightroom is meaningless...Lightroom processes images in its own order which has nothing to do with the order you set parameters.
    And yes, Noise Reduction and Sharpening are really interrelated. It could be argued you shouldn't do one without doing the other. Noise Reduction is off by default but even well exposed low ISO images may need noise reduction to optimize the image when proper sharpening is applied.

  • LEADING or ORDERED hint in OWB 10gR2

    Hi,
    How does one add a LEADING or ORDERED hint to a mapping in OWB 10g R2?
    The usual way of adding a hint is to "Configure" the map and add the extraction or loading hint under the table (data source) operators. However, the hints in such a case are specific to table under consideration. A NO_INDEX or a PARALLEL hint can be applied under it.
    However, a LEADING or a ORDERED does not necessarily depend on the table but is common to the entire SQL. Although OWB allows attaching the LEADING or ORDERED hint under Map Configure > Table Operators > [Table Name] > Hints > Extraction Hints, it does not attach the correct table aliases.
    Has anyone encountered this problem before? If you've found a workaround, please share it.
    Thanks, JD

    Hi,
    In OWB 10.2 it's often not easy to set hints. Often it's only possible to set them correctly using workarounds :-(
    The most important is not where you define the hint in OWB but where OWB puts it in the generated code.
    So if you want to have the LEADIND or ORDERING hint in your code you could define it at the level of the target table under:
    Map Configure > Table Operators > [Target Table Name] > Hints > Loading Hints
    Another way to do it would be to generate a dummy filter (1=1) in the mapping and then to define the hint for this filter.
    For hints which are not related to a specific table I mostly used the trial-and-error method to find out where I have to define it in OWB.
    Good luck

  • ORDERED hint in Oracle 11gR2

    Do we have any difference in 11g with the way /*+ ORDERED */ hint works, compared to 10g? Will this hint cause a plan change in 11g, compared to its plan when used in 10g (assuming no other items contribute to a change of plan)?

    Welcome to the forum.
    Do you mean 10.1 or 10.2 and 11.1 or 11.2?
    Are you aware of the existence of http://tahiti.oracle.com?
    Just test it, follow these instructions:
    http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
    SQL and PL/SQL FAQ

  • /* + ordered */ hint used in relational cube operator

    We are using OWB 10.2.0.3 build a relational datamart. The mapping which loads the fact table has a joiner joining three tables, the result of the joiner goes into the cube operator. We realized that the code created by the cube operator contains the /* + ordered */ hint. This might make sense if you do not have any joiner outside the cube operator, but in our case the hint results into a sub-optimal explain plain.
    Has anyone any idea how to get rid of this hint? What is the reason for this hint?
    Thanks in advance, Maren

    Hi,
    if you open the configuration of the mapping, select cube operators, select your target cube, select table operators, selct your cube table -> what do you see in the property 'Loading hints'?
    Regards,
    Detlef

  • Questions for order management

    Hi All,
    Please forward me the possible questions on Order management for a person with an experience of 1 year in SAP SD.
    Regards,

    http://www.sap-img.com/sap-sd.htm
    <b>Interview Questions</b>
    Important Tips for Interview for SAP SD
    SAP SD Interview Questions
    Interview Question and Answers on SAP SD
    Some SAP SD Interview Questions 1
    Some SAP SD Interview Questions 2
    <b>Tables/Tcodes in SAP SD</b>
    Important Tables for SAP SD
    SAP SD Transaction codes List
    Task Specifc SD Transaction Codes 1
    Task Specifc SD Transaction Codes 2
    <b>SD Frequently Asked Question</b>
    Sales and Distribution FAQ
    Link Between SAP SD, MM & FI
    Why Do We Assign Division to Sales Organisation
    Regards,
    Rajesh Banka

  • Performace problem - and ORDERED hint

    Hello,
    The following query is from oracle application EBS 11i , running on 10203 instance.
    Its take about 28 hour before its finished.
    Its exection plan is very long about 150 lines.
    In order to keep it simple i pasted only the first 35 rows from the ORIGINAL plan.
    Id number 34 bellow shows that the unique index :"HZ_PARTIES_U1" fetched each and every row from the table (1,751,000 rows).
    |  34 | ===============>       INDEX UNIQUE SCAN           | HZ_PARTIES_U1                |  1751K
    SELECT * FROM TABLE(dbms_xplan.display_awr('9r0jrz9ygpt9f'));
    PLAN_TABLE_OUTPUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
    SQL_ID 9r0jrz9ygpt9f                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    SELECT /*+ index(ap_bank_accounts)   */ TRX_ID, ROW_ID, TRX_NUMBER, AMOUNT
    FROM CE_222_TRANSACTIONS_V
    WHERE BANK_ACCOUNT_ID = :B8 AND CURRENCY_CODE = :B7 AND (:B6 IN ('CREDIT','NSF','REJECTED') OR TRX_TYPE = 'MISC')
    AND DECODE(:B6 , 'MISC_DEBIT', -1, 1) * AMOUNT BETWEEN :B2 * (1 - :B5 )
    AND :B2 * (1 + :B5 )
    AND TRX_DATE BETWEEN (:B1 - :B4 )
    AND (:B1 + :B3 )
    AND NOT EXISTS ( SELECT 'already matched trx' FROM IL_CE_REC WHERE TRX_ROWID = ROW_ID)
    ORDER BY ABS(:B2 -  AMOUNT), ABS(:B1 - TRX_DATE)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    Plan hash value: 1193373660                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    | Id  | Operation                                          | Name                         | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   0 | SELECT STATEMENT                                   |                              |       |       | 23321 (100)|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   1 |  SORT ORDER BY                                     |                              |     3 |   228 | 23321  (16)| 00:01:02 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   2 |   NESTED LOOPS ANTI                                |                              |     3 |   228 | 23320  (16)| 00:01:02 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   3 |    VIEW                                            | CE_222_TRANSACTIONS_V        |     3 |   192 | 23320  (16)| 00:01:02 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   4 |     UNION-ALL                                      |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   5 |      FILTER                                        |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   6 |       FILTER                                       |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   7 |        NESTED LOOPS                                |                              |     1 |   395 | 11668  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   8 |         NESTED LOOPS OUTER                         |                              |     1 |   359 | 11667  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   9 |          NESTED LOOPS OUTER                        |                              |     1 |   323 | 11666  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  10 |           FILTER                                   |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  21 |                      HASH JOIN                     |                              |     1 |   150 | 11648  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  22 |                       NESTED LOOPS                 |                              |     1 |    54 |     4   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  23 |                        NESTED LOOPS                |                              |     1 |    18 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  24 |                         TABLE ACCESS BY INDEX ROWID| AP_BANK_ACCOUNTS_ALL         |     1 |    13 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  25 |                          INDEX UNIQUE SCAN         | AP_BANK_ACCOUNTS_U1          |     1 |       |     1   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  26 |                         INDEX UNIQUE SCAN          | AP_BANK_BRANCHES_U1          |  2022 | 10110 |     0   (0)|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  27 |                        INDEX RANGE SCAN            | FND_LOOKUP_VALUES_U1         |     1 |    36 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  28 |                       TABLE ACCESS BY INDEX ROWID  | AR_CASH_RECEIPTS_ALL         |     1 |    96 | 11643  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  29 |                        INDEX RANGE SCAN            | AR_CASH_RECEIPTS_N8          |   211K|       |   882  (18)| 00:00:03 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  30 |                      VIEW PUSHED PREDICATE         | RA_HCUSTOMERS                |     1 |    15 |     4   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  31 |                       NESTED LOOPS                 |                              |     1 |    24 |     4   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  32 |                        TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS             |     1 |    18 |     3   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  33 |                         INDEX UNIQUE SCAN          | HZ_CUST_ACCOUNTS_U1          |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  34 | ===============>       INDEX UNIQUE SCAN           | HZ_PARTIES_U1                |  1751K|    10M|     1   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  35 |                     TABLE ACCESS BY INDEX ROWID    | AR_RECEIPT_METHODS           |     1 |     8 |     1   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     When i added an ORDERED hint inside the view the plan changed as followed:
    |  30 |                      VIEW PUSHED PREDICATE         | RA_HCUSTOMERS                |     1 |    15 |     4   (0)| 00:00:01 |
    |  31 |                       NESTED LOOPS                 |                              |     1 |    24 |     4   (0)| 00:00:01 |
    |  32 |                        TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS             |     1 |    18 |     3   (0)| 00:00:01 |
    |* 33 |                         INDEX UNIQUE SCAN          | HZ_CUST_ACCOUNTS_U1          |     1 |       |     2   (0)| 00:00:01 |
    |* 34 |  ==============>       INDEX UNIQUE SCAN           | HZ_PARTIES_U1                |     1 |     6 |     1   (0)| 00:00:01 |
    |* 35 |                     INDEX UNIQUE SCAN              | FND_LOOKUP_VALUES_U1         |     1 |    36 |     1   (0)| 00:00:01 |
    You can see that line 34 is now return just 1 row and not 1751K rows.Oracle documentaion : http://download.oracle.com/docs/cd/A97630_01/server.920/a96533/hintsref.htm said:
    You might want to use the ORDERED hint to specify a join order if you know something about the number of rows selected
    from each table that the optimizer does not.
    Since , i dont want to use the ORDERED hint , i would like to know what statistics information are missing to the optimizer ? What should i look for ?
    I have an uptodate statiscts , and bellow are the resoults .
    SQL> select table_name,last_analyzed,num_rows,blocks
      2  from dba_tables
      3  where table_name='HZ_PARTIES';
    TABLE_NAME                     LAST_ANAL   NUM_ROWS     BLOCKS
    HZ_PARTIES                     06-JUN-10    1760190      65325
    SQL>
    SQL>
    SQL> select count(*) from apps.HZ_PARTIES;
      COUNT(*)
       1771794
    SQL> select index_name,last_analyzed,num_rows,clustering_factor,blevel,distinct_keys
      2  from dba_indexes
      3  where table_name='HZ_PARTIES'
      4  and index_name like '%U1';
    INDEX_NAME                     LAST_ANAL   NUM_ROWS CLUSTERING_FACTOR     BLEVEL DISTINCT_KEYS
    HZ_PARTIES_U1                  06-JUN-10    1758162            158739          2       1758162Thanks for your help

    Nothing I can see in your in your post relates to the optimizer and you, yourself, wrote:
    Oracle documentaion : http://download.oracle.com/docs/cd/A97630_01/server.920/a96533/hintsref.htm  said:
    You might want to use the ORDERED hint
    {code}
    so clearly the Oracle documentation does say that.
    Either post in the correct forum, and explain your reasoning, or I can not help you further.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • HT1725 How to resolve security questions in order to access account

    How to resolve security questions in order to access account? Who should I contact or email ?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57

  • OBIEE 11g pivot dumb question - changing order of measure columns

    Hi, dumb question, in OBIEE 11g, if using a table view it is easy for end users to drag and drop the measure columns in any order desired. Is there a way for end users to change the order of measures when using a pivot view?
    Thanks,
    Scott

    Hi Dpka, no, moving to rows doesn't really solve the issue. Dimensions don't allow you to change the order of the members, except by alphabetic sort.
    Lets say the default pivot has three measure columns in this order:
    1. Sales
    2. Revenue
    3. Cost of Goods Sold.
    If a user wants to change the order of the columns to be:
    1. Sales
    2. Cost of Goods Sold
    3. Revenue
    on a table they just drag the columns the way they want them. On a pivot, it appears that there is no way to change this.
    Thx,
    Scott

  • Any questions on Order Management Header and Item level?

    Hi,
    If you are interviewing somebody...And the position he wants is SD consultant.
    What kind of questions will you raise on OM header level and item level??
    Order management--Questions on Header level
                                  Questions on item level
    Thanks, would be better if you could also attach the answer.
    Thanks!!

    Dear Hoo,
    ORDER MANAGEMENT & SALES
    1.Briefly describe the types and structure of the sales document and give examples of data
    that you find on the different levels.
    Sales*related business transactions are recorded in the system as sales documents. There are, broadly
    speaking, four different groupings of sales documents:
    Sales queries, such as inquiries and quotations
    Sales orders
    Outline agreements, such as contracts and scheduling agreements
    Customer problems and complaints, such as free of charge deliveries and credit memo requests.
    Header Data
    The general data that is valid for the entire document is recorded in the document header. This data
    includes the:
    number of the sold*to party
    number of the ship*to party and the payer
    document currency and exchange rate
    pricing elements for the entire document
    delivery date and shipping point
    Item Data
    Whereas data in the document header applies to all items in the document, some data applies only to
    specific items. This data is stored at item level and includes the:
    material number
    target quantity for outline agreements
    number of the shipto party and the payer (an alternative shipto party or payer can be defined for a
    particular item)
    plant and storage location specifications
    pricing elements for the individual items
    Schedule Line Data
    An item consists of one or more schedule lines. The schedule line contains all the data that is needed
    for a delivery. For example, a customer orders 20 pieces of a material and you enter this as an item in
    the sales order. However, you can only deliver 10 pieces now and the remaining 10 pieces next month.
    In other words, you need to schedule two deliveries. The data for these deliveries (dates, confirmed
    quantities) are stored in two separate schedule lines. In sales documents where delivery data is not
    relevant *for example: contracts, credit and debit memo requests * the system does not create any
    schedule lines.
    Data recorded in the schedule lines includes the:
    schedule line quantity
    delivery date
    confirmed quantity
    2.What is the difference between an inquiry and quotation ?
    . Inquiry: Request made to a vendor for a quotation for required materials or services.
    No availability check is done for inquiry.
    . Quotation: Offer from a vendor to a purchasing organization regarding the supply of materials
    or performance of services subject to predefined terms and conditions.
    A quotation consists of a number of items, in which the total quantity and delivery date of an
    offered material or service are specified.
    The total quantity can be subdivided into several partial quantities with different delivery dates in the
    lines of a delivery schedule.
    3.Do you always have to have a material master record number when you enter an item on a
    sales document (inquiry and quote)? If not what would you have to use to be able to enter
    information at item level?
    No. Customer Material Information or Material Description.
    4.If a customer doesn't place an order with you after you have sent him a quotation, what happens to
    the quotation document?
    Remains active till the end of validity period.
    5.Can you have alternative items in a sales order?
    Yes.
    6.If you reference an inquiry when creating a quotation ,would the inquiry be updated?
    Yes.
    7.Can you copy one inquiry to many quotations ?
    No.
    8.Can you copy several previous documents into one sales order?
    Yes.
    9.Do you always have to copy the entire quantities at item level when you reference a
    previous document?
    No.
    10.Can you make sure that business data in a sales order is only possible to maintain at header
    level?
    Yes.
    11.From where is the delivering plant transferred into the sales order?
    Customer Master, Material Master.
    12.Which partner function is relevant for the delivering plant? The soldtoparty ,
    billtoparty, payer, carrier or the ship* to* party?
    Ship*to party.
    13.Can you manually change the delivering plant in the sales order once it was defaulted from
    the master data?
    Yes.
    14.For what or why do you use the incompletion log?
    To have a complete document so that it doesnu2019t affect subsequent processes.
    15.Can you have different incompletion logs for different item categories? Schedule line
    categories?
    Yes.
    16.If a document is incomplete can you still save the document?
    Yes.
    17.Which reference status can a document have at item level? Which statuses at header level?
    Item level: Partial, Full.
    Header level: Full.
    18.What's the advantage of using text as a reference instead of duplicating it?
    Can be modified if needed.
    19.What three sources provide data for the creation of a sales document?
    Material Master, Customer Master, Previous referenced documents.
    20.Can you change addresses of partners manually in the sales document?
    Yes.
    21.Name several input tools that make order entry faster and give a definition of them?
    Customer Material Information, Product Proposal , Referencing Documents.
    22.In which business environment would you use only the single*line entry screen to create
    and save the order?
    Telephone Sales, Simple Business.
    23.If you do not specify the delivering plant in the sales order, what could the system then not
    do?
    Delivery Scheduling.
    24.For what would you use the fast change function in sales entry?
    Alternate Plants, Delivery or Billing Blocks
    25.Name two ways to control that customers can receive only certain materials?
    Material Listing, Exclusion.
    26.What does the item category control?
    General Data
    . Should pricing be carried out for the item?
    . When should an item be regarded as completed? A quotation item, for example, can only be
    regarded as completed if the entire quantity has been copied into a sales order.
    . Is it an item that refers to a material or is it a text item?
    . Are schedule lines allowed for the item?
    . May general business data, for example, the terms of payment at the item level, deviate from
    those at the header level?
    . Should a system message appear if the item cannot be fully delivered?
    . Which fields are relevant for the incompletion log?
    . Which partner functions are allowed at the item level and which are mandatory?
    . Which output (for example, an order confirmation) is allowed for the business transaction and
    which output determination procedure is used?
    Shipping Data
    . Is an item relevant for delivery?
    . Should the weight and the volume of an item be determined?
    Billing Data
    . Is an item relevant for billing?
    . Should the cost of the item be determined?
    . Is it a statistical item? Pricing is carried out for statistical items. However, they are not added
    to the value of the order, that is, the customer is not charged for them.
    . Should a billing block be set automatically for an item? For example, this may be important for
    items whose prices have to be clarified before billing
    . Is it a returns item?
    . Name the influencing factors for determining the item category in the sales document?
    . Sales Document type, Item Category Group, Higher Level Item, Item Usage.
    . Name the influencing factors for determining the scehdule line category in the sales document?
    . Item Category, MRP Type.
    . What does the sales document type control?
    General Data
    . Can the document be entered only with reference to a preceding document?
    . Should the existing customer
    . material info record be taken into consideration?
    . Should the delivery date be proposed?
    . Must a customer number be entered when creating a document? For example, product
    proposals can be entered without reference to a particular customer.
    . Which order probability is defined?
    . Should the division be taken from the material master record for every item or should an
    alternative division specified in the header take precedence over the item specifications?
    . How should the system respond if the division entered in the header deviates from the division
    in the items?
    . Should a credit limit check be made?
    . From which number range should the document number for internal or external number
    assignment come?
    . Which fields are relevant for the incompletion log? The validity period, for example, is
    important for contracts and must therefore be specified in the document.
    . Can an incomplete document be saved or must all data be complete?
    . Which partner functions are allowed and which ones are mandatory?
    Shipping Data
    . Which delivery type should the delivery resulting from the order have?
    . Should delivery scheduling be carried out?
    . Should transportation scheduling be carried out?
    . Should a delivery block be set automatically for a specific reason? For example, a delivery
    block may be appropriate for a freeofcharge delivery.
    . You can define shipping conditions for a sales document type. These are copied into the
    document regardless of what is defined in the customer master record.
    Billing Data
    -->Which billing type should the invoice resulting from the order or the delivery have?
    Should a billing block be set automatically for a specific reason? For example, a billing block may be
    appropriate if a credit memo request should first be checked before it is used as the basis for a credit
    memo.
    -->Can the sales document type be determined by the system?
    No.
    -->In R/3, can you automatically substitute one product for another? How? What would you
    have to create?
    Yes. Product Selection / Material Determination.
    -->Give a definition of replenishment lead time?
    Total time for the inhouse production or for the external procurement of a product. In inhouse
    production the replenishment lead time is determined to cover all BOM levels.
    What's the difference between checking availability with or without replenishment lead time (RLT)?
    With RLT : Availability check is done only upto end of RLT. If material is not available the date on
    which RLT ends is displayed as Material Availability Date.
    Without RLT : Availability check is unrestricted. Displays Delivery Dates as on which partial deliveries
    can be made with available stock.
    -->Name at least three item categories?
    Standard Items : AFN, AGN, TAN.
    Free of charge Items: AFNN, AGNN, TANN.
    Non*stock Items : AFX, AGX, TAX.
    Text Items : AFTX, AGTX, TATX.
    -->Why would you use different item and schedule line categories?
    Item categories are defined to provide additional control functions for the sales documents and thus
    meet the demands resulting from the different business transactions.
    The items in a sales document are divided into one or more schedule lines. These schedule lines differ
    from each other with respect to date and quantity. For some schedule lines, material requirements
    planning is not carried out; for other schedule lines, it is carried out. Also goods receipt, not goods
    issue, is posted for a schedule line defined in a returns document.
    -->Can you change existing standard item categories?
    Yes.
    -->Can you create new sales order types?
    Yes.
    -->Different dates will be calculated in order entry scheduling . Can you name the lead time
    variables that will be taken into account?
    Transportation lead time, Pick/pack time, Loading time, Transit time .
    If you run out of stock in a specific plant can you check if there are quantities available in other plants?
    Yes.
    -->When you carry out availability check, which quantities or movements can the system take
    into consideration?
    The following elements can be included in the availability check:
    Stocks : safety stock, stock in transfer, stock in quality inspection, blocked stock.
    Inward and outward movements : purchase orders, purchase requisitions, planned orders, production
    orders, reservations, dependent reservations, dependent requirements, sales requirements, delivery
    requirements.
    -->Give some examples of sales document types (description, not necessary the short code)
    that already set up in the standard system?
    Indicator used to control the processing of the various sales documents which are defined in the
    system. E.g., OR, SO, BV, KR. Document types allow the system to process different kinds of business
    transactions, such as standard orders and credit memo requests, in different ways.
    -->Can you maintain texts for a specific customer and store them in the system? If yes, where?
    Yes. Customer Material Information.
    -->When the system checks availability which scheduling would it use first?
    Backward Scheduling.
    -->Name the influencing factors for the determination of the availability date?
    The following data is required for determining this date:
    Route from the shipping point to the ship*to party location
    Shipping point from which the goods are issued
    Loading group from the material master record
    Weight group determined from the order using the order quantity.
    -->Name the three delivery possibilities when there is not enough stock available?
    One Time Delivery, Complete Delivery, Partial Deliveries.
    -->Can you think of an example why you would have to create a text for a customer and copy it
    to the sales order?
    Customer specific instructions.
    -->What is the function of item category group?
    The item category group determines how a material is processed in the sales order. It defines, for
    example, that pricing does not take place for a free of charge item, such as a business gift; or that
    inventory management is not carried out for a service. When processing sales and distribution
    documents, the system uses the item category group to determine the item category. The system
    determines the item category based on the item category group of the material and the current
    business transaction, and proposes it in the respective document.
    When creating the material types non*stock material and services, DIEN is proposed in both cases for
    the item category group, because the order processing for both material types is identical: for
    example, pricing is carried out for both, but no availability check.
    -->On sales order, when the system confirms 20 pieces to be available at a certain date, would
    these 20 pieces still be available for other new sales order coming in later?
    No.
    -->What is a delivery group and why would you use it?
    The complete delivery and delivery group functions enable you to combine some or all of the items in a
    sales order so that they are delivered to the customer together. The system determines automatically
    the latest delivery date possible for the delivery group and adjusts the schedule lines accordingly.
    Corresponding requirements for material requirements planning (MRP) are changed or re*determined.
    -->What is backorder processing?
    The backorder processing functions enable you to list relevant sales documents for specific materials
    and process them from the point of view of availability. You can assign available to promise (ATP)
    stock to outstanding order quantities. In addition, you can withdraw already confirmed quantities and
    reassign them to different items.
    Backorder processing is only available for materials with individual requirements.
    -->Can you link items in a sales order? If yes, when would you do that?
    Yes. Promotional Items.
    -->For what would you use BOMu2019S in sales? What two methods of BOM processing do you have
    in sales order entry? How can you control if the system should/should not explode a BOM in
    the sales order.
    A bill of material (BOM) describes the different components that together create a product. A BOM for
    a bicycle, for example, consists of all the parts that make up the bicycle: the frame, the saddle,
    wheels, and so on. When you enter the material number of a bill of materials that is relevant for sales
    order processing, the system displays the material that describes the whole bill of materials as a main
    item. The components are displayed as sub*items.
    Processing by Main Item : ERLA & Processing by Sub*Item : LUMF
    BOM explosion can be prevented by specifying Item Category Group as NORM.
    Credit limit checks is an example of a very close link between which two SAP modules?
    SD & FI.
    -->What are the two techniques in delivery scheduling?
    Backward Scheduling & Forward Scheduling.
    -->How does a third party deal work? Do you use a special sales order type for that? How could
    the system know that you want to process a third party deal?
    By specifying item category as TAS using double*line entry in the sales order.
    No special order type is available.
    By the item category group and/or material type in Material Master .
    Name the several steps in consignment processing.
    Consignment fillup, Consignment issue, Consignment pickup, Consignment return.
    Whatu2019s the difference between consignment pick*up and consignment return?
    In consignment pick*up, customer returns consignment stock. When goods issue is posted, the
    relevant quantity is deducted from the customer's special stock and is added back to regular stock at
    the plant where the goods are returned. Total valuated stock remains the same since the returned
    stock was regarded as part of inventory even while it was at the customer's premises.This transaction
    is not relevant for billing.
    In consignment return, customer wishes to claim on consignment goods which have already been
    issued. When goods issue is posted, the relevant quantity is added to the customer's special stock at
    the plant where the goods are returned. Since the ownership of the goods is passed from the customer
    back to the company, the transaction is relevant for billing. In this case, the customer receives a credit
    memo for the returned goods.
    -->Can you control that an end user cannot copy a quote of customer A to a sales order for
    customer B? If yes, where?
    Yes. By customizing Copying Control for header data.
    Give some example for data that is copied from the customer (soldto, payer, shipto) to the sales
    order as well as for data that is copied from the material?
    General data, payment terms, shipping details, delivery agreements, delivering plant.
    -->What is returnable packaging processing?
    Returnable packaging consists of materials that are stored at the customer location but which remain
    the property of the company. The customer is only required to pay for the returnable packaging if he
    does not return it by a specified time.
    Name the two outline agreements in R/3 standard and explain the difference between them.
    Agreements are arrangements between business partners regarding the granting of conditions over a
    specified time period. The agreement contains conditions which apply over a particular time period and
    which are settled together at the same points in time. An agreement can be settled once or
    periodically. The two outline agreements include Contracts and Scheduling Agreements.
    Unlike a contract * which only contains an overall target quantity or value * a scheduling agreement
    also contains specific order quantities and delivery dates.
    -->How many documents do you create when you release, deliver and invoice the first order
    from a contract?
    Three : Sales order, Delivery note, Invoice.
    -->What types of output can you have in sales?
    Printer, Telex, Fax, Mail, EDI.
    -->Can you automate output processing ? Do you always have to specify it manually?
    yes. No.
    -->Where would you specify which data should be copied (at header, item and schedule line
    level)when you copy from one document to another one?
    Customizing Copy Control.
    I hope it will help you,
    Regards,
    Murali.

  • Question about Order Online / Delivery

    Hi everyone,
    I am thinking about order a MBP online. But there has one thing which i worry about. Sorry about that if you think that question is stupid, but it is my first time to order something so expensive on the internet, so i am a bit worry
    Because I am a student and I live on my own.
    What will happen if the delivery is arrived, but I am not at home?
    P.S I live in England
    Thanks a lot

    Hi,
    My MBP has been scheduled for delivery today. I have taken the day off work for the delivery. I have just heared that it is going to be delivered tonight around 8pm. It seems that TNT have a policy that they do not deliver certain items during the working week as people are not at home. This may sound very good if you have not taken a day off to take delivery. Quite frankly I am a bit hacked off as I would like to use the machine for a job tomorrow and now will have to stay up late doing updates etc.
    Regarding delivery: I'm sure this is a reasonable policy, I would just have liked them to tell me yesterday ( when I phoned up) that delivery would not be until tonight so I could have gone out and earned some money today!!!
    Don't worry...you will get your machine!!
    Mark

Maybe you are looking for