SD contract "Orders quantity"

Hi!
Is there any FM to get for contract position sum of all reference orders positions sales quantity ?
Definitely speaking I have to get value and unit of measure as how it looks in transaction VA43 for contract item in "Orders quantity" column on items overview screen(so that value should consider different sales unit of measure for reference orders positions, returns and so on).
Regards,
Maxim.

Hi Maxim,
You can read table VBFA with VBELV = Contract number,
POSNV = Contract Position, VBTYP_V = 'G' "Contract.
RFMNG and MEINS will give you the quantity and unit respectively..I think you have to do the quantity conversion on your own..
I dont think there is a direct fm for it but give it a try with SDVBFA
I think I found one just now..
  FM RV_XVBAPF_CREATE
  But first you have to select from VBFA and then pass it as a table to this fm.. it will give a table of type VBAPF..
This is a sample call..
      call function 'RV_XVBAPF_CREATE'   
           exporting                     
                vbeln   = vbak-vbeln     
           tables                        
                fxvbfa  = xvbfa          
                fxvbapf = xvbapf.        
Sri
Message was edited by: Srikanth Pinnamaneni

Similar Messages

  • Help needed in showing Order Quantity in Quantity contract

    Dear, Gurus
    I know it is possible to show the Target Quantity and Order Quantity both in the Display view of my quantity contract. It is said that you have to click the update document Flow which I know I have done in copying control. But no matter how many release orders I make the only thing displaying in my contract is still the Target Quantity and I want the Order quantity to also show but it isn't. I am using Item cat Tan for my Release Order and Item Cat KMN for my Quantity Contract.
    i have copied OR to ZORS (Release Order)  and CQ to ZCQ.
    Copying Control
    Target is my Release Order Source is my quantity Contract
    copying Req is 301
    pos/neg quantity is +
    copy schedule line is checked
    copy quantity is A
    Pricing Type is G
    X=Update document Flow.
    Please help.

    Dear Mr. Jimmy,
    Thanks for the reply. I tried writing the query in the stored procedure but its not working.
    It would be grateful if someone can send me the query for this to put in the Transaction Notification.
    Regards,
    Bharath S

  • Open Order Quantity in Contracts

    Dear Gurus
    I am trying to create a report which will show the Open Order quantity of SD Contracts.
    This being the figure of the target quantity less the called off quantity.
    Please advise on the best method of getting this information, I can see the cumulative order total in the contracts but this is held in a structure (RV45a- KWMENG) and I am struggling to get this information into a report
    Many thanks
    Tony

    Hi Tony,
    To the best of my knowledge you will not be able to read value into your report from RV45A- KWMENG. To get this value you need to first fetch the list of subsequent SD documents from VBFA table. Later you need check status of those documents both at header and item/s level using VBUK and VBUP. If you find the open items for documents you need to sum up all those quantities to arrive at a open quantity for the contract using tables VBAK and VBAP
    Please keep in mind performance issues which may arrive in this process as it deals with linking of 5 tables. You may need additional database index for the table VBAK (Thanks to check on this point).
    Below information may be useful to activate the index:
    To activate the index, proceed as follows:
    1. Call transaction SE11 and enter the database table VBAK. Choose "Display" and then select "Goto -> Indexes" (Ctrl+F5) in the menu.
    2. Double-click the entry I01.
    3. Change the option to "Index on all database systems".
    4. Activate the index (Ctrl+F3).
    5. You must collect the database statistics for the index so that the optimizer can recognize the index (transaction DB20).
    Hope this helps you.
    Regards,
    Praveen

  • Open Order quantity in Release order of Contracts

    Hi all,
    We are developing new PO format for Release Order ( Contract) where in we want to print the Open order quantity & Open order value along with Contract number.
    What is the best logic for Open order quantity, where in it has consider all the previous release order quantities minus the target quantity in contract.
    Open order quantity = target quantity in contract - all previously release order quantities.
    Thanks in advance.
    MM
    MM

    hai sajid,
    As u said,
    open order quantity = total quantity in contract - total quantity released against that contract ( Through release orders )
    it is right,
    with regards
    srinivas

  • Order Quantity field editable in line item in Quantity Contract

    Hi,
    We are using a quantity contract for our project.
    Our requirement s to have Plant, Quantity, Batch and Amount to be editable in the line item of contract.
    We made ZQC Sales order type and assigned screen group of Sales order in which we are getting Plant, Batch and amount as editable but however there is a field Order quantity which is greyed out.
    There is a fields Target quantity which is available for input however it is not in the line item which is displayed below, user has to double click n the line item and enter that value.If we can get order quantity as input field or target quantity can be made available in line item our purpose would be resolved.
    Kindly help on the issue.
    Anil.

    try screen variant SHD0

  • How can I get order quantity for a contract

    Hi
    I can see ordered quantity on a contract screen (VA42/VA43) but would you please tell me in which table or tables this is stored or how I can get ordered quantities against a contract
    Regards
    Javed

    Dear Javed Ihsan      
    You cann't see the order quantity for contract, you can only see the target quantity for the contract.
    However you can even see the order quantity for contract but it will not have any value -(VBAP-KWMENG).
    You can only seethe target quantity for a contract-(VBAP-ZMENG).
    For the release order you have order quantity( VBAP-KWMENG)
    PLease check and revert
    Thanks&Regards
    Raghu.k

  • Sales order- Quantity Contract

    I need your expert advice.
    When we generate a sale order (using T-code VA01) against a quantity contract system will givee error message if you exceeds quantity  contract's order quanity.
    How can SAP generate error message (pop-ups) in this situation. where can we have these control in configuration.
    Similarly i want this control between our cistomized sales documents.
    Regards,
    Sumith

    Hi,
    Its very normal that you can enter order quantity more than the reference contract quantity flowing from the contract. This is standard functionality.
    Additionally it is not recommended that you change the standard SAP standard messages from warning to error etc.
    Better you should go for an exit. Use following details:
    Goto SE38 & enter include MV45AFZZ
    Then goto user exit "USEREXIT_SAVE_DOCUMENT". In this you should tell your ABAPer to write code such that it compare the previuosly refered quantity & hence does not allow to enter quantity more that that in contract. You will get error message while saving the document & system will thus prevent extra entry of quantity in sales order.
    Hope this solves your requirement
    Regards,
    Dhananjay

  • Tolling / Sub-Contracting Material Quantity Change During Order Creation

    I have created a requisition for 80,000 KG of a tolling material. When converting the requisition into a purchase order, one of the components of the material goes from 45,881.875 KG to 45,881.874 KG, resulting in an overall amount of 79,999.999 KG and a mismatch between my requisition and purchase order.
    I have checked the rounding profiles in the MRP 1 view for all the materials, and each is set to 1.000 KG. Why is this material component rounding down?
    Thanks.

    so the reduced order quantity is not caused by an component that goes down. it is actually the other way around.
    SAP converts the Kg from the requisition into LB in the PO.
    And rounds the decimals.
    Using this as basis then for the components.
    The leading unit is now the order unit, which is LB. whenever you look at a oder  quantity in KG, then SAP converts the LB quantity back into KG, which causes again a rounding issue.
    That is one of the problems when the base unit is not the smallest unit.

  • Open order quantity for mrp run

    hi
    for x material i was made a subcontracting PO
    ORDER uantity was say 2000
    deliverd quantity was 1500
    rest of the 500 nos tobe deliverad on 30th agust
    ie, OPEN ORDER QATNTIY OF 500 NOS WHITH delivery date
    on 30th agust.
    for the same materail there was an dependent requirement of say 1500 in the month of MAY2008
    while MRP RUN for the dependent  reqirement of 1500
    i got a purchase requistion of 1000nos
    and for  the 500 nos saytem taken fron the purchase order
    which was made as subcontracting
    and throughs an expetion message which says  needs the rescheduling
    my requirement here is it should not consider the open order quantity which was there for sub contracting
    it sholud create purchase requirement of 2000nos
    plz suggest how to achive it
    regards
    sasikanth/vst

    I wanted to the same as you where getting in subcontract po but in a std po
    hi
    for x material i was made a subcontracting PO
    ORDER uantity was say 2000
    deliverd quantity was 1500
    rest of the 500 nos tobe deliverad on 30th agust
    ie, OPEN ORDER QATNTIY OF 500 NOS WHITH delivery date
    on 30th agust."
    guide me in terms of configuration
    i think i am missing some configurations

  • Order Quantity and Target Quantity, both as editable in Sales Order

    Hi All,
    We have a requirement in which order quantity and target quantity, both should be allowed as editable fields in overview screen while creating a sales order or contract. Currently, only one quantity field is editable (order quantity in sales order and target quantity in contract).
    First question, is this possible?
    Second, If possible, then please tell the configurations need to maintain?
    Note: The material is relevant for delivery (so schedule lines allowed).
    Thanks & Regards,
    Vishal

    Hi Lakshmi,
    Thanks for the reply. I think I did not clarify the actual requirements. Let me explain it again:
    I understand that generally, Target qty is in contract and Order Qty is in sales order. But actually, here query is,
    When I create Sales Order (VA01), then while entering Material, user should see both quantity columns (Order Qty and Target Qty) in editable mode.
    So is this possible? If yes, then please guide.
    Please revert back if any further clarifications is required.
    Thanks & Regards,
    Vishal

  • PO having negative Order quantity and Order value

    Dear All
    I am facing a strange scenario as described below :-
    I made a framework order(FO) with target value as 100000 INR.Net price for the material in the FO is given as 100 INR and Target Quantity as 0.00 EA.
    Now when I am making a PO with reference to this FO and entering PO quantity as 1.00 EA in the header status tab of PO, ordered quantity is appearing negative as 1.00 - EA and order value negative as 100.00 - INR.Due to this PO is not having release strategy due to negative value.
    Also when I am checking the FO line release documentation (i.e no of PO made against FO line item) there PO no is appearing but with negative quantity and value.
    Why is this happeing,please let me kneow.
    Regards
    SK

    Hi SK,
    I don't know what is the reason for this behaviour, but you clearly misuse the system. Framwork orders (FO) in SAP are already purchase orders, they are not meant to have other PO's be generated with reference to them. You can (and should) post invoices directly with reference to the FO.
    It sounds like you need the "contract", trs ME31K. Once you created the contract you can (and should) create PO's with reference to it. Use the document type WK "value contract" if you want ot specify the target (limit) value.
    BR
    Raf

  • KWMENG -- Cumulative quantity(Order Quantity) from VA43

    Hi,
    how can i get Cumulative quantity which is the field of TCode: VA43 (Contract order) as Order Quantity.
    I saw the table VBAP and its field KWMENG but it has '0' Value.
    from where i can get the value of Order Quantity
    is there any table or function Module to get its answer
    pleaze tell me
    Thak You,
    Jahnavee

    Hi,
    Check whether the schedule line details are available for the contract line item (VBEP).
    See the documentation for the field KWMENG.
    If there is more than one schedule line for the item, the total order quantity
    is taken from the rounded quantity of the total of all the schedule lines.
    If no rounding is carried out, then the order required quantity corresponds to
    a schedule line of the rounded quantity.
    Regards
    Vinod

  • Sub-Contract Order Stock Issues

    Dear All,
    In Sub-Contract Order, i will create an Order for Finished product for X quantity & i maintain BOM(Semi-Finished Components) of Y quantity for the Finished Product. After approving the same the order was send to Sub-Contractor.
    And Store In-charge issues these stocks to Vendor by 541 Mov-Typ in MB1B T-code.
    In the same ways these Order's are placed to multiple Sub-Contractors.
    Then how could i now, these stocks are issued to Vendor against these Sub-Contract Order's by Standard Reports.
    Regards
    JC

    Thanks for your reply.
    In MBLB report, i can see the stocks against Vendor Code. But if i place the same Materials for a single Vendor on Multiple Sub-Contract Order's. Then how come i verify the Stock report against Order's.
    Regards
    JC

  • In VA45 the coloum order quantity is showing the targeted quantity

    Hi Friends,
    In VA45(Lists of contracts by partners) I belive in the coloum of Order Qunatity the total sales quantity has to be shown but the system is showing the entire targeted quantity. i have created an contract for 50 quantity and if i order for 5 with ref to that contract, in va43 (dispaly of contract) it is showing 50 as targeted and 5 as ordered but in va4s in the targeted it is showing 50 and in the ordered coloum it is showing the same 50 instead of 5.
    1.Can any one explain what is the coloum ordered quantity in VA45?
    2. Any solution's
    Its urgent , kindly help me

    Hi Huey Chin Liew ,
    I am very soory, I coulnot understand what is the consulting note, kindly explain me and just give me the path.
    So you say in VA45 the coloum order quantity will display the same quantities in the  targeted quantity coloum. I feel it has to display the total  quantities which are booked as orders with refrence to that contract.
    Kindly explain.

  • Open sale order quantity in VA05

    hi all,
    can anyone please tell me the function module or bapi or Table to find out open sales order quantity coming in VA05.
    regards.

    First of all define what is open , is it created but notdelivered , or delivered but not invoiced.
    The table VBUP has flags for statuses eg
    A     Not yet processed
    B     Partially processed
    C     Completely processed
    A for open , B for partial C for complete , so by checking this table you will find which are actually delivered or invoiced completely.
    Tcode V.02 gives u this option.

Maybe you are looking for

  • WNA between AD 2008 R2 and infratier 10.1.2

    Hi! I know that my configuration isn' supported and oracle says just it may work... :-) Bootstrapping and synchronizing the users from AD to OID works well. But windows native authentication (WNA) doesn't work. I followed the following document for c

  • I want to add my apps from my iphone to my mac but they wont open

    i am a new mac user and fumbling around trying to sort things out......i cant download apps to the mac for some reason?  The ones l have in itunes and on my iphone l move folder to finder/all files but they wont open.  If l move them to the desktop t

  • Requirement in pricing procedure

    whta is the use requirement in pricing procedure?  gurus please explain me briefly?

  • Assessment Cycle problem (KSU5)

    Hi experts!!! I am trying to do an assessment cycle, but somehow not all the cost are being taken. Only the real amounts are being taken. I need also to treat the real stadistic values. Anyone can give me some advise? Thanks in advance for your reply

  • BPC validation rules based on member properties

    Hi all, validation rules seem to be very helpful in BPC NW but all examples I have found use members to define the rules. Is possible to use a member property to define a rule? For example, my ENTITY dimension has a STATUS property. I want to ensure