Sales Orders :: OpenSum differs from OpenQty*Price

Hello all,
Creating a backlog report for a customer, I've found that, for partially delivered Sales Orders rows the OpenSum = LineTotal when, in my opinion, it should be OpenSum = OpenQty x Price.
Can anyone confirm what should be the correct value of the OpenSum field?
I've found no other post or SAP Note mentioning this issue.
You can use the following query to search for "problematic" records.
SELECT     T0.DocNum, T1.VisOrder, T1.OpenQty, T1.Price, T1.PriceBefDi,
          T1.PriceAfVAT, T1.OpenSum, ROUND(T1.Price*T1.OpenQty,2) AS 'Price*OpenQty',
          ROUND(Price*T1.Quantity,2) AS 'Price*Qty', T1.Linetotal
FROM     ORDR T0 INNER JOIN
          RDR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE          T1.OpenSum <> ROUND(T1.Price*T1.OpenQty,2)
          AND T1.LineStatus = 'O'
Kind Regards,
Vítor Vieira

Hi,
It seems that the issue is only appearing for the partially copied document. When the document is fully copied, then the value is updated to the correct values.
Same results from following query as well :
          select opensum, openqty,quantity, * from RDR1 where Quantity <> OpenQty
          and openqty <> 0
Kind Regards,
Jitin
SAP Business One Forum Team

Similar Messages

  • Sales order with differing order UoM and pricing UoM

    Hi
    I need to create a sales order where the unit of measurement for the ordered quantity differs from the unit of measurement in the pricing condition PR00. This works fine if you have a fixed conversion, because you can simply set up the conversion in the material master of the sold material. My problem is that this conversion is flexible and can be changed by the sales representative. How do I do this? I remember that this isn't a problem at all in MM-purchase orders, you simply enter the conversion in the conditions tab directly. That doesn't seem to work in sales. Any hints?
    Example for spreading services for farming.
    Sales order for service "spreading", order qty = 17.600 HA, price = 21.00 GBP per 1 KGH (kilogram per hectar), conversion = 17.600 HA = 723 KGH if 12.720 KG of fertilizer is spread on the field. Problem is that tonnage and the field size are changeable. As well the theoretical application rate of 723KGH can be overwritten manually as required.
    thx
    Bj

    Make sure the quantity conversion flags are checked, and then allow manual condition processing.  This should open up the fields to allow for manual adjustment of the quantity relationship.
    You will still need to maintain a default UoM ratio that will be proposed on the sales order, but that relationship will then be able to be changed at order entry time (or after save in change mode).
    Bill Wood

  • How to upload Sales Orders into B1 from an excel file?

    Hi,
      I'm a new comer. I'm looking for a program of uploading Sales Orders into B1 from an excel file. Where can I find a reference book for it? Or I appreciate if someone could offer a program sample.
      Thanks
      ZAP

    Hello ZAP.
    I do not have such code, but i this link /people/janos.nagy/blog/2010/01/25/exporting--importing-authorization-using-ms-excel-in-sap-b1 you can find an excel example about authorization, and using Single Sign On (SAP B1 must have run with excel)
    The method is similar, you can run any DI API operation from excel.
    Here is an example to add a sales order
    Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDoc.CardCode = CUSTOMER_CODE
            oDoc.DocDate = Today
            oDoc.DocDueDate = Today
            oDoc.Lines.SetCurrentLine(0)
            oDoc.Lines.ItemCode = ITEMCODE
            oDoc.Lines.Quantity = QTY
            oDoc.Lines.UnitPrice = PRICE
            If oDoc.Add <> 0 Then
                MsgBox("Error " + oCompany.GetLastErrorDescription())
            Else
                MsgBox("SAles order added")
            End If
    You can repeat the setcurrentline section as many time as lines you have in the SO:
    Regards,
    J.
    Ps: Reference: SDK help and sample programs, which included in every patch.
    Edited by: János Nagy on Feb 10, 2010 9:50 AM

  • Transfer posting to special stock sales order with different material

    I am able to MB1B a material  (Transfer posting) using mvt 412 E and transfer from own stock to sales order stock ,where Sales order belongs to a different material.
    It should not allow posting to a "E" stock to a sales order of different material. (anyway system allows that without any warning/error?)
    MB1B:Only stock type change (within same storage location).

    Hi ,
    I tried replicating your Query and observed it as a standard Behaviour
    When you use 412 E  for posting stock to sales order , system is not validating whether the Material is available in Sales order or
    Material Check is only happening against the Plant and storage location but not at sales order level
    if you want the check to happen, may be you can try to put a code in this Include
    MGV_MATNR_LAMA_SAPLMATL which will Read the Material
    regards,
    santosh

  • Sales order with different Distribution channels

    Hi experts,
    how can i create a sales order with different distribution channels.
    I mean item level 10 = one distribution channel.
    Item level 20 = another distribution channel.
    also in Item level 30 also.... is it posible .?? how can i create ??
    because we have the material in different distribution channel in differen plant with different price ..
    Thanksin Advance,
    Anthyodaya.

    Hi Anthyodaya,
    As already answered by others, the distribution channel is only on header level(VBAK), so it is not possble to have different distribution channels in one sales order.
    Could you please consider using different division?
    Item division could be different than header.
    Go->item->Sales B->Division
    Hope it helps.
    Best regards,
    Smile

  • Fetch Sales Order number VBELN from Purchase requisition number BANFN

    Hi,
    I'm not able to find a suitable method to fetch the sales order number(VBELN) from the purchase requisition number(BANFN).
    I tried using VBEP table to fetch the data, but it is giving serious performance issues, as in for fetching one record it is taking approx 20 seconds!!!
    Kindly suggest a suitable method for this.
    I've used the query as folllows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    Scenario in brief described below:
    Whenever a direct delivery sales order is created on a supply chain plant, a dummy purchase requisition without source of supply is created automatically at preferred supplying plant for the customer in the sales order. Direct Delivery Sales Orders which are still in Open status and for the associated dummy purchase requisitions with these sales order, the deletion flag set has to be unchecked.
    in this case, only one sales order is created corresponding to a preq..
    BAPI: BAPI_PR_GETDETAIL is not giving entries for the table as this is a special case of direct delivery from the production plant directly to the customer, bypassing the warehouse / distribution center...
    selection screen has input fields preq, matnr(product) and plant. we fetch entries depending on the data filled in selection screen and also they should be of document type(BSART in EBAN table) ZDD1 and deletion indicator is set(LOEKZ in EBAN).
    then we check if the sales order corresponding to the preq is in open status...
    for this i need to programmatically fetch the sales order number corresponding to the preq...
    this is causing a performance issue as i could find only one way -- fetching sales order number from VBEP table corresponding to BANFN... indexing for easier also didnt work...
    no other way i could find to fetch sales order number corresponding to the preq number....
    there is a bapi: BAPI_PR_GETDETAIL, but this is not fetching entries to the changing tables related to sales order...
    also EBKN table doesnt have any entries as this is a special case of direct delivery preq..
    Guess i couldnt find anyother way...
    Thanks.

    I'm not sure as to why the select query was still throwing performance issues. I could see that the index had been created on only BANFN in the DB. Prior to creating the index, it was taking approx 20 seconds per entry, but after creating the index, it took 13seconds approx.
    I used the select query as follows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    I tried a few other combinations also, but  those also didnt work effectively:
    select vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    without using SINGLE in the select query as the select query would implicitly pickup only a single record,
    select vbeln banfn
    from vbep
    into wa_vbep
    where banfn eq wa_eban_zdd1_x-banfn.
    and another query where the INTO statement was directed directly to a workarea.
    But unfortunately, nothing seemed to be working.
    The index i had created was on BANFN alone in the VBEP table.

  • Sales Order schedule line from CN to CP

    Hi,
    When i  update the sales order schedule line from CN to CP , the quantity is not showing in the MDO4.
    Can any one help me.
    Thanks in advance
    Suresh S

    Once the schedule line category is changed to CP,  just hit the enter key and save.  Now check in MD04
    thanks
    G. Lakshmipathi

  • Single sales order to different ship to party

    Dear sd gurus very good mng
                         How to deliver single sales order to different ship to
    partys?
    thans in advance
    venu gopal reddy

    Hi Venu
    You have to create separate account group for Ship to Party customer XYZ
    Do the partner function determination & assign  SH for Ship to party customer
    Raise the sales order in VA01 & enter the Sold to Party Ex-  ABC & Ship to Party- XYZ
    Delivery will be done for the XYZ customer
    And also please check this below link it might be helpful for your issue
    http://forums.sdn.sap.com/thread.jspa?threadID=2081804
    Let me know if your problem is solved
    Regards
    Pradeep

  • Spare Sales order stealing stock from a Released production order

    Hi Gurus,
    This is not a new problem. I read the below link only a hundred time now.
    Sales order stealing components from Production order
    Business scenario-
    Top Assembly material - XYZ (Let's say Desktop PC), Proc type - E, Plng Strat - 40 (regular MTS scenario)
    Sub Assembly material - ABC (Let's say Monitor), Proc type - F, Plng Strat - blank. But we sell this part sometimes (Let's say - customer wants an additional monitor).
    Roy is a shop supervisor working on a $1 million Sales order for Top assembly XYZ which is already late and customer is screaming.
    He released the production order with no missing parts, printed and fretting to finish this order.
    After couple of hours of setup & machine prep - Roy went to pick up the parts and to his surprise material ABC is not available. 
    Tina is at shipping department working on a $1000 Sales order that arrive today. System said 'sure you can ship it 3 days in advance'. So created a delivery and shipped it to the customer.
    Now, Roy ran TCode: MB52 and found out that Tina just shipped his component ABC.
    SAP gave the part ABC to a $1000 sales order and business lost sales on a $1 million order.
    Please find the attachment for config screen shots TCode: OPJJ
    Sales order Checking rule
    Production order Release checking rule
    Please help me resolve this issue.
    Let me know if you need more info.
    Thanks,

    Praneeth,
    There are two separate concepts here.  "How do I ensure that production orders and Sales orders are on an equal footing" and "what is the purpose of 'check without RLT'.
    You have an ATP check relevant for Sales orders (checking rule "A" for Make To Stock).  You have an ATP check for production orders (I assume it is checking rule "PP").  If you want these two objects to have equal priority on stock and supplies, then make the two rules (OVZ9 for A and PP) identical.
    Now, to RLT.
    Prod Order Release has 'Check without RLT' active, that means - it'll let the sales orders (also that are outside the RLT) steal the stock.
    Sales orders that are outside RLT will automatically confirm.  "Stealing" stock is a result of combination of the ATP for the sales orders, plus the ATP for the sales order delivery, combined with the ATP for production orders. and any ATP you may have on Goods Issues against a production order.  I cannot possibly tell you what you should do to prevent stealing stock, since there are so many permutations of scenarios that can affect the outcome.
    I suggest instead that you give me concrete scenarios, telling me of specific problems, illustrated with screenshots of CO09, and I will help you through one or two specific scenarios.
    Best regards,
    DB49

  • Create Sales Order with Reference from Quotation

    Hi All,
    Is there any bapi or function to create sales order with reference from a quotation?
    I know BDC is possible but any other methods?
    Thanks
    Dyl

    You can use - BAPI_SALESDOCUMENT_COPY.
    Prerequisite is Copy control should exist in customizaiton.
    -Alpesh

  • Different Tax base in pricing procedure for a single sales order for different line item material.

    Hi,
    I have a scenario wherein in a sales order, for two different material, the tax base of pricing should get triggered on the basis of sold to party and the material entered at line item level.
    Logic triggers on the basis of Region of Customer & a unique field in the Material Master but problem comes in the calculation of Tax base as the sequence of condition type (from – to)  is already defined in the pricing procedure to pick from a particular step but in second line item the base is different i.e. the sequence of condition types that are maintained in pricing procedure should be different for Tax to calculate differently.
    Kindly suggest if the same can be handled in a single pricing procedure and dynamically taking care of condition type sequence through Alt Cal Base Formula, so far I’ve tried both Alt Cal Formula & Base but it is not working
    Client doesn’t want to go ahead by creating two different orders (through separate Pricing Procedure) for that. They want to have both materials in same order.
    Kindly suggest a suitable way to handle this scenario.
    Regards,
    Aashika Agarwal

    Hi,
    Click on the ''check availability'' button at item overview and then click on ''One-time delivery'' on the top. This will ensure that you will have only one delivery for whatever quantity is confirmed on that date.
    If you want to apply this rule for all orders across a sales area, then you can do the below configuration step :
    SPRO->sales and distribution->basic functions->availability check with ATP logic->Define default settings-> Here in avail. checking rule select A (one time delivery). This will ensure that all orders created for a particular sales area will have only one delivery.
    Hope this helps.
    Regards,
    Palani

  • Update Sales Order to enter a Manual Price Condition

    Hello all,
    SAP R/3 ERP
    It is already created the Sales Order, Picking and Delivery (good issue is NOT created yet).
    I can not continue my flow because is missing a pricing condition.
    However the condition that is missing is an Header Manual Condition Price.
    As we are dealing with a Header Condition and Good Issue and Billing is not created, it is possible to update the Sales Order and then enter the header manual condition .
    My question is:
    '--- In order to update the Sales Order to enter the header manual condition, do I need to delete the Delivery and Picking? If yes, what are the transaction de delete both of them? .
    Thanks a lot,
    Barbara

    In my opinion, there is no need to delete the delivery. Just add the manual pricing condition and click on update pricing button  ->carry out new pricing. This will add the manual pricing in the sales order. Still if you want to delete the delivery,  then first check whether the picking is done using transfer order. If so, use t.code LT15 to cancel the transfer order. If transfer order is not used, then just remove the pick quantity from delivery line items and then in t.code VL02N, enter the delivery document go to menu delivery document ->delete. This will delete the delivery document.
    Regards,

  • Ordering unit different from invoicing unit

    Hi all,
    My client procures steel. In PO, they want to buy with ordering unit EA, but when invoicing, they want it in KG (because based on the law here, invoice for steel must be in KG).
    We suggested them to use ordering unit KG because in SAP, PO unit and invoicing unit have to be the same.
    Is there anyway/configuration to allow the PO unit different from invoicing unit?
    Thanks,
    Trang

    Hi,
    You can have order unit as EA and Order price unit as KG while creating PO.
    For ex:
    Order qty: 10 EA
    OPU: KG
    Under item tab quantity/weights in PO, you can give the conversion factor as 1 EA = 2 KG or maintain the conversion factor in additional data of material master.
    Price will be calculated for 20 KG during invoice.

  • Sales Order - Prevent user from creating more that one schedule line

    Hello,
    Is it possible to prevent users from adding lines (rows) in the schedule line tab of VA01/VA02 ? Our requirement is that one item will have one only schedule line, the quantity cannot be split into different dates.
    Regards,
    Joã

    Hi
    There are 2 schedule lines with different dates for a single line item in a sales order because of forward scheduling done by the system
    System does backward scheduling first and if it fails then it does forward scheduling and that is why you find 2 different schedule lines
    In configuration you can restrict the system to do only backward scheduling and stop after that
    I am not infront of SAP now to tell you exactly where is the configuration available
    I think it is  Logistics execution--delivery scheduling
    But This config is definately available in standard system to avoid 2 or more schedule lines for a single line item in a sales order
    But i am not able to understand what is the business logic for such a requirement because i feel it will create a lot of problems
    with this requirement
    Regards
    Raja

  • Sales Orders Not Replicating from CRM 2007 to ECC 6.0

    I have been able to successfully replicate my Customers from ECC to CRM. When attempting to replicate a Sales Order from CRM into ECC, the BDoc shows as "Confirmed (fully processed)" in SMW01. When I look at the list of receivers, it shows my ECC system, with a state of "Processed". However, when I look at the Error Segments on the BDoc, I have two events:
    1. No Upload into R/3
    2. R/3 Adapter is Called
    Any thoughts on what I am missing?
    Thanks!

    MCG,
    Thanks for the quick reply. Yes, I have a publication of "All Business Transactions (MESG)" with a subscription of my ECC system. The BDocs never make it into the Outbound queue. I purposely stopped the outbound queue to see if it would show-up ... it never comes in.
    Thanks!

Maybe you are looking for

  • In query, how many objects can include in structure

    Hi expert, In BEX query coloum, How many objects can include in structure.

  • Backup TPM keys to Mbam 2.5 with Pre Provisonning not working

    Hi I am trying to save TPM owner password to Mbam 2.5 during TS, but can't get it to work. I can see the Volume recovery keys do upload fine but not the TPM. Basically what I do is Make sure TPM is enabled in BIOS Activate TPM in Winpe with Wmi scrip

  • What would happen if remove containers in UPS connection

    We are using SP2013 on-premise. Currently our farm have setup UPS connection to entire domain. Hence, some non-users account like other system's service accounts have been sync and user profiles have been generated. I think it is not a good security

  • Plan a daily load not run on Saturdays

    Hi Gurus, I need to plan a process chain to run every day except Saturdays. Do not know how to plan the job, as the only option that I like what I need, is execution on a daily, and the restriction of "Do not run on Sundays and public holidays." But

  • How to rotate a graphic in Keynote

    How do you rotate a graphic? After selecting it, I try placing the cursor around the sides expecting to be able to rotate it like in Photoshop, though it does not work.