Spatial cross product - order of tables

A spatial cross product compares the geometries of one layer with all the geometries of another layer. For performance reasons, oracle recommends to make the smallest table (table with less rows) the second argument. From this, I understand that the results are independent on which table is made the first/second argument. However, my spatial cross query returns different results.
For example consider the following query which takes 3 hours:
SELECT /*+ordered*/ b.itemid pntitemid, a.itemid areitemid
FROM POIS_SDE b, ADMIN_SDE a
WHERE sdo_anyinteract(a.OBJECT, b.OBJECT) = 'TRUE''
POIS_SDE is a table with point-geometries. The table has 142079 rows.
ADMIN_SDE is a table with polygons. The table has 2617 rows.
Subset of the results:
PNTITEMID     AREITEMID RELATION
1000052902     32006236 touch
1000052902     32006421 touch
For performance reasons, this query takes 10 minutes:
SELECT /*+ordered*/ b.itemid pntitemid, a.itemid areitemid
FROM ADMIN_SDE a, POIS_SDE b
WHERE sdo_anyinteract(b.OBJECT, a.OBJECT) = 'TRUE'
But the result of this query is different meaning that these (1000052902, 3200623, touch) and (1000052902, 32006421, touch) is not discovered. (There are plenty other examples; all touch-relations).
Can anyone explain me this difference? It doesn't make sense at all.
Thanks.

A spatial cross product compares the geometries of one layer with all the geometries of another layer. For performance reasons, oracle recommends to make the smallest table (table with less rows) the second argument. From this, I understand that the results are independent on which table is made the first/second argument. However, my spatial cross query returns different results.
For example consider the following query which takes 3 hours:
SELECT /*+ordered*/ b.itemid pntitemid, a.itemid areitemid
FROM POIS_SDE b, ADMIN_SDE a
WHERE sdo_anyinteract(a.OBJECT, b.OBJECT) = 'TRUE''
POIS_SDE is a table with point-geometries. The table has 142079 rows.
ADMIN_SDE is a table with polygons. The table has 2617 rows.
Subset of the results:
PNTITEMID     AREITEMID RELATION
1000052902     32006236 touch
1000052902     32006421 touch
For performance reasons, this query takes 10 minutes:
SELECT /*+ordered*/ b.itemid pntitemid, a.itemid areitemid
FROM ADMIN_SDE a, POIS_SDE b
WHERE sdo_anyinteract(b.OBJECT, a.OBJECT) = 'TRUE'
But the result of this query is different meaning that these (1000052902, 3200623, touch) and (1000052902, 32006421, touch) is not discovered. (There are plenty other examples; all touch-relations).
Can anyone explain me this difference? It doesn't make sense at all.
Thanks.

Similar Messages

  • Function module for Production order update (Table AFKO)

    Hello All,
    I know similar subject has been posted but please read the following.
    SAP 4.6c doesn't provide BAPI for production order update.
    We did develop an ABAP program that update production order and schedule it in a job.
    We are looking of avoiding direct update in table AFKO which our program do right now.
    We looked (with SE37) at either BAPI or FM to pass parameters to a functioin that would perform that update and ensure data integrity.
    CO_ZV_ORDER_POST seems interesting but is also using a lot of parameters and we have diffiulties to test it and understand it our dev team being fairly new.
    Can somebody tell us how to use this function or tell us another FM that could be used. (ie passing internal table content (New fields values) and a key value (AUFNR)) to update table AFKO and related objects/tables
    Regards
    Marc

    hi,
    TABLE IS AFKO
    rgds
    anver
    if hlped mark points

  • Production Order - component Table

    Hi
    My is as follow , I need fetch details of Overview of Components in Production Order ( Co01). Kindly let me know the table for Components Overview table . But not BOM Table
    with regards
    Anand kumar

    AUFG                           Allocation Table Sub-Item, Store Group
    AUFI                           Allocation Table, Document Sub-item, Store
    AUFK                           Order master data
    AUFLAY0                        Entity Table: Order Layouts
    AUFLAY1                        Layouts for the Orders
    AUFLAY2                        Order Master Data Maintenance: Tab Names
    AUFLAY3                        Assignment Subscreens: Screens for Order
    AUFM                           Goods movements for order

  • Production Order - CDHDR table

    Hi Friends,
    my requirement is when ever i create a production order or change a production order i need to trace these changes.
    but i am not able to see them in CDHDR table.
    can anyone let me know how to trace these create and change.
    Please let me know.
    Thanks in advance,
    Regards,
    Roberts.K

    Hi Robert,
    sounds like you should use output messages. Instead of printing some paper, your functionality can be triggered.
    It's discussed many times in this forum, one link might be:
    Outbound IDOC for customer master
    Regards,
    Christian

  • Production order STATUS TABLE

    gurus,
    in which table we can find status of production order.

    Hi,
    First go to CAUFV table input the production order get the object number
    Input this object number in JEST table and get the system status
    Input the system status in TJ02T table ,u will get the production order status

  • Production order confirmation table

    Hi..
    Can anyone please tell me where i can find the  details when a production order confirmation occurs, batch numbers created ..
    I want to get the batch numbers created for a particular production order. In which table can i get the data?
    Thanks
    Keshi

    Hi,
    Try using table AUFM.
    You can also use table AFKO & AFPO.
    You should be getting all the reqd. details in the above tables.
    Hope this helps..
    Reward points if this is helpful.
    Deepu.

  • How to Pickup Serial Number from Production order through table field

    Hi Experts,
    I have SAP production order for Qty 5 and assigned 5 serial numbers .
    How to pick up the serial numbers technically
    what table, field I have to use
    Thanks
    Prabakaran K

    Hi,
    Please have a look to this thread:
    BAPI/RFC to get serial numbers for a production order
    Hope it helps,
    Kr,
    m.

  • Production Order Print . table data in print output of order

    Hi SAP Buddies
    Can any one tell me what are the steps required for setting the SFC print output.
    IMG setting for print output.. of SFC papers
    Actually my main purpose is to get TABLE : MARD and Field LGPBE to printed on Goods Issue Slip.
    Warm Regards
    Brijesh Verma

    hi
    IN iMG settings OPK8 you need to set the Script forms,program name, list contorls,and printer specifications. against the lists
    to get your required data you need to edit the program assigend to the Goosde issue slip.
    pl check
    -ashok
    Edited by: Ashok Keerthipati on Dec 24, 2008 10:00 AM

  • Table for STO and his production order in manufacturing plant.

    Hello Experts,
    I would like to know in which table I can find a relation between STO and his related Production Order.
    Thanks in advance.
    Regards
    Mayur
    Edited by: mayur kshirsagar on Dec 19, 2007 1:48 PM

    Dear Mayur,
    For Production order related tables check in
    AFKO              Order Header
    AFPO               Order Item Detail
    AFVC               Order Operations Detail
    AFFL                Order Sequence Details
    AFFH               Order PRT Assignment
    AFBP               Order Batch Print Requests
    AFRU               Order Completion Confirmations
    AFFW              Confirmations -- Goods Movements with Errors
    AFRC               Confirmations -- Incorrect Cost Calculations
    AFRD               Confirmations -- Defaults for Collective Confirmation
    AFRH               Confirmations -- Header Info for Confirmation Pool
    AFRV               Confirmation Pool
    AFWI               Confirmations -- Subsequently Posted Goods Movements
    AUFK     Order master data
    AUFM     Goods Movements for Order
    VBAG                           Sales Document: Release Data by Schedule Line in Sch.Agrmt.
    VBAK                           Sales Document: Header Data                               
    VBAP                           Sales Document: Item Data                                 
    VBBE                           Sales Requirements: Individual Records                    
    VBBS                           Sales Requirement Totals Record                           
    are you meaning stock?
    then check in MARD.
    Regards
    Mangal

  • Reg : BOM and production order

    Hi all,
    I have created two production orders for the same material but with diffrent BOM explosion date. now can any one please let me know how will i find which version of alternate BOM of the material is used in the production order.
    In the production order header table ( AFKO) i am getting only the alternate BOM number, i am ubable to find which version of alternate BOM is used for Production order.
    Thanks .
    VIJAY

    the relation is as below
    AFKO-STLNR = STAS-STLNR
    AFKO-STLTY = STAS-STLTY
    AFKO-STLAL= STAS-STLAL
    FROM HERE TAKE ALL
    STAS-STLKN AND STAS-STLTY
    PASS IT TO STPO
    STPO-STLNR = STAS-STLNR
    SPO-STLTY = STAS-STLTY
    STAS-STLKN-= STPO-STKLN
    THIS WILL GIVE YOU ALL THE BOM ITEMS USED IN THAT PROD ORDER.
    IS IT OKAY?

  • Automatic Batch determination at time of Goods receipt for production order

    Hi SAP experts,
                             Greetings to you all. I wish to ask a query that how batch is determined automatically at the time of goods receipt for production order .
                             I have done the following settings:
    1.Specified batch level at material level
    2.External batch number assignment
    3.Defined production order condition table '501' (plant/material)
    4.Defined production order access sequence (order type-plant -material)
    5.Defined Production Order Strategy type.
    6.Defined Batch search procedure in Production Order.
    7.Assigned Batch search procedure to Production order type for a particular plant  , batch check not activated.
    Please let me know of any more settings to be checked for the same.
    For example, a production order is being confirmed for a quatity of 5 nos . at a time . However, the GI movement (261 movement type) for the production order components  is taking place for 1 EA qty. from 5 different batches.
    So now, how the system will define the GR (movement type 101) for the production order header material for the qty. 5 nos. EA ?
    It is desired that the system should do GR for the qty.  1 EA of the header material for the 5 different batches (batches which were automatically deteremined for the Goods issue of the components).
    Thanks in advance. good day.
    Best regards,
    RB

    HI Rahul,
    As explained earlier, for e.g., if the GR is taking place for the production order for qty. 5 nos. , and in that , if the component qty. is 1 EA for 1EA of header material ; then , the GR for the header material should take place for the same different batches from which the order components were issued for the order and not for the other batches in stock for the header material as well as components.
    I am not sure if i understand your requirement 100%.
    But let me explain you standard behaviour.
    When Confirmation for production order happens and GR is posted during confirmation , All the GR happens agaist same batch number which i sassigned in production order assignment screen.
    So for all the order qty single batch would be fixed. Say batch A1 is created for Header material for 100 qty.
    Now during components issue to production order, If 100 qty needs to be issued for compoenent B it is possible to use multiple batches of componenets ( using splilt batch functionality /or manual batch number entry agaist componenet in goods movement screen) but header batch remains the same.
    Check and Revert,
    Santosh Sarda

  • Batch In production order

    Dear ALL,
    We are creating a batch number at the time of production  order creation , but same batch not picking at the time of good
    receipt, qty received without batch number , but we want qty with batch number,
    please let me know if something missing in Config,

    Hi,
    In OMCT T-code, select Batch Level and it will take to OMCE. Their select
       1.Batch unique at material level (Here we define the batch at material level, because the batch number is unique in all plants with respect to materials. The same batch number has same meaning for a material in all plants; one batch number cannot have different specifications in different plants. If we select at plant level means the batch number is only known in that particular plant, if we do the stock transfer to different plant, at the recipient plant the batch is unknown).
    Then go to T-code OMCT and select Batch Status Mangement, it will go to OMCS T-code
       In Batch status management: Tick Active
    Go to OMCT screen again and select Plants with Batch Status Mangement; it will go to T-code OMCU
    Tick Batch Status Management for the plants which you want to activate.
    Next go to T-code OPLC, and define the production order condition table.
    Later go to OPLE screen, Application Co (Production Orders); select CO01 and click on Details.
    In that,
    Class type: 023
    Tick for changes allowed and Dialog Batch determination. Similarly for CO02 also follow the same steps.
    Go to T-code OPL8, and assign the search procedure to production order and activate check.
    Select the line item plant and order type and click on details and tick the check batch and mention the search procedure and save.
    The following configuration should work.
    Please come back if any issues still,
    Regards,
    Prathyush

  • Change components and Routing of production order

    Hi, experts, I have such requirement that change quantity of a component or add a component, add a operation into current routing.
    I have look up answer, but can not find the right one.
    BAPI_PRODORD_CHANGE only can change header data.
    BAPI_ALM_ORDER_MAINTAIN seems can not change production orders, it is for service orders.
    CO_XT_ORDER_CHANGE will assign a new  routing number and a new bom number.
    Could somebody give me some FM and BAPI for reference? Thanks in advance.

    Hi Rick,
    Follow the below sample steps for changing component quantity:
    DATA:
        l_methods TYPE bapi_alm_order_method,
        it_boperations TYPE STANDARD TABLE OF  bapi_alm_order_operation_e WITH HEADER LINE,
        it_components TYPE STANDARD TABLE OF bapi_alm_order_component_e WITH HEADER LINE,
        it_components1 TYPE STANDARD TABLE OF bapi_alm_order_component WITH HEADER LINE.
    1. Call BAPI :BAPI_ALM_ORDER_GET_DETAIL , it will give existing order component details.
    CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL'
        EXPORTING
          number        = <production order number>
        TABLES
          et_operations = it_boperations
          et_components = it_components
          return        = it_bapiret2.
    2. Move it_components to components table compatibel to BAPI "BAPI_ALM_ORDER_MAINTAIN".
    LOOP AT it_components.
    MOVE-CORRESPONDING it_components TO it_components1.
    _*"Note here while moving change the component quantity"*_
    APPEND it_components1.
    CLEAR it_components1.
    ENDLOOP.
    3. Build the methods table for change production order :
    it_methods-refnumber = v_refnumber.
                it_methods-objecttype = 'COMPONENT'.
                it_methods-method = 'CHANGE'.
                it_methods-objectkey = v_objectkey.
                APPEND it_methods.
    "Note v_refnumber has 1 to 1 relation ship with the components table, if you want to change First component in it_components1 then you have to enter value '1' here for v_refnumber.
    it_methods-method = 'SAVE'.
            APPEND it_methods.
    4 . Call
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
              TABLES
                it_methods   = it_methods
                it_component = it_components1
                return       = it_bapiret2.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • IDoc creation on save and change of production order

    I am looking for a way to create, and send if possible (if not I'll send with a batch job), on the save (creation and change) of production orders.  This will be a modified LOIPRO iDoc.  Currently we have a customer exit on the save of the production order but because it is before the save we must predict the number of the prod order.  This has worked but now we are creating one production order per line item in a sales order (automatically) so this is causing us to predict the same production order number twice.  We need a way to automatically create and send an iDoc for all production orders for given plants.  Right now the solution we are looking at is creating an output type and running through those output types a few times a day, sending them down to the Shop Floor system (proprietary system). 
    Is there anything setup in SAP that we can utilize?
    Regards,
    Davis

    Hi Rick,
    Follow the below sample steps for changing component quantity:
    DATA:
        l_methods TYPE bapi_alm_order_method,
        it_boperations TYPE STANDARD TABLE OF  bapi_alm_order_operation_e WITH HEADER LINE,
        it_components TYPE STANDARD TABLE OF bapi_alm_order_component_e WITH HEADER LINE,
        it_components1 TYPE STANDARD TABLE OF bapi_alm_order_component WITH HEADER LINE.
    1. Call BAPI :BAPI_ALM_ORDER_GET_DETAIL , it will give existing order component details.
    CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL'
        EXPORTING
          number        = <production order number>
        TABLES
          et_operations = it_boperations
          et_components = it_components
          return        = it_bapiret2.
    2. Move it_components to components table compatibel to BAPI "BAPI_ALM_ORDER_MAINTAIN".
    LOOP AT it_components.
    MOVE-CORRESPONDING it_components TO it_components1.
    _*"Note here while moving change the component quantity"*_
    APPEND it_components1.
    CLEAR it_components1.
    ENDLOOP.
    3. Build the methods table for change production order :
    it_methods-refnumber = v_refnumber.
                it_methods-objecttype = 'COMPONENT'.
                it_methods-method = 'CHANGE'.
                it_methods-objectkey = v_objectkey.
                APPEND it_methods.
    "Note v_refnumber has 1 to 1 relation ship with the components table, if you want to change First component in it_components1 then you have to enter value '1' here for v_refnumber.
    it_methods-method = 'SAVE'.
            APPEND it_methods.
    4 . Call
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
              TABLES
                it_methods   = it_methods
                it_component = it_components1
                return       = it_bapiret2.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Report of List of all status changes for various production orders at a tim

    Hi,
    Can I have a standard report which shows the dates of each and every status (user & system) of a production order.
    I need to have a report for a list of productio orders at a time.
    If we go to CO03, header menu, status changes option is there, but it only caters for single production order.
    Table JCDS is available to know the dates but I need a standard one rather than a Z development.
    Or you can guide me any function module.
    Thanks,
    Kumar

    Hello,
    You will get the details of status in following table.
    JEST - for object status
    JSTO - Status Profile
    TJ02T - to Decode the status Number
    as the status data you will get from JEST is in very typical form you have to use TJ02T to find the exact status
    AM

Maybe you are looking for

  • ARD 3 Will Not Install "The serial number is not valid"

    Hello, and thanks for reading. I am a new network admin in a silicon valley school district. I come from a Windows background and I am picking up the Mac pretty well. I was asked by the support team to install Apple Remote Desktop 3 on my MacBook Pro

  • I cant upload

    i have the linksys wrt54g router. i cant seem to upload files through email or thru aol instant messages. is there something i need to configure in the router to send out files? i have the windows firewall and i already tried to disable it and that d

  • From: text overlapping Subject: text in Mail

    I'm having a display issue in Mail app: text in the From: line is offset to the point that it completely overlaps the Subject: line, leaving the From: line empty, and the Subject: line garbled with two lines of text superimposed. It's like the baseli

  • Allow Balances to be carried forward in EC-PCA

    Hello Sdner's The option for Allow Balances to be carried forward is misleading in EC-PCA. 1. Why the option for balance carry forward allowed or Balance carry forward not allowed is given. 2. End of every year, balances need to be carry forwarded to

  • Order of windows services

    Hi Guys, I recently installed Oracle EBS R12.1.1 on Windows XP Pro, well i want to know in which order oracle's windows services are executed/loaded(with what parameters) at the windows start-up.......i want to make batch files to start and stop serv