Sales price - Purchase price =profit for item sold

Dear Expert,
Suppose 'X' is an item is  
1)purchase 5 qty on 01-01-2010 at 100 INR
2)purchase 2 qty on 31-01-2010 at 80 INR
3) and Sold 5 qty at 105 INR...it means 5 INR is my profit.
I want a query that list me entire profit of "Sales Order"
we are on implement FIFO method.
please give me SQL query.
Thanks
Kevin

Suppose on same day I have two  different price i.e for X
01-01-2020 X -> 50 INR 100qty
01-01-2020 X -> 55 INR 90qty
Now how to cal. smple profit on my sales of 190 QTY ???
Thanks
Kevin
Edited by: Kevin Shah on Jun 17, 2010 5:25 PM

Similar Messages

  • How to identify Sale Order costing is required for Items in Sales Order

    Howstandard cos estimate*w to identify Sale Order costing is required for Items in Sales Order?
    On which criteria we can conclude Sale Order Costing is reqd ?
    ? * means what and wat is the purpose and how to chk for the Item in Sales Order, either it is required or not**.

    Hi Dharamveer,
    The best way is to make the order qty is equal to the quantity delivered. This way, when some one looks at this order in future - they think that the order was for X and the delivery was for X qty is completed. They will not know the background of the issue unless they go through change log. Even in change log, they see that the Ord qty was adjusted, but may not understand why?
    The good practice is to make order qty equal to already delivered qty.
    Create a new line for the remaining qty and reject the same with appropriate reason for rejection. This way, any one can understand the background , the reason for rejection easily. Hope it helps !

  • Price uplift for item groups

    I want to uplift my selling price by some percentage based on the purchase price list for a group of items. When I try to do this under price list, I get the following error
    Unable to update basic price list or rounding method for selection criteria item [Message 3506-11]
    Can this be achieved using special pricing? If yes, then How?
    Any suggestions are appreciated
    Regards,
    Mohan

    Hi Gordon,
    Thanks!
    Are you referring to Special prices for Business partner --Add items using the items groups or properties and copy discount to all customers?
    If yes, I also setup discount based on the customer property and item property and this will not work if the Special prices for Business partner applies?
    Any suggestions?
    Regards,
    Mohan

  • Price list for items

    Hi
    my client's one item is sold at different prices.so he want to use price list.how to alot price in the price list and
    whats the procedure for doing.please explain it instead of giving any thread link.
    Thanks in advance.

    krishna
    you have a number of options. it will depend on what your business purposes are
    1. you can have different prices for each item and a price list for each. link customers to the price list so that all customers to whom that pricelist applies to will get that price
    2. each of these prices could have period discounts, which you could use to give discounts. you could also give volume discounts.
    3. in addition to this, you can also set up special prices. in effect, using this, you can have a different price for each item based on each customer.
    you could choose either one of this or a mix of these options.
    prem

  • Sales and Purchase Analysis reports by Item

    The current functionality of these reports is more like an open items list rather than an analysis report.
    If you Run a Purchase Analysis report by Item with a secondary selection of Supplier, and choose GRPO - the scenario is to find out how many of which products you have received in the date range from a specific supplier. This type on data is useful to use for negotiations on pricing etc.
    Currently, the report will only display values for GRPO that have not been drawn to AP Invoice. This is supposedly system functionality, but, the report is called analysis, so should provide data for that purpose?

    Hi,
    You may double click the column header to change the sort.
    Thanks,
    Gordon

  • Automatic Purchase Requestition creation for item category "L" (Stock Item)

    Hi All,
    I have a query,
    When components are assigned to a maintenance order whose item category is "L" (Stock Item).
    As soon as components are assigned a reservation number is generated by the system immediately.
    Now my requirement is,
    for an item category which is "L" (Stock item), while I am saving / releasing the order, system should do availability check and based on the qty available it should automatically generate reservation (in case of full qty is available) or a purchase requisitions ( in case of non availability).
    Is this feasible? If so kindly let me know how it can be done.
    Currently in my case,
    i am getting a reservation number for an an item whose item category is "L" but the stock qty is "zero". System should have ideally generated a purchase requisitions number for such a case because of actual available qty being "zero"
    Is there any setting called "reservation time" so that after checking the availability of that item system decided whether a reservation number should be generated or a purchase requisition number?
    Thanks and with best regards
    Kannan J

    Hi Thyagarajan,
    I wud like to share with you  a content of SAP documentation which is as follows:
    "You can plan materials that are required to execute the task for each operation in the maintenance order. The materials can be bill of material components for the reference object or freely assigned material.
    <u>The materials that you plan for the maintenance order will be reserved in the warehouse, if they are kept in stock. You can set the reservation time in your system using the customizing function. In customizing, it is decided for each order type, whether the system should make the material reservation effective or generate the purchase requisition immediately or only when the order is released.</u>
    An availability check can be called up when components are assigned in the order.
    An automatic availability check is performed when the order is released. The order can also be released if there is no availability.
    A material provision list and material withdrawal slips can be printed together with the order papers.
    Planned goods issues are entered with reference to the reservation, such as reservation number, unplanned goods issues with reference to the order number.
    The goods issues entered appear in the document flow of the order."
    Now with this, is there a way out to resolve the issue?
    Best Regards
    Kannan J

  • Sale price refund for album purchase?

    I just bought an album for $11.99 on Sunday. Today, Tuesday, it went on sale for $6.99.  Can I be refunded for the difference?

    No, you pay the price as it was at the time of buying, you don't get a refund if it subsequently goes down in price (similarly you won't have to pay more if becomes more expensive in the future).

  • How to handle pricing for items sold in prepacks

    The requirement:  Sell individual items together as a prepack and offer a discounted price.  These individual items in the preapck are also sold individually at full price.
    The Issue: Returns.  If a customer returns the individual item, how do we know if it was sold as the prepack or individuallyu2026so we end up crediting the customer the higher value.
    Your suggestions will be appreciated.
    Regards,
    Hemanth

    Hi,
    you have to use authorizations in this case for approval process in CATS IT 0316 and It 0328 are used for authorizations. These are two dummy infotypes.
    it is verymuch possible to enter data in CATS for a single PERNER via two or more profiles.
    Regards,
    Kapil Kaushal

  • Query for serial number for items sold

    hi,
    I want a query which would show serial numbers for Product A and Product B which were sold. I know that following tables will be used
    SELECT T0.[CardCode], T0.Docnum,T0.[DocDate], T0.[CardName],T1.Quantity,T1.[ItemCode],T6.DistNumber
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    inner join DLN1 T4 on T1.DocEntry=T4.BaseEntry
    inner join ODLN T7 on T4.DocEntry=T7.DocEntry
    inner join OSRN T6 on T4.itemcode=t6.itemcode
    WHERE T1.[ItemCode] in ('ProductA','ProductB') and  T0.[CardName] like'% naaveol%' and T0.CANCELED<>'Y'
    group by T0.[CardCode],T0.[CardName], T0.[DocDate],T1.[ItemCode] ,T0.Docnum,T6.DistNumber,T1.Quantity
    Howerver I am doing some thing wrong and it is showing alot more records than it should. basically what I was trying to do was to get
    item code
    serial num
    quantity
    for the items mentioned  sold to the particular business partner.
    Your help will be greatly appreciated

    Hi again.......
    Please try this.......
    SELECT T0.CardCode, T0.Docnum,T0.DocDate, T0.CardName,T1.Quantity,T1.ItemCode,T4.DistNumber
    from ODLN T0 inner join DLN1 T1 on T0.DocEntry=T1.DocEntry
    left outer join SRI1 I1 on T1.ItemCode=I1.ItemCode   and (T1.DocEntry=I1.BaseEntry and T1.ObjType=I1.BaseType)
    left outer join OSRN T4 on T4.ItemCode=I1.ItemCode and I1.SysSerial=T4.SysNumber
    Regards,
    Rahul

  • Issue in Exporting the Sales Price List and Purchase Price List for the Materials from SAP Business ByDesign (SAP Cloud)

    Hello Everyone,
    I would like to have a discussion on the issues, which I am facing at the time of Exporting the Sales Price List and Purchase Price List for the Materials from
    SAP Business ByDesign (SAP Cloud).
    (1). Sales Price List :
    We have maintained Customer Group Specific Sales Price List for the Materials in the following Location.
    Location :         Product and Service Portfolio Work Center > Pricing > Price Lists > Customer Group Specific Price List (Type of Price List)
    Target :             We want to export the entire records in some reports or excel sheet.
    Records :          Number of Materials in the Customer Group Specific Price List is more than 2,00,000
    Issues : 
                                         (A). In the SAP Business ByDesign Screen we can filter by number of records but we can export till  50,000 records.
                                                 And if we are trying to export records more than that limit, then it throws "HTTP 500 Internal Server Error".
                                         (B). We could not find any SAP standard reports in Product and Service Portfolio and/or Business Analytics Work Center
                                                for getting the entire record set of the Sales Price List, so that we can have the entire set of records together.
    Searching For :
                                          (A). Is there any SAP reports or data source available for getting the entire Sales Price List records?
                                          (B). Can we have any other filter conditions for exporting the Sales Price List records in a single shot or module wise?
    (2). Purchase Price List :
    We have maintained the Purchase Price List for the Materials in the following Location.
    Location :           Product Portfolio Work Center > List Prices > Active List Prices (Type of Price List)
    Target :               We want to export the entire records in some reports or excel sheet.
    Records :            Number of Materials in the Purchase Price List is more than 4,00,000.
    Issues :  
                                           (A). In the SAP Business ByDesign Screen we can not see more than 10,000 records and the actual number of
                                                   records are more than 4,00,000. We could able to download the records till 10,000 but that is not sufficient.
                                                   We want to export the entire records in an excel sheet.
                                           (B). We could not find any SAP standard reports in Product Portfolio and/or Business Analytics Work Center for
                                                  getting the entire record set of the Purchase Price List, so that we can have the entire set of records together.
    Searching For :
                                           (A). Is there any SAP reports or data source available for getting the entire Purchase Price List records?
                                           (B). Can we have any other filter conditions for exporting the Purchase Price List records in a single shot or module wise?
    Please go through the attached screen shots for the references and more clarity on the issues.
    I am waiting for the valuable responses.
    Thanks and regards,
    Susanta Dey Sarkar
    Bangalore, India
    19th March, 2015

    Dear Michael,
    The number of records :
    2 Million (Approximately) is for the Sales Price List Material Price Data
    4 Million (Approximately) is for the Purchase Price List Material Price Data.
    Regards,
    Susanta Dey Sarkar

  • Last purchase and sales price

    Dear Experts,
    I do require a report in which we can compare last purchase vs sales price of same item.
    Item Code,  description, last purchase rate, last sales rate ,     Profit  ,     %
    1234 ,            furniture   ,   1500.00  ,             1800.00  ,            300.00 ,    20%
    I can find last purchase price from master data but couldn't find last sales price.
    Any inputs will be highly appreciated.
    Regards,
    Ravi

    Hi,
    Try this query:
    SELECT case when T1.[ObjType] = 17 then 'OR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORDR T1 ON T0.CardCode = T1.CardCode INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 15 then 'DN' end as DocType,T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ODLN T1 ON T0.CardCode = T1.CardCode INNER JOIN DLN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 23 then 'QT' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN OQUT T1 ON T0.CardCode = T1.CardCode INNER JOIN QUT1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 13 then 'AR' end as DocType,T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode INNER JOIN INV1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 16 then 'SR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORDN T1 ON T0.CardCode = T1.CardCode INNER JOIN RDN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 14 then 'AR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORIN T1 ON T0.CardCode = T1.CardCode INNER JOIN RIN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    Thanks & Regards,
    Nagarajan

  • Function Module or BAPI for Sales price calculation and Pricing worklist

    Hi Retail experts,
    We frequently change purchase conditions, but not that frequently for cases like perishables, so sales price calculations needs to be done each time. This means pricing worklist generation and release is done often and then sales price recalculation is done each time article wise and for various organization level.
    We have 15000 articles for which purcahse conditions changes, it is impossible to generate and release pricing worklist and do sales price calculation for each article
    So solution may be to find a FM/BAPI for the following transactions and automate them.
    Do you know FM/BAPI for VKP5/VKBP or VKP6, WVN0, WVN1 transactions.
    Regards
    Bob

    HI Madhu,
             Thanks for the reply,
    I am looking for BAPI or FM which will check all pricing condition types( like MRP of the Material(table A304), discounts(A800,A802,A803,A804) for that customer and Tax) and give me the value(KONP-KBETR).
    I can only pass Customer, material, quantity etc.. so that BAPI or FM has do all standred checks/ validation and give the
    KONP-KBETR for all condition types like MRP, discounts, Tax. we are developing the custom program for sales order creation so we require the all this before saving the sales order.
    Regards,
    Nagesh
    Edited by: nageshdb4u on Mar 5, 2011 12:05 PM

  • Credit Check while creation of Sales Order for Item Category Purchase Req

    Hi Experts,
    We are creating Sales Order using an Order Type ABCD for a material 1000. While creating Sales Order, we use Item categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO).
    Credit Check settings are there at Order Type ABCD as well as all the Item Categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO). We are trying to test a scenario where a customer does not have enough credit limit while creating a sales order.
    When we create a sales order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP), credit check fails because our customer does not have enough credit limit, so that Sales Order gets created and Delivery does not get created (This is what we want), then we go into VKM1 manually and relase the sales order and then if we go to VA02 and check the status of the Sales Order, it says sales order status is complete. My Sales Team is saying here also Purchase Requisition is getting created.
    When we create a sales order for Item category ZOBO, it is going into Purchase Requisition screen. Once we give another plant in the create purchase requisition screen and save it we are getting a message that cannot create Purchase Requisiton because of Credit Block.
    The settings were same for all the Item categories.
    1) What made difference to complete Purchase Requisition for Item Categories (ZOVD, ZOVB,ZOST,ZOVP) and not for Item Category ZOBO when my customer is not having enough credit Limit.
    2) Why Purchase Requisition screen is not coming for us when we create an Sales Order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP). We only get Create Purchase Requisiton Screen for Item Category ZOBO.
    Thanks
    Rajanikanth

    Hi,
    None of the Item Categories has Create PO Automatically.
    Thanks
    Rajanikanth

  • How to calculate current sale price like VA01

    Hi,
    I am developing one report, in which I am showing open sales order.
    Now, I wanted to calculate the current sales price from pricing procedures and conditions. Means I need the current sales price of the Item, like I am creating the new sales order today,
    Client wanted the difference between the sales order price and the current price.
    How can I get the current sales price, any Function Module for that?? Or I have to manually take all prices from condition tables and KONP, and calculate?
    I need a Function Module instead to code like..........
    Standard SAP pricing is try to get the price from top to down pricing hierarchy, if 1st level not find, then base on the combination of next level, try to get it,
    if no found, just keep going until reach the last pricing Level ( if found on any level then it will skip & pick up that price )
    For example
    ZPR0 has 3 Level
    Sales Org/DC/Currency/Customer/Material/Stor.Location
    Sales Org/DC/Currency/Customer/Material
    Sales Org/DC/Currency/Material
    If the combination of 1st level no price there, there it will go to the 2nd level until it reach the end.
    Thanks,
    Chetan Shah

    Hi,
    The Procedure for calculating MAP is :-
    Case 1 :- PO at different price
    If in Material Master your MAP is 0.8GBP & closing stock of 30Nos, value is 24GBP
    In PO if the price is 0.9GBP & qty is 10nos, then after Goods Receipt Total Value of the GR i.e. Qty * Price + any other delivery cost will be added to the material stock value.  Qty is also updated.  New Total Value / New Stock Qty will be MAP.
    In this case Qty received 10 & price is 0.9 that means value would be 9GBP.
    Total Value becomes 24GBP (Present Stock) + 9GBP (Goods Receipt) = 33GBP
    Total Qty becomes 30Nos + 10Nos (Goods Receipt) = 40Nos
    MAP becomes = 33GBP / 44Nos = 0.75
    Case 2 : Invoice Posting (MIRO) at different price than PO
    While doing MIRO is we post at different price system will check whether sufficient stock posted in GR is available.  In the above case it is 10Nos,
    If it is there, then the above logic as in case 1 will take place
    If not available, to the extent of stock availability system will post the different value & adjust MAP & remaining is posted to Price Difference Account.
    In your case it would be like this :
    1. MAP 0.8 for 30Nos (Value would be 24GBP)
    2. Invoice Posting 1.74GBP for 1No.  That means value would be 24GBP + 1.74GBP = 25.74GBP
         Qty would be 30+1 = 40
         MAP = 25.74 / 40   = 0.64GBP
    Hope this clarifies your doubt
    regards,
    JP

  • How to know Last Sales Price?

    Hi all,
    My requirement is, at the time raising SO, I want to know the last sale price of the item for the customer to whom I'm raising SO.
    Is it possible in SAP B1?
    Rgds,
    Balaji

    Dear Mr. Sridharan,
    As per your advise, I tried but I didn't get any details of my last sales price.  In the help file, it says that if we upgrade the package to 2007 then we can see the last price details.  Is it so?  If not, please advise if any other settings to be done to get the last price.
    Rgds,
    Balaji

Maybe you are looking for