Sales Order is closed, but supply/demand screen shows it as a demand

Hi folks,
I have peculiar issue here,
My Item on a sales order is shipped out, but it is still showing as a demand in the supply/demand screen in the inventory.
It is of Demand Type 'Purchasing Supply reservation'.
The supply/demand screen can be accessed through inventory responsibility --> onhand availability --> supply/demand.
The item in question was a buy item and no purchase order was raised as the stock was available.
The inv_interfaced_flag in oe-order_lines_all shows as 'Y' and i ran the following query to find out if the interface is successful. The line shows as successfully interfaced.
I am not able to get the interface trip stop log file for this delivery as the concurrent request table has been purged.
select stp1.stop_description, wdd.oe_interfaced_flag, wdd.inv_interfaced_flag,
decode(stops.pending_interface_flag, NULL, 'Not Pending', 'Y', 'Pending', stops.pending_interface_flag) pending_interface_flag,
wdd.source_header_id, wdd.source_line_id, assign.delivery_id, assign.delivery_detail_id,
deli.name deli_name, deli.status_code deli_status,
legs.pick_up_stop_id,legs.drop_off_stop_id,
stops.status_code trip_stop_status,stops.actual_departure_date,
trips.name trip_name, trips.trip_id,trips.status_code trip_status
from apps.wsh_delivery_details wdd, apps.wsh_delivery_assignments assign,
apps.wsh_new_deliveries deli,apps.wsh_delivery_legs legs,
apps.wsh_trip_stops stops,apps.wsh_trips trips,
apps.oe_order_headers_all ooh, apps.WSH_SRS_TRIP_STOPS_V stp1,
apps.oe_order_lines_all ool
where wdd.source_header_id = ooh.header_id
and ooh.header_id = ool.header_id
and ool.flow_status_code = 'CLOSED'
and wdd.delivery_detail_id =assign.delivery_detail_id
and assign.delivery_id = deli.delivery_id
and deli.delivery_id=legs.delivery_id
and legs.pick_up_stop_id = stops.stop_id
and stp1.stop_id = stops.stop_id
and stops.trip_id = trips.trip_id
and ooh.order_number = '1055609'
--and nvl(inv_interfaced_flag, 'N') <> 'Y'
and ool.line_id = 14783736
order by assign.delivery_assignment_id, assign.delivery_id, assign.delivery_detail_id;
Your help in this regard is highly appreciated.
Regards,
Prasad

Check in the Material transactions form if 3 transactions i.e. 2 recors for sales order pick and 1 for sales order issue is happend or not..and also check if the respecitve records exist in MTL_RESERVATIONS and MTL_DEMAND.
If everything seems to be perfect, then need to log and SR with oracle to provide the data fix in order to delete the records from MTL_RESERVATION and MTL_DEAMND.
Thanks,
Raghav
Edited by: user10541272 on Jul 2, 2009 4:51 PM

Similar Messages

  • Query needed to find what time a sales order was closed

    Hi to All,
    Need to find when a sales order was closed. Meaning the exact time. I know the flags that needed to be considered. But what table/column holds the exact time that the sales order was closed.
    Thanks

    If your workflow process details are not purged below query end_date will be order closed date.
    select a.instance_id
    , to_char(b.begin_date, 'DD-MON-RR HH24:MI:SS') begin_date
    ,to_char(b.end_date, 'DD-MON-RR HH24:MI:SS') end_date
    , a.process_name process
    from  wf_process_activities a, wf_item_activity_statuses b
    where b.item_type        = 'OEOH'
    and   b.item_key     in (select to_char(header_id) from oe_order_headers_all where order_number = <Ordrer_num>)
    and a.process_name = 'CLOSE_HEADER_PROCESS'.
    and   b.process_activity = a.instance_idIn R12 if you do not have any customizations ,
    Current close process defines wake up time as last day of month, there is no time component.
    So order will be eligible from midnight of the last day of the month.
    First run of Workflow background process program for item type OEOH should be closing them.
    For example : If the Wait activity in 'Close - Order' process encountered first time on 09-May-2013(Any time in the month of May), then Wake up time will be last day of current month I.e. 31-May-2013 00:00.

  • When is a Sales Order considered closed on the system

    Hi,
    At which point does the system consider the Sale orders are closed:
    1. When the delivery document is created?
    2. When the billing document is created?
    3. When the customer's account uis posted to the Account Receivables?
    If you were to check for open or closed Sales Orders, would you check the line item status or any of the specified 'When' stated?
    Is this SAP standard configuration or it depends on the SAP clients' requirements?
    Thanks

    Dear Yosemite Sam,
    At which point does the system consider the Sale orders are closed:
    sales order is considered to be closed, when the total order qty is completely referenced
    i.e,completely delivered if there is delivery
    or
    completely invoiced if its a service order
    If you were to check for open or closed Sales Orders, would you check the line item status or any of the specified 'When' stated?
    if a line item is completely referenced, it does not mean that the order is completed.
    The sales order is complete, if all the line items are completely referenced.
    Hence you may take the header status for completion.
    TABLE : VBUK
    Is this SAP standard configuration or it depends on the SAP clients' requirements?
    It is SAP Standard.
    NOTE:There will be threads on this, hence please search the forum before posting your queries.
    Thanks & Regards,
    Hegal K Charles

  • Sales order related invoice but invoice can generate only once PGI is done.

    Hi All,
    I have situation in project, we have to generate sales order related invoice. but Invoice should only get generate once delivery, Shipment and PGI is done.
    My Qus are listed below?
    1. Is that possible in Standard SAP?
    2. Is it possible by using any user exit?
    we don't want to do any Z thing in our project, so please suggest how we should handle this situation.
    Thanks & Regards,
    Sulabh

    Hi Prasanna,
    My client is a luxury car maker in UK and its complete make to order scenario.
    I have doubt
    1, Suppose Customer is ordered 100 PC , Suppose end user Trying to Raise the Billing based on the Order but system should check Delivery means PGI is done Or not , in that case supose Delivery is Done 50 PCS But at the time of Billing how you Come to know that Delivery is Happened 50 PC then again you back and See the Document flow of the Sale order
    *I my case there will always be one material with 1 quantity. so no issue of partial delivery*
    2. Same customer is ordered Multiple SO , at the time of Delivery You combined Multiple Sale Orders and Done the Partially Delivery and How come to know each SO Partially Qty that means Again you have to check
    There will not be a case of combined delivery also.
    3. IF Partially Done in Delivery level for Multiple SO , how can you raise the Partially Qty of those SO for Billing
    Thanks & Regards,
    Sulabh

  • HT4623 help me to troubleshoot my ipad2 there is software update and i updated mine from 5.0 to 6 version but now the screen shows only usb cord arrow up sign then itunes and music logo. it has been like this since last night.what i will do?

    help me to troubleshoot my ipad2 there is software update and i updated mine from 5.0 to 6 version but now the screen shows only usb cord arrow up sign then itunes and music logo. it has been like this since last night.what i will do?i even tried turning it off but it doesnt work too. i only see the apple logo and it comes back to cord image and itune then after 30 secs the screen turns black. help me please.

    The iPad is telling you to connect your iPad to iTunes on your computer so do it. You may have to restore the device.
    Restoring iOS Software.
    http://support.apple.com/kb/ht1414
    You may need this as well.
    Unable to update or restore iPad.
    http://support.apple.com/kb/ht4097

  • Offer is not closed even if subsequent sales order is closed

    Offer is created and with refence to it sales order is created. Sales order is completeley processed, but in the offer the refence status is still A(not processes) and result of it the offer is still open. Can anybody guide as to how the offer is still not closed.

    Hi Genia,
    here i'm attaching the screenshots of current stock
    as per the stock, if i order some stock less than 16,664, it should get confirmed. i cross checked, here no safety stock ,planned date, delivery date issue. it should get confirmed today itself
    but as per the above screen shot it pulling by almost 5 months...don't know why

  • Sales order driven PO but a non third party scenario

    Hello All,
    Trying to work through a scenario which is as follows:
    We are doing a VMI like scenario. Customer sends requirements and a legacy planning system sends the  PO to ECC which sends it to the supplier on behalf of the customer. However unlike a true VMI where the product directly goes to the customer's warehouse, it comes to our warehouse we accept possession into our inventory and then ship it back to the customer (Sometimes it a cross dock -does not come into our warehouse and sometimes its same way shipping -receive in morning, putaway and then ship in night). We are invoiced for the product and we pay the supplier and then bill the customer for this. So, it seems to involve Sales order, billing and also purchase order and invoicing. However its not a third party process where there is a statistical GR. I am thinking the process should be as follows
    1. Sales order and delivery created in ECC
    2. Trigger a PO based on step 1 and send to vendor in  ECC
    3. Receive ASN from supplier in ECC and send it to WM system.
    4. Receive the product in WM  and complete GR for the PO in ECC
    5. When the GI is done to ship to customer's warehouse then do the PGI for sales order in ECC
    6. Create Billing document in ECC.
    Seems fairly straight forward but here are a couple of hitches
    1. How do I maintain relationship between SO and PO because its not a third party order
    2. Can this process  be enabled through just config and not use customization (Like triggering a BADI to create a PO after Delivery creation -step 2 above)
    I am not very familiar with SD, is there a custom config that I can do to  link the sales order and PO through an item category like a third party order but also have the ability to post GR to my inventory?

    There's a standard SAP solution to order goods in relation to a specific sales order (item) and receive them to stock. It's called "individual purchase order" in SD..
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm?frameset=/en/dd/5601d4545a11d1a7020000e829fd11/frameset.htm&current_toc=/en/70/a7853478616434e10000009b38f83b/plain.htm&node_id=186
    Please note that this is an MTO scenario (the purchase order is assigned to the SO item, the stock is posted to sales order stock).

  • Sales Order Geting Closed

    Dear Experts
    I have a scenario .
    My Sales order is getting closed automatically i am not able to find out why this is happening and how it is happening .
    It is showing a particular user as the person who has closed the document . But the user does not have the said rights to close that document. How does this happen
    My client is using 8,81 pl00
    regards
    sukumar

    Hi Sukumar..........
    I think this is purely a setting issue.
    Please check that I suggest you.
    Go to Administration> System Initialization> Document Setting> Per Document Tab> Select Sales Order in Dropdown box.
    Please check whether Sales Order Approved tick box is Ticked or not.
    If it is unticked then this might be the reason......
    Please Tick it and then see by adding a sales order.........
    Regards,
    Rahul

  • Create sales order thru BDC but having problem with ZF partners

    I have a problem on the bdc program to create sales order with ZF partners.  When my users create sales order, they choose 'X' when the system pop up the zf partner screen,  the system will not create the ZF partner.  But when I run the bdc program without ZF partner, the system did not pop up the zf partner screen and allow me to run thru the whole creation process. But when I check the sales order it will pick up a default ZF no from customer master.  Is there anyone know how come the on line creation of sales order behave differently in BDC.

    I have a problem on the bdc program to create sales order with ZF partners.  When my users create sales order, they choose 'X' when the system pop up the zf partner screen,  the system will not create the ZF partner.  But when I run the bdc program without ZF partner, the system did not pop up the zf partner screen and allow me to run thru the whole creation process. But when I check the sales order it will pick up a default ZF no from customer master.  Is there anyone know how come the on line creation of sales order behave differently in BDC.

  • Sales Order is cancelled but  still 1 sales oder item is  showing in MD04

    Hi,
    I have created one Sales Order. Due to some reasons i have cancelled that sales order. Out of 5 sales order items 1 item is still showing in MD04.
    I dont understand what has happened.
    Please guide me on the same.
    Regards,
    Amit

    Hi,
    Try to run report SDRQCR21 and have look at sap note 25444
    You run the report in transaction SE38.
    This should normally be done by your consultant
    You can display a SAP note at http://service.sap.com/notes but you need a user and a password.
    Regards,
    Sankaran

  • Create delivery automatically when sales order is created but not invoice??

    Hi,
    I have a requirement where in, it should create delivery (also issue) automatically when i create sales order, but it should not create the invoice automatically. I am going to do the invoice manually from the delivery document. Can you suggest me how to do this??
    Thanks
    Ghanesh

    Hi,
      If the sales document type is not relavant for Cash sale and the document type is used globally in the business then if for some specific conditions like distribution channel or plant or for division if u want to carry out the immediate delivery creation and PGI, use the below user exits and Bapi's
    The below user exit is used to export the sales order details to capture the required checking cond such as sal org,dist ch,div,plant,etc
    Include MV45AFZZ
    FORM USEREXIT_SAVE_DOCUMENT.
    Include MV45AFZA
    FORM -USEREXIT_REFRESH_DOCUMENT.
    BAPI_ISAORDER_GETDETAILEDLIST
    BAPI_OUTB_DELIVERY_CREATE_SLS
    SD_DELIVERY_UPDATE_PICKING
    BAPI_OUB_DELIVERY_CONFIRM_DEC
    Regards,
    Gopal.

  • Sales order already shipped but still open in VL10A

    Dear All,
    As mentioned above, we already created the shipment for a specific sales order but in VL10A the sales order is still in yellow status (meaning it is open). But the sales order cannot be shipped anymore...
    Is this a standard SAP bug? What table should be cleared if shipment has already been cretated so VL10 will no longer see it as open?
    Thanks in advance.
    dens

    Hello,
    We already found out the cause of the problem. VL10A is cheking in table VEPVG if there are still entries there and if so the sales order will still be shown as open in VL10A. The SD document index should be re-organized by program RVV05IVB.
    But why it only started to happen this week is another question that is left for us.
    Anyway thanks for your help.
    Cheers!

  • Sales order in cube but no shipping information

    SDN,
    If i'm having sales oredr information in cube but no shipping information at container level then how can I relate this information with sales order
    So that I'll get single record where in against sales orde i'll get shipping information
    runbane

    My level of data is container level handling unit level.How could we find that?I dont think that is part of standard extractor.
    But my question is how we can link this with sales orde whcih is already there in BW
    r

  • Sales order is deliveried  but stock is negative

    dear expert:
    the stock value of  sales order is negative ,because the goods is post twice,i donn't know what' cause of question  .in schedule line of sales order ,order quantity is 1, confirmed qty 1,deliveried qty :2.
    so mska-KALAB is -1.
    please help me analyse it .
    best regards

    Dear Wang
    First check in OMJ1 whether the plant is allowed to post negative stocks.  There the box should not have been checked.
    Then go to 0vlp (zero VLP), select your item category and maintain "B"  for the field "Check overdelivery"
    thanks
    G. Lakshmipathi

  • In return sales order(va01)  return amt value is not showing plz help

    DEAR,
    Issue : When Sales Order, Delivary, Transfer Order, Billing is created by one user , and if the same user creates Sales Return Order(VA01) it is working fine. But if any other user creates this Sales Return then it is not showing Sales Return AMOUNT value which has to be copied from the Billing Dcoument.
    This Sales Return transaction calling Form Routine which contains code to get Sales Return value . when same user who created Sales Order, Delivary, Transfer Order, Billing creates Sales Return then SPA/GPA PARAMETERs used in Form Routine program to get Reference Billing Document no.,etc , are getting populated by values , but if different user creates Sales Return this SAP/GPA PARAMETERS is not getting populated. i.e
    DATA V_VBELN TYPE VBELN.
    GET PARAMETER ID 'VF' FIELD V_VBELN .
    why it is not getting populated plz help

    Hi,
    When you create a return based on a complaint, you:
    Post the goods to your warehouse for checking
    And then, implement one of the following activities:
    Approve the complaint and create a credit memo
    Approve the complaint, and implement a free of charge subsequent delivery based on the return
    Reject the complaint
    Process Flow
    You create a sales document with the order type for returns. You can create the return in one of the following ways:
    – Without reference to an order
    – With reference to an existing order
    – With reference to an invoice
    You can block the return in Customizing, so it is not invoiced. Go to Sales - Sales Documents - Sales document header - Define sales document type in the billing block field in the billing section.
    If the returned goods are sent to your warehouse, create a delivery (returns delivery) with reference to the return.
    The goods issue posted for the returns delivery matches the goods receipt to your own stock.
    After you have checked the goods, you can implement one of the following activities for the complaint:
    Approve it by deleting the block reject it by entering a reason for rejection.
    The quantity for which the customer should receive credit.
    The order quantity rather than the delivered quantity is used as the basis for the credit memo.
    If the customer returns only some of the goods and disposes of the remaining goods himself, you can still create a credit memo for the full amount.
    On the other hand, you can create a partial credit memo for certain items even if the customer returns the entire quantity. To do this, the quantity to be ordered in the return has to be reduced to the quantity to be credited.
    Whether the customer should receive a replacement.
    If the customer is to receive replacement goods, do not create a credit memo.
    You can enter a reason for rejection for the appropriate items in the return. You then create a free of charge subsequent delivery with reference to the return in order to send the replacement goods to the customer.
    regards,
    Siddharth.

Maybe you are looking for

  • Using HAL to extract and then load metadata

    hi! We are designing a process in which HAL is used to extract a dimension from Essbase and then loaded to another application using a load rule. We are struggling with our attributes extraction, we have multiple attributes to an entity and when we e

  • Pages online when dbms down

    Hi, I would like to have the possibility to check if the connection with dbms is available and then if dbms is down to ridirect page to a static web page. Could someone give me an advice on what is the best solution for that using htp package or java

  • IPhoto keeps crashing on slideshow

    I'm trying to make a slideshow of an album containing about 70 photos... Everything worked just fine until I changed the album name and moved some photos around... When I click "slideshow" the screen goes black, stays that way for like 2 seconds, and

  • Issues with IN clause...

    dear all, I have following piece of code as shown below, as i have written CREATE OR REPLACE Procedure p_test As v_pamlg_plots_oprn1 Number := 1001; v_pamlg_plots_oprn2 Number := 1011; v_pamlg_plots_oprn3 Number := 1100; v_pamlg_plots_oprn4 Number :=

  • Airport Extreme? Or not? No clue!

    My mom has a Dell PC, running Windows XP. She has DSL service, and we have attached and configured a Linksys Wireless - G Broadband Router to her computer. I have a 1 GHz eMac G4 running OS 10.3, on the other side of the house. We are trying to hook