Sales forecasting-updating opportunities with booked values

Hi,
we have a need where a user creates an opportunity for a large deal (say worth 6M USD) which will be realized over say 6 months. each month from the day the oppty is created say 1 MUSD worth orders will be created.
how do we incorporate this scenario in the monthly sales forecast. challenge here is that one opportunity will result into multiple orders each month. how will the sales forecast know that against the large deal of 6 MUSD, some amount is already realized/booked and it should subtract that amount from forecast report. need is to avoid double forecasting in such scenarios.
is there a standard report which takes care of such scenarios?
i am sure this is not a unique situation in almost all B2b sales this should be a need.
any pointers will be appreciated
thank you.

I referenced the post below.
http://social.msdn.microsoft.com/Forums/en-US/6f68404d-82f3-4df0-b5b9-00e353cbcf68/conditional-split-expression-evaluates-to-null?forum=sqlintegrationservices
it is not working for me.  I don't understand the approach of using derived column to get rid of NULLs neither.  Can you help?
Thank You Warmest Fanny Pied

Similar Messages

  • Updating PK with same value - effect on CASCADE UPDATE

    Hello,
    I would like to understand how sql server 2008 deals with cascade updates
    For example I have
    Parent table: Employee with column Id as varchar(20) primary key
    Child table with IdEmployee as varchar(20) foreign key
    I set up Cascade Update for those two tables, meaning any change to primary key in Employee table will cause update in child table rows that match affecting Id
    Scenario 1:
    Update Employee
    set Id = 'ABC',
    Name = 'something new'
    where Id = 'CCC'
    Result of child table: all rows with foreign key IdEmployee and value of 'CCC' are updated. Expected behavior.
    Scenario 2:
    Update Employee
    set Id = 'ABC',
    Name = 'something new 2'
    where Id = 'ABC'
    This time, i am doing something different. I am beside update of column Name with new value, also update primary key but
    with SAME value
    Question is: what is going to happen to child rows? Are they ALL going to UPDATE due to CASCADE UPDATE
    So far, what i did in order to find solution is:
    1. I put an timestamp column in child table that should update each time row gets updated
    2. I put a trigger for update event on child table that will write something to some log table
    *After I set up those two I ran example like above just to be sure timestamp gets changed as well trigger is being fired
    Results of updating PK with same value:
    1. Timestamp didnt change
    2. Trigger didnt fire
    Is this enough to make conclusion that updating primary key with same value ALONG with updating some other columns won't
    affect child tables with UPDATE CASCADE ON
    Update:
    Database is CI AS collation
    If i do following
    Update Employee
    set Id = 'abc',
    Name = 'something new'
    where Id = 'ABC'
    1. Timestamp will change
    2. Trigger will fire
    Conclusion: Case sensitive is important here!
    Thank you very much in advance
    Milos

    >>  would like to understand how sql server 2008 deals with cascade updates <<
    Your posting has a number of conceptual errors. 
    1. The terms “parent” and “child” are not RDBMS; they are used in network databases. We have “referenced” and “referencing” tables; they can be the same table.
    2. A table models a SET of things, so there is no “Employee” table unless you truly have a one-man company. We want a collective or plural name for the SET/table. A better name is “Personnel” for this table. 
    3. Her is no such thing as a generic “id” in RDBMS; it has to be “<something in particular>_id” to be valid. Identifiers are usually fixed length 
    4. It is very, very rude not to post DDL on a forum. You also do not know the ISO-11179 Rules for data element names. They do not change names from table to table! Does your name change whenever you use it in a new place?? NO! Same principle with data. 
    5. The ISO standard uses “<property>_<attribute property>” syntax, no the old PascalCase.
    6. Why did you post a useless narrative? How do we compile “I SET up Cascade UPDATE for those two tables,..” to test it?? 
    CREATE TABLE Personnel
    (emp_id CHAR(20) NOT NULL PRIMARY KEY,
     emp_name VARCHAR(25) NOT NULL,
    CREATE TABLE Health_Plan
    (health_plan_acct CHAR(20) NOT NULL PRIMARY KEY,
     emp_id CHAR(20) NOT NULL 
     REFERENCES Personnel(emp_id)
     ON UPDATE CASCADE
     ON DELETE CASCADE,
    Scenario 1:
    UPDATE Personnel
       SET emp_id = 'ABC',
           emp_name = 'something new'
     WHERE emp_id = 'CCC';
    Result of child table: all rows with foreign key emp_id and value of 'CCC' are updated. Expected behavior.
    Scenario 2:
    UPDATE Personnel
       SET emp_id = 'ABC',
           emp_name = 'something new 2'
     WHERE emp_id = 'ABC';
    This time, I am doing something different. I am beside UPDATE of column emp_name with new value, also UPDATE PRIMARY KEY but
    with SAME value.
    >> Question is: what is going to happen to child [sic: referencing]  rows? Are they ALL going to UPDATE due to CASCADE UPDATE. <<
    SQL uses a set-oriented model, so the whole table is updated as a unit of work in theory. 
    So far, what I did in order to find solution is:
    >> I put an timestamp column in child [sic: referencing] table that should UPDATE each time row gets updated <<
    Why? It is not in the SET clause list; it cannot change. As an aside,  The T-SQL TIMESTAMP is not the ANSI/ISO TIMESTAMP; it is DATETIME2(n) in T-SQL. The old TIMESTAMP is being deprecated because it stinks both in concept and implementation. 
    >> I put a trigger for UPDATE event on child [sic: referencing] table that will write something to some log table.<<
    TRIGGERs are fired by what is called a “database event” shown in the ON [DELETE | UPDATE] clause. T-SQL adds INSERT as an event. An update to any value or to no value at all is still an update. Depending on the collation, case may or may not matter in the final
    outcome. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Update column with ROW_NUMBER() value

    I have a column that I would like to update with a ROW_NUMBER() value partitioned by a specific column.
    CREATE TABLE ##tmp (id INT NULL,
    value1 VARCHAR(10),
    value2 VARCHAR(10))
    INSERT INTO ##tmp (value1,
    value2)
    VALUES ('A', 'asdfasdf'),
    ('A', 'asdf'),
    ('A', 'VC'),
    ('B', 'aasdf'),
    ('C', 'sdfgs'),
    ('C', 'xdfbhsdty'),
    ('C', '23sdgfg'),
    ('C', '234')
    -- update the ID column with the values below
    SELECT ROW_NUMBER() OVER (PARTITION BY Value1 ORDER BY Value2),
    Value1,
    Value2
    FROM ##tmp
    I have 14 million records.  Can someone explain the best way to do this?  Does the ORDER BY destroy performance for this many records?
    Thanks!

    CREATE TABLE ##tmp (id INT NULL,
    value1 VARCHAR(10),
    value2 VARCHAR(10))
    INSERT INTO ##tmp (value1,
    value2)
    VALUES ('A', 'asdfasdf'),
    ('A', 'asdf'),
    ('A', 'VC'),
    ('B', 'aasdf'),
    ('C', 'sdfgs'),
    ('C', 'xdfbhsdty'),
    ('C', '23sdgfg'),
    ('C', '234')
    -- update the ID column with the values below
    ; with cte as (
    SELECT ROW_NUMBER() OVER (PARTITION BY Value1 ORDER BY Value2) as RowNumber,
    Value1,
    Value2
    FROM ##tmp
    update cte
    set Id = RowNumber;
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • JCA adapter doesnt update MarkReadColumn with correct value

    Hi,
    I've created a JCA adapter in the SOA suite which polls a certain database. The poll works perfect only during configuration I set it to do a logical delete. My JCA looks like:
    <adapter-config name="SchoolFitListener" adapter="Database Adapter" wsdlLocation="../WSDL/SchoolFitListener.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/DB/SchoolFit" UIConnectionName="SchoolFit" adapterRef=""/>
      <endpoint-activation portType="SchoolFitListener_ptt" operation="receive">
        <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
          <property name="DescriptorName" value="SchoolFitListener.PollSchoolfitPolltable"/>
          <property name="QueryName" value="SchoolFitListenerSelect"/>
          <property name="MappingsMetaDataURL" value="SchoolFitListener-or-mappings.xml"/>
          <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
          <property name="MarkReadColumn" value="MESSAGE_READ"/>
          <property name="MarkReadValue" value="READ"/>
          <property name="MarkUnreadValue" value="UNREAD"/>
          <property name="PollingInterval" value="60"/>
          <property name="MaxRaiseSize" value="1"/>
          <property name="MaxTransactionSize" value="10"/>
          <property name="NumberOfThreads" value="1"/>
          <property name="ReturnSingleResultSet" value="false"/>
        </activation-spec>
      </endpoint-activation>
    </adapter-config>When I look in the log, it does the update only with the wrong value:
    UPDATE POLL_SCHOOLFIT_POLLTABLE SET MESSAGE_READ = ? WHERE (((((((((((((MESSAGE_TYPE = ?) AND (MESSAGE_READ = ?)) AND (EMPLID = ?)) AND (SF_ID = ?)) AND (VOORNAAM = ?)) AND (ACHTERNAAM = ?)) AND (VOLLEDIGE_NAAM = ?)) AND (STRAAT = ?)) AND (HUISNR = ?)) AND (POSTCODE = ?)) AND (WOONPLAATS = ?)) AND (GEBOORTEDATUM = ?)) AND (BSN = ?))
    [2011-06-15T15:34:17.067+02:00] [osb_server1] [TRACE] [] [] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000J2JW9fx7y0G_yx0FyW1Dvr150008l6,0] [SRC_CLASS: org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism] [APP: JCA Transport Provider] [dcid: ae78371b7bf314eb:253fe233:1306f4ea111:-8000-00000000000149e2] [SRC_METHOD: executeBatchedStatements]      bind => [UNREAD, C, UNREAD, SF9905731, 131983, John, Doe, John Doe, DowningStreet, 79, 57112, NY, 15-3-1994, 1234567890]Can anyone tell me why it does an update with the wrong value?
    Much thanks!

    Found it. Marked too many fields as PK's during wizard so it couldn't find the right row for the update.

  • Update layout with var value

    Hello all.
    I have a dropdown list with values and a button on page1, and I have an layout on page2.
    The problem is that I want that the layout on page2 could be updated depending on the value of page1.
    Could anyone help me!!
    Vitor Ramalho

    you can pass the value of Page 1 to Page 2 via Navigation->SET_PARAMETER(name = 'your_variable' value = 'Value') &
    then based on the value u received from Page 1, update the Page 2. can you be more specific to help you more.
    TO show values in Layout use below syntax:
    <%= your_variable %>
    Note: DOnt forget to set the "Auto" checkbox in Page2 parameter.
    Raja T
    Message was edited by:
            Raja Thangamani

  • Best way to update footer with book version #

    Hi all,
    I have a book and that book has a version number, 4.0. This number is on the cover page, and in the footer of the document as well. What I would like to do is have that version number in the footer update whenever I change the version number on the cover page.
    What is the best way to do this? Cross-reference or variable? I just don't want to have to update the footer everytime the version number changes?
    Any ideas?
    Thanks!

    1. Define a user variable in your cover page
    2. Update a representative file to use this variable in the footer
    3. Use File > Import > Formats, selecting only Page layouts and Variable definitions, to update the layout and variables for all the documents you need to manage.
    ] Take care if some documents already use variables with document-specific values you don't want to overwrite
    4. When you need to change the version number on the cover page, update the variable in that file and repeat step 3 (this time with only Variable definitions selected) to apply the update to all the component files

  • How to update iterator with popup values

    Hello all,
    I've got a question regarding updating my iterator tableview (non-mvc bsp application).  I've used some javascripting to open a popup window and retrieve the selected value back into a hidden input field on my cart page.  Now, what I need to do is get the value into the appropriate field in the iterator tableview.  Any ideas?  (Right now, there is no event fired in the cart page after the popup is closed).
    Thanks in advance,
    Lisa

    Hi Lisa,
    You need to fire an event when the popup closes by placing the following in the the cart page:
    <bsp:htmlbEvent id   = "closing_event"
                    name = "closing_event"
                    p1   = "closing_event" />
    This event is fired when you close your popup by using the following JavaScript:
    window.opener.closing_event('POPUP');window.close( );
    Regards,
    Patrick.

  • How to update a column with different values but all other row values r sam

    Hi,
    I have a table like this.
    Col1 col2 col3 col4
    10 20 30
    10 20 30
    10 20 30
    i need to update col4 with different values coming from other table like this
    Col1 col2 col3 col4
    10 20 30 xxxx
    10 20 30 yyyy
    10 20 30 zzzz
    how can i update the table. pls let me know how to use the where condition in the update stmt.
    thanks,
    jay
    Edited by: user2558790 on Nov 20, 2009 12:26 PM

    what is the logic for this kind of update...????
    Greetings,
    Sim

  • Update sales opportunities with DTW

    Hi Experts,
    I am trying to update sales opportunities with DTW but get the error below even with a file as simple as:
    RecordKEy;SequentialNo;OpportunityName
    RecordKEy;SequentialNo;OpportunityName
    1;17803;Anything
    2;17892;Anything
    3;17894;Anything
    The Reason of the error:
    "CServiceData::VerifyPropertyWrite failed: Property 'SequentialNo' of 'SalesOpportunities' is read onlyoSalesOpportunities"
    Do you have any idea what may be wrong?

    Dear Martin Kamau,
    By SDK help, the Source table of SalesOpportunities Object is OOPR, and SalesOpportunitiesLines is OPR1.
    In B1 application Sales Opportunity form, you could check which field need to set for OOPR and OPR1, you could refer to SDK help file also.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • SOP- Sales forecast in $ value

    Hello,
    Is it possible to enter a sale forecast is SOP or Flexible SOP in $ value of forecast sales, instead of at Quantity in "PCS". For example, we want to forecast for 6 months the sales of a product family. Is it possible in SOP or it must be done with CO/PA?
    Regards,
    Edited by: Boaz Weinstock on Jun 30, 2008 4:37 PM

    In the flexible planning, you should choose right planning type which has layout of sales value instead quantity.
    Planning type is linked to a planning table.
    Forecast comesup from history, CO/PA is used only for the cost benefit analysis.
    Thanks,
    Srinivas Karri

  • Legacy Asset Net Book Value is Zero-Want to post Sale of Asset for the same

    I have Scenario
    We have upload the legacy Assets in Year 2005. One of the Asset Net Book Value is Zero. When we are trying to post Asset Retirement, the for that Asset following is error message received:
    "Retirement of Old Assets data not possible (No Existing old Asset Data).
    Though in the books the Net book value is Zero, we have received profit on sale of Asset.
    How post the profit on Asset & also how to take it from the gross block.
    Thanks
    Rags

    Hi,
    the e-message stated, that you must use another transaction type:
    so not a transaction type with old asset data like 210.
    try / test  transaction types : 250-275
    pls reward useful answers
    thx.
    Andreas

  • Help in modifying create sales order - update value during idoc import

    Hi,
    I have been asked to modify the process of creating a sales order when an idoc comes through. The basic requirement is to update a value in the sales order item (VBKD-BSTKD_E) with a value from the Idoc (in segment E1EDP02).
    I have never mapped inbound documents before and I was wondering if anyone could help me. I think I have idnetified the right enhancement VEDA0001 - EXIT_SAPLVEDA_001 but I am not sure what the syntax should be.
    Does anyone have any idea - or pointers where I could create this solution. I even tried to put a break-point into the customer exit - but it seems to be ignoring the code!
    Would appreciate anybodies help
    Paul

    hi Paul,
    I need to enhance FM u201CIDOC_INPUT_ORDERSu201D. So I had created the new project ZDEV_VEDA via tcode CMOD and under this new project, I assigned the VEDA0001 enhancement. I wanted to enhance Function exit EXIT_SAPLVEDA_001 (INCLUDE ZXVEDU03). But I had encountered this message:
    Program names ZX... are reserved for includes of exit function groups. Message no. DS027
    Any ideas what is this about? Appreciate so much.
    TQ.

  • I updated my Mac Book Pro to Yosemite, now to says it's not compatible with my Cannon copier. Any idea how to fix this problem?

    I updated my Mac Book Pro to Yosemite, now it says it's not compatible with my Cannon copier. Any ideas how to fix this problem so I can use my Cannon copier again?  Thanks for any help!

    If MF4150 is correct...
    http://www.usa.canon.com/cusa/home
    search MF4150
    click >Drivers & Software
    Verify or choose Yosemite 10.10 - then click the [+]
    Again verify Yosemite > click agree > click [DOWNLOAD]
    The rest should be self-explanatory
    ÇÇÇ

  • Deleting  rows with missing values in field in start routine of update rule

    Hello experts,
    how can I delet rows with missing values in a specific field in the start routine of update rules?
    I think ABAP code should look something like this:
    delete ...  from DATA_PACKAGE where Z_NO = ''.
    thanks in advance for any suggestions!
    hiza

    Write:
    delete data_package where field = value.
    Hope it helps.
    Regards

  • Problem Regarding Invoice Booking with freight value

    Hi,
      I have RBKP , RSEG, BKPF, BSEG tables.
    I can fetch data from above tables for invoce booking values.
    But i can't fetch freight and other charges against particular  invoice.So i am getting purchase rate of material without freight
    in case of same purchase order and in same item.
    one example,
    Company purchase one item based on PO today.
    after two days Company purchase same item bsed on same PO.Now user make entry of invoice with frieght.Now in two invoice how can i find freight of one invoice.
    So kindly suggest how can i link invoice with freight.

    Hi,
    I tried in my system and its working fine allowing to change the amount in MIRO. My doubt is whether it was client requirement during implementation to set such an error message..
    It might has something to do with the Partial Inv. field in the Account assignment category in PO item level..
    Are u using Derive from account assignment category???
    Please check this answered thread
    Error Message M8575 - Partial Invoice not possible
    Please check
    sBk
    Edited by: Sujithbk on Dec 14, 2011 5:56 AM
    Edited by: Sujithbk on Dec 14, 2011 5:58 AM

Maybe you are looking for

  • Itunes 10 installs but says unknown publisher invalid digital signature

    i need help as i would like to upgrade to itunes 10. I have tried absolutely everything such as restarting computer and resetting tools on internet. it installs perfectly but once it has finished it comes up with an error message saying unknown publi

  • Preview issue in ATG-Endeca integration case of CRS at Endeca side

    I'm using ATG 10.1.2 and Endeca with Experiece Manager 3.1.1, both are the most current version coming out at the begining of this new year 2013. I followed the documents and deployed the Commerce Reference Store (Known as CRS) with option of Endeca

  • Scenario planning in CRM 2007

    Hi All, Does any one have any idea abt Sceranio planning in CRM 2007. I need to create scenaio's for a customer plan using  'Agreemeent Deep Copy functionality' of CRM 2007 What is 'Agreement Deep Copy functionality'?..any idea abt this any one?

  • Logic- report to move columns to row in a list

    Hi, I have an internal table ITAB with following data ITAB DATE      MATNR PLANT  QUANT 200704    100A   050   111.00 200705    100A   050   333.00 200706    100A   050   444.00 200707    100A   050   555.00 200704    100B   051   999.00 200705    10

  • Start backups from scratch

    I've got a Time Capsule and want to start a new full backup of my Mac keeping a copy of my previous series. Since it seems that it's not possible to partition a TC an alternative solution AFAIU could be renaming the corresponding sparsebundle file. T