Issue between PO and Sales order

we are having a serious performance issue in one certain circumstance.
we have a sales order with 1800 items on it. of these 1800 items, 21 have generated a third party PO, for the goods to be shipped directly to the customer from the supplier.
When we make a change to the purchase order, for example, to update the confirmation, and hit save, even for a single item, it can take more than a minute to do the update. It appears it is looping through the VBUP table for ALL items in the sales order, and any follow on documents, and pulling in first all VBUP records for the order, then all vbup records for the item. So it appears we are reading the full VBUP for the entire order 1800 times! THis is regardless of the fact that we have the sales order and item, so we dont need to read the entire VBUP for the sales document, and also regardless of the fact that only 21 of the items on the sales order have anything to do with our purchase order!
I have tried a trace to see where VBUP is getting read and it is 90% of the response time of the save being used just read these records, over and over and over.
Has anyone ever seen this or found a fix? i have searched google and here and OSS.
What ties the PO to the sales order, other than the account assignment? what about the sales order is getting updated when we change a PO item, especially, just a confirmation?
I have checked for user exits, etc, and we are running this vanilla.

Hi David,
I guess it might be hard if this is std code all along that takes that much time to process operation you describe.
You might try some to do some things to speed this up if you are sure that reading VBUP is taking most of the time:
1) add an index on some fields of this table (this might not be needed as the logic should know the key which is sales order no and item no
2) try to archive some old data that will free the VBUP from some records and will speed up reading
Of course you might also ask SAP via OSS channel but I guess if it's only a minute they won't really treat it as any bug and will answer "work as designed" and suggest creating smaller sales order (split the big ones).
Good luck anyway...
Tomek

Similar Messages

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • Link between PO and Sales Order?

    Hi,
    I have an issue..I need to send an idoc containing PO with fields (like ebeln, lifnr...etc). Along with this PO, I need to send a field 'customer po number (vbkd-bstkd)' from sales order.
    Could you please help me out to find out the link between purchase order and sales order? how to fetch customer purchase order number from po number?
    Also what is the difference between Purchase order number and Customer purchase order number?

    The customer purchase order number is the number of the purchase order which you get from one of your <b>customers</b>. This number is copied in the sales order, for future reference.
    On the other hand, the purchase order is the order you send to one of your <b>vendors</b>.
    Thus the sales order and the purchase order are two indipendent objects. The customer purchase order number does not reference any document on the ERP. Therefore you can't link a purchase order to a sales order.
    Refer to the SAP Solution forum SAP ERP Sales and Distribution (SAP SD) for this kind of questions.
    Regards, Davide
    Message was edited by:
            Davide Cavallari

  • SD-How to find table of link between delivery and sales order?

    Hi Experts,
    I have a requirement as below.
    In LIPS table (SD document: Delivery: Item data), in this table has one kind data.
    One record has maintianed 2 fields PSPNR(Project definition (internal)) and PS_PSP_PNR(Work Breakdown Structure Element (WBS Element)).
    How to find sales order number of the above record? Could you tell me which table link the delivery item data and sales order number?
    Thanks a lot,
    Frank

    Hi frank
    Check the following tables  VBAP , VAPMA , VBUP . It may help you
    Regards
    Srinath

  • Link between Project and Sales Order

    Apart from sales order can we have a link between project and customer master ??
    I know that WBS element assignment can be made in sales order but i want to have link between
    customer master and project. I don't want any user field or text field in sales order.
    Any idea ?
    Regards
    Ashish

    Yes Mr Ashish!
    As far as iam concern there is no link between Project & Customer Master, you have to link it with SALES order, I had check in XD03,XD01, the complete customer master, i didnt find any field in customer master which links with Project.
    I'll let you know if i find any links.
    Regards,
    ANSAR

  • Would like solution for Copy Control Between Quotation and Sales Order

    Hi Expert,
    My customer requirement are the following topic:
    1. need condition type (item) to input FIX AMOUNT in Quotation
    2. once copy Quotation to Sales Order Condition have to copy not depend on quantity
    for example
    QUOTATION#1
    =item#1 quantity 20 PC
       =condition#1 fix amount 100 USD
    ================================ copy Quotation to SO
    SO#1
    =item#1 quantity 2 PC
       =condition#1 fix amount 100 USD <-----  full copy and not depend on quantity
    But on my setting I get Sales Order 2 PC with condition#1 10 USD ....
    I need the way to Configure or Customize (need configure if have)
    Many thanks for Advise me
    Best Regard,
    Atom
    Edited by: korakoj chantarasupawong on Mar 25, 2011 7:28 AM

    Thank you very much,
    for my customer requirement for this condition is handing charge.
    This handing charge is agreement between my customer and thier customer to keep fix amount per sales order.
    such as 1 quotations per item has handing charge 100 usd per 10 TON product
    if thier customer would like to split delivery (open sales order) 10 times, they have to earn 100 usd / 10 times.
    so this is the meaning for this condition.
    so
    QUO#1
    item#1
    - mat A 10 TON (handing charge 100 USD per 1 sales order)
    - mat B 20 TON (handing charge 20 USD per 1 sales order)
    --> copy to sales order 1
    SO#1
    item#1
    - mat A 2 TON (handing charge 100 USD per 1 sales order)
    - mat B 1 TON (handing charge 20 USD per 1 sales order)
    --> copy to sales order 2
    SO#2
    item#1
    - mat A 8 TON (handing charge 100 USD per 1 sales order)
    - mat B 19 TON (handing charge 20 USD per 1 sales order)
    some thing like that's
    many thank expert
    please carry on advise me thanks

  • Linkage Between PIRs and Sales Order in STandard SAP or AFS

    Hi Gurus,
    We are implementing the concept of Planned Independent Requirements(PIRs) in SAP AFS.
    Below is the process am following :
    1. Create PIRs.
    2. Create a Purchase Requisitions.
    3. Create Sales Order.
    I am using the concept of forward consumptiona and planning strategy 40 for the PIRs consumption.
    Also I understand that the Sales order will consume the PIRs.But when I go the stock Requirements
    list I dont see any changes happening.I mean I dont see any linkage between the Sales Order or the PIRs.
    Please help on the above concept,Am trying to understand how does the concept of PIRs work and how can I simulate and see the results in SAP.What will happen to the PIRs and SO and how can I see the linkage that a Particular Sales Order has consumed the PIR.
    Any help on this would be appreciable.
    Thanks,
    Jinen

    Hi,
    I am explaining the cycle of PIR.
    Strategy group(which is used in MRP3) is the combination of different strategies.
    The strategies are defined in this following Path
    SPRO->Production->Production Planning>Demand Management>Planned Independent Requirements>Planning Strategy>Define Strategy.
    Strategy is the combination of requirement types defined wrt demand managament(PIR)-PP area
    and req types defined wrt customer(SD area).
    These requirement types are assigned to requirement class.
    PP area, to assign req type to req class,
    Production Planning->Demand Management>Planned Independent Requirements->Requirements Types/Requirements Classes>Define requirements types and allocate requirements class.
    In SD area, In OVZH u will assign req type to req class.
    In PP area, this requirement class is defined in OMPO transaction where u will maintain Planning indicator,consumption indicator etc.....
    In SD area, u will maintain it in OVZG transaction.
    For Strategy 40 requirment class are 101, requirement type VSF, Customer req type is KSV
    Just check for the above settings.
    First create the PIR. Then create sale order. and check in MD04. PIR will get consumed based on the inwarded sales order.
    Revert back for any clarification.
    Thanks and Regds
    Sridhara K N

  • Joins between transactions and sales order tables?

    Hi all,
    SELECT ott.NAME,
                 msi.organization_id
      FROM apps.mtl_material_transactions mmt,
                apps.mtl_system_items_kfv msi,
                apps.oe_order_headers_all ooha,
                apps.oe_order_lines_all oola,
                apps.oe_transaction_types_tl ott
    WHERE     mmt.transaction_type_id = 12
           AND mmt.inventory_item_id = msi.inventory_item_id
           AND mmt.organization_id = msi.organization_id
           AND ooha.header_id = oola.header_id
           AND oola.line_id = mmt.trx_source_line_id
           AND oola.inventory_item_id= msi.inventory_item_id
           AND ooha.order_type_id= ott.transaction_type_id
           AND mmt.inventory_item_id = 1234
           AND msi.organization_id = 20
    And i don't have inventory item id with this transaction_type_id = 12

    Transaction_type_id 12 is a "Receive from Intransit".  I don't think those will join to sales orders.  What are you trying to accomplish?

  • Link between Accounting Document and Sales Order

    Dear SD Gurus,
    How to find the Sales Order number and Sales Order Item from the accounting document- like document types DZ, DG, ID etc.
    Kindly specify the table links and fields to fetch the above details
    Regards
    Vimal

    Link Between SAP SD, MM & FI
    The link between SD and MM :-
    1. When you create sales order in SD, all the details of the items are copied from Material master of MM.
    2. MRP and availibility check related data is also taken from MM although you control this data in SD also.
    3. While you create inbound/outbound delivery with reference to a sales order,the shipping point determination takes place with the help of the loading group, plant data, shipping conditions etc. This also refers to Material Master.
    4. The material which you are entering in a sales order must be extended to the sales area of your sales order/customer otherwise you cannot transact with this material.
    There are many such links between SD and MM.
    Now the link between SD and FI :-
    1. Whenever you create a delivery with reference to a sales order, goods movement takes place in the bacgground. eg. In case of standard sales order, you create an outbound goods delivery to the customer.
    Here movement 601 takes place. This movement is configured in MM. Also, this movement hits some G/L account in FI. Every such movement of good s hits some G/L account.
    2. The accounts posting in FI is done with reference to the billing documents (invoice, debit note, credit note etc) created in SD. Thus this is a link between SD and FI
    3. Tax determination: In case of a tax determination also, there is a direct link between SD and MM
    SD Integration points with other modules
    SD module is highly integrated with the other modules in SAP.
    Sales Order –
    Integration Points                      Module
    •Availability Check             -       MM
    •Credit Check                   -       FI
    •Costing                        -       CO/ MM
    •Tax Determination              -       FI
    •Transfer of Requirements       -       PP/ MM
    Delivery & Goods Issue –
    Integration Points                      Module
    •Availability Check             -       MM
    •Credit Check                   -       FI
    •Reduces stock                  -       MM
    •Reduces Inventory $            -       FI/ CO
    •Requirement Eliminated         -       PP/ MM
    Billing -
    Integration Points                      Module
    •Debit A/R                      -       FI/ CO
    •Credit Revenue                 -       FI/ CO
    •Updates G/ L                   -       FI/ CO
      (Tax, discounts, surcharges, etc.)
    •Milestone Billing              -       PS
    Return Delivery & Credit Memo -
    Integration Points                      Module
    •Increases Inventory            -       MM
    •Updates G/ L                   -       FI
    •Credit Memo                    -       FI
    •Adjustment to A/R              -       FI
    •Reduces Revenue                -       FI
    SD Transaction Code Flow: 
    Inquiry / Document type IN
    Tcode for creation VA11,VA12,VA13. tables VBAK,VBAP
    Quotation / QT
    Tcode for creation VA21,VA22,VA23. tables VBAK,VBAP
    Purchase Order PO
    Tcode for creation ME21,ME22,ME23. tables EKKO,EKPO.
    Sales Order OR
    Tcode for creation VA01,VA02,VA03. tables VBAK,VBAP
    Delivery LF
    Tcode for creation VL01,VL02,VL03. tables LIKP,LIPS
    Billing F2
    Tcode for creation VF01,VF02,VF03. tables VBRK,VBRP
    <b>The SD & FI link is established through mapping of appropriate G/L accounts through T.Code: VKOA</b>
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • What is the relation between delivery num , sales order num and invoice

    what is the relation between delivery num , sales order num and invoice

    Look at VBFA Table
    goto VBFA table ,enter order number number vbelv ,vbtyp_n is C,then VBELN is the delivery
    if you enter delivery number in vbelv ,vbtyp_n is J,then vbeln is Invoice.
    here VBTYP_N is the import.
    VBFA is the sales document flow table,and very important table
    Thanks
    seshu

  • Tell me the link between Purchase Requisition and Sales Order Number

    tell me the link between Purchase Requisition(MEREQ_TOPLINE-BANFN_EXT) and Sales Order Number(COBL-KDAUF)

    Hi Puja,
    If you have created sales order  for matrial which has both procurement type,after MRP run you will get
    planned order.This planned order you can convert to purchase requisition for external procurement or
    subcontracting.
    You will find sales order number in details of purchase requisition ( ME52N) in Account assignment tab.
    Hope this help you.
    Regards,
    Raja

  • MTO(Diff between complex make to order and sales order based mass prod)

    Hi
    We are using MTO...Can anyone tell me what is the Diff between complex make to order and sales order based mass prod in finance perspective?

    Hi,
    In the case of complex make to order scenario, through MRP, the Project shall be assigned to the sales order. Then there will be milestone billling and all. In the case of mass production MTO, it is only creation of production order for each sales order item and each sales order item shall have sales order cost estimate.
    Trust this helps much and do encourage our efforts!
    Cheers!
    Edited by: Ashok Singh on Oct 28, 2008 6:53 PM

  • Different between Customer requirement and Sales Order.

    Hi, can any expert explain the Different between Customer requirement and Sales Order to me?
    Any help would be appreciated.
    Regards,
    Tiger

    Hi...
    The Customer sents the requirement ( Like specially manufactured products as per the customer specifications) which can be entered in the form an Inquiry. With ref. to this inquiry a quotation will be sent to the customer. The customer places an order thru document with reference to this quotation.
    Now the company processes the order and manufactures the Product and delivers the Product to the Customer and recieves the payment.
    Hope this clears the query
    Reward points if found usefull
    regards
    Sajeev

  • Field integration between Inventory Transfer and Sales Order?

    Dear Gurus,
    Hope to find you well, we have to redefine our processes of sales. Now stock from a remote site will be transferred to inventory in transit warehouse recorded. Truck Number(UDF) and Document Number  (Inventory Transfer) will be used to trace inventory status and creating Crystal Reporting from Stock Uploading till the A/R Invoice are created. My Query is how can this be achieved in SAP B1 2007 A Patch 10. Please advice. Its very important for us.
    Please find trail that will help you understand:
    Process Mapping Help Needed
    Faisal
    Edited by: Faisal Baloch on Nov 17, 2011 7:02 AM

    Dear Faisal,
    Unlike the higher package, B1 has no option to link between Inventory Transfer and Sales Order. You have to add UDF and manually maintain the link.
    Thanks,
    Gordon

  • Relation between serial number and sales order number

    Hi,
    Is it any one to one relation between serial number (IN) and sales order? For example, when I create the special serial number for the special sales order (Internal or External) , whether I put the sales order number in the IQ01 or not, sales order accept that serial number(IN). Is it any way to specialize one serial number to exact one sales order number?
    Edited by: Lida Navabpour on Jun 9, 2009 1:02 PM

    Hi,
    > Is it any one to one relation between serial number (IN) and sales order? For example, when I create the special serial number for the special sales order (Internal or External) , whether I put the sales order number in the IQ01 or not, sales order accept that serial number(IN). Is it any way to specialize one serial number to exact one sales order number?
    Yes, There is one to one relation ship. U have to maintain serial number profile for the same. The serial number runs on different status.The status ESTO means the serial number is in stock. ECUS means the serial number is at customer site. AVLB means the serial number is available.
    If the status is ECUS then u cant use that again.
    Serail number profile Check t-code OIS2.
    Thanks,
    Raja

Maybe you are looking for

  • My new mac mini with Maverick does not go to deep sleep even if i press power button or Apple-Sleep mode.

    Hi. I have my new mac mini with Maverick that does not go to deep sleep even if i press power button or menu Apple-Sleep mode. He goes only to something like stand-by  (power lid is on; after i turn off and then turn on the power he does not wake up

  • Setting APs to 802.11g only

    Is there a way to set up LWAPP APs so that only 802.11g devices will be supported? My understanding is that any 802.11b device that attaches to an AP will cause the AP to then operate in 802.11b compatibility mode, and thereby decrease the max bandwi

  • Determining correct firmware update

    I am planning on upgrading the memory on my G3 tray loading iMac333. Over the years, I have upgraded through OS X versions 10.1, 10.2 and have been running under 10.3.9 for quite some time. I never knew about Firmware. In looking at the discussions,

  • System not listed in url iview property

    hi all, I am creating an URL iview. In property editor of the URL iview I cannot see not even one system listed. I checked the system, its permission, it does have end user permission. Can anyone help me to view the system in the url iview property.

  • Message PLACEHOLDERS

    Hi Freinds, Im using statement    'MESSAGE I002(ZMSG_PM) WITH 'ABCBMMMMM'. But the message displays the message stored in 002 in message class zmsd_pm andit does not show 'ABCBMMMMM'. I want to display message with the message defined in msg class wi