Want to find /calculate vallue of Profit margin ( KBETR )

Hi All,
I want to fetch or calculate value of KBETR field .i.e Profit margin at header level in SD pricing conditions. important thing is that value should be at header level not at item level.
I have only sales order number with me.
Can anybody guide me , which table or FM will help me for this?
Thanks in advance.
Regards,
Mrunal

The different subtotals from the pricing screen are stored in table VBAP only. The field names are KZWI1 to KZWI6. Those fields contain the different condition screen subtotals.
So if you e.g. want the order header total for KZWI3 just do the following:
select sum( kzwi3 )
       into lv_subtotal
       from vbap      
       where vbeln eq lv_vbeln.
In this case you would get the sum of all item subtotals for KZWI3 for order number lv_vbeln.
Hope that helps,
Michael

Similar Messages

  • Creating a Profit Margin Percentage column in Numbers '09

    I searched around the forums and could not find anything on this topic.
    Basically I am making a spreadsheet for the company I work for and want a column that has our profit margin percentage for a couple of items we sell.
    Problem is, I only have basic knowledge of spreadsheet formulas
    Can anyone help? Thanks!

    plan9
    Hi welcome to the forum.
    The spreadsheets in Pages follow the formating and formulae in Numbers.
    Download the Formulaand_FunctionsUserGuide.pdf from under the Help menu in Numbers.
    Peter

  • Profit margin - frm_kondi_wert_018 - create billing document

    Hi!
    I want to create a sales billing document with reference to a delivery. The profit margin for one billing item not exceeds a certain limit (calculated in FV64A018, frm_kondi_wert_018) and for some materials the system does not pop-up any message, just calculates the margin. The problem is that when the user creates the billing document, the system issues an invoice number but when he wants to display the invoice, the system issues the error message VF 041: Billing document 90589068 does not exist. (I browsed the table and watched the flow documents and indeed the invoice does not exist.)
    It may be a problem of authorization but I don’t find the missing one (I used SU53). I searched SAP Notes or related threads....
    Do you have any idea? Or some helpful links...
    Thanks guys.

    Hi Florina,
    Oh if that is the case then you can try out one last try by debugging the system with help of ABAPer.This way you can atleast analyse why system is behaving in different way for different logons.
    If it is not traced then you can post this in ABAP forum.
    At times I have faced the same issue.That time the cause was in problem in the output program.User had set the processing time of output as 4-Immediately afetr saving the document.Whereas I was processing with manual release of output.
    So whenever I used to save the document it was getting saved.
    But when the user does the same thing the output is called immediately at time of saving the document and due to error in output program,he used to face this sort of error.
    In user's case he system used to issue the document number but when you go to VF02,document number is not avialable.
    Ask user to remove the output assignment and try saving the invoice.This time if the error is not faced then you need to check the output program.
    Reward points if useful
    Regards,
    Amrish Purohit
    Regards,
    Amrish Purohit

  • Can we hide 'profit margin' in the sales order

    I looked in the config, but I did not find any control that will hide the profit margin on the sales order.
    Does anybody know if the only way to do this is to actually take off the 'profit margin' from the pricing procedure?
    Thanks
    Bindu

    Hi bindu,
       if u want to hide profit margin in sales order ,is it captured thru some condition type? if yes then use alternative condition base formula in pricing procedure with either 27 or 56 .if business logic doesnot suit with this std routine then u can write ur own routine in VOFM transaction with abapper's help.
      it is cent % possible to do,and this is the only way also.
    if you also do not want to show this PM in invoice output then untick printing option in pricing procedure for this condition type.
      please reward if this helps !!!!!!

  • Freight charges not to be included in the Net value and Profit margin

    Hi Gurus,
    My client dosent want shipping charges to be included in the net value, but it should appear in the price and also the shipping charges should not be considered in calculating the profit margin.
    Another point is my sale price is cost plus 20% profit. So in my pricing starting point is EK02 and PR00 is 120% of EK02(maintained condition recored for PR00 as 120% of EK02). pls advice if this is correct way of doing it.

    V/06  open the freight condition type and Tick the field accruals in control data 2
    assign the account key in pricing for accruals.

  • Profit margin error at Conditions in Header

    Hi friends,
    I could get the profit margin correctly at each Item level..i.e Net Value minus Intercompany Price.
    Ex- $100 - $80  = 20.
    This I could see at each Item Level.
    But, when I check the same at Header Level , I find the system showing $80 (the intecompany price)..I checked the settings of Intercompany and the Profit Margin..
    They are set to ..Subtotal to -B,  Req- 22 & Profit Margin = Altcly ty- 11.
    Why am I getting this error.? and how to resolve the same?
    Please let me know
    Thank you
    Ravi

    I could solve it

  • Want to find out AREA of POLYGON

    hi friends
    I want to find area of Polygon shape it can be of any type or shape. Is there anything in JAVA which can calculate the area of Polygon. any method or class which can give me area in return if i pass polygon as an argument.
    plzz help

    dear friend
    i know that
    but
    i want some readymade tool
    if u have an idea
    let me know
    thnx

  • I want to find pending invoive

    hi,
    experts,
    i want to find pending invoice from po. Goods reciept and invoices are shown in t code is me22n in po history tab.
    i  already find a goods recipt , now i want to calculate the PENDING INVOICE. so for that there is formula
    pending invoice = goods receipt  (quantity ) -  invoice reciept ( quantity ).
    goods reciept i calculate with ref to mat .doc no and their mvt type. but now i have problem to calculate ivoice reciept ( quqntity ).
    thank's ,
    subodh ........

    Hi Subodh,
    Sorry, it was typo..
    EKET is the table... ( In last reply by mistake I typed it EKKT )
    Checkout Field WEMNG ==> Quantity of Goods Received
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Crosstab Profit Margin Calculation

    I have a crosstab with SalesRep as rows and Product as Columns. I have SumSales and SumCost in the intersecting cells.
    How do I subtract SumCost from SumSales and display this result (SumProfit) in each cell?
    Is there a way to calculate the profit margin percentage in each cell .... (SumProfit/SumSales) * 100.
    Thank you.
    Art

    I Art
    I have two fields last year costs and last year sales.
    I created a formula field in which I wrote the below formula
    product.last year sales - product.last year cost
    I opened the cross tab expert and I put this formula field in summarized fields. I clicked on change summary and checked that by default "calculate this summary" is a sum.
    I checked the options for "Show as percentage of".Click on Ok.
    Please let me know if you could get the desired output after trying a similar way like above.
    Regards
    Sourashree

  • Profit Margins to be applied for Projects

    Hi Dina,
    My client is has a business process as follows:
    1) Contract is received from customer and BoQ estimates are plotted
    2) Based on the estimates, a profit margin at contract level is arrived.
    3) Then the work order is issued to the subcontractor (a vendor).
    4) At milestone completion subcontractor raises a milestone billing (ap invoice) to my client
    5) On the other side the bill to customer is raised based on contract terms (irrespective of subcontractor terms). It is ensured that the profit margin is maintained on every bill raised to the customer. Revenue is recognized when billing is raised. They follow the simple logic of Revenue =Profit %-age * Actual Cost]
    So, firstly, where i can mention in project billing as what is my profit margin %-age, so that the margin is calculated automatically on my cost.
    secondly, how would i ensure that my profit margin is preserved on every supplier invoice raised by subcontractor
    Please help !
    Regards,

    Hi
    I assume the contract billing method is a fix price based on deliverables.
    You will bill the customer by entering deliverable based events.
    To meet your requirement, I suggest you generate revenue based on automatic events. For that you will need to develop a billing extension.
    You could enable a DFF on contract, agreement or project level. The right place for the DFF depend on the mapping of project to agreement. Users will enter the expected margin percentage on that DFF.
    Alternatively you can enter the estimated costs as cost budget of the project. So margin could be derived by a formula of agreement value divided by the cost budget amount.
    The billing extension will calculate the revenue amount as: Accumulated cost * agreement value / cost budget amount - Prior Accumulated revenue.
    If you don't use budgets and maintain the margin on DFF the formula will be: Accumulated cost * Estimated margin - Prior Accumulated revenue.
    As project is progressing you may need to validate the margin estimate. If actual costs differ from originally estimated/ budgeted cost, then users will need to update the budget or update the percentage on the DFF.
    Dina

  • Stock, plant to plant Transfer with a Profit Margin

    Dear Experts,
    Before raising the question let me explain a little about the existing process and configuration in a nutshell.
    We have one company with two business areas(identical with Plant, used from the point of Org unit, We are using BA to get BA wise P&L and balance for selected BS GL a/c),  also we have activated Profit center accounting but not used PCA from org. unit point of view but and alternative perspective it is used.(Product category wise)
    BA1(Plant1) produce product most for the use in to BA2(Plant2) and we use STO to transfer such stock from Plant 1 to Plant 2.
    as per this scenario Stock Cost is being transferred from BA1 to BA2 and we re-post the related indirect cost(admin cost) also from BA1 to BA2 to arrive at Profitability of BA1.
    Now the business has identified some practical issues because cost which are related to BA1 can also be re-posted to BA2 and BA1 will show up a good bottom line while BA2 will bear unrelated cost. Also the inefficiency in production at plant 1 is also not that easy to analyze due to the current method.
    Business wanted to avoid this but since both plant are in same company code we are unable to follow the stock transfer from plant to plant with Delivery and Billing,
    Finally, Business has requested below that they want to do the transfers with a marginal profit to plant 2(BA2) and Material Cost(COGS) will remain in plant 1 and when BA 2 use it such stock will be posted in consumption.
    is this process logical according to the SAP process and can we get the result by activating transfer posting. Is there any alternative method that we can fulfill the requirement.
    Pls. advice.
    Thanks in advance .
    Aziz

    Hi Parth,
    Thanks for you idea.. I refer below MM plant to plant transfer methods, Stock transfer from plant to plant can be done in different ways as i have learnt.they are mentioned below.
    Stock Transfer Between Plants in One Step
    Stock Transfer Between Plants in Two Steps
    Stock Transport Order Without Delivery
    Stock Transport Order with Delivery via Shipping
    Stock Transport Order with Delivery and Billing Document/Invoice
    The Stock Transport Order with Delivery and Billing Document/Invoice -  cannot be done between same plants in a single Company code it referes to Cross company transfers only
    follow below thread to learn about it further
    Stock Transfer Using a Stock Transport Order - Managing Special Stocks (MM-IM) - SAP Library
    but i'm not clear how you are doing your SO-PO transaction in same company code between plants.
    Can you share me more information on this if you have.
    Rgds,
    Aziz

  • I want to find out opening balance as on date in fi(for customer)

    hi
    experts,
    my req is user enter date through selection screen like (07.04.09)
    i want to find opening balance.
    thanks
    ajay.

    Dear Ajay,
    Try for Bapi for opening balance on perticular date. This will definately solve your problem
    I have come across this problem long back.
    Try this. I will give you name of Bapi sortly.
    Regards,
    Vijay

  • I got a text message which had a link attached to it, i did click on the link, basically some job scam but on the link. Now i just want to find out if my phone has been compromised in anyway and what are the tell tell signs.

    I got a text message which had a link attached to it, i did click on the link, basically some job scam but on the link. Now i just want to find out if my phone has been compromised in anyway and what are the tell tell signs.

    your phone has not been compromised.  There have been no viruses, worms or trojan horses ever reported.

  • Your photo library was not found. Do you want to find your iPhoto Library?

    Your photo library was not found. Do you want to find your iPhoto Library?
    Do you want to create or find?
    This is the message I get when I try to open iphoto.
    1. this is the first time since I've used iphoto that this has happened.
    2. I would like to know why.
    3. I am not sure which choice to make.
    4. recent changes involving photos would be deleting several photos....I used a program called Grand Perspective and began to delete photos from there
    5. although I'm interested in fixing this problem, I would like to learn more about 'libraries' and the way iphoto works. Previous to owning a Mac, I used Picasa with my pc and I don't remember it using as much space on my hard drive. iphoto has a large number of duplicated photos of which I've been unable to resolve easily and it is approx. 60 G of space. I would like to have access to my images (30,000) through external hard drives but not necessarily have them all on my mac. I believe that is what Picasa does. I'm using the new Picasa for Mac but want to continue to use iphoto as well.
    If I did not form this question well enough, please let me know how to clarify. I'm trying to remedy this while answering a million Why? why? Why? questions from my 4 year old!
    Thank you.
    iphoto 7.1.5

    I would like to learn more about 'libraries'
    Step one is to learn about iPhoto - it is not a photo viewer like Picasa - it is a photo manager and uses an SQL database - the content and structure of this database are critical (as with any database application) to the operation of iPhoto - any changes made to either the content or structure of the database using external programs including (especially) the finder can corrupt the database and cause you to lose data
    recent changes involving photos would be deleting several photos....I used a program called Grand Perspective and began to delete photos from there
    This is how you destroyed your iPhoto library and made it unusable
    As to space - the iPhoto database contains at a minimum a copy of the original photo (in the default and recommended operating environment) and a small thumbnail. When any modification to the photo is made a modified version is created so there might be three versions (no duplicates) of a photo within the iPhoto library - none of them are extraneous and none of them can be removed without corrupting the iPhoto library
    Once a photo is imported into iPhoto (assuming default settings which are strongly recommended) the original source photo outside of iPhoto can be archived, deleted or otherwise handles - iPhoto has no further need for it.
    The iPhoto library can be located on an external hard drive so long as that hard drive is always available when iPhoto is running
    In general it is not advised to run two different photo organizers against the same photos - so if you use both Picasa and iPhoto you are likely to create future problems (although Google claims it is possible - just remember that you can not successfully make any change of any sort to any photo with the iPhoto library using Picasa or any other program - if you only use Picasa to look at photos you may be ok - if you never make any mistakes
    As to your immediate problem - you have destroyed you iPhoto library by deleting files from it. If you want to use iPhoto you will have to start over - find the originals folder within the iPhoto library and launch iPhoto while depressing the option (alt) key and create a new library - import the photos from the originals folder into iPhoto and do not go inside the iPhoto library or modify the contents of the iPhoto library in the future.
    LN
    Message was edited by: LarryHN

  • How to get iccid by using imei?i had lost my iphone and i want to find it back.

    how to get iccid by using imei?i had lost my iphone and i want to find it back.

    Ocean20 wrote:
    Not sure about ICCID but you can get your IMEI by going to the computer you normally sync to and open iTunes there click on edit then preferences then on the devices tab and then hover mouse over your backup and the IMEI and other info on your phone will appear
    Interesting. Yet another of the many Easter eggs dispersed throughout the system.

Maybe you are looking for

  • Concatenation of Data from 4 infoobjects into a single cell in Bex Report

    Hi, I have loaded ODS with the description data. The source system for loading the ODS is the flat file. The ODS data should be a replica of the flat file. In the flat file, there is a description field corresponding to a particular ID. This Descript

  • Memory On Duel 2 gig G5 Disappearing.

    My Mac crashed yesterday 2/11/09. I noticed after I rebooted that the memory was showing 4.6 gig instead of 6 gig. I added 4 more gig last August. It has never had any other problems before this. I looked at Diagnostics: Power On Self-Test: Last Run:

  • Place 65 Word files

    G5; OS 10.5.4; CS 3 I've received 65 Word files that I have to place as a single story. Normally I would tell my client to put them together into one file but in this case I cannot. I can select multiple files to place but they will not flow continuo

  • Restoring backup created in ios4 to earlier 3gs version

    Probably a daft question but I hope someone can answer it for me. Following problems with rebooting in the middle of calls Apple are going to replace my 3gs which I had updated with ios4 with a replacement phone. As part of the trouble shooting with

  • Help! My MacBook won't turn on all the way!

    When I turn my MacBook on, the gray screen pops up and where the Apple logo should be, there's a circle with an X type thing going through it (more like a \ actually, kind of like the no smoking signs without the cigarette) I've tried restarting, wha