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 ?

Similar Messages

  • AR Invoice Presentation / Invoice Lines diff than Sales Order Lines

    Hi,
    Due to business rules I got the following requirement, I'd like to get advice or second opinions please:
    Instead of showing 200 lines we want to show 1 line in the invoice summarizing the job done.
    The requirement is:
    The invoice should summarize the Order Lines, meaning that we want to have different lines in the invoice than those in the orders composing the invoice. The total amounts must equal between both, the invoice and the orders lines been invoiced.
    For example:
    We need to create an Invoice for 2 Sales orders with 10 lines each, each line for $1 usd.
    The invoice could be in any of these situations:
    - Having only one line composing the 2 orders. The invoiced amount is $20.
    - Having 2 lines composing the 2 orders. The invoiced amount is $20 ($10 line 1, $10 line 2)
    The description on the invoice lines must be completly open.
    Internaly, the link/reference between the invoice line and the order line(s) composing it must be kept.
    This must work with 1 or more Sales Orders (partial or complete)
    Can be done via autoinvoice or not. (The user is able to compose and reference the invoice manually)
    ¿Is there already something done that I can use? Just point me on one direction and I'd be happy to investigate.
    I already have 1 or 2 ideas of how to achieve this without customizing at all.
    Just wanted to check and get advice and second opinions on this before taking a decision.
    Technical Spec:
    Oracle EBS 11i (11.5.10.2)
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Thanks in advance.
    Juan Alcocer

    seems to error
    APP-AR-11526
    ORA-28115
    seems the security policy is implemented at your database leval and check which ID you are using to insert the record.Check with your DBA, for security to resolve first for ORA-28115.
    Disabled in case if you have any custom triggers defined on RA_CUSTOMER_TRX_ALL.
    Few Documentation for ORA-28115
    ORA-28115 with EXEMPT ACCESS POLICY privilege
    A user USER1 has been granted select, insert, update, delete on all
    tables of an application schema (USER2) that uses row-level security.
    The RLS policies cover select, insert, update, and delete, and have check option enabled. USER1 has also been granted EXEMPT ACCESS POLICY system privilege.
    Each table in the USER2 schema has a trigger that causes insertion of
    a row into an audit table whenever DML is performed. When USER1 performs DML on a USER2 table, the operation fails with

  • Help required in identifying Line Charges in Sales Order Lines

    Dear All,
    I want to know the column or calculation used for retrieving Line Charges present in
    sales order->Line_items->Pricing tab.
    Thanks and Regards,
    Mahesh

    I got the solution . We can get the line charges column as (requested_quantity*unit_selling_price)/33.33.
    Thanks and Regards,
    Mahesh

  • Line Numbers in Sales Order Lines

    In a Sales Order, my line items are shown as 1.1, 1.2, 1.3, 1.4 , 1.5 & 1.6
    but my select returns line_number = 1
    select line_id,line_number from oe_order_lines_all where header_id = 6250
    and the result is
    Line_id Line_number
    5428 1
    5429 1
    5430 1
    5431 1
    5432 1
    5433 1
    how would I write a generic decode to show the line_numbers as 1.1, 1.2, 1.3 ....

    .. or dense_rank() ? :
    SELECT line_id,
              line_number
           || '.'
           || DENSE_RANK () OVER (PARTITION BY header_id ORDER BY header_id)
                                                                      line_number
      FROM oe_order_lines_all
    WHERE header_id = 6250

  • How update amount of charge line for a sales order  line id

    I have a modifier which are qualified for a order line id, i want to update the amount of charges if the Shipping date is > 1 day than resquest date, as I do not have the advances pricing module so i have to do a customization for this condicion.
    I want to now how to update these, Does exist a API in order to do that ? or Can i go directly to oe_price_adjustments table and modify the data ??
    Thanks
    Fernando

    Hi Fernando,
    I'd probably do this in Adv. Pricing using a dynamic formula + factor list (two diff charge levels dependent on schedule ship date minus request date) against a booking event modifier. Obviously, you don't have dynamic formulas in Basic Pricing but could you handle this via creating a new pricing attribute? The charge levels could be maintained on a lookup rather than hardcoded and used in the calculation by your new pricing attribute.
    Whatever approach you go for would also need to cope with the scenarios that you either rescheduled the order or manually amended the request date because obviously the gap between request date and SSD would change.
    Your first suggestion is feasible, the second not a good move - I'm not sure how much it costs to licence Adv. Pricing but you could always offset the cost against the cost of developing and maintaining a custom update routine.
    Regards,
    Jon

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • Quantuty on the Sale Order line item

    HI,
    Can anyone suggest how to control the Quantity on the sales order line item.
    Sale order line item should not be reduced below the delivered or invoiced quantity. For EX:Sale order line item 10 has 200kgs,delivery quantity created aganist that order is 100kgs, now the system should not allow us to change the sale order line item quantity below the delivery quantity i.e 100kgs.
    Thanks in Advance.

    In the transaction OVAH, for the message class V4 and message number 083, in the category column, change the entry from W to E. Then system will issue hard error when you change the order qty to below delivered qty.
    Regards
    Sai

  • Link between OrderDetail and SBO Sales Order Lines

    Hey All,
    can anyone tell me how I can tell which order detail records are linked to which SBO sales order lines? I know I can find the sales order based on the synch id in the ordermaster table. But I don't see  a link between the child orderdetail table and RDR1 in B1.
    Any ideas?

    Hi Curtis,
    This is actually a bug.
    (Fixed in sp1--release date who knows when)
    Way back in the olden days, Webtools (NetPoint) did not allow the same item on multiple lines, so synchid, partno was a unique key.
    When this changed in 5.96, no synchid was added to the orderdetail, resulting in a bug if the following happens:
    1.  order is created in Webtools with the same item on multiple lines
    2.  order is synchronized to B1
    3.  order detail data is editted on the duplicate items
    4.  synch back to Webtools
    The line item data may be incorrect on the duplicate items
    So, the moral of the story is, your best bet is a compound key of ordermaster.synchid/orderdetail.partno-->rdr1.docentry/rdr1.itemcode.  But be warned that there could be synch issues if you end up in the above scenario.

  • Sales order no and line item no in account assignment tab of line item no.

    Hi All,
    When we display a sales order and go to line item --> Account assignment tab --> we can see sales order no and line item no in that screen. We want to know from where this existing no. in that field is populating from.
    We want to know this as we want to check feasibility of changing sales order and item no to maintenance contract no and line item no. ( Maintenance contract we have to pick from notification)
    If anybody has any idea about this do let me know as this is urgent requirment.
    Effort will be rewarded.
    Thanks in advance.
    Edited by: Satish Bharambe on Jul 4, 2008 10:38 AM

    Hi Satish,
    You mean Accounting assignment tab-->In Settlement rule details
    If yes the order number which is coming in that field Sales order and for which sale order you are looking that details both are the same numbers(i.e Nothing but sales order number).
    When you create sales order system will give number of the sales order the number will come in this place.
    I hope it will help you,
    Regards,
    Murali.

  • External system Sales Order no and Line Item no in to BAPI_HU_CREATE

    Hi Friends
    Packing is done and Handling units are created in External System.
    For this requirement SAP ECC has to update Handling Units creation and  Materials Packing in to HU with reference External System Sales Order no and Line Item no.
    Could you please advice how & where to input External system Sales Order no and Line Item no in to BAPI_HU_CREATE Function Module while creating Handling Units in SAP ECC system.
    Thanks in Advance.
    SR

    Hi Guru
    Please help on this requirement.
    Thanks
    Ravi

  • MIGO-sales order number and line item not validated for 501E mvt in MIGO.

    Hi All,
    In MIGO i am trying to post for 501E(specisl stock=order on hand) movement type, here i am entering the material and in the where TAb even if I enter wrong sales order number or wrong sales order line item number. the system allows to post .
    its not validating the material against the sales order number and line item number that is entered to check whether that material really exists in that particular sales order or not.
    is there a way to fix this?
    Thanks
    Mahendra

    hi
    i dont think vvalidation is possibel
    as the system dont know whaich material is assigned to which SO
    as we r takeing the stock without PO
    if u want to validate then system can validate the quantity that is also with use of some user exit
    correct me if i am wrong

  • VA01 Sales order (line items) and different Cost center assignment

    Hello gurus,
    im searching for solutions how to assign different cost center to sales order line items, but only thing that i found is the substitution (Using Substitution (GGB1) to change Cost Center assigned in (OKB9))
    Trying to do this i was unable to create something that could work, since there was no Logistic.
    Could somebody explain me the Line item in SO assignment to Different cost centers?
    I know alot about OKB9, VKOA and other transactions, but still cant find anything suitable to solve this issue
    Best regards
    Laurynas

    What i mean is that, on the end of every month we are gathering information for Statistical Key Figures (from Controlling) entering as CO document and then distributing the costs using KSV5 TC on Internal Orders according those entered statistical key figures.
    i.e. we got INCOME 1000000 from 10 internal order, which we distribute on even percentage parts like 10 cost center, each getting 10% of the income.
    I tried to create the SO, but the Profit center field, after i entered a number, was changed automatically into another.
    And the posting didnt reach Controlling and the assigned Cost center. I think it is a lack of configuration.
    Regards
    Laurynas

  • EDI sales order line items that can not fulfilled and completed.

    Dear all,
    My requirement
    I have multiple EDI customers that send in orders daily where their requirements is that if the ordering item qty can not to fulfilled on the day then the line item in question on the corresponding created sale order needs to be automatically rejected along with a suitable and descriptive reason code.
    I'm looking to have this a seamless as possible and don't want to have the user manually review stock, edit sales orders or ATP check as they do now
    I've looked at the partial delivery settings on the customer master and customer item but I think this just warns that the customer requires complete deliveries.
    I apologise now as SD is not my thing, but if anyone has seen this situation before or has a standard solution I'd be grateful?
    Rgds

    Hi Braven,
    Ram has given good suggestion. I would like to add on it.
    If the quantity is not availabe put a reason for rejection , this is fine. But we dont need to create a new line item.. right.
    Because this way it will pile up line items in sales order..
    Instead put the logic in such a way that, when qty is not available put a rejection.
    If qty is partially availabe, then process the qty and create a new line item for the remianing qty. ( this is ofcourse if the customer agress on partial deliveries ).
    The above is on assumptions that your users review orders which are on rejection and process further.And other assumption is your customer agrees on partial deliveries.
    This is how we mapped in our system.Hope it helps.
    Regards,
    SB.

  • How to cancel the sales order - header and line status are in Entered Stage

    Dears,
    I have some sales order to be cancelled in which the header and line status are in *"Entered"*. I am not able to cancel these sales order.
    Also note that these orders are for maintenance service.Once i book these orders the lines will change to closed status.
    So it is not possible to book and cancel the lines.
    Kindly me to resolve this.

    926530 wrote:
    Boss,
    If i do Action-->cancel on header, it just makes the qty to zero.But the header and line status still showing as entered.It will not cancel the order.
    The problem for me is that these lines are coming in my monthly reports. This is what your question says...be more specific as what is your issue..which in turn is your problem
    How to cancel the sales order - header and line status are in Entered Stage
    Coming to your Action-->cancel...as far as i know ...the header status will change to canceled..
    unless until you have some processing constraints in place...which is stopping you...
    HTH
    Mahendra

  • Sales order doc and item fields in customer line item report(FBL5N)

    Hi All,
    We have some billing documents and the accounting docs are created as well. However, in the FBL5N report, we are not able to display the sales order doc and item info even though the columns are avaliable in the layout.
    Anyone can help?
    Thanks,
    Teo

    Hiya,
    You said you had the Order/Sales Doc field on the layout already.
    Have you ever been able to view the Order? All I can view is the Billing Doc, and I would think that is logical, since the Order is not the immediately prceeding document for the Accounting Doc. The Accounting Doc is created off the Billing Doc and that is what is updated in BSEG. The Sales Order is not updated in BSEG (I haven't seen that happen).
    In the event of a GR into stock posting, the Product Cost Collector or PO is the immediately preceeding document and hence updated in BSEG.
    Cheers.

Maybe you are looking for

  • Mid 2012 13" Macbook Pro Windows 7 Professional 32bit, which Boot Camp Drivers?

    Hi, I've managed to partition my Hard drive, assigning 100GB to the Windows Partition. I've installed Windows 7 Professional 32 Bit SP1 and have managed to install MS Office 2007 (I've not installed any other updates as I can't connect to the interne

  • (com.apple.collabd[15483]): Service setup event to handle failure and will not launch until it fires.

    Hello, I am fairly new at Xserve administration, but I got thrown in the fire and i need your help. My system.log is being hammered with this error: (com.apple.collabd[15483]): Service setup event to handle failure and will not launch until it fires.

  • Can't add my class into example project

    my class is in the workspace the project tree with the same package(in code first line is "package xxxx;"). When I instatiat it, it is not red color, it always occure compile error: idendifier xxxx not found in the class(other class in the same pakeg

  • Restored a Library folder from 2 years ago

    Hello, In a desperate attempt to fix somtehing that was ultimately not fault of my macbook pro in any way, I decided to restore an old library folder from when I used Snow Leopard (now I'm using Mavericks) 2 years ago with time machine, The question

  • Ant task wlserver

    Hi, i try to use a wlserver task in my maven plugin : <ant:wlserver dir="c:/myDomain" host="myHost" port="7005" username="name" password="pwd" action="start" verbose="true" domainname="msl" servername="AdminServer" beahome="C:/bea" weblogichome="C:/b