Sales Order Total Weight

Hi All,
Can any one help me in this requirement like i want to get the Total Gross weight and volume of a Sales order how to get this
for that i use this like i have taken all the weights and volumes for that line items of a particular sales order and need to add those weights for that what to dooo??
and which is better to use like collect and Sum
and is there any way to do this requirement
Thanks
Surendra

Use COLLECT on the columns VBAP-BRGEW, VBAP-VOLUM.
type : begin of ty_summ,
        vbeln type vbeln,
        brgew type vbap-brgew,
        volum type vbap-volum,
       end of ty_summ.
data : it_summ type standard table of ty_summ.
       wa_summ type ty_summ
loop at it_vbap into wa_vbap.
move wa_vbap-vbeln to wa_summ-vbeln.
move wa_vbap-brgew to wa_summ-brgew.
move wa_vbap-volum to wa_summ-volum.
collect wa_summ into it_summ.
endloop.
loop at it_summ into wa_summ.
write :/ wa_summ-vbeln,
          wa_summ-brgew,
          wa_summ-volum.
endloop.
Regards
Vinod
Edited by: Vinod Kumar on Apr 14, 2010 2:05 PM

Similar Messages

  • Sales Order: total weight inconsistency when using sales type BOM

    Hello!
      The case is as folows:
      I create a Sales Order, with one line. But this is a master item (sales type bill of materials), it has two components. That's why sbo puts two additional lines in the document. So this sales order will have 3 lines.
      The master item's weight is 10kg, the components's are 3kg and 4kg.
      If I press ctrl-W, the "Volume and Weight Calculation" window shows only the master item, and 10 kg.
      If I send the document to printer, i can see 17kg total amount.
      The layout uses "Sales Order:weight" to show the total amount, and it works well in other cases. But not in this one because every single item is taken into account, regardless of being the master or a component.
      I don't know if it is a bug, or we should use another field to display total amount.
      We might forbid to fill sales weight info for master items as well. This way the weight would be correct (because master weight is always the sum of its components' weight - unlike my sample above) But in this case the 'Volume and weight calculation" would be incorrect.
    Regards, Gergely Humicskó
    Edited by: Gergely Humicsko on Jun 3, 2010 2:58 AM

    Hello Gergely...
    You might want to post this on the SAP Business One Product Development Collaboration Forum as this sounds like it would definitely be an enhancement to SAP B1.  I have no idea if SAP looks at these or even does anything with the entries since they do not provide any kind of feedback, but maybe they might consider it one day...
    Take Care - Zal

  • Sales Order Total Weight Display in a report

    Hi All,
    Is there any way that i can display the total weight and Unit of weight of a sales order in a report. Please let me know all the possibilities..
    RV45A-BTGEW and RV45A-GEWEI are the technical names of the fields that i have to display..
    thank you in advance.
    Suresh

    Hi Suresh,
    After having selected the required fields and the corresponding values into an internal Table..
    do something like this..
    loop at itab.
    at last.
    sum.
    write : / 'TOTAL',itab-BTGEW.
    endat.
    endloop.
    the command sum adds up all the quantity fields..
    regards
    satesh

  • Sales order Total = Zero (0) No Sales order Lines

    Hi,
    Is there any possibility to accept Sales order Total = Zero (0) - No Sales order Lines for a specific customer?
    I assume it should be a parameter in SBO somewhere...
    Thank you,
    Rune

    Hi Rune,
    i think there's no parameter for this.
    Link
    "You cannot have a Sales Order without items unless it is a Service Invoice"
    regards
    David
    Edited by: David Nussböck on May 3, 2008 1:15 PM

  • Report on open sales order ,total sales

    Hello Gurus
    I am developing a report line item wise of sales order in which i need to get
    Suppose a sales order is created on 01.12.2009 for 1000 quantity
    billed quantity in december 600
    billed quantity in january     200
    1) total sales done against this SO line item wise.
    2) sales in this month againt this SO
    3)open order qty as 01.01.2010
    4)last day sales i.e from 01.01.2010 to 20.01.2010 the date of last sales against this SO
    so my output should be
    total sales = 800
    sales in this month =200
    open order qty as on 01.01.2010= 400
    please tell me the logic
    regards
    sphoorthi
    Moderator message - Please do not post your requirements and ask the forum to do your work for you - post locked
    Edited by: Rob Burbank on Jan 20, 2010 10:47 AM

    Hi,
    I gather from your thread that the question is not to build a report on a MP yes/no but more on which MP.
    Depending on the reporting needs and on how well you are able to combine the 2 cubes in the new MP I would say go for the latter option so you have more control on this one MP (for example if you need to add something that is already available in cubes).
    However, when (future!) reporting needs could mean that characteristics need to be added to the report(s) and filtered on that are not in both cubes you will have major problems getting the data properly from new MP and you would be better off using the individuals MP's and combine the data in a workbook or in a web template giving more flexibility.
    So you need to really analyze the requirements and decide on the way forward. Keep in mind possible future requirements because for now it could seem these few fields could be enough but new requirements could directly give a problem.
    Hope this helps
    C.

  • Sales Order Report Showing Cost on the Sales Order & total invoice dollars

    I am looking for a report in SAP that shows you the Sales Order number, the cost on the sales order (NOT the average cost) the actual cost on the sales order detail line and then the total invoice dollars in month to date and year to date?
    Thanks,
    Linda

    You can use <b>T.code: COOIS </b> if Product Costing has been configured for MTO scenario whcih gives the costing details.
    You can also use To.code: <b>KE30</b> if CO-PA implemented.
    but if you want to link with billing, Please search for any reports in Sales information system.
    One more you can create a ABAP Query Report using T.code: <b>SQVI</b>
    Regards,
    Anbu

  • SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR

    Hello!
    I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
    I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
    Using the Query below, it works fine with already saved records:
    SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
    However, I need that it work with non saved (yet) records.
    Thank you!
    VALERIO OLIVEIRA
    Edited by: ValerioOliveira on Apr 22, 2010 10:14 PM

    Gordon, thank you for your fast answers!
    In other circumstances I would agree with you.
    But the U_Soma field must be used to control the maximum weight of a charge.
    It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
    (The U_TotalPorUM field shows the weight of each item).
    I would appreciate any help!
    Thanks a lot!
    VALERIO OLIVEIRA
    Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM

  • Transaction code for sales order totals and purchase order totals

    Hi i am using alv grid report to display the sales order and purchase order totals by productline(profit center)
    Now i have to call standard transactions from first list to display the totals of sales order and purchase order.I have to display these transctions for specfic orders and their specfic lineitems only.
    in VA05n transaction it is allowing me to enter only the document numer but not item.
    Can any one help to find the standard transaction to display the totals for only specific orders and line specific line items

    Hi Polite,
    The transaction CRMD_ORDER is the superset for all the transactions mentioned by you. So it is better to remember just one transaction instead of remembring the subsets . Once you use the transaction CRMD_ORDER and then Follow the menu Business transaction -> Create (F5) you will get the list of transactions you can create this is nothing but the the transactions you have mentioned.
    If you know the transaction no. you can directly open that in transaction CRMD_ORDER. The other opetion is to use the SAP Menu instead of transactions.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.

  • Purchase Order total weight

    Hi Gurus,
    I am working on an enhancement to handle the total weight of the purchase order during creation.We need to validate with few custom fields in MARA table to handle small pack and large pack materials based on container group(ZCONGR) . Based on the materials quantity we need to calculate the total weight of the order and if it exceeds 50 tonnes then we need to trigger a warning message to the user who is trying to create.
    Please suggest me how can we handle this are there any enhancement where we can handle this requirement. Thanks.
    Regards,
    Sanjay

    Suggestion:
    Implement BADI ME_PROCESS_PO_CUST, put you logic in method PROCESS_HEADER.

  • In sales order gross weight and net weight are incorrect.

    Hi,
    In sales order are for a line item gross wt and net wt are  not showing as per order quantity.
    I checked in material master, in basic data 1 and additinal data gross wt and net wt are maintained correctly.
    So could you please advise me what could be the issue.
    Thanks,
    Praveen

    You need to provide a bit more information on when this is happening like whether the sales order has been created against a contract or the user changed the quantity etc..
    For example, when the user creates the sales order against a contract, while copying and changing the quantity this may happen. This is due to, the user directly clicking the save button before hitting enter button. Meaning whenever a user makes changes in item quantity in the sales order, they can hit the enter button so that the system can refersh the related data. Then the user can click on the save button.
    We had similar issue when the quantity is copied from quantity contract and we instructed the users to hit enter button to refresh all the related data.
    Regards,

  • Freight based on sales order total - FMS

    I have created the query below which works if I hard code the document number, or include the variable [%].   I get internal error when I use where T0.DocNum - $[$8.1.0] or where DocNum = $[ORDR.DocNum], I have also tried where T0.DocEntry = $[ORDR.DocEntry]
    Does anyone kno where I am going wrong?
    SELECT case when      T0.DocTotal >= 1 and T0.DocTotal <= 250 then 10.00
                   when      T0.DocTotal >= 251 and T0.DocTotal <= 500 then 7.50
                   when      T0.DocTotal >= 501 and T0.DocTotal <= 1500 then 5.00     else 0.00 end
    FROM DBO.ORDR T0
    INNER JOIN dbo.RDR3 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocNum = $[$8.1.0] and T1.[ExpnsCode] ='3'

    Hi Sandra,
    Try this,
    SELECT case when T0.DocTotal >= '1' and T0.DocTotal <= '250' then '10.00'
    when T0.DocTotal >= '251' and T0.DocTotal <= '500' then '7.50'
    when T0.DocTotal >= '501' and T0.DocTotal <= '1500' then '5.00' else '0.00' end
    FROM ORDR T0
    INNER JOIN RDR3 T1 ON T0.DocEntry = T1.DocEntry
    Auto Refresh of TAX Code.
    SELECT case when T0.DocTotal >= '1' and T0.DocTotal <= '250' then '10.00'
    when T0.DocTotal >= '251' and T0.DocTotal <= '500' then '7.50'
    when T0.DocTotal >= '501' and T0.DocTotal <= '1500' then '5.00' else '0.00' end
    FROM ORDR T0
    INNER JOIN RDR3 T1 ON T0.DocEntry = T1.DocEntry
    WHERE
    T1.DocEntry = $[ORDR.DocNum]  AND T1.ExpnsCode ='3'
    Regards,
    Madhan.

  • Trying to create a query that shows Sales Order/Invoice Totals as well as Paid/Outstanding/Available Down Payments

    Currently working on SAP B1 v8.82
    I'm looking to generate a query that will give an overall report for a given customer that shows Sales Order No, Invoice No, Sales Order Total, Invoice Total, Amount Paid on Invoice, Amount Remaining on Invoice, Down Payments Available, Open on Sales Order.
    I'm not sure what the best way to select the columns in bold above.  Invoice Total should be self-explanatory.  Amount Paid should be any down payments or applied payments on the invoice.  The balance due on the invoice (which seems to be T0.DocTotal if I'm not mistaken) should = 'Invoice Total' - 'Amount Paid on Invoice'. In the Down Payments Available column I want the total amount of money on the account or on down payments that aren't tied to a Sales Order.  If a client overpaid in the past for instance and there's a credit on their account, then it should contribute to this sum.  Open on Sales Order should be pretty easy.  I guess it's just the sum of everything that is still open on the Sales Order.  I'm just not sure what the best way to sum all the un-delivered freight, tax, and line items is.  Here's what my query looks like so far.
    SELECT DISTINCT T4.[DocNum] [Sales Order No],
    T0.DocNum [Invoice No],
    T4.DocTotal [Sales Order Total]
    T0.DocTotal [Amount Outstanding],
    FROM OINV T0
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN DLN1 T2 ON T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
    INNER JOIN RDR1 T3 ON T2.BaseEntry = T3.DocEntry AND T2.BaseLine = T3.LineNum
    INNER JOIN ORDR T4 ON T3.DocEntry = T4.DocEntry
    INNER JOIN OSLP T5 ON T4.SlpCode = T5.SlpCode
    WHERE T0.CardName Like '%%[%0]%%'
    GROUP BY T4.DocNum, T0.DocNum, T0.DocTotal, T4.DocTotal
    I tried doing a little searching around for queries similar to what I need, but I could find exactly what I was looking for and I'm very unfamiliar with OJDT, JDT1, and ITR1 tables which I think might be important to finding unapplied payments...

    Thanks.  There's a few problems though.
    1)  It seems that OINV DocTotal != Balance Due.  I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
    2)  It's pulling incoming payments from different customers.  I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry]  =  T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]"  In one example I have 2 incoming payments 446 and 614.  Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542.  *I was able to fix this by adding WHERE T5.CardCode = [%0]*
    3)  I'm going to work with this a little bit and see if I can alter it to make it work for me.  Basically this query falls a little short on the following:
    -  Doesn't include incoming payments that aren't linked to a down payment invoice.
    -  Does not give the Invoice Total (I'd like to know how much of the SO was invoiced.  DocTotal seems to give me Amount Invoiced - Down Payments.  I'm not sure the best way to get this number.  Maybe I could do the sum of each line * tax + freight)
    -  Does not give the outstanding amount on an invoice.  The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
    -  Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied.  Perhaps this would be easily accomplished by simply pulling in their account balance.

  • Update new material master weight and dimension in open sales orders and de

    Hi,
    Iu2019m maintaining gross weight, net weight, volume in material master. When the time of sales order entry in VA01 its calculating weight and dimensions based on material master and order quantity. And I create deliveries in VL01N.
    If I made a correction in the net and gross weight in material master after I created the sales order will the correct net and gross weight will pick up at the delivery creation.
    In other term is the VL01N net and gross weight is taking from which is available in SO or Material master.
    Is there any standard transaction to update already existing open sales order, delivery net and gross weight once it is corrected in material master?
    Please advice.
    Sam

    Is there any standard transaction to update
    No it is not possible to update the weight in existing sale order or delivery.  You have to change it manually or create a new sale order.   Weight in delivery will be fetched from sale order only and hence,  whatever delivery you create referencing a sale order, system will copy whatever is there.
    thanks
    G. Lakshmipathi

  • Material weight change in Sales Order

    Hi ,
    In a Sales Order, the weight of a material gets copied from the material master.Is it possible to change the weight of a material in a sales order /Quotation if it is maintained as 0  in Material master.
    Our client used to change the weight in sales order regularly but now system is allowing to change the same . How this can be fixed?
    Regards

    hi
    The reason you not able to change the weight in sales order might be becouse, Weight / Vol. relevant tick in the item category settings (VOV7) is missing.
    If you Maintain the tick and then try to create a sales order. The weight fields will no longer be grey means user can not chnage

  • Open Sales Order Deposits Report

    Experts,
    Is there a way to report on all deposits taken for open sales orders?
    So for every open sales order, I want a total of the payments taken on those orders.
    thank you,
    Bob

    Gordon,
    That did it. I just added one more WHERE criteria to only select orders that have deposits.
    Thank you!
    Bob
    SELECT Distinct t0.Cardcode as "Customer#", t0.Cardname as "Customer Name",  t0.Docnum as "SO #", t0.DocDate, t0.DocDueDate, t0.DocTotal as 'Sales Order Total', t3.DocTotal as 'Deposit Total'
    FROM dbo.ORDR t0
    inner join dbo.rdr1 t1 on t1.docentry = t0.docentry left join dbo.dpi1 t2 on t2.BaseEntry = t1.DocEntry and t2.BaseType = 17 left join dbo.odpi t3 on t3.DocEntry = t2.DocEntry WHERE  t0.DocStatus = 'O' and t3.docentry is not null
    Order by t0.Cardcode
    Edited by: Robert Welch on Mar 9, 2010 9:49 PM
    Edited by: Robert Welch on Mar 9, 2010 9:49 PM
    Edited by: Robert Welch on Mar 9, 2010 10:02 PM

Maybe you are looking for

  • Dynamic link in AE is blank/black

    Has anyone else ran into this issue and have found a fix??  I am trying to link Premiere CS5.5 with AE 5.5 and the dynamic link always comes up blank or black in AE.  See photo. I've already tried setting the background in AE to black, changing Rende

  • Rs485 and VISA Configure Serial Port.vi ?

    I'm given the following spec: RS485, full duplex asynchronous, 19.2K baud, 1 start bit, 1 stop bit, 1 parity bit, and 8 data bits. VISA Confgiure Serial Port.vi does not have input for 1 start bit and parity choices are none, even, odd, mark, space.

  • 20" and 15" apple displays on 1-G4

    I want to run two monitors off my G4 MDD. I have a 20" ACD connected to the Machine and I have a 15" Apple Studio Display going to a DVI converter and then to my other monitor port on my G4. Ideally I want to mirror the 20" display for my clients to

  • Status code error in app store

    So I want to download an app. The store asks me for my log in information, I enter it all correctly. Then it says, 'STATUS_CODE-ERROR' and won't let me log in. I tried the same password and username on my AppleID and it was fine? It's just the app st

  • Color Scheme Change for Webbrowser (Opera) hard to see.

    Using kde 4.5. Plumbum Tones color scheme. Hard to see the adress bar in Opera, google search bar, and hard to see the light grey that I am currently typing in. Is there a way to change the color scheme only for opera, the color scheme looks good on