WSH_DELIVERY_DETAILS and  MTL_TXN_REQUEST_LINES

Hi,
Can anyone tell me the relation or join conditions for MTL_TXN_REQUEST_LINES and WSH_DELIVERY_DETAILS tables.
what should be the join conditions?
Thanks,
Soham

There is a column MOVE_ORDER_LINE_ID in WSH_DELIVERY_DETAILS table. This column is populated with the LINE_ID of MTL_TXN_REQUEST_LINES table.
Hope this helps.
Nitin Darji

Similar Messages

  • Records are not inserted into MTL_TXN_REQUEST_HEADERS,MTL_TXN_REQUEST_LINES

    Hi all,
    I am doing pick release thru API.
    For that , I have run following API successfully but my problem is that records are not inserted into MTL_TXN_REQUEST_HEADERS , MTL_TXN_REQUEST_LINES
    tables so that I cannot generate the move order. Can anyone suggent the valuable tips for that ?
    1. WSH_DELIVERIES_PUB.create_update_delivery
    2. WSH_DELIVERY_DETAILS_PUB.Detail_to_Delivery
    3. WSH_PICKING_BATCHES_PUB.CREATE_BATCH
    4. WSH_PICKING_BATCHES_PUB.RELEASE_BATCH
    5. WSH_DELIVERIES_PUB.Delivery_Action ( for p_action_code = 'PICK-RELEASE' )
    regards with thanks in advance
    sanjay

    Hi All,
    To create a Move Order Header & Line Record in MTL_TXN_REQUEST_HEADERS and MTL_TXN_REQUEST_LINES tables , I have run an seeded
    procedure : CreateMoveOrderHeader & CreateMoveOrderLines .
    The procedure : CreateMoveOrderHeader was run successfully but when I am going to run procedure : CreateMoveOrderLines , it is giving
    an error .
    Following Error text I am receiving at the time of running of procedure : CreateMoveOrderLines .
    Initialized applications context: 5707 50138 660
    *==========================================================*
    Calling INV_MOVE_ORDER_PUB.Create_Move_Order_Lines API
    *==========================================================*
    Return Status: E
    Error Message :INV
    *==========================================================*
    From the above error message, no specific error is received . Only " Error Message : INV " is received hence it is very difficult to judge & resolve an error .
    Can anyone guide me that what is an error ? For what reason I am getting an error ?
    regrads
    Sanjay

  • Report to identify sales orders not shipped on time

    Hi
    i have one requirement to identify the sales orders that are not shipped on time(Sales Order due).
    Could you please anyone throws some hints to build a report.
    Thanks in Advance
    Arjun

    You will have to join oe_order_lines_all and mtl_material_transactions.
    The oe_order_lines_all.scheduled_ship_date will give you when the order was supposed to ship.
    The "sales order issue" transaction in the mtl_material_transaction will give you the date on which the sales order issue transaction occurred.
    Alternatively, you can use the dates in wsh_delivery_details and wsh_new_deliveries tables and compare them with scheduled_ship_date.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • Comments field in RCV_SHIPMENT_LINES

    I am working for a client, running on 11i who is using OPM extensively. They are going for R12 upgrade now. The comments filed is populated with "OPM:<Delivery Detail ID>" in 11i. However, the comments field is populated with NULL value in R12. I would like to know whether it is the seeded functionality. If so, what is changed in R12. Please let me know.

    RagulHalan wrote:
    Hi all,
    Can anyone tell me the link between RCV_SHIPMENT_LINES and WSH_NEW_DELIVERIES tables,
    i am not able to link these tables as this join includes few other tables in the from clause.
    and it is very urgent - Appreciate your  help.
    Thanks in advance
    -Ragul
    Please see:
    How To Link tables WSH_DELIVERY_DETAILS and RCV_SHIPMENT_LINES for internal orders (Doc ID 394683.1)
    http://etrm.oracle.com/
    Thanks,
    Hussein

  • Pick Release Batch generation

    Hi All,
    I want to automate the whole process of Pick Release->Ship Confirm
    For this I need to call the APIs. But I am not sure about which APIs I need to call.
    However I plan to first Create the Batch_id (WSH_PICKING_BATCHES_GRP.Create_Batch) for particular Order, then using this batch id I will call pick release API(wsh_pick_list.release_batch). But here I am not getting how to generate the batch_id. Kindly help, if other ways then also suggest.
    Thanks
    Sachin.

    The flow is this..
    wsh_picking_batches_pub.create_batch creates a row in the wsh_picking_batches. This gives batch_id created in this table. If you pass the value, you can pass using the sequence mentioned earlier. If not it generates the batch_id on its own using the same sequence.
    wsh_picking_batches_pub.release_batch creates a move order (creates records in mtl_txn_request_headers and mtl_txn_request_lines and if you choose auto allocate mtl_material_transactions_temp). This also creates a delivery if you wish when the parameter (a column in the table wsh_picking_batches) says autocreate delivery. If you want to manually allocate and not part of the release_batch you can use inv_pick_release_pub.
    Now the order line is ready to be pick confirmed. You pick confirm using inv_pick_wave_pick_confirm_pub.
    You can automate all these steps just in release batch API if the item does not have any inventory controls and assigning the ship confirm rule to the the batch.
    If not you can you use wsh_deliveries_pub to ship confirm the order line.
    Thanks
    Nagamohan

  • Order Release Date, which field?

    I would like to retrieve the date user successfully do the Release Sales Order, which field in which column should I take?

    You could try looking at the picking batch on the corresponding shipping lines (wsh_delivery_details) and then joining to wsh_picking_batches to get the creation_date. This should correspond to the pick release date. If you wanted the pick confirmation date, you would probably have to join to the mtl_material_transactions table to get the stock issue from stores.
    e.g.:-
    select
    ooh.order_number, ool.line_number, ool.shipment_number, to_char(wpb.creation_date, 'DD-MON-YYYY HH24:MI:SS')
    from
    oe_order_lines_all ool
    , oe_order_headers_all ooh
    , oe_transaction_types_tl otl
    , wsh_delivery_details wdd
    , wsh_picking_batches wpb
    where 1=1
    and ooh.order_number = &order_number
    and ool.header_id = ooh.header_id
    and ooh.order_type_id = otl.transaction_type_id
    and otl.name = '&order_type'
    and ool.line_id = wdd.source_line_id
    and wdd.batch_id = wpb.batch_id
    order by ool.line_number, ool.shipment_number

  • How to extract pick details after pick release with OPM Modules

    Hi, Can someone show me how to extract pick details (for third party warehouse) after pick release released in OPM modules?
    I remembered that I can access interface tables MTL_TXN_REQUEST_HEADER and MTL_TXN_REQUEST_LINES to extract pick detail. But it seems that in OPM modules, it does not use these two tables. Any help are greatly appreciated.
    Calvin

    Hi,
    This problem Could happen when you referesh quality or test system.
    Your delta setup for the related master and transaction data needs to be reinit.
    What happens is when you init. the delta and subsequent delta is all maintained in your source system
    please check Notes 852443,424848,834229
    Hope this helps
    Thanks
    Teja
    Message was edited by:
            Teja badugu

  • API (Move Transaction) Issue

    Hi All,
    I want to Pick / Ship confirm thru API. For that I had done following activities.
    Firstly, I am presenting manually step-by-step process what I have done (at form level in order management module) .
    (1) Book the Order
    (2) Select the 'RELEASE SALES ORDER' option.
    Navigation path is : Shipping > Release Sales Orders > Release Sales Orders
    (3) On Release Sales Order Form, Retrieve this booked Order by inputting Order Number and Order Type.
    (4) Check mark the Check box : Prior Reservation Only.
    (5) Save the record
    (6) It will create a Batch Number.
    (7) After Creating a Batch, you can retrieve this order by query with this Batch Number on 'Release Sales Order' form.
    (8) simultaneously, on back end, the new records are get inserted into tables :
    MTL_TXN_REQUEST_HEADERS and MTL_TXN_REQUEST_LINES .
    Now, same things are we have to do using APIs.
    we running APIs in following order and run successfully.
    1. WSH_DELIVERIES_PUB.create_update_delivery
    2. WSH_DELIVERY_DETAILS_PUB.Detail_to_Delivery
    3. WSH_PICKING_BATCHES_PUB.CREATE_BATCH
    4. WSH_PICKING_BATCHES_PUB.RELEASE_BATCH
    5. WSH_DELIVERIES_PUB.Delivery_Action ( for p_action_code = 'PICK-RELEASE' )
    Now when we are going to query with Sales Order or Batch Id (batch id generated thru API) using form named "RELEASE SALES ORDER", record is not retrieved
    as we did same things at form level (refer above step no : 7) and also records are not get inserted into tables named :
    MTL_TXN_REQUEST_HEADERS and MTL_TXN_REQUEST_LINES
    tables (refer above step no : 8).
    For your information that pick slip report is completed with warning.
    From Pick Slip Report we can find the move order number then why records are not exists in MTL_TXN_REQUEST_HEADERS and MTL_TXN_REQUEST_LINES
    tables.
    Is there any API left to run for further move ?
    If anyone has idea, please guide me
    regrads
    Sanjay

    Hi All,
    To create a Move Order Header & Line Record in MTL_TXN_REQUEST_HEADERS and MTL_TXN_REQUEST_LINES tables , I have run an seeded
    procedure : CreateMoveOrderHeader & CreateMoveOrderLines .
    The procedure : CreateMoveOrderHeader was run successfully but when I am going to run procedure : CreateMoveOrderLines , it is giving
    an error .
    Following Error text I am receiving at the time of running of procedure : CreateMoveOrderLines .
    Initialized applications context: 5707 50138 660
    *==========================================================*
    Calling INV_MOVE_ORDER_PUB.Create_Move_Order_Lines API
    *==========================================================*
    Return Status: E
    Error Message :INV
    *==========================================================*
    From the above error message, no specific error is received . Only " Error Message : INV " is received hence it is very difficult to judge & resolve an error .
    Can anyone guide me that what is an error ? For what reason I am getting an error ?
    regrads
    Sanjay

  • Receive Against an Internal Req

    Hi All,
    We are facing issue with receiving against the internal requisitons . The key problem is the transactions in the mtl_transactions_interface were locked somehow and it didn't get imported into the system. Accidently, these records were purged form the interface table and hence, we do not have the transactions flowing from OM. We also tried updating the Inv_interfaced_flag to 'N' in the wsh_delivery_details and then ran "Interface Trip Stop" but it didn't push data into mtl_transactions_interface.
    Now we can't cancel those Internal Req, neither can receive against them as it expects the shipment is in transit . Also the internal orders have already been shipped and closed.
    All pointers are highly appreciated..
    Thanks,
    Rahul.

    Thanks for the reply Sandeep. While I will try inserting record manually into the mtl_transactions_interface table for one such IR, I foresee following 2 issues:
    1) Will have to ensure I provide all the required columns that are needed for importing the material transaction. I have no idea why running Interface trip stop for this delivery didn't populate the mtl interface table automatically. Is there a way I can rollback the Order Workflow to Pick Released status and then again try shipping it?
    2) I have ~ 3000 such transactions and it'd be difficult loading the data manually for all of them. May be we have to write a quick script.
    Also, INV: Batch Size profile is set to 20 currently which fails all 20 records in the batch even if only one may have the real problem. Do you suggest making it blank?
    I know it may lead to performance issues with the Inventory Transaction Workers.
    Thanks,
    Rahul.

  • Line id in sales order lines and source_line_id in wsh delivery details are entirely different

    i am trying to get serial number based on sales order line,i am getting no data since   AND WSH.SOURCE_LINE_ID = OOL.LINE_ID is failing,Please help me.Im not getting what wrong im doing
    SELECT OOH.ORDER_NUMBER
         ,OOH.FLOW_STATUS_CODE
         ,OOH.CUST_PO_NUMBER
         ,OOL.ORDERED_ITEM
         ,OOL.LINE_ID
         ,OOL.ORDERED_QUANTITY
         ,OOH.ORDER_TYPE_ID
        ,WSN.FM_SERIAL_NUMBER
    FROM SO_ORDER_TYPES_ALL SOT
         ,OE_ORDER_HEADERS_ALL OOH
         ,OE_ORDER_LINES_ALL OOL
         ,WSH_SERIAL_NUMBERS WSN
         ,WSH_DELIVERY_DETAILS WSH
    WHERE 1=1
      AND WSN.DELIVERY_DETAIL_ID = WSH.DELIVERY_DETAIL_ID
      AND WSH.SOURCE_LINE_ID = OOL.LINE_ID
      AND OOL.SOURCE_TYPE_CODE = 'EXTERNAL'
      AND OOH.HEADER_ID = OOL.HEADER_ID
      AND OOH.ORDER_TYPE_ID = SOT.ORDER_TYPE_ID
      AND SOT.NAME = 'US Distributor Order'

    what is the status of SO and SO line ?
    Have you manually check the line_id and source_line_id from backend using select statement ?

  • Order Status in wsh_delivery_details

    Hi Team,
    I am new to order management and I am a  technical guy.
    I am creating an interface which will send order information to third party vendors if the order is pick released.
    I am facing the below issues while testing this object:
    1) The scheduled ship date in the order is set to 11:59 PM by default. Is there any way to change it? My system is in 11i.
    2) Even If I run the pick release sales order program after scheduled date the released_status column in wsh_delivery_details table is in 'B'
         For my program it has to be in 'Y'
         The next step in shipping transaction is 'PICK RELEASE' and the order is in 'AWAITING SHIPPING' status.
        Please let me know how to progress further.
    Regards,
    Debanjan

    I'm confused by the question.  You can't fulfill the order if the product isn't available.  If you are in testing, you can cycle some product on-hand and re-run pick release.
    ATP is a really complex topic, but some of the parts to look at are -
    1.  The request date
    2.  The warehouse it's being fulfilled from
    3.  The type of ATP you run - based on collected data or planned data
    4.  The sourcing rules you have set up
    Here's a doc on order promising:
    http://docs.oracle.com/cd/E18727_01/doc.121/e13378.pdf

  • Order Status Picked and Picked Partial

    Hi,
    I am worknig on OM. I need to get the orders details where the order status in Picked and Picked Partial. I checked in oe_order_lines_all, the flow status code is not holding picked and picked partial.
    Please any one let me know how to get Picked and Picked partial. I need the query.
    Thanks & Regards
    Murali

    Hi Murali,
    The flow_status_code on oe_order_lines_all doesn't get updated between pick release and ship confirmation - it stays at 'AWAITING_SHIPPING' - so you need to join to the shipping tables to get the same visible status that you get in the form.
    The SQL below will give you all lines at either 'Picked' or 'Picked Partial' status through a decode. You might want to add an OU filter dependent on your setup.
    Regards,
    Jon
    SELECT
    ooh.order_number
    , ool.line_number||'.'||ool.shipment_number as line_number
    , ool.ordered_item
    , ool.ordered_quantity
    , wdd.picked_quantity
    , decode(sign(ool.ordered_quantity-wdd.picked_quantity),1,'Picked Partial',0,'Picked',-1,'??') as line_status
    FROM
    wsh_delivery_details wdd
    , oe_order_lines_all ool
    , oe_order_headers_all ooh
    WHERE 1=1
    AND wdd.source_line_id = ool.line_id
    AND ool.header_id = ooh.header_id
    AND ool.flow_status_code = 'AWAITING_SHIPPING'
    AND wdd.released_status = 'Y'
    ORDER BY
    ooh.order_number, ool.line_number, ool.shipment_number

  • Wsh_new_deliveries , wsh_delivery_details , wsh_delivery_ assignments

    Hi all,
    Can anybody tell when wsh_new_deliveries,wsh_delivery_details & wsh_delivery assignments populate?
    and join condition between them ?
    Thanks in advance

    SELECT
    FROM
    oe_order_lines_all ool
    , wsh_delivery_Details wdd
    , wsh_new_deliveries wnd
    , wsh_delivery_assignments wda
    WHERE 1=1
    AND wdd.source_header_id = ool.header_id
    AND wdd.source_line_id = ool.line_id
    AND wda.delivery_detail_id = wdd.delivery_detail_id
    AND wda.delivery_id = wnd.delivery_id
    http://sureshvaishya.blogspot.com

  • Relation b/w MTL_MATERIAL_TRANSACTIONS_TEMP  and  MTL_KANBAN_CARDS in r12

    Hi,
    One MTL_MATERIAL_TRANSACTIONS_TEMP Line belongs to only one kanban_card_number line in MTL_KANBAN_CARDS.
    So, say if MTL_KANBAN_CARDS has kanban_card_number = 12345 , I'm trying to find this related record in the MTL_MATERIAL_TRANSACTIONS_TEMP table.
    not sure which condition i need to use.
    Could you suggest.
    Thanks.

    Hi Hrishikesh,
    I tried using below query, but i don't get any data. Not sure whether it is data issue.
    select *
    from mtl_kanban_cards kan,
    mtl_txn_request_lines txn,
    mtl_material_transactions_temp temp
    where kan.kanban_card_id = txn.txn_source_id --txn.txn_source_line_id (even tried with this)
    and temp.move_order_line_id = txn.line_id;
    for this query, i get only 2 records.
    select *
    from mtl_kanban_cards kan,
    mtl_txn_request_lines txn
    where kan.kanban_card_id = txn.txn_source_id; --txn_source_line_id
    thanks
    pravin

  • How to avoid the FTS on WSH_delivery_details.

    Hi,
    The following below query, when i executed this query was taking more time due to the FTS on WSH_delivery_details.
    Pleae let me know, is there any other tables to join with this table to avoid FTS...
    SELECT b.NAME "Org", source_header_number "Order Number",
    source_line_number "Line Number",
    TRUNC (last_update_date) "Last Update Date"
    FROM wsh_delivery_details a, hr_operating_units b
    WHERE released_status = 'C'
    AND oe_interfaced_flag = 'N'
    AND TRUNC (last_update_date) BETWEEN TRUNC (SYSDATE - 10)
    AND TRUNC (SYSDATE - 1)
    AND a.org_id = b.organization_id
    ORDER BY source_header_number, source_line_number
    Thanks,
    Sathish

    Have not checked for column name errors..here are the SQLs..
    SELECT b.NAME, source_header_number, source_line_number, TRUNC (a.last_update_date)
    FROM wsh_delivery_details a, hr_operating_units b, wsh_delivery_assignments c, wsh_trip_stops d, wsh_delivery_legs e
    WHERE released_status = 'C'
    AND oe_interfaced_flag = 'N'
    AND TRUNC *(d.actual_departure_date)* BETWEEN TRUNC (SYSDATE - 10) AND TRUNC (SYSDATE - 1)
    AND a.org_id = b.organization_id
    AND a.delivery_detail_id = c.delivery_detail_id
    AND c.delivery_id = e.delivery_id
    AND e.pick_up_stop_id = d.stop_id
    ORDER BY source_header_number, source_line_number
    OR
    initial_pickup_date is what goes to update the order lines as actual_shipment_date and is indexed.
    SELECT b.NAME "Org", source_header_number "Order Number",
    source_line_number "Line Number",
    TRUNC (last_update_date) "Last Update Date"
    FROM wsh_delivery_details a, hr_operating_units b,wsh_delivery_assignments c,wsh_new_deliveries d
    WHERE released_status = 'C'
    AND oe_interfaced_flag = 'N'
    AND TRUNC *(d.initial_pickup_date)* BETWEEN TRUNC (SYSDATE - 10)
    AND TRUNC (SYSDATE - 1)
    AND a.org_id = b.organization_id
    and a.delivery_detail_Id=c.delivery_detail_id
    and c.delivery_id=d.delivery_id
    ORDER BY source_header_number, source_line_number
    Thanks
    Nagamohan

Maybe you are looking for

  • Downloaded iTunes 11 and now none of my song files can be "located"- suggestions?

    I just updated my iTunes to the newest version; my entire library shows up, however, when I click on any of the songs, a message appears that says that the original file cannot be found. I've searched through all my folders and can't find any trace o

  • This Question is related to IDOC , that how to modify the existing IDoc

    hi All, am getting some problem that , i have created the IDOC for sales orders by using (ORDERS), so i was able to create IDOC,but my requrement is to modify the exising IDOC. how i can go through?. what are the F.M to use?

  • Identifiers in Communication Channel

    Hi guys! We try to configure a B2B scenario with identifiers, however, have a troble. We have created a party to who messages will be sent. Also added their Business System. In the Party we have configured a new Identifier (for seeburger as2). I supp

  • Why does jitter graph smooth out when we add Codec to IP SLA

    We use NetQos to monitor jitter, delay and MOS.  On a single tunnel, we have three IPSLA measurements, one with the defaults, one with ToS=184, and one with ToS=184 plus Codec=g711alaw.   The bona fide data traversing the link is time sensitive, but

  • Can I temporarily disable a schedule?

    Hi, I wish to temporarily disable a backup schedule. I do not want to remove the schedule or triggers associated with the schedule. I wish to handle the situation where a host being backed up is not available and I do not want the Admin server to com