FMS to Find total number of Quantity for all Sales Orders

Hi Experts,
I am trying to get the total number of quantities for the current document. Kindly help me out how to find it out for the current document.
Currently I am giving the document no. to the query by modifying the query every time before executing it.  but how can i do this without giving the document numbers and executing the query directly.
Kindly help ...
Thanks and regards,
Amit.

Hi,
Please follow below steps to get total quantity.
1. Run below query first in query generator
SELECT sum(T1.[Quantity]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE t0.docnum = $[ORDR.docnum]
2. After execute, save it under query manager with required name
3. Open sales order and run saved query
4. Total quantity will be displayed in query result.
refer below screen shot:
Thanks & Regards,
Nagarajan

Similar Messages

  • Select aentries from table Z-Table for all sales order line items

    Hi friends,
    can anyone please explain me about the "Select entries from table Z-Table for all sales order line items".
    Thanks.

    Moderator message - Welcome to SCN.
    But
    Moderator message - Please search before asking. Press F1 on SELECT and look at the FOR ALL ENTRIES addition. - post locked             
    Rob

  • How do know open quantity  for a  sales order  (patially  delivered)

    Hi  Gurus,
    I have requirement to  know  open quantity for  sales order and it was partially delivered.
    Any table  to know partially delivered qty of a material for a  sales order.

    Hi
    Check This Table  VBBE for open order quantity
    You can find open Qty like this
    Open Qty  = Delivery Qty (LIPS-LFIMG) - Order Qty (VBAP-KWMENG)
    Swamy

  • Maximum number of Invoices for a Sales order

    Dear All,
    How many invoices we can make for a Sales order?
    Is there any maximum limit for that?
    How many documents can be shown in Document flow?
    Please let me know.
    Regards,
    Mullairaja

    hi mullairaja
    if in the case for partial deliveries you could process any number of invoices but only till the number of partial deliveries in the customer master data > sales area > shipping > partial deliery per item .....
    if the case of the sales order  is processed and delivery and COMPLETE  picking ...and PGI with respect to that delivery document you could only process one invoice ......
    IF you complete the whole sales cycle ...you can see the whole document flow in va02 by clicking document flow in the left top corner.
    the document flow will be more if their are many partial deliveries.
    <removed_by_moderator>
    Please read the "Rules of Engagement"
    Regards,
    JAGAN N M 
    SAP SD
    Edited by: Juan Reyes on Mar 14, 2011 9:35 AM

  • Capacity Planning for all Sales Order Items

    Sir,
    A Sales Order have 4 different line items & need to produce on single work center.
    In schedule line of sales order requirement dates are given priority wise.
    After running the MRP I have observed that for all schedule lines, all planned ordered are starting on same date & time on the given capacity.
    I need to level it manually.
    Here I have few Question.
    1) Can Capacities are Scheduled as per priority given in SO automatically.
    2) Can revised availability dates will be reflected in SO.
    3) Which reports will be useful for understanding consolidated availability date of material for given sales order/s.
    Regards

    Dear ,
    To answer the question for Capacity requirement planning on sales order I would say that MRP does  only materials planning based on demand and reciept  but never does Capacity Requirement Plannig .MRP generates Planned Order  and susequently , production order can be genreted and farther you can carry out capacity requirement planning based on the work cente available capacity , requirement and load for those MTO orders .
    But there are SAP business suit like APO-SNP APO PPDS which carriy our details scheduleing and caapcity check based on the demand situation : Sales Order ,Independent Order  and does capcaity vaialbality chek for those demands while planning .
    Now , here is the answer of your question :
    1) Can Capacities are Scheduled as per priority given in SO automatically. : Not possible  through  SAP MRP but in APO-PPDS, APO-SNP-CTM , Herustic model .
    2) Can revised availability dates will be reflected in SO. : It can be reflected as per the ATP chekc , Replishmenet Lead  Time and re-scheduling horizon maintained in OPPQ-Carry all overall plant parametres.
    3) Which reports will be useful for understanding consolidated availability date of material for given sales order/s. : You can check through MD04/MD05 or in sales order -Availaibility check -Schedule Line -Availaibility date .
    Hope your are clear about the requirememt .
    Regards
    JH
    Edited by: Jiaul Haque on Jun 5, 2010 1:59 PM
    Edited by: Jiaul Haque on Jun 5, 2010 1:59 PM

  • How to find total number of employees for an organisation

    Hi Experts,
    Need help in finding the total number of employees working in an organization. Please let me know if I need to run a report or if there is any T Code.
    Appreciate your help at the earliest.
    Regards,
    Subbu.

    Hi
    Try this out
    T code :Paah
    Select the key field Per nr for out put
    GO to organizational Assignment select the Employee group for selection
    and also Organizational Unit for selection.it will come to the right hand side
    Give the input ESG as 1 for active and also input the org unit (dept) u require to
    see the list of employees
    and press out put for list or else hit list for number of employees
    with regards
    partha
    keep sharing and learning

  • Trying to create a FMS query that shows available stock quantity on each Sales Order line

    Using SAP B1 v 8.82
    I realize that I may be going about this in completely the wrong way.  Here's my code:
    SELECT (T0.OnHand - T0.IsCommited + (SELECT SUM(ISNULL(T3.U_BO, 0)) FROM RDR1 T3 INNER JOIN OITM T4 ON T4.ItemCode = T3.ItemCode WHERE T3.U_BO > 0 AND T3.ItemCode = $[RDR1.ItemCode])) [available]
    FROM OITW T0
    INNER JOIN RDR1 T1 ON T1.ItemCode = T0.ItemCode
    INNER JOIN ORDR T2 ON T2.DocEntry = T1.DocEntry
    WHERE T0.WhsCode = 'ATL' AND T1.WhsCode = 'ATL' AND T2.DocNum = $[ORDR.DocNum] AND T1.LineNum = $[RDR1.LineNum]
    GROUP BY T0.OnHand, T0.IsCommited
    There is a UDF that I call upon in the RDR1 table called BO.  I created this field so that if a person wants to wait for a new batch they can "backorder" it.  In another UDF called "Available" I set up a user-defined value based on the above query.  The end result should be that whenever someone enters an item, the query finds the level of stock in the warehouse, subtracts the amount already committed, and adds back in any backorder quantities on other orders for the same item.  For example, say there's 1000 units of ITEM1 in stock, 2000 are ordered on SO # 1 and 500 are ordered on SO # 2.  The salesperson who created SO # 1 wants to wait for a new batch and types "2000" in the BO field.  I try to enter a new SO # 3 for 300 pieces.  When I key in ITEM1 on the first line, the field "Available" should update to say "500" (1000 - 2500 + 2000 = 500).
    It seems to be working, but only after the document is added.  In the example above I enter SO # 3 with a qty of 300 and when I go back to that SO I see that "Available" shows 200.  Ideally I'd like to see it say 500 while I'm working in the SO before I add it. 

    Edit2: Okay it so it works fine for any items that have a history, but it seems that if the item hasn't ever been on a Sales Order (i.e. it's not found in the RDR1 table) I get "no data found".  How can I make it simply return OnHand - IsCommited if it doesn't exist in the RDR1 table, but do the below query if it does?
    Actually that's not true.  I've got it working now.  I changed the query a bit and the update trigger, and it feels like it's working exactly like I wanted.  Query below if you're interested.
    /*Available FMS Sales Orders*/
    SELECT (T0.OnHand-T0.IsCommited+(SELECT SUM(ISNULL(T3.U_BO, 0)) FROM RDR1 T3 WHERE T3.ItemCode = $[RDR1.ItemCode]))
    FROM OITW T0
    INNER JOIN RDR1 T1 ON T0.ItemCode = T1.ItemCode
    WHERE T1.ItemCode = $[RDR1.ItemCode] AND T1.WhsCode = 'ATL'  AND T0.WhsCode = 'ATL'
    I have it on Auto Refresh -  When Field Changes "Document Total" - Refresh Regularly.
    Edit1: fixed grammatical error.

  • Open Order Quantity for open sales orders

    Is there a standard SAP Report that gives the open order quantity for every open sales order.   "Open" is defined as any order quantity that has not shipped.  Delivery creation is not the same as shipment.   VA05 Report does not contain enough information to calculate the open order quantity for an ERP-based backlog report.

    Try VA05 schedule lines standar variant...include status fields and both ordered qty and confirmed qty. In SAP standard system order status, status A means open orders fully (Nothing shipped, everything opened). Status B means in process orders (Partially processed - shipped). Status C means complete orders (Nothing opened). As there is no delivered qty in VA05,  you need to download to excel the file and calculate the difference between both qty fields for each A and B status. That is a way to get the missing qty to be delivered or open qty as you stated.
    Hope it helps.
    Jorge Fernandez

  • Partial confirm on customeru2019s order quantity for EDI sales order

    Hi All,
      Our company is using ECC 6.0. We seem to having issues with orders coming through EDI u2013 i.e. it will not partially confirm what we have in stocks and just reject the whole line. E.g. If the customer is ordering 300 units for an material and we have 200 units in stocks only, it will zero confirm instead of partially confirm 200 units. If I try to manually key in the same material in the same sales order then it will partially confirm it (I.e. 200 units) instead of zero confirm.
      I have checked the ATP check rules and it seems everything alright. Any idea why this would happen only for EDI orders? Are there any EDI setup that will cause this issue? Any ideas where I can looks for the potential issues might be?
      Thank you.

    Evidence,
    What happens when you enter the order manually (VA01)?
    Best Regards,
    DB49

  • Can we take standard report for all sales orders based on the condition typ

    Hi all,
    Based on the condition type, we need to take a report for sales orders on the particular date.
    Thanks and Regards.....VM

    Hello again.
    Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
    Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
    This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
    You can list the information of logical database using the transaction SLDB.
    In 'Logical Database' inform VAV.
    Press F8 to list all the fields.
    More information about logical database in:
    Link: [SAP Logical Database|http://help.sap.com/saphelp_46C/helpdata/EN/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]

  • Finding Soln. to initialise total number of pages for new production order

    Hi Experts,
    My internal table has details of Production Order which has to be printed in a smartform. The page numbers has to be initialised i.e both SFSY-PAGEand SFSY-FORMPAGES each time when it prints a new production Order.
    Example :
    Say Production Order 1 is populating in 4 Pages it should display
    1 of 4
    2 of 4
    3 of 4
    4 of 4
    and for the 2nd Production Order say it Occupies 2 pages page number should be initialized and displayed as
    1 of 2
    2 of 2
    One solution i found is having the smartform inside a loop and passing details of one production order at a time but i dont want to use it as i might be lead to performance issue.
    Kindly suggest me a Solution where i passed my internal table once to the smartform and get the output.

    Hi Experts,
    My internal table has details of Production Order which has to be printed in a smartform. The page numbers has to be initialised i.e both SFSY-PAGEand SFSY-FORMPAGES each time when it prints a new production Order.
    Example :
    Say Production Order 1 is populating in 4 Pages it should display
    1 of 4
    2 of 4
    3 of 4
    4 of 4
    and for the 2nd Production Order say it Occupies 2 pages page number should be initialized and displayed as
    1 of 2
    2 of 2
    One solution i found is having the smartform inside a loop and passing details of one production order at a time but i dont want to use it as i might be lead to performance issue.
    Kindly suggest me a Solution where i passed my internal table once to the smartform and get the output.

  • Hw to find total number of records

    Hi All,
    Can anyone help from these
    1. how to find total number of reports for a particular cube/ods... need step - step solution
    2. how to find total number of records for a particular Cube and ODS and Aggr's to till date.
    3.what is sandbox,mirror sys,instance of a sys..?
    4.what r TWS(Tivoli Workload Scheduler) jobs? how these r different to standard schedulers?
    Thanks in ADv
    Linda

    Hello Linda,
    As you have lots of answers on first 2 so i'll start from 3rd onward.
    3. Sandbox is mostly practice system where you can do all kind of R&D, mirror sys can be mirror image of any system depends on the organization and instance of system is again mirror image of one system.
    4. TWS is third party tool for scheduling which doesn't come along with SAP like standard scheduler as TWS has been prepared specially for this purpose so it has some more features than standard.
    Hope it helps.
    San.

  • Billing document for multiple sales orders

    Hi All,
    I am in to ECC 6.0. How can i get single billing document for multiple sales orders?
    Can anyone tell me those configuration settings?
    Thanks
    Patel J

    Dear Jaganath,
    For Single Invoice, for multiple Sales Order, following details must be same:
    1. Sales Document Type for all Sales Order must be same
    2. Payer
    3. Incoterms
    4.Payment Term
    5. Account Assignment Grp - Customer
    6. Billing Date
    7. Exchange Rate
    8. Foreign Trade Data
    Now, in Copy-Control Settings between Sales Order and Billing (T. Code: VTFA - Order to bill copying control), Select your combination for Sales Order-->Invoice;
    and Double Click: Item (from Left-Hand side, Dialog Structure) and Double Click on to your Item Category.
    Here, in Filed: VBRK/VBRP, maintain Routine: 003 - Single Invoice.
    Important: Also, if Sales Orders have different Divisions,
    T. Code: VOV8 - Sales Document Type Maintenance
    untick the Box: Item Division.
    T. Code: VOR2 - Common Division
    Assign those Divisions to Common Divisions.
    Best Regards,
    Amit

  • To find total number of files inside folder

    Hai,
       In knowledge management is there any option to find total number of files inside folder...
        I also want to see the recently uploaded and modified documents in a seperate iview...
        Iam using NW2004s SP8..
        Very urgent..
        Waiting for a positive reply..
        Thanks&regards,
         Kiruthika.S

    Hi Kiruthika,
    1. You only need the configarchive if you don't want create all the KM configuration objects mentioned in the guide manually. So, just create the objects mentioned there and you don't need the configarchive
    Also, the scenario works also on 2004s.
    2. Please check this thread on how to show the total number of files inside a folder:
    https://forums.sdn.sap.com/thread.jspa?threadID=19610
    3. It would be nice if you would consider rewarding the time people like Saravanan spend to investigate and answer your question by assigning points via the colored stars.
    Best regards,
    Robert

  • Find Total Number of Rows in Database

    I am trying to find total number of rows in Database? Thanks in advance

    I'd come back to a question of "why". What possible reason could you have to want to know the number of rows in every table in the database?
    This seems like it is a request from someone non-technical where they're not sure exactly what they need to ask to get the information they want. I'm forseeing something along the lines of
    User: How many rows are in the database
    DBA: Ummm.... <<goes off and spends a lot of resources to count>>> ... 1 billion.
    User: Wow, that's a lot... How big are those rows...
    DBA: Hmmm... <<goes off and spends more time trying to find an average row size>>... 100 bytes
    User: <<Plugs numbers into Excel>>... OK, our database is 93 GB, so we need to order 100 GB of disk for our new environment.
    DBA: <<Months later, after 100 GB of disk has been budgeted, purchased, and delivered>> User, you didn't order enough disk for our disaster recovery environment.
    User: You said our database was only 93 GB!!
    DBA: 93 GB of data. Plus 100 GB of indexes, TEMP, UNDO, space for archived logs, ...
    When "odd" requests come down, it's generally the case that the person asking the question doesn't know what question they really want to ask because they don't have the domain knowledge to know how to ask the question. Walking over and asking them what they're hoping to accomplish/ what they're using the data for generally leads to a case where
    - The user gets exactly the information they need, not the information they think they want
    - The DBA does a lot less work, since the right question is almost always easier to answer
    - The user thinks of the DBA as a really helpful sort of guy and remembers how helpful you were in the past when you have to push back on other things later
    - No one ends up playing the blame game when the user gets just what they asked for and not what they want.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Error reading Properties file

    I have a main method which i am using to call a servlet located in the same Development Component. Until recently i had the servlet location hard coded and it was working without issues. Now i decided to make the location configurable. For this i cre

  • Adobe Bridge Changed Cr2 Files to CR2.Jpg

    I'm so exhausted trying to figure this out! I'm a new Photoshop user. Just purchased it. Imported or opened Canon 40D raw files to see slideshow. I usually copy the original raw file from the cf card to a folder on my external drive. Now I need to go

  • Upgrade to iPhone 5 and iTunes 10.7 rain my parade

    I have old iPhone backup in with my iTunes 10.6.1 How to restore my contact since iPhone 5 need iTunes 10.7 and I am using Mac OS X 10.5.8 which not able to install the iTunes 10.7 PS: When I try to update my iTunes it suggested it is current. When I

  • Find a bookmark in a pdf?

    Hi all. I'm looking to create a dynamic help system where the user can choose a field and be taken to the correct section in pdf based documentation, stored on a network resource. In specific, I'm looking for a way to find and launch a pdf at a speci

  • Making created ringtones actual ringtones?

    So I downloaded the free Ringtones App and created several ringtones. Then I followed the tutorial on how to make them actual ringtones and the ringtones tab did not appear after I saved the ringtone to my desktop then double clicked it and had it pl