New Condition table / access not getting picked in purchase order.

I have created a new condition table for the tax to be calculated for Site / Material combination. The access sequence is also crated.
When I created the purchase order the condition / tax is not getting picked. When I checked in the analysis, I found that the error was Access not made (initalize field) for the site.  The material is being picked up.
Please note that the site is getting picked from KOMK table ( I think it is a header table), while the site is actually there in the line item level in the po.
Request your help at the earliest.
Regards,
Veena.

TCODE OBQ2
Select the tax access sequence. Click on accesses. Tick the right combination required site / article . then click on the fields tab. This will take you to the next screen. There click on the field for which you want to change the selection table and then click on field catalog at the bottom of the screen.
This will take you to the field catalog screen. there select the table and field and then save.
With this procedure you can select the required field into KOMK OR KOMP.
Regards,
Veena.

Similar Messages

  • Free Goods Condition table records not getting downloaded from R/3 to CRM

    Hi Friends,
    I'm trying to download free goods condition records from R/3 to CRM. i have already downloaded condition techique, procedure, condition type, access sequece.
    Now i am tryin to download Free goods condition table for Example: KOTN602 to CRM. I created new condition adapter ZDNL_COND_N602 by coping standared adapter DNL_COND_N010 and changed to table table. now i have the following tables in table section.
    KONDN
    KONDNS
    KOTN602
    TMC1K
    No filter has been set as we have only one record in table KOTN602 in R/3.
    i had run initial load of this adapter ZDNL_COND_N602 thr R3AS, then I checked in R3AM, the status is canged to Green. but when I checked in CRM table /1CN/CCFCUS602, no data available in this table ( NO download happens).
    Can you please suggest what could be the reason and what is missing?
    Thanks
    Bharthi

    Hello Bharti,
    Please make sure in txn R3AC5, for you Z* adapter object, under the tab 'Mapping Modules: R/3 to CRM', you just have
    single entry of CND_MAP_MAST_EXCHANGE_MAIN_MBD.
    If there are double entries please delete the duplicate.
    Also, you can check the logs using txn CND_MAP_LOG_DISPLAY
    Object : COND_EXCHANGE
    Sub-Object: CONDITIONS
    Please give the 'From' and 'To' correctly, to get the correct log messages.
    This will give you some hint.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • Re : Condition record not getting picked

    Hi All,
    This is with reference to Inter-company PO.
    A condition record has been maintained for MWST condition type(for key combination of Departure country -ID & Destination Country BE).But the system is not picking this condition record but it is picking the condition record maintained for MY to BE.
    Could you please tell me where I need to check if a condition record is not getting picked.
    Regards,
    Mahesh.

    Dear Mahesh
    -  Check your Ship To Party Country
    -  Ensure that the tax code you have maintained for the combination of ID -- BE
    thanks
    G. Lakshmipathi

  • GL Account is not getting picked by billing document

    Hi Gurus,
    one new GL account is set up by our FI team for a accrual condition type.
    case 1:
    Now when i have cancelled the previous created billing doc and trying to create again then the new GL account is not getting picked.
    case 2:
    Whereas when am doing the complete process flow like sales order creation, delivery and billing then the new GL account is getting picked.
    Could you please let me know what would be the reason for this, why its not getting picked in first case.
    Thanks,
    Ashi

    Hello Preety,
    Unless you see the Revenue Account Determination Analysis for the Billing document, it is very difficult to understand the reason. Please click on the Environment >> Acc.Determination Analysis >> Revenue account in the VF03 screen and find the missing assignment.
    Thanks,
    Suman$

  • New Condition Table not working in Sales order

    Dear All,
    I am facing problem in pricing procedure. I have created new condition table(LIFNR & ROUTE), included Vendor(Fwd Agent) and Route in condition table with sales area. I have added that condition table in access sequence and assigned access sequence to condition type. Then Condition type added into pricing procedure and assigned pricing procedure to document type.
    In sales order I've added route and fwd agent but while checking in analysis system does not determine route and fwd agent.
    Thanks and Regards,
    Kaushal

    hi,
    i have a query to ask why you need LIFNR in condition table creation.
    where in sales order it will trigger automatically.
    please check the config settings for route determiantion automatically.
    so that if route comes automatically into the sales order then from where you will trigger LIFNR.
    please clarify.
    regards,
    balajia.

  • Sales Order Unable to Use New Condition Tables for Tax Condition Type

    Dear All,
    I am currently working on SAP R/3 4.0. I have a new requirement for my tax where I need to create new condition tables other than the 4 standard SAP tables which are Customer/Material, Division/Customer, Departure Country/Destination Country, Domestic Taxes and Export Taxes. My new tables consists of Departure Country/Destination Country/Shipping Point/Tax Code. The requirement is that the tax code is based on the chosen destination country and shipping point. The problem I am facing now is that no matter what types of table I create or even I generate with reference to the standard table, the access sequence will only refer to the 4 standard SAP tables above. Even if I put my own table in the highest priority for the access sequence, the same thing happens. My sales order will only pick up date from the standard table.
    I wonder if anyone encountered the same problem as me.
    Kindly advise.
    Thank you.
    Regards,
    Yvonne

    Hi
    Yvonne
    I suggest fist check a simple thing ,whether u have successfully determined shipping point for each line item ,it is possible that just adding a line item will not trigger shipping point determination . So after u update the shipping point on line level u can rerun pricing and check agian if u r getting it .
    Secondly for tax purposes I suggest   Try to have Customer and material tax classification approach  this allows to u have long term flexibiliy and also reduces your maintenance activity . As if u change or add number of shipping points and business changes using the sequence of shipping point ,the logic of just using shipping point will not work.
    In Tax classification u cna add new condition table for each new tax category and use it in different access sequences.
    This information can be passed on to FI using Different Tax code for Different combination.
    I hope this helps
    Regards
    Mandar

  • Output Message Type MAHN not getting picked up in PO

    Hello Experts
       I have configured customized output type ZMAH (similar to MAHN) for reminder process. When I am creating PO this output type is not getting picked up automatically. If I am maintaining it manually I am able to send message for ME9F (Purchase Order) and ME91F (Reminder) successfully. Upon deremination analysis I am getting this message 502 " Output ignored (requirement 103 not fulfilled) ". Reminder are getting picked up from Purchase Value Key to PO.
    Any help is appreciated.
    Thanks
    Ankit

    Hello Tej
      I have maintained output device but same result.
    Here I am listing all parameters that I have used for configuration can anyone please take a look and let me know if I am missing anything
    Steps for new Message Type for PO Reminder (ZMAH)
    1.     Defined new Table 026 Purchasing Output Determination: Document Type
                                                        (ii) 027 Purchasing Output Determination: Purch. Org./Vendor for EDI
    2.     Defined new access sequence Z515 Access Sequence for Archiving.
    Following are parameters to the Access Sequence
    Access Sequence Number = 1
    Table = 026
    Description = Purchasing Output Determination: Document Type
    Requirement = 103
    Exclusive = Yes (box checked)
    Access Sequence Number = 2
    Table = 027
    Description = Purchasing Output Determination: Purch. Org./Vendor for EDI
    Requirement = 103
    Exclusive = Yes (box checked)
    3.     Maintain Output Type ZMAH for PO
    General Data
    Access Sequence = Z515
    Access to condition (Checked)
    Multiple Issuing (Checked)
    Change Output
    Program = SAPFM06P
    FORM Routine = ENTRY_NEU
    Replacement of Text Symbol
    Program = SAPMM06E
    FORM Routine = TEXT_SYMBOL_REPLACE
    Default Values
    Dispatch Time = Send Immediately (when saving application)
    Transmission Medium = External Send
    Communication Strategy = 0001 (E-mail Document)
    Processing Routines
    Transmission Medium = 5 (External Send)
    Program = SAPFM06P
    Form Routine = ENTRY_NEU
    Form = MEDRUCK
    Partner Roles
    Medium = External Send
    Funct = VN
    Name = Vendor
    4.     Fine-Tuned Control: Purchase Order
    Oprat. = 3
    CType = ZMAH
    Name = Output for Reminder
    Short Text = Urging letter (expediter)/reminder
    Update Print Related Data = Yes (checked)
    5.     Maintain Message Determination Schema: Purchase Order
    Procedure RMBEF1 (Purchase Order)
    Step = 101
    Cntr = 3
    CTyp = ZMAH
    Description = Output for Reminder
    Requirement = 103
    6.     Assign Schema to Purchase Order
    Procedure RMBEF1
    7.     Define Partner Roles for Purchase Order
    Out. = ZMAH
    Med = 5 (External Send)
    Funct = VN
    Name = Output for Reminder
    Name = Vendor
    8.     Test Condition Maintained in MN04 (Master Data)
    Purch. Org. = 0001
    Vendor = 101281
    Partner Funct = VN
    Medium = 5 (External Send)
    Date/Time = 4 Send immediately (when saving application)
    Output Device = LP01
    Cover Page Text = Reminder PO number &EKKO-EBELN&
    Also I have configured Purchasing Value Key, reminders are coming to PO correctly.
    Thanks
    Ankit

  • Force index not getting picked up while running the SQL Query

    Hi All,
    We are facing an issue with one SQL Query. We have created a custom Index and we are using that index in our query by using the following syntax:
    /*+INDEX(ol XXEXH_ORDER_LINES_N2)*/
    Where
    ol – Table Alias Name
    XXEXH_ORDER_LINES_N2 – Index Name
    But still the index is not getting picked up in the Explain Plan.
    If any one of you have faced a similar issue then please let us know how you had resolved it.
    Appreciate your help.
    DB version:10.2.0.4
    Apps version: 11.5.10.2.0
    Thanks.

    The query and plan are given as:
    SELECT
    /*+INDEX(ol XXEXH_ORDER_LINES_N2)*/
    ol.header_id,
    ol.line_id,
    ol.line_type_id,
    ol.flow_status_code,
    ol.last_update_date,
    ol.inventory_item_id,
    ol.ship_from_org_id,
    oh.order_number,
    ttv.NAME,
    msib.segment1,
    msib.item_type,
    fl.segment1 || '-' || fl.segment2 || '-' || fl.segment3 || '-' || fl.segment4 current_loc,
    ship_to.country
    || '-'
    || NVL (ship_to.state, ship_to.province)
    || '-'
    || DECODE (ship_to.county,
    NULL, ship_to.city,
    ship_to.county
    || DECODE (ship_to.country,
    NULL, NULL,
    '-' || ship_to.city
    ) new_loc,
    mmt.transaction_type_id,
    mtt.transaction_type_name,
    DECODE (mil.segment1,
    UPPER ('Field%'), 'PLEASE VALIDATE FIELD LOCATION',
    hou.country
    || '-'
    || DECODE (mil.segment1,
    UPPER ('Field%'), NULL,
    hou.region_2
    || '-'
    || DECODE (mil.segment1,
    UPPER ('Field%'), NULL,
    hou.region_1
    || '-'
    || DECODE (mil.segment1,
    UPPER ('Field%'), NULL,
    hou.town_or_city
    ) rma_loc,
    ship_su.attribute1 oper_loc,
    msib.organization_id --SC#5878
    ,fa.asset_number --SC#5878
    ,fdh.code_combination_id --SC#5878
    ,fa.asset_id parent_asset_id
    FROM fnd_flex_values_vl ffvv,
    fnd_flex_value_sets ffvs,
    mtl_item_locations mil,
    --hr_organization_units_v hou,
    hr_organization_units o,
    -- hr_lookups l,
    -- hr_lookups l2,
    hr_locations hou,
    hr_locations_all_tl lot,
    mtl_transaction_types mtt,
    mtl_material_transactions mmt,
    hz_locations ship_to,
    hz_cust_acct_sites ship_cas,
    hz_cust_site_uses ship_su,
    hz_party_sites ship_ps,
    fa_distribution_history fdh,
    fa_locations fl,
    fa_additions fa,
    mtl_system_items_b msib,
    oe_transaction_types_tl ttv,
    oe_order_headers oh,
    oe_order_lines ol
    WHERE ol.org_id = TO_NUMBER (fnd_profile.VALUE ('ORG_ID')) --SC#5878
    AND ol.flow_status_code = 'CLOSED'
    AND TRUNC(ol.last_update_date) BETWEEN '01-SEP-2010' AND '31-OCT-2010'
    AND ol.header_id = oh.header_id
    AND ol.line_type_id = ttv.transaction_type_id
    AND ol.inventory_item_id = msib.inventory_item_id
    AND ol.ship_from_org_id = msib.organization_id
    AND msib.item_type = 'REN'
    AND SUBSTR(fa.asset_number,1,DECODE(INSTR(fa.asset_number,'-'),0,LENGTH(fa.asset_number),INSTR(fa.asset_number,'-')-1)) = msib.segment1 -- SC#11824 / added for fetching all assets with any suffix/ on 20-JUL-2011 by MPRAKAS
    AND fdh.asset_id(+) = fa.asset_id
    AND fdh.location_id = fl.location_id(+)
    AND fdh.date_ineffective IS NULL
    AND ol.ship_to_org_id = ship_su.site_use_id
    AND ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id
    AND ship_cas.party_site_id = ship_ps.party_site_id
    AND ship_ps.location_id = ship_to.location_id
    AND mmt.inventory_item_id = ol.inventory_item_id --added new condition
    AND mmt.organization_id = ol.ship_from_org_id --added new condition
    AND mmt.trx_source_line_id = ol.line_id
    AND mmt.transaction_quantity > 0
    AND mmt.transaction_type_id = mtt.transaction_type_id(+)
    AND mtt.transaction_type_name(+) = 'RMA Receipt'
    AND o.organization_id(+) = mmt.organization_id
    AND mil.inventory_location_id(+) = mmt.locator_id
    AND ffvs.flex_value_set_name = 'HCCA_AFF_LOCATION' --added new condition
    AND ffvv.flex_value_set_id = ffvs.flex_value_set_id(+)
    AND ffvv.flex_value(+) = ship_su.attribute1
    AND ttv.LANGUAGE = 'US'
    AND (ol.ordered_item_id IS NULL OR ol.ordered_item_id > 0)
    AND NVL (ol.ship_to_org_id, 1) > 0
    AND NVL (hou.location_id, 1) > 0
    AND o.location_id = hou.location_id(+)
    AND NVL (hou.business_group_id, NVL (hr_general.get_business_group_id, -99)) = NVL (hr_general.get_business_group_id, -99)
    AND hou.location_id = lot.location_id
    AND lot.LANGUAGE = USERENV ('LANG')
    AND (fa.asset_id = fa.parent_asset_id OR fa.parent_asset_id IS NULL)
    Plan
    SELECT STATEMENT ALL_ROWSCost: 4,065 Bytes: 958 Cardinality: 2                                                                                                                                   
         125 CONCATENATION                                                                                                                              
              62 NESTED LOOPS OUTER Cost: 3,140 Bytes: 479 Cardinality: 1                                                                                                                         
                   59 FILTER                                                                                                                    
                        58 NESTED LOOPS OUTER Cost: 3,139 Bytes: 441 Cardinality: 1                                                                                                               
                             55 NESTED LOOPS Cost: 3,131 Bytes: 420 Cardinality: 1                                                                                                          
                                  52 NESTED LOOPS OUTER Cost: 3,130 Bytes: 390 Cardinality: 1                                                                                                     
                                       49 NESTED LOOPS OUTER Cost: 3,128 Bytes: 377 Cardinality: 1                                                                                                
                                            46 NESTED LOOPS Cost: 3,127 Bytes: 351 Cardinality: 1                                                                                           
                                                 44 HASH JOIN Cost: 3,126 Bytes: 342 Cardinality: 1                                                                                      
                                                      42 NESTED LOOPS Cost: 2,443 Bytes: 324 Cardinality: 1                                                                                 
                                                           40 NESTED LOOPS Cost: 2,443 Bytes: 315 Cardinality: 1                                                                            
                                                                38 NESTED LOOPS Cost: 2,443 Bytes: 306 Cardinality: 1                                                                       
                                                                     36 NESTED LOOPS Cost: 2,443 Bytes: 298 Cardinality: 1                                                                  
                                                                          33 NESTED LOOPS Cost: 2,442 Bytes: 268 Cardinality: 1                                                             
                                                                               31 NESTED LOOPS Cost: 2,441 Bytes: 259 Cardinality: 1                                                        
                                                                                    28 NESTED LOOPS Cost: 2,438 Bytes: 238 Cardinality: 1                                                   
                                                                                         25 NESTED LOOPS Cost: 2,437 Bytes: 207 Cardinality: 1                                              
                                                                                              22 NESTED LOOPS Cost: 2,436 Bytes: 194 Cardinality: 1                                         
                                                                                                   19 NESTED LOOPS Cost: 2,435 Bytes: 184 Cardinality: 1                                    
                                                                                                        16 NESTED LOOPS Cost: 2,433 Bytes: 168 Cardinality: 1                               
                                                                                                             13 NESTED LOOPS Cost: 2,432 Bytes: 154 Cardinality: 1                          
                                                                                                                  10 NESTED LOOPS Cost: 2,430 Bytes: 126 Cardinality: 1                     
                                                                                                                       7 NESTED LOOPS Cost: 2,427 Bytes: 102 Cardinality: 1                
                                                                                                                            4 NESTED LOOPS Cost: 779 Bytes: 34,028 Cardinality: 724           
                                                                                                                                 2 TABLE ACCESS BY INDEX ROWID TABLE APPLSYS.FND_FLEX_VALUE_SETS Cost: 2 Bytes: 28 Cardinality: 1      
                                                                                                                                      1 INDEX UNIQUE SCAN INDEX (UNIQUE) APPLSYS.FND_FLEX_VALUE_SETS_U2 Cost: 1 Cardinality: 1
                                                                                                                                 3 TABLE ACCESS FULL TABLE AR.HZ_CUST_SITE_USES_ALL Cost: 777 Bytes: 13,756 Cardinality: 724      
                                                                                                                            6 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_ORDER_LINES_ALL Cost: 3 Bytes: 55 Cardinality: 1           
                                                                                                                                 5 INDEX RANGE SCAN INDEX ONT.OE_ORDER_LINES_N2 Cost: 2 Cardinality: 1      
                                                                                                                       9 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_MATERIAL_TRANSACTIONS Cost: 3 Bytes: 24 Cardinality: 1                
                                                                                                                            8 INDEX RANGE SCAN INDEX INV.MTL_MATERIAL_TRANSACTIONS_N1 Cost: 2 Cardinality: 1           
                                                                                                                  12 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_SYSTEM_ITEMS_B Cost: 2 Bytes: 28 Cardinality: 1                     
                                                                                                                       11 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Cardinality: 1                
                                                                                                             15 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_CUST_ACCT_SITES_ALL Cost: 1 Bytes: 14 Cardinality: 1                          
                                                                                                                  14 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_CUST_ACCT_SITES_U1 Cost: 0 Cardinality: 1                     
                                                                                                        18 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_ORDER_HEADERS_ALL Cost: 2 Bytes: 16 Cardinality: 1                               
                                                                                                             17 INDEX UNIQUE SCAN INDEX (UNIQUE) ONT.OE_ORDER_HEADERS_U1 Cost: 1 Cardinality: 1                          
                                                                                                   21 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_PARTY_SITES Cost: 1 Bytes: 10 Cardinality: 1                                    
                                                                                                        20 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_PARTY_SITES_U1 Cost: 0 Cardinality: 1                               
                                                                                              24 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ALL_ORGANIZATION_UNITS Cost: 1 Bytes: 13 Cardinality: 1                                         
                                                                                                   23 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ORGANIZATION_UNITS_PK Cost: 0 Cardinality: 1                                    
                                                                                         27 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_TRANSACTION_TYPES_TL Cost: 1 Bytes: 31 Cardinality: 1                                              
                                                                                              26 INDEX UNIQUE SCAN INDEX (UNIQUE) ONT.OE_TRANSACTION_TYPES_TL_U1 Cost: 0 Cardinality: 1                                         
                                                                                    30 TABLE ACCESS BY INDEX ROWID TABLE APPLSYS.FND_FLEX_VALUES Cost: 3 Bytes: 21 Cardinality: 1                                                   
                                                                                         29 INDEX RANGE SCAN INDEX APPLSYS.FND_FLEX_VALUES_N1 Cost: 2 Cardinality: 1                                              
                                                                               32 INDEX UNIQUE SCAN INDEX (UNIQUE) APPLSYS.FND_FLEX_VALUES_TL_U1 Cost: 1 Bytes: 9 Cardinality: 1                                                        
                                                                          35 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_LOCATIONS_ALL Cost: 1 Bytes: 30 Cardinality: 1                                                             
                                                                               34 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_LOCATIONS_PK Cost: 0 Cardinality: 1                                                        
                                                                     37 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ALL_ORGANIZATION_UNTS_TL_PK Cost: 0 Bytes: 8 Cardinality: 1                                                                  
                                                                39 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_LOCATIONS_ALL_TL_PK Cost: 0 Bytes: 9 Cardinality: 1                                                                       
                                                           41 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_LOCATIONS_ALL_TL_PK Cost: 0 Bytes: 9 Cardinality: 1                                                                            
                                                      43 TABLE ACCESS FULL TABLE FA.FA_ADDITIONS_B Cost: 683 Bytes: 670,734 Cardinality: 37,263                                                                                 
                                                 45 INDEX UNIQUE SCAN INDEX (UNIQUE) FA.FA_ADDITIONS_TL_U1 Cost: 1 Bytes: 9 Cardinality: 1                                                                                      
                                            48 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_TRANSACTION_TYPES Cost: 1 Bytes: 26 Cardinality: 1                                                                                           
                                                 47 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_TRANSACTION_TYPES_U1 Cost: 0 Cardinality: 1                                                                                      
                                       51 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_ITEM_LOCATIONS Cost: 2 Bytes: 13 Cardinality: 1                                                                                                
                                            50 INDEX RANGE SCAN INDEX (UNIQUE) INV.MTL_ITEM_LOCATIONS_U1 Cost: 1 Cardinality: 1                                                                                           
                                  54 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_LOCATIONS Cost: 1 Bytes: 30 Cardinality: 1                                                                                                     
                                       53 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_LOCATIONS_U1 Cost: 0 Cardinality: 1                                                                                                
                             57 TABLE ACCESS BY INDEX ROWID TABLE FA.FA_DISTRIBUTION_HISTORY Cost: 8 Bytes: 126 Cardinality: 6                                                                                                          
                                  56 INDEX RANGE SCAN INDEX FA.FA_DISTRIBUTION_HISTORY_N2 Cost: 2 Cardinality: 6                                                                                                     
                   61 TABLE ACCESS BY INDEX ROWID TABLE FA.FA_LOCATIONS Cost: 1 Bytes: 38 Cardinality: 1                                                                                                                    
                        60 INDEX UNIQUE SCAN INDEX (UNIQUE) FA.FA_LOCATIONS_U1 Cost: 0 Cardinality: 1                                                                                                               
              124 NESTED LOOPS OUTER Cost: 925 Bytes: 479 Cardinality: 1                                                                                                                         
                   121 FILTER                                                                                                                    
                        120 NESTED LOOPS OUTER Cost: 924 Bytes: 441 Cardinality: 1                                                                                                               
                             117 NESTED LOOPS Cost: 916 Bytes: 420 Cardinality: 1                                                                                                          
                                  115 HASH JOIN Cost: 915 Bytes: 411 Cardinality: 1                                                                                                     
                                       113 NESTED LOOPS OUTER Cost: 231 Bytes: 393 Cardinality: 1                                                                                                
                                            110 NESTED LOOPS OUTER Cost: 229 Bytes: 380 Cardinality: 1                                                                                           
                                                 107 NESTED LOOPS Cost: 228 Bytes: 354 Cardinality: 1                                                                                      
                                                      104 NESTED LOOPS Cost: 225 Bytes: 330 Cardinality: 1                                                                                 
                                                           102 NESTED LOOPS Cost: 224 Bytes: 321 Cardinality: 1                                                                            
                                                                99 NESTED LOOPS Cost: 222 Bytes: 293 Cardinality: 1                                                                       
                                                                     96 NESTED LOOPS Cost: 221 Bytes: 263 Cardinality: 1                                                                  
                                                                          93 NESTED LOOPS Cost: 220 Bytes: 253 Cardinality: 1                                                             
                                                                               90 NESTED LOOPS Cost: 218 Bytes: 237 Cardinality: 1                                                        
                                                                                    87 NESTED LOOPS Cost: 217 Bytes: 223 Cardinality: 1                                                   
                                                                                         84 NESTED LOOPS Cost: 216 Bytes: 192 Cardinality: 1                                              
                                                                                              81 NESTED LOOPS Cost: 210 Bytes: 137 Cardinality: 1                                         
                                                                                                   78 NESTED LOOPS Cost: 28 Bytes: 118 Cardinality: 1                                    
                                                                                                        75 NESTED LOOPS Cost: 22 Bytes: 97 Cardinality: 1                               
                                                                                                             73 NESTED LOOPS Cost: 22 Bytes: 88 Cardinality: 1                          
                                                                                                                  71 NESTED LOOPS Cost: 22 Bytes: 79 Cardinality: 1                     
                                                                                                                       69 NESTED LOOPS Cost: 22 Bytes: 71 Cardinality: 1                
                                                                                                                            66 NESTED LOOPS Cost: 19 Bytes: 58 Cardinality: 1           
                                                                                                                                 64 TABLE ACCESS BY INDEX ROWID TABLE APPLSYS.FND_FLEX_VALUE_SETS Cost: 2 Bytes: 28 Cardinality: 1      
                                                                                                                                      63 INDEX UNIQUE SCAN INDEX (UNIQUE) APPLSYS.FND_FLEX_VALUE_SETS_U2 Cost: 1 Cardinality: 1
                                                                                                                                 65 TABLE ACCESS FULL TABLE HR.HR_LOCATIONS_ALL Cost: 17 Bytes: 30 Cardinality: 1      
                                                                                                                            68 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ALL_ORGANIZATION_UNITS Cost: 3 Bytes: 13 Cardinality: 1           
                                                                                                                                 67 INDEX RANGE SCAN INDEX HR.HR_ORGANIZATION_UNITS_FK3 Cost: 1 Cardinality: 5      
                                                                                                                       70 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ALL_ORGANIZATION_UNTS_TL_PK Cost: 0 Bytes: 8 Cardinality: 1                
                                                                                                                  72 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_LOCATIONS_ALL_TL_PK Cost: 0 Bytes: 9 Cardinality: 1                     
                                                                                                             74 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_LOCATIONS_ALL_TL_PK Cost: 0 Bytes: 9 Cardinality: 1                          
                                                                                                        77 TABLE ACCESS BY INDEX ROWID TABLE APPLSYS.FND_FLEX_VALUES Cost: 6 Bytes: 2,667 Cardinality: 127                               
                                                                                                             76 INDEX RANGE SCAN INDEX APPLSYS.FND_FLEX_VALUES_N2 Cost: 2 Cardinality: 127                          
                                                                                                   80 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_CUST_SITE_USES_ALL Cost: 182 Bytes: 19 Cardinality: 1                                    
                                                                                                        79 INDEX RANGE SCAN INDEX APPS.HCCA_HZ_CUST_SITE_USES_ALL_N1 Cost: 1 Cardinality: 489                               
                                                                                              83 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_ORDER_LINES_ALL Cost: 6 Bytes: 55 Cardinality: 1                                         
                                                                                                   82 INDEX RANGE SCAN INDEX ONT.OE_ORDER_LINES_N2 Cost: 2 Cardinality: 4                                    
                                                                                         86 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_TRANSACTION_TYPES_TL Cost: 1 Bytes: 31 Cardinality: 1                                              
                                                                                              85 INDEX UNIQUE SCAN INDEX (UNIQUE) ONT.OE_TRANSACTION_TYPES_TL_U1 Cost: 0 Cardinality: 1                                         
                                                                                    89 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_CUST_ACCT_SITES_ALL Cost: 1 Bytes: 14 Cardinality: 1                                                   
                                                                                         88 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_CUST_ACCT_SITES_U1 Cost: 0 Cardinality: 1                                              
                                                                               92 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_ORDER_HEADERS_ALL Cost: 2 Bytes: 16 Cardinality: 1                                                        
                                                                                    91 INDEX UNIQUE SCAN INDEX (UNIQUE) ONT.OE_ORDER_HEADERS_U1 Cost: 1 Cardinality: 1                                                   
                                                                          95 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_PARTY_SITES Cost: 1 Bytes: 10 Cardinality: 1                                                             
                                                                               94 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_PARTY_SITES_U1 Cost: 0 Cardinality: 1                                                        
                                                                     98 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_LOCATIONS Cost: 1 Bytes: 30 Cardinality: 1                                                                  
                                                                          97 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_LOCATIONS_U1 Cost: 0 Cardinality: 1                                                             
                                                                101 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_SYSTEM_ITEMS_B Cost: 2 Bytes: 28 Cardinality: 1                                                                       
                                                                     100 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Cardinality: 1                                                                  
                                                           103 INDEX UNIQUE SCAN INDEX (UNIQUE) APPLSYS.FND_FLEX_VALUES_TL_U1 Cost: 1 Bytes: 9 Cardinality: 1                                                                            
                                                      106 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_MATERIAL_TRANSACTIONS Cost: 3 Bytes: 24 Cardinality: 1                                                                                 
                                                           105 INDEX RANGE SCAN INDEX INV.MTL_MATERIAL_TRANSACTIONS_N1 Cost: 2 Cardinality: 1                                                                            
                                                 109 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_TRANSACTION_TYPES Cost: 1 Bytes: 26 Cardinality: 1                                                                                      
                                                      108 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_TRANSACTION_TYPES_U1 Cost: 0 Cardinality: 1                                                                                 
                                            112 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_ITEM_LOCATIONS Cost: 2 Bytes: 13 Cardinality: 1                                                                                           
                                                 111 INDEX RANGE SCAN INDEX (UNIQUE) INV.MTL_ITEM_LOCATIONS_U1 Cost: 1 Cardinality: 1                                                                                      
                                       114 TABLE ACCESS FULL TABLE FA.FA_ADDITIONS_B Cost: 683 Bytes: 670,734 Cardinality: 37,263                                                                                                
                                  116 INDEX UNIQUE SCAN INDEX (UNIQUE) FA.FA_ADDITIONS_TL_U1 Cost: 1 Bytes: 9 Cardinality: 1                                                                                                     
                             119 TABLE ACCESS BY INDEX ROWID TABLE FA.FA_DISTRIBUTION_HISTORY Cost: 8 Bytes: 126 Cardinality: 6                                                                                                          
                                  118 INDEX RANGE SCAN INDEX FA.FA_DISTRIBUTION_HISTORY_N2 Cost: 2 Cardinality: 6                                                                                                     
                   123 TABLE ACCESS BY INDEX ROWID TABLE FA.FA_LOCATIONS Cost: 1 Bytes: 38 Cardinality: 1                                                                                                                    
                        122 INDEX UNIQUE SCAN INDEX (UNIQUE) FA.FA_LOCATIONS_U1 Cost: 0 Cardinality: 1

  • Pricing condition records should not be picked up

    Hi,
    I have configured a scenario for Supplementary Invoice for which I created a new sales order type. The requirement is such that this order type should not pick the pricing condition records that have been created in VK11. Please suggest how can this be configured.
    Do I have to use any Userexits, if so which one?
    Regards,
    Abhishek

    As mentioned by you, you have created a new Sales Order Type, you can create a new document pricing procedure, based on which you can determine a new pricing procedure.
    To configure new Document Pricing Procedure:
    IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Define Document Pricing Procedure. (Maintain the new Document Pricing Procedure in new Sales Order Type)
    Maintain a new Pricing Procedure, maintaining the Condition Types as manual. Maintain the determination of Pricing Procedure appropriately.
    Pricing Procedure Determination:
    In SD, Pricing Procedure is determined (T.Code: OVKK) based on Sales Area (Sales Organization + Distribution Centre + Division) + Customer Pricing Procedure + Document Pricing Procedure. Sales Area is determined in Sales Order Header Level. Customer Pricing Procedure is determined from Customer Master. Document Pricing Procedure is determined from Sales Document Type / Billing Type (if configured). Once the pricing procedure is determined, Condition records are fetched. If appropriate condition records are found, the price is determined. If Mandatory pricing condition is missing, system will through an error message.
    Pricing Procedure Configuration:
    In SD, the steps to configure Pricing procedure are as under:
    Step 1:
    Condition table (T.Code: V/04): If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record).
    Step 2:
    Access Sequence (T.Code: V/07): If existing access sequence meets the requirement, we need not create a new access sequence. Considering the requirement for new sequence, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Access Sequence (Access sequence is made up of Accesses (Tables) & the order of priority in which it is to be accessed. Here we assign the condition table to access sequence.
    Step 3:
    Condition Type (T.Code: V/06): If existing condition type meets the requirement, we need not create a new condition type. Considering the requirement for new condition type, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Type. It is always recommended to copy an existing similar condition type & make the neccessary changes. Here we assign Access sequence to Condition type.
    Step 4:
    a. Pricing Procedure (T.Code: V/08):  It is recommended to copy a similar pricing procedure & make the neccesary changes in new pricing procedure. Pricing Procedure is a set of condition type & arranged in the sequence in which it has to perform the calculation. Considering the requirement for new Pricing Procedure, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Maintain Pricing Procedure.
    b. Pricing Procedure (T.Code: VOK0): After maintaining the pricing procedure the next step will be determination of pricing procedure. Configuration for determining pricing procedure in SPRO is as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Determine Pricing Procedure.
    5. Condition record (T.Code: VK11 / VK12): Condition record is a master data, which is required to be maintained by Core team / person responsible from the client. During new implementation, the condition records can be uploaded using tools like SCAT, LSMW, etc. Condition Record is maintained in T.Code: VK11 / VK12, which are captured in Sales Order & Billing.
    Also check document pricing procedure in Sales Document Type (T.Code: VOV8 - Sales order Type, VOFA: Billing Type (If Required)), customer pricing procedure in Customer Master Data (T.Code: XD02), ... are in place.
    Regards,
    Rajesh Banka

  • Index is not getting picked even after providing hint

    Hi All
    The index pk_sku is not getting picked even after providing the hints when executing the query.Please kindly give me such recommendations.I am providing the information.
    select  * from
    (select /*+ index(s pk_sku) */
          to_char(t.dstamp, 'YYYYmmDDHH24MI') as sort_1,
          t.client_id as CLIENT_ID ,
          t.site_id as SITE_ID,
          tz.time_zone_name as TIME_ZONE_NAME     ,
          t.owner_id as OWNER_ID,
          t.sku_id as SKU_ID,
          t.reason_id as ADJUST_TYPE,
          to_char(t.dstamp+tz.diff/24, 'DD/mm/YYYY HH24:MI') as ADJUST_DATETIME,
          t.reference_id as RECEIPT_ID,
          t.batch_id as BATCH_ID,
          t.update_qty as UPDATE_QTY,
          t.lock_code as LOCK_CODE,
          s.description as SKU_DESCRIPTION
    from  mv_inventory_transaction t
          JOIN timezone tz ON tz.site_id = t.site_id ,
           mv_sku s
    where   t.sku_id= s.sku_id
    and     t.client_id=s.client_id
    and   ( :client is null or :client = t.client_id)
    and    ( :site is null or t.site_id  in (:site))
    and    ( :owner is null or t.owner_id in (:owner))
    and    t.code= 'Adjustment'
    and   (t.dstamp+tz.diff/24) between  to_date(:dateFrom, 'DD/mm/yyyy') and to_date(:dateTo,'DD/mm/yyyy')+1
    and      (:sku is null or t.sku_id in (:sku))
    UNION ALL
    (select  /*+ index(s pk_sku) */
         to_char(t.dstamp, 'YYYYmmDDHH24MI') as sort_1,
        t.client_id as CLIENT_ID ,
          t.site_id as SITE_ID,
                          tz.time_zone_name as TIME_ZONE_NAME     ,
          t.owner_id as OWNER_ID,
          t.sku_id as SKU_ID,
          t.reason_id as ADJUST_TYPE,
          to_char(t.dstamp+tz.diff/24, 'DD/mm/YYYY HH24:MI') as ADJUST_DATETIME,
          t.reference_id as RECEIPT_ID,
          t.batch_id as BATCH_ID,
          t.update_qty as UPDATE_QTY,
          t.lock_code as LOCK_CODE,
          s.description as SKU_DESCRIPTION
    from  mv_inventory_transaction_arch t
          JOIN timezone tz ON tz.site_id = t.site_id,
           mv_sku s
    where   t.sku_id= s.sku_id
    and     t.client_id=s.client_id
    and   ( :client is null or :client = t.client_id)
    and    ( :site is null or t.site_id  in (:site))
    and    ( :owner is null or t.owner_id in (:owner))
    and    t.code= 'Adjustment'
    and   (t.dstamp+tz.diff/24) between  to_date(:dateFrom, 'DD/mm/yyyy') and to_date(:dateTo,'DD/mm/yyyy')+1
    and      (:sku is null or t.sku_id in (:sku))
    order by sort_1,2,3,4,5
    version = Release 10.1.0.5.0
    SQL> sho parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.1.0.5
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    sho parameter db_file_multiblock_count_read
    sho parameter cursor_sharing
    SQL> sho parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.1.0.5
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    SQL>  sho parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     16
    SQL> sho parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACTExplain plan
    | Id  | Operation                              | Name                          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                       |                               |    56 | 29736 |   345K  (1)| 01:09:07 |
    |   1 |  SORT ORDER BY                         |                               |    56 | 29736 |   345K  (1)| 01:09:07 |
    |   2 |   VIEW                                 |                               |    56 | 29736 |   345K  (1)| 01:09:07 |
    |   3 |    UNION-ALL                           |                               |       |       |            |          |
    |   4 |     NESTED LOOPS                       |                               |     2 |   984 | 29686   (1)| 00:05:57 |
    |   5 |      HASH JOIN                         |                               |     1 |   326 | 26870   (1)| 00:05:23 |
    |   6 |       TABLE ACCESS FULL                | TIMEZONE                      |     4 |    88 |     3   (0)| 00:00:01 |
    |   7 |       VIEW                             | MV_INVENTORY_TRANSACTION      |    25 |  7600 | 26866   (1)| 00:05:23 |
    |   8 |        UNION-ALL                       |                               |       |       |            |          |
    |   9 |         FILTER                         |                               |       |       |            |          |
    |  10 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION      |     1 |    67 | 24327   (1)| 00:04:52 |
    |  11 |           INDEX RANGE SCAN             | IDX_CODE_CLIENTID_690         | 79681 |       |   518   (1)| 00:00:07 |
    |  12 |         FILTER                         |                               |       |       |            |          |
    |  13 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION      |    24 |  2328 |  2539   (1)| 00:00:31 |
    |  14 |           INDEX RANGE SCAN             | IDX_CODE_646                  |  9269 |       |    46   (0)| 00:00:01 |
    |  15 |      VIEW                              | MV_SKU                        |    37 |  6142 |  2816   (1)| 00:00:34 |
    |  16 |       UNION-ALL                        |                               |       |       |            |          |
    |  17 |        MAT_VIEW ACCESS FULL            | MV_SKU                        |   335K|    10M|  2535   (1)| 00:00:31 |
    |  18 |        MAT_VIEW ACCESS FULL            | MV_SKU                        | 37839 |  1699K|   280   (1)| 00:00:04 |
    |  19 |     NESTED LOOPS                       |                               |    54 | 26568 |   315K  (1)| 01:03:10 |
    |  20 |      HASH JOIN                         |                               |     1 |   326 |   313K  (1)| 01:02:37 |
    |  21 |       TABLE ACCESS FULL                | TIMEZONE                      |     4 |    88 |     3   (0)| 00:00:01 |
    |  22 |       VIEW                             | MV_INVENTORY_TRANSACTION_ARCH |   576 |   171K|   313K  (1)| 01:02:37 |
    |  23 |        UNION-ALL                       |                               |       |       |            |          |
    |  24 |         FILTER                         |                               |       |       |            |          |
    |  25 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH |     1 |    72 | 19258   (1)| 00:03:52 |
    |  26 |           INDEX RANGE SCAN             | QUI_IDX_INVTRANS_ARC1         | 36016 |       |   287   (1)| 00:00:04 |
    |  27 |         FILTER                         |                               |       |       |            |          |
    |  28 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH |   575 | 55200 |   293K  (1)| 00:58:45 |
    |  29 |           INDEX RANGE SCAN             | QUI_IDX_INVTRANS_ARC1         |   367K|       |  3466   (1)| 00:00:42 |
    |  30 |      VIEW                              | MV_SKU                        |    37 |  6142 |  2816   (1)| 00:00:34 |
    |  31 |       UNION-ALL                        |                               |       |       |            |          |
    |  32 |        MAT_VIEW ACCESS FULL            | MV_SKU                        |   335K|    10M|  2535   (1)| 00:00:31 |
    |  33 |        MAT_VIEW ACCESS FULL            | MV_SKU                        | 37839 |  1699K|   280   (1)| 00:00:04 |
    ------------------------------------------------------------------------------------------------------------------------when put in sql tuning advisor,It recommended with better plan using indexes
    | Id  | Operation                              | Name                          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                       |                               |    56 | 29736 |   340K  (1)| 01:08:01 |
    |   1 |  SORT ORDER BY                         |                               |    56 | 29736 |   340K  (1)| 01:08:01 |
    |   2 |   VIEW                                 |                               |    56 | 29736 |   340K  (1)| 01:08:01 |
    |   3 |    UNION-ALL                           |                               |       |       |            |          |
    |   4 |     NESTED LOOPS                       |                               |     2 |   848 | 26900   (1)| 00:05:23 |
    |   5 |      HASH JOIN                         |                               |     1 |   326 | 26898   (1)| 00:05:23 |
    |   6 |       TABLE ACCESS FULL                | TIMEZONE                      |     4 |    88 |     3   (0)| 00:00:01 |
    |   7 |       VIEW                             | MV_INVENTORY_TRANSACTION      |    25 |  7600 | 26894   (1)| 00:05:23 |
    |   8 |        UNION-ALL                       |                               |       |       |            |          |
    |   9 |         FILTER                         |                               |       |       |            |          |
    |  10 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION      |     1 |    67 | 24352   (1)| 00:04:53 |
    |  11 |           INDEX RANGE SCAN             | IDX_CODE_CLIENTID_690         | 79681 |       |   518   (1)| 00:00:07 |
    |  12 |         FILTER                         |                               |       |       |            |          |
    |  13 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION      |    24 |  2328 |  2542   (1)| 00:00:31 |
    |  14 |           INDEX RANGE SCAN             | IDX_CODE_646                  |  9269 |       |    46   (0)| 00:00:01 |
    |  15 |      VIEW                              | MV_SKU                        |    37 |  3626 |     2   (0)| 00:00:01 |
    |  16 |       UNION-ALL PARTITION              |                               |       |       |            |          |
    |  17 |        MAT_VIEW ACCESS BY INDEX ROWID  | MV_SKU                        |     1 |    34 |     3   (0)| 00:00:01 |
    |  18 |         INDEX UNIQUE SCAN              | PK_SKU                        |     1 |       |     2   (0)| 00:00:01 |
    |  19 |        MAT_VIEW ACCESS BY INDEX ROWID  | MV_SKU                        |     1 |    46 |     2   (0)| 00:00:01 |
    |  20 |         INDEX UNIQUE SCAN              | PK_SKU                        |     1 |       |     1   (0)| 00:00:01 |
    |  21 |     NESTED LOOPS                       |                               |    54 | 22896 |   313K  (1)| 01:02:38 |
    |  22 |      HASH JOIN                         |                               |     1 |   326 |   313K  (1)| 01:02:38 |
    |  23 |       TABLE ACCESS FULL                | TIMEZONE                      |     4 |    88 |     3   (0)| 00:00:01 |
    |  24 |       VIEW                             | MV_INVENTORY_TRANSACTION_ARCH |   576 |   171K|   313K  (1)| 01:02:38 |
    |  25 |        UNION-ALL                       |                               |       |       |            |          |
    |  26 |         FILTER                         |                               |       |       |            |          |
    |  27 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH |     1 |    72 | 19269   (1)| 00:03:52 |
    |  28 |           INDEX RANGE SCAN             | QUI_IDX_INVTRANS_ARC1         | 36016 |       |   287   (1)| 00:00:04 |
    |  29 |         FILTER                         |                               |       |       |            |          |
    |  30 |          MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH |   575 | 55200 |   293K  (1)| 00:58:47 |
    |  31 |           INDEX RANGE SCAN             | QUI_IDX_INVTRANS_ARC1         |   367K|       |  3466   (1)| 00:00:42 |
    |  32 |      VIEW                              | MV_SKU                        |    37 |  3626 |     2   (0)| 00:00:01 |
    |  33 |       UNION-ALL PARTITION              |                               |       |       |            |          |
    |  34 |        MAT_VIEW ACCESS BY INDEX ROWID  | MV_SKU                        |     1 |    34 |     3   (0)| 00:00:01 |
    |  35 |         INDEX UNIQUE SCAN              | PK_SKU                        |     1 |       |     2   (0)| 00:00:01 |
    |  36 |        MAT_VIEW ACCESS BY INDEX ROWID  | MV_SKU                        |     1 |    46 |     2   (0)| 00:00:01 |
    |  37 |         INDEX UNIQUE SCAN              | PK_SKU                        |     1 |       |     1   (0)| 00:00:01 |
    ------------------------------------------------------------------------------------------------------------------------So ,after checking the recommended plan I tried to execute the query with the hints,even then it is picking up the indexes in the explain plan.So please kindly help in solving the issue
    The pk_sku is the index created on client_id and sku_id columns
    Thanks
    GV

    riedelme wrote:
    My experience is differernt - hints will be followed if the optimizer determines they will be beneficial and not if they will not, including my current project on 11gR2. The example below (unfortunately only 11gR1) disproves your theory, showing the index hint is followed and that the cost increases by a factor of five.
    The most common cases of the optimizer apparently ignoring a hint are due to operator error, the hint is not well formed, or cannot be followed. There are a couple of documented cases where a hint will be ignored - first_rows used in CTAS is one.
    Jonathan Lewis writes a lot about it on his blog showing that the optimizer always acts on a well formed hint if it is at all possible.
    SQL> create table t (n number not null, c varchar2(1000));
    Table created.
    SQL> insert into t select 1, rpad('x',1000,'x')
      2  from dual connect by level <= 50000;
    50000 rows created.
    SQL> create index t_ix on t (n);
    Index created.
    SQL> exec dbms_stats.gather_table_stats(user, 't', cascade => true)
    PL/SQL procedure successfully completed.
    SQL> explain plan for
      2  select max(c) from t where n =1;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2966233522
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |  1004 |  1574   (1)| 00:00:19 |
    |   1 |  SORT AGGREGATE    |      |     1 |  1004 |            |          |
    |*  2 |   TABLE ACCESS FULL| T    | 50000 |    47M|  1574   (1)| 00:00:19 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       2 - filter("N"=1)
    14 rows selected.
    SQL> explain plan for
      2  select /*+ index (t t_ix) */  max(c) from t where n = 1;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 3231292748
    | Id  | Operation                    | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |      |     1 |  1004 |  7244   (1)| 00:01:27 |
    |   1 |  SORT AGGREGATE              |      |     1 |  1004 |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| T    | 50000 |    47M|  7244   (1)| 00:01:27 |
    |*  3 |    INDEX RANGE SCAN          | T_IX | 50000 |       |    98   (0)| 00:00:02 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       3 - access("N"=1)
    15 rows selected.

  • New Condition TAble for Inbound Delivery

    Hello
    i want to maintain a new Condition table for the Inbound delivery picking with the combination of _Delivery type/Plant
    so that the Inbound created for the particular plant alone uses the particular output type.
    Where in IMG can i configure the new Condition table for this combination for the Inbound delivery ?

    Hi,
    Go to SPRO > Logistics Execution > Shipping > Basic Shipping Functions > Output Control > Output Determination > Maintain Output Determination for Inbound Deliveries > Here perform following;
    - Define Condition Table for Inbound Delivery
    - Define Output Types for Inbound Delivery
    - Define Access Sequence for Inbound Delivery
    - Maintain Output Determination Procedure
    - Assign Output Determination Procedures

  • Billing pricing not getting picked up

    I created a sales invoice with reference a sales order. In the sales order the price was getting picked up and was displayed.
    Delivery was also created. But when the invoice was created and saved the net value is shown as 0. Price is not getting picked up.
    The option which many other consultants has given was to cancel the invoice and re create a new invoice. But we want the price to be picked in the same invoice.
    This happened only for 5 invoices which was created on a particular day. These 5 inovices show a net value of 0.
    Could you please help me out to resolve this issue.
    Thanks very much.

    Hi,
    Please check if the document pricing procedure is same for Order type and billing type.
    If its not same please check what is the pricing procedure system taking for Billing document procedure.
    In that pricing procedure check what is the Base price condition type.
    Check whether condition records maintained for that condition type.
    Iff no records maintain then use VK11 to create new condition records.
    Then go to Item data - Conditions in billing document press Update button and use B-Carry out new pricing.
    Revert if you need more elaborate explanation.
    Best Regards,

  • Item level pricing condition record is not getting recognized

    Hi,
    In our scenario we have to maintain the additional charges based on Plant. For this purpose I have created the condition table 900 which contains the following fields
    Sales Org/Dist Chal/Divi./Plant
    I have maintained the condition record for the table, Which has been downloaded to CRM successfully.
    When I create the order in CRM price of the product is getting recognized where as additional charges condition records are not getting recognized.
    When I check the Access I found that header level data .i.e. sales org/dist chal / divion has been recognized and plant has not been recognized that values are like this 00000000000000000000000000
    I have checked the plant it has been downloaded successfully to CRM
    So, can anybody help me out?
    Thanks

    Hi,
    Check in the  access sequnce exclusive indicator activation, it might be selected to the previous Condition Tables, if it is  selected than system will not check  further available/maintained  condition reocrds.
    Regards
    Naren..

  • New Condition Table in V/LB

    Dear Experts,
    We have created new condition table and created new access sequence with the new condition table.
    In V/LB ( Change Pricing report ) when i going to add new condition table in excisting pricing report system is not allowing.
    Please suggest is it possible to add new condition table in existing pricing report or have to create new priceing report incorparating new condition table.
    Regards,
    KC Choudhury

    Hi
    It is disabled in change mode (V/LB), only you would be able to select the tables in V/LA.
    thank you

  • Condition record's not getting copied in local client copy !!!

    Hi ALL,
    I have a one question/doubt regarding local client copy.
    Our functional team creates condition type (for e.g.: thru FV11 for MM) in one client (golden), when I take client copy of that client with SAP_All profile, but condition type is not getting copied in the new client.
    I found for Sap notes, in one note it was suggested that change documents are not copied with any profiles.
    I found in FV11, there is one option, Send Condition, thru which we can send by Logical systems, but its giving error msg u201CNo relevant partner system DEVCLNT300 exists for output category COND_A
    Message no. VJ000u201D
    Can u pls suggest proper way to copy/transport condition record in new client created?
    Regards,
    C  Singh.

    Please refer below link
    http://help.sap.com/saphelp_dimp50/helpdata/EN/19/337d937f0311d2b467006094b9c9be/frameset.htm
    Regards,
    Pavan

Maybe you are looking for

  • Problem in Hide/Show in a Table Row

    Hi, i have to create 4 pages and each page has a table region with displaying records and a column "LINK" to go to the next page with the parameters from that record. Every link has a batchId and one another Id as parameter to next page. The next pag

  • Transferring APO scheduling agreeement through CIF

    When we transfer scheduling agreement through CIF to APO, they automatically get created as type "OLTP". APO however, does not recognize vendors if the scheduling agreement is not of the type "APO". We would appreciate it if anyone knows a setting in

  • How to apply BRF in Business Transaction?

    Hi Experts, In a business transaction, for example there is the field Last name. I need to apply a BRF in order to check if the field is initial or not. Can anyone suggest how can the link between the field in the business transaction and the BRF obj

  • Drop down Menu, Option,value

    Folks, Is there a way I can get the Option that has been selected in the page. I know that we can get optionValue by request.getParameter("dropDown"); I want to able to capture the option also i.e if the user selects <option value="1">first</optiont>

  • Joining 2 fla. files

    Hi. Im making a small animation and have got 6 fla files that I want to join together, putting each one into its own scene. If I open them and copy and paste it asks me if I want to replace files or not, which i dont want to do. Would it be easier to