Calculating sales volume from items to opportunity header.

Hi,
For a customer we are dealing with the following challenge: We are using opportunity management with items, but no products. The total value of the items of an opportunity (NET_VALUE_MAN) is displayed on the header level of the opportunity (NETVALUEMAN).
When we select the status "Lost"  on item level, we would expect/like the total value of the opportunity to be adjusted. example:
Item 10: 100.000 EUR
Item 20: 50.000 EUR
item 30: 25.000 EUR
Total value of opportunity = 175.000
If we change the status of item 10 to "lost", we would like to see the value of the opportunity on header level to 75.000.
Does anyone know how (or give a hint)  to accomplish this? Is there is a BAdI available, or is it possible to manage it via the GET/SET method for the item/header of the opportunity? Should it be standard SAP behaviour?
Thanks in advance,
Regards,
Luc

Try using system status CANC (Cancel) on the item level. I think this should deactivate pricing for this item.
If not, you can use badi for opportunity header under spro>crm>transactions>settings for opportunities>business add-ins>business add-ins for opprtunity: header data. here you can write the logic to accomplish your need.
Regards.

Similar Messages

  • Expected Sales Volume in Pipeline Performance Management

    Hello,
           I have created a few opportunities for my sales team with the closing dates in a particular quarter and specified the values for 'Expected Sales Volume' maintained for each opportunity as required. However, when I view the peipeline performance management reports for that month/quarter, I do not see the expected sales volume in the graphs. The graphs in the reports show the expected sales volume as zero. I am not able to figure out why this is happening. Inputs would be appreciated.
    Regards,
    Aditya Mishra

    Thanks. However, in the Quota Planning page, I'm unable to edit the first row, i.e. the monthly distribution for the sales organization. The monthly distribution for the other rows i.e. the sales team members is editable by me. Could you please let me know how I can enter the values for the monthly distribution for the sales organization also?
    Thanks,
    Aditya Mishra

  • Inheriting Sales area from header to ITem

    Hello All,
    is there a way to inherit header sales area to Item sales area pelase?
    I read SAP documentation that explains that if you leave ORg Determination profile as EMpty for item catogory, it inherits from header to item.
    But system does not do it for the division.
    if i leave it empty, only Sales org and Distribution channnel get inherited but not division. divison is allways coming from material.
    is there anyway to change this and get Sales area determining always from header of the document pelase?
    BR,
    KP.

    Hi npl kpl,
    Division will always come from product. That is standard behavior. If you read the IMG activity description for 'Assign Organizational Data Profile to the Item Category' , it is clearly stated that division will get derived from product.
    Now if you must change it, I think you will have to write custom code in some BAdi after the org determination has happened for your item.
    Regards,
    Niraj

  • Calculation for volume on sales order  VBAP-VOLUM

    Our materials have a base unit of measure and an alternate unit of measure.  We want to be able to enter the alternate unit of measure on the order as the sales unit, but have the volume calculated on the base unit of measure.   
    For example:
    Base UOM is Case with a volume of 40 CFT
    Sales UOM is Eaach with a volume of 9 CFT
    One Case equals 4 Eaches
    If a customer orders 1 Case the volume is 40 CFT.  If a customer orders 4 Eaches (which really is 1 Case), the volume is 36 CFT.  We need the volume calculation for the Eaches to equal 40 CFT in this example.
    We cannot change the volume of the alternate unit of measure in the material master to be 10 CFT per Each so we need to figure out a way to automatically change that value on the sales order.
    Is anyone aware of a way to have the order volume get calculated using the base UOM instead of the sales UOM?
    Thanks
    Diana

    Hello Diana
    There is a fallacy if you say that I case = 4 Eaches, but the volume of a case is different from 4 eaches. I am also assuming that if the customer orders 3 eaches, you want to compute the volume as 27 CFT. What will happen if customer orders 6 eaches? Will it be 60 CFT or 58 CFT or 54 CFT? I am guessing 58.
    I totally understand that you may have business reasons for it.
    If you can't have the Alternate UOM to specify 1 Each is equal to 10 CFT, that makes it even more difficult.
    There are broadly 3 options for you:
    1) Maintain  2 separate material numbers for Cases and Eaches. I hate this but this is a clean option.
    2) Maintain Each as Base Unit of measure and Case as alternate unit. Whenever a customer orders case, then add a sub item ( say Packaging material) with a volume of 4 CFT.
    2) If you want to have just one material and case as the Base Unit, you will be haunted by Z code for life.   You need to keep on replacing the item volume in orders, deliveries and Invoices ( VBAP/LIPS/VBRP) with this logic I will mention below. This essentially consists of 2 broad steps:
    a) In the material master,  let the volume be 40 CFT as it always refers to the Base Unit.. But in  field 'Size/dimensions' (physical dimensions)  maintain the information as follows: 4X3X3X1 or even 4X9.  Here 4 signifies the number of eaches in a case. Understood the field 'Size/dimensions' is for information purpose only but you will use it for calculations. Actually you will use part of it, the part after' X'. I know this will be an ABAPer's nightmare.
    b)  Whenever Sales Unit is not base Unit, check if Sales unit is a whole multiple of the Base Unit and if so replace the item volume with the equivalent base unit volume.  So if customer orders 8 eaches, then the volume will be fetched from 2 cases,i.e.,  80 CFT. If the if Sales unit is  not a whole multiple of the Base Unit , then replace the whole numbers with equivalent base unit volume and the balance eaches with the volume from the  'Size/dimensions' field. In this case if the customer orders 6 eaches, it is equivalent to 1 full case and 2 eaches, so it will be 40+ 2x9 = 58.
    Complicated? Sure.
    Let me know if it helped you in any way.

  • Opportunity Header and Item tables

    I am looking at the keys on the Opportunity Header and Item table which are GUIDs.
    I have the following scenario.
    1. My source table contains the Opportunity Header GUID
    2. My target table requires all the fields from the source table and some Opportunity Header and Item attributes
    I can write WHERE clause logic for my Opportunity Header attributes
    For my Opportunity item attributes I was going to introduce a count - this is not possible with Item GUID unless a part of the GUID is incremental for each line by 1 or there is a maintained field otherwise as part of the Opportunity Item which is a number representation for each line.
    Can someone advise
    Thanks

    Hi,
    In the CRMD_ORDERADM_H table you have the Opportunity GUID as well as the Object ID which is the opportunity id.  In the CRMD_ORDERADM_I table, you have the GUID and also the NUMBER_INT which is the item number.  See if you can use the item number.
    Thanks.

  • Enable PDF Generation of Sales Order from Opportunity not working

    Hi all,
    we are trying to enable the PDF Generation for Sales Order from Opportunity.
    We´re working on the ERP-HCI Scenario.
    We´ve setup the necessarry configurations (chapter 11.3.11) how described in the document:
    https://websmp201.sap-ag.de/~sapidb/012002523100002166322015E/1502_SAP_C4C_ERP_HCI.pdf
    1. Create Endpoint in ECC for the WS "SalesDocumentPrintPreviewQuery"
    After saving the settings we have an calculated enpoint:
    /sap/bc/srt/rfc/sap/salesdocumentprintpreviewquery/{SAP-CLIENT}/salesdocumentprintpreviewquery/salesdocumentprintpreviewquery
    2. Create a new Communication Arrangement in C4C for the Scenario "Print Preview of Business Documents in SAP Business Suite"
    Question to the following Step:
    Go to Advanced Settings and enter the URL you have captured from SOAMANAGER in the Create Endpoint section.
    Why we use the host and calculated endpoint from the ECC instead of the HCI settings, and maintain in HCI the target host and endpoint?
    The Check Service and Check Connection test was successfull.
    Finally if we try the scenario from C4C (Customers > {Select a Customer} > Opportunity > Sales Document > {Click the link}
    We got a blank new Window, in the C4C UI we get the error "PDF Document could not be retrieved"
    In the ECC > SOA Runtime Error Log i get the following Error!?
    What´s wrong with our config?
    Thanks in advance,
    Fabian

    There is nothing impossible in SAP. After all there is a code behind everything that we see in SAP screens and transactions and that code can be changed according to our requirement. That has always been m firm belief.
    Like I said get hold of your ABAP programmer and write out the spec and he should be able to do it.
    Its news for me that you can generate an automatic PO from a GR so if that is possible then why not this.
    Its not been attempted before.
    Try creating a new Sales doc type and map it to a delivery and see if it works. Much similar to a cash sale and rush order when both docs get generated immediately. Maybe you need to map your copy control criteria too in a way it can be done.Also maybe you need to create a new field called Immediae sales Order like we have an immediate delivery check box in a sales order so that an automatic sales order can be generated when you save a delivery.
    Like I said it needs some coding.
    regards
    Jude

  • FINT interest calculation on cust overdue items from net due date required

    Hi.
    I am running FINT option i am running interest calculation from net due date onwards whereas the system is calculating the interest from Next date of due date.
    For example: Customer invoice is raised on 01.01.2011 and Net due date is 01.01.2011. I gave the option in the interest calculation - SPRO - FINANCIAL ACCOUNTING(NEW) - ACCOUNTS RECEIVABLE AND ACCOUNTS PAYABLE - BUSINESS TRANSACTIONS - INTEREST CALCULATION - PREPARE ITEM INTEREST CALCULATION, Ref date as as 1 - Value date (Baseline date from Net Payment).
    Still the system is calculating the interest from 02.01.2011 instead of from 01.01.2011.
    Can anyone help me in this regard.
    Regards,
    Padmavathi

    Hi,
    We can calculate interest on items cleared with in the calculation period.
    When you are calculating interest on open items, system will check open items as on the Calculation Date.
    But if you want to calculate Interest on items cleared with in the calculation period., you have to check Calculate Interest on Cleared Items also.
    For Instance: If you are calculating Interest on 31st July for the period of 01.07.2009 to 31.07.2009, in this case
    some open items are already cleared with in this calculation period, even though you have to calcuate interest for those cleared items for that many days. System will calculate interest for that many days.
    Try with this option, still if you need any help please let me know.
    Thanks
    Chandra

  • I have bought an Item from apple store Called "Scarry Tribes , 19,999 sale ! . from develober Called "XYRALITY GmbH" Type: In App Purchase , and no thing added to my Account in the Game !!?

    I have bought an Item from apple store Called "Scarry Tribes , 19,999 sale !" . from develober Called "XYRALITY GmbH" Type: In App Purchase , and no thing added to my Account in the Game !!?
    and if you cam Help Me I'll Copy the Invoice or Order number .. !

    While I am no fan of Best Buy and would not buy a lightbulb from them I doubt you issues have anything to do with your iMac and more to do with your lack of experience and simply getting bad advice. Judging by you post I suspect you have loaded your computer down with a lot of crapware and that  has caused it's problems. For example running antivirus apps on a Mac not only is a waste of time, it's a waste of money, system resources and will eventually create more problems that it solves. Please begin educating yourself on the subject by reading Thomas Reeds articles on the subject, Thomas is a frequent and knowledgeable contributor to these forums. You can find his webpage at http://www.reedcorner.net/tech-guides/
    The good news is here are absolutely no, zero, zippo viruses for OS X. There are other types of malware available (for example trojans) however they differ greatly from viruses in that the use has to download and install them, whereas viruses do not work that way. OS X is not like MS Windows and is extremely secure.
    My suggestion at this point would be to clean your computer of the crapware (including antivirus apps) however before doing so please download and install EtreCheck and post its report. Then we can see how your computer has been configured and begin to give you some advice on the next steps.

  • Creation of sales order from idoc; items referencing to different contracts

    Hi All,
    My requirement is to create sales order from an idoc.
    IF a sale order contains multiple items , then the order should be created with contract referenced
    -at the So item level, the valid contract found for each material is different
    hence am not able to use the following bapis
    BAPI_SALESORDER_CREATEFROMDAT2  is not triggering the copy controls.
    BAPI_SALESDOCUMENT_COPY  i can give only one reference document
    Please help
    Thanks
    Deepa

    Hi Deepa,
    Following link can help you for creating sales order with reference
    http://msdn.microsoft.com/en-us/library/cc185190.aspx
    http://www.sap-img.com/fu036.htm
    Award points if useful
    Thanks,
    Ravee..

  • Storing and calculating sales per item

    The case: We have a item, on that item we have a fee. If the item has sold more than 1000 copies, the fee will drop. Therefor i need to have a place that calculates/stores total sales per item. This can then be used to set the fee when i run my stored procedure
    for sales etc. 
    Database explained shortly: 
    The sales database looks like this: 
    ItemID, SalesDate, Quantity, Name.
    Example: 
    1399, 2014-01-01, 2, Fompa.
    1081, 2014-01-01, 13, Asddd. 
    1399, 2014-01-03, 1, Fompa. 
    Etc. 
    The item database looks like this: 
    ItemID, Name, Author, etc
    Now my boss asked me if i maybe should add total sales to the item database, but how is that possible? 
    I have also tried to gather all items and show the total sales, but something goes wrong, the itemID are not grouping together..
    here is the query: select ItemID, QUANTITY from BOOK_SALES group by ItemID, QUANTITY order by MAX(quantity) DESC
    If i get this query right, is it possible to store the query within a database table? 

    Hey, thanks for a fast answer. 
    I modified your query a little, 
    select
    itemid, sum(quantity) from book_sales group by
    itemid order by MAX(quantity) DESC
    but still, all of the itemIDs are not being grouped together. 
    Results show something like this: 
    1399, 981
    1081, 344
    1399, 199
    etc..

  • Profit center derivation from sales order line item  - R/3 4.7

    Hi,my scenario is below
    FI document generated from billing is as
    DR:GL1 - its not customer AR,because i post amount to one GL instead customer  (profit center is dummy)
    CR:GL2  (profit center is correct)
    i can see profit center in sales order line item and billing line item,why that profit center not copy to GL1?can someone advise,thanks
    Best regards
    renhua

    Hi phaneendra Reddy ,
    The substitution rule is to determine profit center in sales order line item,not for FI document.right?
    because i can see correct profit center in sales order.
    i know if i post debit site to customer AR,will execute a periodic run to transfer AR to profit center,but now i post debit site to a GL,dont know how to get profit center

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZPRN), a new access seq (9011).  The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine.  When I set the Partner Function to be SH.  I get the following error msg:
    "The Language does not come from the partner function AG for MVKE".
    Any ideas?  This access seq does not reference MVKE. It only references KNMT.
    Thanks!

    Hi Lisa,
    Just stumbled on this post, as I am searching for something similar.
    What you are attempting to do isn't possible in config.
    This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
    They work for sold-to only.
    Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
    You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
    the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
    However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
    I am currently looking myself for a solution for this problem and I will let you know what I find.
    Cheers
    Chris

  • Material Variant configuration in sales order line item from Ztable

    Hello Experts,
    we have configurable material and and creating sales order. from sales order line item if we goto configuration we can maintain variant configurations. My requirement is that when i click on configuration after selecting a line item i need to check ztable where i have material no and and relable text. if an entry exists i have to populate this relable text in one of the configuration filed. Can any one help how can i read and update configuration in sales order level and where to do this coding so that when i click on configuration the value from ztable populated in a field.
    Many thanks in advance.

    Hi Senthil,
    It is simple.
    When you create a characteristic which should have the value maintained in the Z table, go to the tab values. Here you have a push button called "Other Value check". Here you click this button and select the function module option. Now, in the window, you will have a place where you can mention the name of teh function module.
    You create a function module with the help of your developer to find out the text maintained in the Z table using teh rules you have in your mind and update that logic in the characteristic. In the earlier screen, you just have to mention the name of the function module, thats all, your work is done.
    Now when you configure, for this characteristic, the value will be automatically determined using teh function module. You have to create such characteristics as "Not ready for input" ones in additional data for which you cannot enter values manually.
    Hope this helps.

  • Create Opportunity Header api calling from java

    Hi,
    I need to call the Create Opportunity Header api from java but from looking at the spec this is going to be impossible without wrapping the API in some more PLSQL so that it is exposed using SQL types rather than PLSQL types which are not supported in JDBC.
    Is this correct? Are there other approaches which you can suggest.
    Peter.

    See this
    http://forum.java.sun.com/thread.jsp?forum=52&thread=94146

  • Delivery to copy weights,volumes from material master,instead of sales ord

    hi,
    The weights/volumes get copied from the material master to the sales doc and from the sales doc to the delivery.
    We have a issue where proper weights/volumes are not known at the order entry. thus when the new weights etc are noted, they change it in the material master.
    could some one please let me know how to configure the system to take the values from the material master for these instead of the sales doc to get the weights/volumes.
    that is the delivery doc should get the weight and volume from the material master(changed values)
    Appreciate your help on this.
    Thanks & Regards,
    Keshini

    Hi Keshini
    So , lets assume that you have created a sales order for the material MAT1 and it has Net weight 5kg & Gross weight 6kg ,Now the sales order status is open you have not yet delivered that order and you have changed the Net weight 10kg & Gross weight 14kg. So you want to update that open sales order to Net weight 10kg & Gross weight 14kg. If that is the problem then just go to VA05 and give the material (MATNR) and check the box open sales orders then you will get the open sales orders then in the menu you select to carryout the net weight & gross weight there you can change .and then you can do delivery then the updation will take place in the Net weight & Gross weight also
    Regards
    Srinath

Maybe you are looking for