S4_date in so_lines_all

Hi
when I query using s4_date in so_lines_all it takes longer time.
Is there an alternate field for s4_date ?
This is my query...
SELECT
ffvtl2.description Region,
ffvtl.description organization_name,
ffv.flex_value,
h.order_number,
l.s4_date DAILY,
l.line_id,
p.picking_line_id,
l.inventory_item_id,
nvl(l.shipped_quantity,0)-nvl(l.cancelled_quantity,0) Quantity,
((nvl(l.shipped_quantity,0)-nvl(l.cancelled_quantity,0))*l.selling_price)/1000 sell_y
from
so_headers_all h,
so_lines_all l,
so_picking_lines_all p,
mtl_parameters mtl,
gl_code_combinations gcc,
fnd_flex_values_tl ffvtl,
fnd_flex_value_norm_hierarchy ffvh,
fnd_flex_values ffv2,
fnd_flex_values_tl ffvtl2,
fnd_flex_values ffv
where
h.header_id=l.header_id
and l.s4=6--ship confirmed
and l.s2=4 -- pick released
and h.s1=1 -- Booked
and p.order_line_id=l.line_id
and mtl.organization_id=l.warehouse_id
and mtl.material_account=gcc.code_combination_id
and ffv.flex_value = gcc.segment3
and ffvtl2.description= 'NSW METRO'
and nvl(ffv2.enabled_flag,'N') = 'Y'
and ffv2.flex_value_id = ffvtl2.flex_value_id
and ffvh.parent_flex_value = ffv2.FLEX_VALUE
and ffv.flex_value_set_id = ffvh.flex_value_set_id
and ffv.flex_value BETWEEN ffvh.CHILD_FLEX_VALUE_LOW AND ffvh.child_flex_value_high
and ffv.flex_value_id = ffvtl.flex_value_id
AND to_date(L.s4_date,'dd/mon/yy') ='22/aug/07'
Thanks for your help
Arun

Hi,
Try the following:
1st - create a new index on so_lines_all:
create index i_new_index
on so_lines_all (trunc(s4_date), s1, s2, s4) {storage parameters}
2nd - change to_date(L.s4_date,'dd/mon/yy') ='22/aug/07' to
trunc(L.s4_date) = to_date('22/aug/07','dd/mon/yy')
Hope it helps,
Ketter Ohnes

Similar Messages

  • Converting PL/SQL with OE S Fields for 11i

    We recently moved to 11i and I am having trouble converting a PL/SQL report. This is part of an exception report (below) that we have and I am not exactly sure how to convert it in 11i to do what it did in 11.0.3. Particularily I am not sure about how to convert the "S" fields, if someone could provide some guidance that would be great. I have marked the lines I am not sure of with DON'T KNOW. Thanks, Joe.
    SELECT
    soh.order_number
    , sol.s2_date --Pick Release Release Date  DON'T KNOW
    , usr.user_name
    , sol.line_number
    FROM oe.so_headers_all soh --WILL BE ONT.OE_ORDER_HEADERS_ALL
    , oe.so_lines_all sol --WILL BE ONT.OE_ORDER_LINES_ALL
    , apps.fnd_user usr
    WHERE 1=1
    AND soh.header_id = sol.header_id
    AND soh.created_by = usr.user_id
    AND (sol.s2 = 4 -- line is pick released DON'T KNOW
    AND sol.s4 = 18 -- ship confirm Eligible DON'T KNOW
    AND soh.s6 != 10 --not closed WILL BE AND SOH FLOW_STATUS_CODE != 'CLOSED'
    ) -- line is pick released, ship confirm confirmed, not closed
    AND soh.order_type_id != 1000
    AND SOL.S2_DATE < sysdate-5 --Pick Release Release Date  DON'T KNOW                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can use DML error logging approach or FORALL SAVE EXCEPTIONS.
    Since you didn't mention the version I assume you are using 11g.
    Below is the sample code for DML error logging mechanism
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production   
    PL/SQL Release 11.2.0.3.0 - Production                                         
    CORE 11.2.0.3.0 Production                                                     
    TNS for Linux: Version 11.2.0.3.0 - Production                                 
    NLSRTL Version 11.2.0.3.0 - Production                                        
    SQL> DROP TABLE tableA;
    Table dropped.
    SQL> DROP TABLE Err$_tableA;
    Table dropped.
    SQL>
    SQL> CREATE TABLE tableA
      2  (
      3     col1   NUMBER PRIMARY KEY,
      4     col2   NUMBER,
      5     col3   VARCHAR2 (10)
      6  );
    Table created.
    SQL>
    SQL> -- Create error log table
    SQL>
    SQL> BEGIN
      2     DBMS_ERRLOG.create_error_log (dml_table_name => 'TABLEA');
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> BEGIN
      2     FOR i IN (SELECT 1 AS col1 FROM DUAL
      3               UNION ALL
      4               SELECT 1 FROM DUAL)
      5     LOOP
      6        INSERT INTO tableA (col1)
      7             VALUES (i.col1)
      8                LOG ERRORS INTO Err$_tableA REJECT LIMIT UNLIMITED;
      9     END LOOP;
    10 
    11     COMMIT;
    12  END;
    13  /
    PL/SQL procedure successfully completed.
    SQL> column column_name format a30
    SQL> set linesize 300
    SQL> select * from tableA;
    SQL> select * from err$_tablea;
    Thanks,
    GPU

  • SQL Plus REport Error

    Hi,
    There is an SQL Plus REport which was developed by someone else a couple of years ago. And now i pulled the code to make a few changes in the columns and put it back.
    Before i made the change i ran the report from the Oracle applications and there was no error.
    But for some reason when i changed it and ran it from applications, there is an error that shows up:
    EXEC FND_CONC_STAT.COLLECT
    ERROR at line 163:
    ORA-00933: SQL command not properly ended
    And so i reverted back to the original code and the same error shows up.
    Can someone tell me why this is error is showing up?
    This is the sql code for the report:
    SET ECHO OFF
    SET SHOW OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET HEADING OFF
    SET PAGESIZE 0
    SET LINESIZE 450
    --WHENEVER SQLERROR EXIT;
    DEFINE vfrmdte = '&&1';
    DEFINE vtodte = '&&2';
    DEFINE vjobnum = '&&3';
    DEFINE vorgid = '&&4';
    select substr(we.wip_entity_name,1,10)||';'||
    substr(msi.segment1,1,10)||';'||
    rc.customer_number||';'||
    rsu.location||';'||
    substr(sl.cust_po_number,1,25)||';'|| --changed sh to sl
    --sh.ordered_date||';'||
    sl.creation_date||';'||----extra colmn added
    sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
    REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
    sl.request_date||';'||
    substr(dcgv.segment2,1,15)||';'||
    substr(dgv.SEGMENT1,1,20)||';'||
    sh.order_number||';'||
    substr(dcgv.segment3,1,15)||';'||
    substr(dcgv.segment4,1,25)||';'||
    substr(dscv.segment2,1,20)||';'||
    substr(dscv.segment3,1,10)||';'||
    wdj.start_quantity||';'||
    wdj.quantity_completed||';'||
    sl.order_quantity_uom||';'||
    wdj.completion_subinventory||';'||
    wdj.completion_locator_id||';'||
    wdj.primary_item_id||';'||
    wdj.wip_entity_id||';'||
    wdj.scheduled_start_date||';'||
    wdj.status_type||';'||
    substr(ml.meaning,1,30)||';'||
    ml.lookup_code||';'||
    md.demand_source_header_id||';'||
    substr(md.demand_source_line,1,15)||';'||
    mso.sales_order_id||';'||
    substr(mso.segment1,1,15)||';'||
    substr(mso.segment2,1,25)||';'||
    substr(mso.segment3,1,20)||';'||
    mic.category_set_id||';'||
    mic2.category_set_id||';'||
    dgv.category_id||';'||
    dcgv.category_id||';'||
    sh.header_id||';'||
    sh.order_type_id||';'||
    sl.line_number||';'||
    sl.line_id||';'||
    sl.inventory_item_id||';'||
    substr(sl.attribute11,1,20)||';'||
    msi.fixed_lot_multiplier||';'||
    substr(dscv.segment1,1,20)||';'||
    wdj.organization_id||';'||
    rc.customer_id||';'||
    rsu.site_use_id||';'||
    sl.LAST_UPDATE_DATE------extra colmn added
    from
    apps.wip_entities we ,
    apps.wip_discrete_jobs wdj ,
    apps.mfg_lookups ml ,
    --apps.wip_so_allocations wsa ,                                                     
    apps.mtl_demand md, --inv.mtl_demand md ,                                                     
    apps.mtl_sales_orders mso ,
    apps.mtl_system_items_b msi,--inv.mtl_system_items_b msi ,
    apps.mtl_item_categories mic ,
    apps.mtl_item_categories mic2 ,
    apps.mtl_item_categories mic3 ,
    apps.mtl_category_sets mcs ,
    apps.mtl_category_sets mcs2 ,
    apps.mtl_category_sets mcs3 ,
    apps.MTL_CATEGORIES_B dgv,--INV.MTL_CATEGORIES_B dgv ,
    apps.MTL_CATEGORIES_B dcgv ,
    apps.MTL_CATEGORIES_B dscv ,
    apps.oe_order_headers_all sh, --so_headers_all sh ,                                                              
    apps.oe_order_lines_all sl, --so_lines_all sl ,                                                                
    apps.oe_transaction_types_tl sot, --so_order_types_all sot ,                                                         
    apps.ra_customers rc ,
    apps.ra_site_uses_all rsu
    where
    we.wip_entity_id = wdj.wip_entity_id
    and wdj.firm_planned_flag in (1,2)
    and wdj.status_type = ml.lookup_code
    and ml.lookup_type = 'WIP_JOB_STATUS'
    and md.supply_source_header_id = we.wip_entity_id
    -- and sh.header_id = mso.sales_order_id
    and mso.segment1 = sh.order_number
    and mso.segment2 = sot.name
    and sot.transaction_type_id = sh.order_type_id
    and sh.sold_to_org_id = rc.customer_id
    and sh.ship_to_org_id = rsu.site_use_id
    --DUPLICATE and sh.order_type_id = sot.order_type_id                                     
    and sl.header_id = sh.header_id
    and sl.line_id = md.demand_source_line
    and sl.inventory_item_id = msi.inventory_item_id
    and msi.organization_id = wdj.organization_id
    and msi.inventory_item_id = mic.inventory_item_id
    and msi.organization_id = mic.organization_id
    and mic.category_set_id = mcs.category_set_id
    and mcs.category_set_name = 'DWC Groups'
    and dgv.category_id = mic.category_id
    AND dgv.STRUCTURE_ID = 50109
    and msi.inventory_item_id = mic2.inventory_item_id
    and msi.organization_id = mic2.organization_id
    and mic2.category_set_id = mcs2.category_set_id
    and mcs2.category_set_name = 'DWC COLORS'
    and dcgv.category_id = mic2.category_id
    AND dcgv.STRUCTURE_ID = 50111
    and msi.inventory_item_id = mic3.inventory_item_id
    and msi.organization_id = mic3.organization_id
    and mic3.category_set_id = mcs3.category_set_id
    and mcs3.category_set_name = 'DWC Ship'
    and dscv.category_id = mic3.category_id
    AND dscv.STRUCTURE_ID = 50112
    AND to_date(to_char(sl.request_date,'DD-MON-YYYY'),'DD-MON-YYYY') between
    nvl(to_date(to_char('&vfrmdte','DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
    and nvl(to_date(to_char('&vtodte' ,'DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
    AND we.wip_entity_name = NVL('&vjobnum', we.wip_entity_name)
    AND we.organization_id = NVL('&&4',we.organization_id)
    AND wdj.status_type IN (1,3)
    GROUP BY
    substr(we.wip_entity_name,1,10)||';'||
    substr(msi.segment1,1,10)||';'||
    rc.customer_number||';'||
    rsu.location||';'||
    substr(sl.cust_po_number,1,25)||';'|| --changed from sh to sl
    --sh.ordered_date||';'||
    sl.creation_date||';'||
    sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
    REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
    sl.request_date||';'||
    substr(dcgv.segment2,1,15)||';'||
    substr(dgv.SEGMENT1,1,20)||';'||
    sh.order_number||';'||
    substr(dcgv.segment3,1,15)||';'||
    substr(dcgv.segment4,1,25)||';'||
    substr(dscv.segment2,1,20)||';'||
    substr(dscv.segment3,1,10)||';'||
    wdj.start_quantity||';'||
    wdj.quantity_completed||';'||
    sl.order_quantity_uom||';'||
    wdj.completion_subinventory||';'||
    wdj.completion_locator_id||';'||
    wdj.primary_item_id||';'||
    wdj.wip_entity_id||';'||
    wdj.scheduled_start_date||';'||
    wdj.status_type||';'||
    substr(ml.meaning,1,30)||';'||
    ml.lookup_code||';'||
    md.demand_source_header_id||';'||
    substr(md.demand_source_line,1,15)||';'||
    mso.sales_order_id||';'||
    substr(mso.segment1,1,15)||';'||
    substr(mso.segment2,1,25)||';'||
    substr(mso.segment3,1,20)||';'||
    mic.category_set_id||';'||
    mic2.category_set_id||';'||
    dgv.category_id||';'||
    dcgv.category_id||';'||
    sh.header_id||';'||
    sh.order_type_id||';'||
    sl.line_number||';'||
    sl.line_id||';'||
    sl.inventory_item_id||';'||
    substr(sl.attribute11,1,20)||';'||
    msi.fixed_lot_multiplier||';'||
    substr(dscv.segment1,1,20)||';'||
    wdj.organization_id||';'||
    rc.customer_id||';'||
    rsu.site_use_id||';'||
    sl.LAST_UPDATE_DATE ----extra colmn added

    Then we reverted back to the original and there it was the same error.This doesn't seem possible to me. Maybe you just didn't use the exact original script. Other Charset, other linebreaks, UNIX2DOS conversion, etc.
    So debugging the error seems useful to me. At least you got an error message and could start working up on that.
    On the other hand maybe it would be better to ask this question in the Applications Forum. I think this is this one: Business Intelligence Applications
    Regards
    Sven

  • Applications Report Error

    Hi,
    There is an SQL Plus Report which was developed by someone else a few years ago. And now i pulled the code to make a few changes in the columns and put it back.
    Before i made the change i ran the report from the Oracle applications and there was no error.
    But for some reason when i changed it and ran it from applications, there is an error that shows up:
    Another thing: when we put back the original, the same error comes through.
    This runs fine in the Unix box, and TOAD.
    EXEC FND_CONC_STAT.COLLECT
    ERROR at line 163:
    ORA-00933: SQL command not properly ended
    And so i reverted back to the original code and the same error shows up.
    Can someone tell me why this is error is showing up?
    This is the sql code for the report:
    SET ECHO OFF
    SET SHOW OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET HEADING OFF
    SET PAGESIZE 0
    SET LINESIZE 450
    --WHENEVER SQLERROR EXIT;
    DEFINE vfrmdte = '&&1';
    DEFINE vtodte = '&&2';
    DEFINE vjobnum = '&&3';
    DEFINE vorgid = '&&4';
    select substr(we.wip_entity_name,1,10)||';'||
    substr(msi.segment1,1,10)||';'||
    rc.customer_number||';'||
    rsu.location||';'||
    substr(sl.cust_po_number,1,25)||';'|| --changed sh to sl
    --sh.ordered_date||';'||
    sl.creation_date||';'||----extra colmn added
    sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
    REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
    sl.request_date||';'||
    substr(dcgv.segment2,1,15)||';'||
    substr(dgv.SEGMENT1,1,20)||';'||
    sh.order_number||';'||
    substr(dcgv.segment3,1,15)||';'||
    substr(dcgv.segment4,1,25)||';'||
    substr(dscv.segment2,1,20)||';'||
    substr(dscv.segment3,1,10)||';'||
    wdj.start_quantity||';'||
    wdj.quantity_completed||';'||
    sl.order_quantity_uom||';'||
    wdj.completion_subinventory||';'||
    wdj.completion_locator_id||';'||
    wdj.primary_item_id||';'||
    wdj.wip_entity_id||';'||
    wdj.scheduled_start_date||';'||
    wdj.status_type||';'||
    substr(ml.meaning,1,30)||';'||
    ml.lookup_code||';'||
    md.demand_source_header_id||';'||
    substr(md.demand_source_line,1,15)||';'||
    mso.sales_order_id||';'||
    substr(mso.segment1,1,15)||';'||
    substr(mso.segment2,1,25)||';'||
    substr(mso.segment3,1,20)||';'||
    mic.category_set_id||';'||
    mic2.category_set_id||';'||
    dgv.category_id||';'||
    dcgv.category_id||';'||
    sh.header_id||';'||
    sh.order_type_id||';'||
    sl.line_number||';'||
    sl.line_id||';'||
    sl.inventory_item_id||';'||
    substr(sl.attribute11,1,20)||';'||
    msi.fixed_lot_multiplier||';'||
    substr(dscv.segment1,1,20)||';'||
    wdj.organization_id||';'||
    rc.customer_id||';'||
    rsu.site_use_id||';'||
    sl.LAST_UPDATE_DATE------extra colmn added
    from
    apps.wip_entities we ,
    apps.wip_discrete_jobs wdj ,
    apps.mfg_lookups ml ,
    --apps.wip_so_allocations wsa ,
    apps.mtl_demand md, --inv.mtl_demand md ,
    apps.mtl_sales_orders mso ,
    apps.mtl_system_items_b msi,--inv.mtl_system_items_b msi ,
    apps.mtl_item_categories mic ,
    apps.mtl_item_categories mic2 ,
    apps.mtl_item_categories mic3 ,
    apps.mtl_category_sets mcs ,
    apps.mtl_category_sets mcs2 ,
    apps.mtl_category_sets mcs3 ,
    apps.MTL_CATEGORIES_B dgv,--INV.MTL_CATEGORIES_B dgv ,
    apps.MTL_CATEGORIES_B dcgv ,
    apps.MTL_CATEGORIES_B dscv ,
    apps.oe_order_headers_all sh, --so_headers_all sh ,
    apps.oe_order_lines_all sl, --so_lines_all sl ,
    apps.oe_transaction_types_tl sot, --so_order_types_all sot ,
    apps.ra_customers rc ,
    apps.ra_site_uses_all rsu
    where
    we.wip_entity_id = wdj.wip_entity_id
    and wdj.firm_planned_flag in (1,2)
    and wdj.status_type = ml.lookup_code
    and ml.lookup_type = 'WIP_JOB_STATUS'
    and md.supply_source_header_id = we.wip_entity_id
    -- and sh.header_id = mso.sales_order_id
    and mso.segment1 = sh.order_number
    and mso.segment2 = sot.name
    and sot.transaction_type_id = sh.order_type_id
    and sh.sold_to_org_id = rc.customer_id
    and sh.ship_to_org_id = rsu.site_use_id
    --DUPLICATE and sh.order_type_id = sot.order_type_id
    and sl.header_id = sh.header_id
    and sl.line_id = md.demand_source_line
    and sl.inventory_item_id = msi.inventory_item_id
    and msi.organization_id = wdj.organization_id
    and msi.inventory_item_id = mic.inventory_item_id
    and msi.organization_id = mic.organization_id
    and mic.category_set_id = mcs.category_set_id
    and mcs.category_set_name = 'DWC Groups'
    and dgv.category_id = mic.category_id
    AND dgv.STRUCTURE_ID = 50109
    and msi.inventory_item_id = mic2.inventory_item_id
    and msi.organization_id = mic2.organization_id
    and mic2.category_set_id = mcs2.category_set_id
    and mcs2.category_set_name = 'DWC COLORS'
    and dcgv.category_id = mic2.category_id
    AND dcgv.STRUCTURE_ID = 50111
    and msi.inventory_item_id = mic3.inventory_item_id
    and msi.organization_id = mic3.organization_id
    and mic3.category_set_id = mcs3.category_set_id
    and mcs3.category_set_name = 'DWC Ship'
    and dscv.category_id = mic3.category_id
    AND dscv.STRUCTURE_ID = 50112
    AND to_date(to_char(sl.request_date,'DD-MON-YYYY'),'DD-MON-YYYY') between
    nvl(to_date(to_char('&vfrmdte','DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
    and nvl(to_date(to_char('&vtodte' ,'DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
    AND we.wip_entity_name = NVL('&vjobnum', we.wip_entity_name)
    AND we.organization_id = NVL('&&4',we.organization_id)
    AND wdj.status_type IN (1,3)
    GROUP BY
    substr(we.wip_entity_name,1,10)||';'||
    substr(msi.segment1,1,10)||';'||
    rc.customer_number||';'||
    rsu.location||';'||
    substr(sl.cust_po_number,1,25)||';'|| --changed from sh to sl
    --sh.ordered_date||';'||
    sl.creation_date||';'||
    sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
    REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
    sl.request_date||';'||
    substr(dcgv.segment2,1,15)||';'||
    substr(dgv.SEGMENT1,1,20)||';'||
    sh.order_number||';'||
    substr(dcgv.segment3,1,15)||';'||
    substr(dcgv.segment4,1,25)||';'||
    substr(dscv.segment2,1,20)||';'||
    substr(dscv.segment3,1,10)||';'||
    wdj.start_quantity||';'||
    wdj.quantity_completed||';'||
    sl.order_quantity_uom||';'||
    wdj.completion_subinventory||';'||
    wdj.completion_locator_id||';'||
    wdj.primary_item_id||';'||
    wdj.wip_entity_id||';'||
    wdj.scheduled_start_date||';'||
    wdj.status_type||';'||
    substr(ml.meaning,1,30)||';'||
    ml.lookup_code||';'||
    md.demand_source_header_id||';'||
    substr(md.demand_source_line,1,15)||';'||
    mso.sales_order_id||';'||
    substr(mso.segment1,1,15)||';'||
    substr(mso.segment2,1,25)||';'||
    substr(mso.segment3,1,20)||';'||
    mic.category_set_id||';'||
    mic2.category_set_id||';'||
    dgv.category_id||';'||
    dcgv.category_id||';'||
    sh.header_id||';'||
    sh.order_type_id||';'||
    sl.line_number||';'||
    sl.line_id||';'||
    sl.inventory_item_id||';'||
    substr(sl.attribute11,1,20)||';'||
    msi.fixed_lot_multiplier||';'||
    substr(dscv.segment1,1,20)||';'||
    wdj.organization_id||';'||
    rc.customer_id||';'||
    rsu.site_use_id||';'||
    sl.LAST_UPDATE_DATE ----extra colmn added

    You are posting in the wrong forum. This is for Oracle Business Intelligence Applications, not Oracle 11i Applications aka Oralce EBusiness Suite

  • How to Map MTL_SO_RMA_RECEIPTS  to RMA_CUSTOMER_TRX_LINES_ALL

    We are trying to find a reference between MTL_SO_RMA_RECEIPTS lines and the
    RA_CUSTOMER_TRX_ALL/RMA_CUSTOMER_TRX_LINES_ALL/RA_CUST_TRX_LINE_GL_DIST_ALL to
    find out for which RMA receipt line, what is the TRX_NUMBER and GL Distribution
    Code.
    We couldn't find any direct relationship/reference from MTL_SO_RMA_INTERFACE
    and MTL_SO_RMA_RECEIPTS to RA_CUSTOMER_TRX_ALL and RA_CUSTOMER_TRX_LINES_ALL.
    We could join them with SO_LINES_ALL.LINE_ID but there is problem when there is
    multiple RMA Interface lines and Multiple Customer_Trx Lines/Credit Memo lines
    for one SO_LINE or Multiple Receipt lines for single SO Line. It gives us the
    duplicate records.
    For very basic we want to find a direct reference/join condition from
    MTL_SO_RMA_INTERFACE/MTL_SO_RMA_RECEIPTS to
    RA_CUSTOMER_TRX_ALL/RMA_CUSTOMER_TRX_LINES_ALL.
    We are using Oracle Applications Release 11, financials and Manufacturing
    modules.
    Thank you

    The transactions to access the IMG for MM and SD account determination are:
    OBYC and
    VKOA

  • RMA in workflow process

    Hi
    Iam trying to build a query for "RMAs which are approved(not waiting for any approvals in workflow ) and not yet received". If the RMA is waiting for approval with any manager it should not display in the query.
    I have this query but it also gives RMAs which are awaiting for approval.
    SELECT DISTINCT mp.organization_code, sh.order_number, TRUNC(sl.s30_date) FROM
    so_headers_all sh,
    so_lines_all sl,
    mtl_parameters mp
    WHERE sh.order_category= 'RMA'
    AND sl.header_id = sh.header_id
    AND sl.s30 = '2' -- 2 Pass
    AND TRUNC(sl.s30_date) BETWEEN TRUNC(SYSDATE-20) AND TRUNC(SYSDATE) AND
    NVL(sl.s29,'18') IN ('17','14')
    -- 14 interfaced ; 17 completely accepted
    AND sl.ordered_quantity <> NVL(sl.shipped_quantity,0)
    AND mp.organization_id = sl.warehouse_id
    Could you please forward any query you already have or your valuable ideas to modify the above query?
    Apppreciate all for your help,
    Thanks
    Arun

    Hi,
    This is 11.0.3, isn't it? As I don't have an instance to verify, I apologize in advance if I provided incorrect information.
    Aren’t order approvals in 11.0.3 recorded in so_header_approvals and so_line_approvals? Maybe, it is going to be necessary join these tables in order to verify if your RMA is approved or not.
    Hope it helps,
    Ketter Ohnes

Maybe you are looking for

  • Calling a Method in Bean from JSP

    Is there a defined jsp tag for calling a method in a Bean? Right now, in a bean named "bean", I would use: <% bean.doSomething(); %>. Is there a tag for this?

  • BOXI 3.0 server and 3.1 client tool

    Hi, I have a couple of question.... - Is it advisable to have client and server on the same machine? - I need the .net sdk that I think is not included in BOXI 3.0 so is it ok if on the same machine I have BOXI 3.0(server) and BOXI 3.1 (client)? - If

  • Bang Symbols & Missing Artwork

    Hello world, anybody have a fix ??? fig 1 fig 2 AAC files are stored on a time capsule. Bang symbols appearing adhoc when I start up. When bang symbols appearing against first track on an album artwork is not rendered (fig 1). Artwork is rendered onc

  • I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication

    I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication. I use LabVIEW to read the data from serial communication then, i open the example (.vi) from Serial Communication - Advanced Serial Write and Rea

  • NEF version export to JPG loses colour...

    When I export Versions of RAW Nikon files from Aperture 2.0 to JPGs (1mb or 4mb). The JPGs look much bleeker (color loss). Does anyone know why that would be? Although I do not know what it really does, when prompted, I do allow Aperture to Upgrade t