SPP- DRP - Supersession - Predecessor net demand not rolled up to successor

HI
In SPP - DRP, if a product is in supersession , the predecessor products' net demand is not getting rolled up to the successor product.
If for example, Product A is being superseded by Product B, if we continue to get sales order demand in Product A, this demand is not getting rolled up to the successor product.
We want this predecessor product demand to get added into successor demand and get  into the schedule line created.
Request some urgent help please,,
regards
SRS Kannan

Hi Rodrigo
I am Fine, Thanks , How are you,,
You are right, i should not have used the word "roll up",
Supersession realignment , yes, will realign the demand history for the predecessors and  successors.
What we are looking here is the open sales order, which are in overdue and yet to be serviced in the predecessor product.  This demand we expect to be calculated in the successor product while we are doing the DRP run.
Our scenario is we continue to get sales orders in the predecessor product and we need to service in the successor product.
The real overdue in the  open customer demand of the predecessor product, this qty we want to add in the successor product.
Hope this is clear,
regards
SRS Kannan

Similar Messages

  • Planned receipts on raw net demand when rounding is applied

    We have Planned receipts of 3300 is based upon the raw net demand of 3700 and rounding of 1515. The system should generate the Planned receipts of 4545 instead of 3300. It should round off to higher value and not to the lower value.
    Based on this raw net demand system should propose the planned receipts of 4545 and not 3300. How we can restict the system to  propose the planned receipts on higher side and not to round off to lower side.

    Hi Vaibhav
    Planned Reciepts are proposes based on MINIMUM LOT SIZE * MAXIMUM LOT SIZE fields you define for your product master @ customer location. It has nothing to do with rounding values or profiles
    Ex: If you have set MIN LOT SIZE - 1500 & MAX LOT SIZE-4500
    And your Raw Net Demand
    >is 3700, system would create planned receipt for 3700
    >is 5000, system would create planned receipt for 4500
    >is 1400, system would create planned receipt for 1500
    The Rounding Value or Rounding Profiles are applicable for TLB shipements and Net Demand Calculations.
    Please go thru this link, SAP has given very good examples.
    http://help.sap.com/saphelp_scm70/helpdata/en/47/505b1826870a1de10000000a42189d/frameset.htm
    Replenishment Planning---Replenishment Service-Rounding
    Please get back to me, if you have any further doubts on how to setup the above for TLB and Net Demand Calc
    Best Regards
    Vinod

  • Inactive component cost not rolled up to top level item

    Hi
    Our scenario is as follows: we have a top level item with a BOM. And some components of the BOM  are having material status u2018inactiveu2019. Inactive means materials will not procured and sold, however we could have inventory which can be consumed in production of other materials. In other words inactive items are like old items. These inactive items already have costing value. And we donu2019t want to recost inactive items.
    Having described above scenario, the requirement here is when we run costing for top level item, system should take costing value of inactive items  and roll up into top level item costing which is NOT happening now. Client donu2019t want to recost inactive items. The reason for not recosting inactive items is the recosting could change cost of inactive items significantly.  We are using 4.7 version and standard costing.
    Would appreciate any ideas or suggestions in this regard.
    thanx
    Sunil

    Thanks Young for the reply. 
    We already set 'do not cost' indicator for inactive components. And these inactive components do have standard costs valid up 10 12/31/2999.  It seems bom explosion is excluding these materials. it is ok to exclude. However the existing standard cost of these inactive components did not roll up in to top level. when I checked the costing status log, it says material ABCDF123 in plant 3344 has material status 40: Inactive.
    I checked BOM as well and inactive component is flagged as 'relevant for costing'.
    We are using following valuation varaiant
        Strategy Sequence ->  1. Planned Price 1    2.Standard Cost
        Transfer Control - Complete Transfer
    thnx

  • Project professional 2010: Physical % Complete field does not roll-up to the summary tasks

    Hi,
    I have a project plan which I need to set the physical % complete fields of it in order to use it for earned value over time report. I have assigned costed resources to come of the tasks, set all project task's earned value method to physical % complete,
    and finally set a baseline. However, the physical % complete still does not get calculated for the summary tasks! It is always zero! 
    I have created another project with only 3 tasks and 3 resources, did the same as above, and was able to get calculated values for the physical % complete.
    I followed the same procedure in both projects. In one I was able to get the physical % complete value of the summary tasks while it was always zero in the other! What may be the problem? 
    Regards,
    George 

    Hi Julie,
    This is what I am seeing as necessary to make Physical % complete roll up to the summary level task.
    BEFORE tasks are entered, set the "Default Task Earned Value method" to Physical % complete. File > Options, Advanced.  This will set both the summary and detail tasks to that method.
    Add tasks
    Add resources with costs.
    Assign resources to tasks.
    Baseline the file
    Take a look at the Tracking table and enter progress in the Physical % complete field for subtasks. The value should roll up.
    Sadly I don't know of anyway to force the change after the tasks have been added.  You can certainly add the Earned Value Method field to a task view to confirm all is set - but I have never been able to switch mid-flight and get it to work correctly.
    I did, however, just try an experiment.  I created a file that did not work correctly - Physical % complete was not rolling up.  I inserted it into a blank project that had the option set correctly without linking.  After a bit of tweaking
    (outdenting all tasks to be able to delete the "extra summary task", saving a baseline), it now appears to be working correctly.
    I hope this helps.

  • S_ALR_87013532 report -plan cost not rolling upto the WBS/Project level

    Dear All,
    Plan cost from production orders is not rolling up to the WBS/Project level in S_ALR_87013532 ( Plan/Actual Variance report).
    Where as plan cost from network is properly rolling up to the WBS/Project level in the above report. 
    Please suggest what could be the reason for this issue. Is any configuration needs to be done for this.
    Thanks & Regards,
    Vishal

    Dear sir,
    Thanks for the reply & sorry for late response from my side.
    OPSV settings are already maintained in our system.
    Some how i realized  later that cost are actaully getting rolled to the WBS level, but we have observed one more discrepancy.
    Example -
    Production order "X" value - 100 (  as seen through co03)
    Production order "X"value- 40 ( as seen through report s_alr_87013532).
    We found that  in report  s_alr_87013532 , although my total  producton order value of 100 is represented at the WBS /Project level, but at the production order level , it is showing value of 40. 
    On further analysis we found that for production order X
    Materail cost- 60
    Labour cost-40
    The material cost of 60  is not getting fetched against production order "X" in report " S_ALR_87013532".
    There are very few cases , where such discrepancy is seen.
    Kindly suggest.
    Regards,
    Vishal

  • Subcontracting challen po net value not come in challen

    Hi
    While I taking print of subcontracting challen po net value not come in challen
    any reply
    Regards
    Kailas ugale
    Edited by: Csaba Szommer on May 9, 2011 10:36 AM

    Hi
    check this link it may helpful to you
    same question was put by me in forum some day ago
    [net value not coming in subcontracting challen|subcontracting challen print;
    Regards
    Kailas ugale

  • Statement in Transaction Does Not Roll Back

    I have a group of MySQL statements in a method of a Java application.
    I include an SQL error in the last statement to test the rollback of the transaction.
    All the statements roll back, EXCEPT for the one detailed below.
    The MySQL table:
         CREATE TABLE Counter (
              number INT( 4 ) NOT NULL DEFAULT 0,
              account_id VARCHAR( 12 ) NOT NULL PRIMARY KEY
         ) ENGINE = InnoDB;I have run the staement as a PreparedStatement and a Statement:
    PreparedStatement:
         String updateCounterStr =
              " UPDATE Counter " +
                   " SET number = number + 1 " +
                   " WHERE account_id = ? "
         updateCounter = con.prepareStatement ( updateCounterStr );
              updateCounter.setString( 1, accountID );
              int uc = updateCounter.executeUpdate();     Statement:               
         Statement updateCounterStatement = con.createStatement();
              int updatecounter = updateCounterStatement.executeUpdate(
                   "UPDATE Counter SET number = number + 1 " +
                   "WHERE account_id = \'" + accountID + "\'"
              con.setAutoCommit( true );     //     ------------------------------------ Transaction ENDS
              updateCounterStatement.close();
    //               updateCounter.close();
              ... several more
              con.close();
         } catch(SQLException ex) {
              System.err.println("SQLException: " + ex.getMessage());
              if (con != null) {
                   try {
                        System.err.print("Transaction is being ");
                        System.err.println("rolled back");
                        con.rollback();     //     < ------------------------------------ con.rollback() HERE
                   } catch(SQLException excep) {
                        System.err.print("SQLException: ");
                        System.err.println(excep.getMessage());
    }     //     ---------------------------------------- END the methodIn both cases Counter is incremented, but does NOT roll back.
    The other statements in the transaction do roll back,
    I am using:
    mysql Ver 14.12 Distrib 5.0.18, for apple-darwin8.2.0 (powerpc) using readline 5.0
    on Mac OS X 10.4.x
    I would greatly appreciate a solution to this problem.
    Many thanks in advance

    I think autocommit is true by default. Also, it looks like your'e setting it to true, and then executing more SQL.
    Explicitly set it to false, and DON'T set it back to trueif there's any chance you're going to want to rollback after that.

  • Toplink 9.0.4.8 and JTS on OAS 10.1.2.0.0 and 10.1.2.0.2 not rolling back

    Re-Posting message with more information.
    Toplink 9.0.4.8 and JTS not rolling back transaction
    Hi
    Scenario:
    I have a session bean (EJB1) calling a session bean (EJB2).
    When an EJB1 is called, EJB1 persists data on to Table1 in database.
    And EJB1 makes multiple calls to EJB2 to create entries in three different tables. Trans-attribute is set as required on both EJBS.
    Problem:
    EJB1 gets a Runtime Exception while inserting the data into TABLE1 (ORA-12899: value too large for column), EJB1 transaction is rollback, but all other transactions related to EJB2 are getting committed. I assume that they should roll back too.
    Also, I did JAD on external transaction controller and listener and noticed that there is a transaction associated to each call. Meaning EJB1 had Transaction T1 and EJB2 had T2, T3, and T4 for the subsequent calls. When EJB1 is getting runtime exception in the method beforeCompletion(), the it calls rollbackGlobalTransaction() which is calling T1.setRollbackonly(). But not on on T2, T3, and T4 rollback
    Am I missing anything?
    Please help me
    Here are my configuration details:
    The datasource configuration:
    <data-source name="myTxDataSource"
    class="com.evermind.sql.OrionCMTDataSource"
    location="jdbc/myTxDataSourceCoreDS"
    xa-location="jdbc/xa/myTxDataSourceXADS"
    ejb-location="jdbc/myTxDataSourceDS"
    pooled-location="jdbc/myTxDataSourcePooledDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="duser"
    password="d123"
    url="jdbc:oracle:thin:@localhost:1521:ORCL"
    inactivity-timeout="30"
    />
    Sessions.xml
    <login>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
    <datasource>jdbc/DimpleTxDataSourceCoreDS</datasource>
    <user-name>duser</user-name>
    <encryption-class-name>oracle.toplink.internal.security.JCEEncryptor</encryption-class-name>
    <encrypted-password>22F7AFE6F6B9672435537CE1189E123DD62D1A19DF561D1E</encrypted-password>
    <uses-native-sequencing>true</uses-native-sequencing>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    Toplink Helper class that is used by both EJB's
    This one uses SessionBroker. here is how it is initialized:
    SessionManager manager = SessionManager.getManager();
    sessionBroker = (SessionBroker) manager.getSession(xmlLoader,
    sessionBrokerName, this.getClass().getClassLoader());
    Oracle9iJTSExternalTransactionController extController = new Oracle9iJTSExternalTransactionController();
    sessionBroker.setExternalTransactionController(extController);
    It has common following commong methods:
    public UnitOfWork getUnitOfWork() {
    UnitOfWork uow = sessionBroker.getActiveUnitOfWork();
    return uow;
    public Object create(Object o)
    UnitOfWork uow = getUnitOfWork();
    uow.registerNewObject(o);
    // added so that the assigned sequence number will be available before the commit happens
    uow.assignSequenceNumber(o);
    return o;
    }

    A couple of this appear different in your sessions.xml. To do what you want you need to configure TopLink to:
    1. Use an external XT controller - requires flag to be set and controller provided
    2. Use the OC4J data source - requires flag to be set and data source name provided
    I notice that your sessions.xml has both a data source name as well as a direct connection URL.
    Here is a sample that shows the proper settings for the external TX and data source usage:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink Sessions 9.0.4//EN" "sessions_9_0_4.dtd">
    <toplink-configuration>
       <session>
          <name>default</name>
          <project-xml>META-INF/tlMap1.xml</project-xml>
          <session-type>
             <server-session/>
          </session-type>
          <login>
             <datasource>jdbc/DimpleTxDataSourceCoreDS</datasource>
             <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
             <uses-external-connection-pool>true</uses-external-connection-pool>
             <uses-external-transaction-controller>true</uses-external-transaction-controller>
          </login>
          <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
          <enable-logging>true</enable-logging>
          <logging-options>
             <print-thread>false</print-thread>
             <print-date>false</print-date>
          </logging-options>
       </session>
    </toplink-configuration>Doug

  • Toplink 9.0.4.8 and JTS on OAS 10.1.2.0.0 and 10.1.2.0.2 not rolling back t

    Toplink 9.0.4.8 and JTS not rolling back transaction
    Hi
    Scenario:
    I have a session bean (EJB1) calling a session bean (EJB2).
    When an EJB1 is called, EJB1 persists data on to Table1 in database.
    And EJB1 makes multiple calls to EJB2 to create entries in three different tables. Trans-attribute is set as required on both EJBS.
    Problem:
    EJB1 gets a Runtime Exception while inserting the data into TABLE1 (ORA-12899: value too large for column), EJB1 transaction is rollback, but all other transactions related to EJB2 are getting committed. I assume that they should roll back too.
    Also, I did JAD on external transaction controller and listener and noticed that there is a transaction associated to each call. Meaning EJB1 had Transaction T1 and EJB2 had T2, T3, and T4 for the subsequent calls. When EJB1 is getting runtime exception in the method beforeCompletion(), the it calls rollbackGlobalTransaction() which is calling T1.setRollbackonly(). But not on on T2, T3, and T4 rollback
    Am I missing anything?
    Please help me
    Here are my configuration details:
    The datasource configuration:
    <data-source name="myTxDataSource"
    class="com.evermind.sql.OrionCMTDataSource"
    location="jdbc/myTxDataSourceCoreDS"
    xa-location="jdbc/xa/myTxDataSourceXADS"
    ejb-location="jdbc/myTxDataSourceDS"
    pooled-location="jdbc/myTxDataSourcePooledDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="duser"
    password="d123"
    url="jdbc:oracle:thin:@localhost:1521:ORCL"
    inactivity-timeout="30"
    />
    Sessions.xml
    <login>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
    <datasource>jdbc/DimpleTxDataSourceCoreDS</datasource>
    <user-name>duser</user-name>
    <encryption-class-name>oracle.toplink.internal.security.JCEEncryptor</encryption-class-name>
    <encrypted-password>22F7AFE6F6B9672435537CE1189E123DD62D1A19DF561D1E</encrypted-password>
    <uses-native-sequencing>true</uses-native-sequencing>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    Toplink Helper class that is used by both EJB's
    This one uses SessionBroker. here is how it is initialized:
    SessionManager manager = SessionManager.getManager();
    sessionBroker = (SessionBroker) manager.getSession(xmlLoader,
    sessionBrokerName, this.getClass().getClassLoader());
    Oracle9iJTSExternalTransactionController extController = new Oracle9iJTSExternalTransactionController();
    sessionBroker.setExternalTransactionController(extController);
    It has common following commong methods:
    public UnitOfWork getUnitOfWork() {
    UnitOfWork uow = sessionBroker.getActiveUnitOfWork();
    return uow;
    public Object create(Object o)
    UnitOfWork uow = getUnitOfWork();
    uow.registerNewObject(o);
    // added so that the assigned sequence number will be available before the commit happens
    uow.assignSequenceNumber(o);
    return o;
    }

    Doug, Andrei and others
    I found the problem. I have a Delegate that provides access to all EJBS. This delegate is used by both the webtier and middle tier.It is written in a generic fashion so that the web server and middle tier does not have to be co-located in one container. getInitialContext() which is implemented as follows:
    private static Context getInitialContext() throws NamingException
    // Get InitialContext for Embedded OC4J.
    // The embedded server must be running for lookups to succeed.
    // actual code reads from the external parameters
    String contextFactory = "com.evermind.server.rmi.RMIInitialContextFactory";
    String principal = "admin";
    String passwd = "admin123";
    String providerURL = "ormi://localhost:3201/shc";
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory);
    env.put(Context.SECURITY_PRINCIPAL, principal);
    env.put(Context.SECURITY_CREDENTIALS, passwd);
    env.put(Context.PROVIDER_URL, providerURL);
    env.put("dedicated.rmicontext","true");
    return new InitialContext(env);
    When the EJB1 tries to look up for EJB2, container thinks that the call is from outside the container and it is starting a new transaction.
    When I changed the EJB1 to look up EJB2 to get the context as shown below,every thing seems to rolling back.
    private static Context getInitialContext() throws NamingException
    return new InitialContext();
    Thanks again for pointing me in the right direction.
    I will post the same message in other threads.
    Raju

  • Wireless net does not work after installing SP1 for Vista - Error code 10

    After installing Vista SP1 on my computer (T61 - Vista Business 32 bit) my intel 82566mm wireless net does not work.
    Windows says "Error code 10" and suggests that I update the driver. I have downloaded the newest driver via another computer, but it does not help. Still error code 10.
    Any one else has the same problem?

    I fixed the problem. Uninstall iTunes and then reinstall it clean. Looks like upgrading is problematic.

  • I can not open Calender. The server responded with an error. Access to account "virgin net" is not permitted. The server responded: "403" to operation CalDAVAAccountRefreshQueueableOperation.

    I can not access Calender.
    Keep getting blocked by message.
    The server responded with error.
    Access to account "virgin net" is not permitted.
    The server responded:
    "403"
    to operation.
    CalDAVAaccountRefreshQueueableOperation.

    Please take each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes.
    Step 1
    In the Internet Accounts preference pane, delete any calendar accounts you don't use.
    If there's no improvement, delete all calendar accounts and add them back. With an iCloud account, all you have to do is uncheck and recheck the box marked Calendars & Reminders in the iCloud preference pane.
    Step 2   
    You may be trying to access an invited event that you declined, or one that was rescheduled after you accepted it. The error message should give you a clue as to what it is. If the calendar is on iCloud, you can bring up the Calendar on the website and select
              Show Declined Events
    from the popup menu with the gear icon in the upper right corner of the page. The declined events will appear in gray, and one of them should match what's shown the error message. [Credit for this solution to ASC member Psi.]
    Step 3
    If you get the error when trying to accept an invitation in an email attachment, it's because the organizer didn't properly create the event.
    Step 4
    Follow the instructions in this support article. Modify as necessary for a calendar that's not on iCloud.

  • Axis bank net banking not working on ipad2

    Axis bank net banking not working on ipad2

    Sounds like a problem at the bank end, maybe a call to them might fix things.

  • Transaction is not Rolling Back in Stateless Session Bean

              Hi,
              I am using UserTransaction in Stateless Session bean .
              Transaction is not rolling back.
              The following code is writen in stateless session bean. In UserTransaction i am
              calling Two methods of another stateless session bean.
              The problem is if doJob2() method fails, doJob1() method is rolling back. These
              two methods consist of SQL statement with different Connection Object from TXDataSource.And
              session bean(TestSession) is set to CMT, attribute as "Required".
              try{
              Context ictx=new InitialContext();
              TestHome home=(TestHome)ictx.lookup("TestSession");
                   utx = sessionCtx.getUserTransaction();
                   utx.begin();
              TestRemote remote=home.create();
                   remote.doJob1();
                   remote.doJob2();
                   utx.commit();
              }catch(Exception e)
                   try{
                   utx.rollback();
              }catch(Exception ex)
                   System.out.println("unable to rollback"+ex);
              if any SQL Exception as occured in doJob2(), its calling method utx.rollback()
              in catch block. but SQL statements executed thru. doJob1() are not rolling back.
              what might be the reason?
              thanks
              Ranganath
              

              Thanx Priscilla ,
              Transaction is working.
              ranganath
              "Priscilla Fung" <[email protected]> wrote:
              >
              >In your ejb-jar.xml, you should specify <transaction-type> element to
              >be "Container"
              >for container-managed transaction. If you specified it to be "Bean" for
              >bean-managed
              >transaction, EJB ontainer will suspend the caller's transaction before
              >starting
              >a new transaction for your doJobX() methods. Thus, doJob1()nd doJob2()
              >will be
              >executing in different transactions, and thus rolling back doJob2()'s
              >transaction
              >will have no effect on work done and committed in doJob1()'s transaction.
              >
              >Regards,
              >
              >Priscilla
              >
              >
              >"Ranganath" <[email protected]> wrote:
              >>
              >>
              >>
              >>I am sending config.xml,deployment descriptors, code snippet for TestSession.
              >>i
              >>am using weblogic6.0sp2.
              >>if you need any aditional info. please let me know.
              >>
              >>thanks
              >>ranganath
              >>
              >>EJB-JAR.xml
              >>
              >><?xml version="1.0"?>
              >>
              >><!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
              >JavaBeans
              >>1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
              >>
              >><ejb-jar>
              >>     <enterprise-beans>
              >>     <session>
              >>          <ejb-name>TestSession</ejb-name>
              >>          <home>com.apar.sslbridge.test.TestHome</home>
              >>          <remote>com.apar.sslbridge.test.TestRemote</remote>
              >>          <ejb-class>com.apar.sslbridge.test.TestBean</ejb-class>
              >>          <session-type>Stateless</session-type>
              >>          <transaction-type>Bean</transaction-type>
              >>          <resource-ref>
              >>     <res-ref-name>jdbc/oraclePool</res-ref-name>
              >>     <res-type>javax.sql.DataSource</res-type>
              >>     <res-auth>Container</res-auth>
              >>          </resource-ref>
              >>     </session>
              >>     </enterprise-beans>
              >>     <assembly-descriptor>
              >>     <container-transaction>
              >>          <method>
              >>          <ejb-name>TestSession</ejb-name>
              >>          <method-intf>Remote</method-intf>
              >>          <method-name>*</method-name>
              >>          </method>
              >>          <trans-attribute>Required</trans-attribute>
              >>     </container-transaction>
              >> </assembly-descriptor>
              >></ejb-jar>
              >>
              >>
              >>TestSession CODE:
              >>
              >>
              >>     public void doJob1() throws RemoteException
              >>     {
              >>     Statement st = null;
              >>     String query=null;
              >>     try{
              >>     con=getConnection();
              >>     st=con.createStatement();
              >>     query="insert into x values("+x+++")";
              >>     System.out.println(query);
              >>     int rec=st.executeUpdate(query);
              >>     }catch(SQLException sqle)
              >>     {
              >>     System.out.println("SQL Exception "+sqle);
              >> throw new RemoteException("RemoteException*****SQLError");
              >>     } catch (Exception e) {
              >>     System.out.println("Exception "+e);
              >> throw new RemoteException("RemoteException*****GenralError");
              >> }
              >>}
              >>
              >>
              >> public void doJob2()throws RemoteException
              >> {
              >> Connection con=null;
              >> Statement st = null;
              >> String query=null;
              >> try{
              >> con=getConnection();
              >> st=con.createStatement();
              >> query="insert into y values("+x+++")";
              >> System.out.println(query);
              >> int rec=st.executeUpdate(query);
              >> }catch(SQLException sqle)
              >> {
              >> System.out.println("SQL Exception "+sqle);
              >> throw new RemoteException("RemoteException*****SQLError");
              >> } catch (Exception e) {
              >> System.out.println("Exception "+e);
              >> throw new RemoteException("RemoteException*****GenralError");
              >>}
              >>}
              >>private Connection getConnection(){
              >>try {
              >>Connection con = StaticParams.POOL_DATASOURCE.getConnection();
              >>return con;
              >>     } catch(Exception e) {
              >>     System.out.println("TestBean.getConnection() Unable to get get pool
              >>connection
              >>" + e);
              >>     }
              >>}
              >>
              >>
              >>
              >>
              >>"Priscilla Fung" <[email protected]> wrote:
              >>>
              >>>It should work if you are using TxDataSource. Could you post your
              >config.xml,
              >>>deployment descriptors, code snippet for TestSession?
              >>>
              >>>Regards,
              >>>
              >>>Priscilla
              >>>
              >>>"Ranganath" <[email protected]> wrote:
              >>>>
              >>>>Hi,
              >>>>
              >>>> I am using UserTransaction in Stateless Session bean .
              >>>> Transaction is not rolling back.
              >>>>
              >>>>The following code is writen in stateless session bean. In UserTransaction
              >>>>i am
              >>>>calling Two methods of another stateless session bean.
              >>>> The problem is if doJob2() method fails, doJob1() method is rolling
              >>>> back. These
              >>>>two methods consist of SQL statement with different Connection Object
              >>>>from TXDataSource.And
              >>>>session bean(TestSession) is set to CMT, attribute as "Required".
              >>>>
              >>>> try{
              >>>> Context ictx=new InitialContext();
              >>>> TestHome home=(TestHome)ictx.lookup("TestSession");
              >>>>     utx = sessionCtx.getUserTransaction();
              >>>>     utx.begin();
              >>>> TestRemote remote=home.create();
              >>>>     remote.doJob1();
              >>>>     remote.doJob2();
              >>>>     utx.commit();
              >>>> }catch(Exception e)
              >>>> {
              >>>>     try{
              >>>>      utx.rollback();
              >>>> }catch(Exception ex)
              >>>> {
              >>>>     System.out.println("unable to rollback"+ex);
              >>>>     }
              >>>> }
              >>>>if any SQL Exception as occured in doJob2(), its calling method utx.rollback()
              >>>>in catch block. but SQL statements executed thru. doJob1() are not
              >>rolling
              >>>>back.
              >>>>what might be the reason?
              >>>>
              >>>>thanks
              >>>>Ranganath
              >>>
              >>
              >
              

  • OBIEE 10g Amounts not rolling up

    Dear All,
    I am facing an issue in rolling up myamount  totals.
    I need to create a calculated column in RPD based on another fact column.(Amount2 is the calulated item that I have created)
    Amount1 - my existing fact column
    Amount2 - my new calculated column created at logical level.
    My results :
      Below report is at Quarter level. The totals displayed for Amount2 are wrong. The total displayed is same as that of Amount1 total
    Table
    Rgn
    Quarter
    Amount 1
    Amount2
    R1
    1
    24,578,396.33
    24,578,396.33
    2
    96,133,672.22
    96,133,672.22
    3
    42,639,566.27
    25,954,518.60
    4
    58,333,616.34
    0.00
    Grand Total
    221,685,251.16
    221,685,251.16
            and when i roll up at year level the amount 2 does not roll up to the correct  total and display only 0
    Table
    Rgn
    Amount1
    Amount2
    R1
    221,685,251.16
    0.00
    Grand Total
    221,685,251.16
    0.00
    Can you please help me, where I have  gone wrong.
    Areas where i can cross check, if I have missed any step.
    Appreciate your help.
    Thanks in advance.
    Achala

    Thank you for the reply.
    This is the formula used for Amount 2:
    CASE  WHEN TST."Dim-Time"."Quarter" = 1 AND  MOD( EXTRACT( YEAR  FROM  CURRENT_DATE ), 4) = 0 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 1 =  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Q1" *  EXTRACT( DAY_OF_QUARTER  FROM  CURRENT_DATE ) / 91
    WHEN TST."Dim-Time"."Quarter" = 1 AND  MOD( EXTRACT( YEAR  FROM  CURRENT_DATE ), 4) <> 0 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 1 =  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Q1" *  EXTRACT( DAY_OF_QUARTER  FROM  CURRENT_DATE ) / 90
    WHEN TST."Dim-Time"."Quarter" = 2 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 2 =  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Q2" *  EXTRACT( DAY_OF_QUARTER  FROM  CURRENT_DATE ) / 91
    WHEN TST."Dim-Time"."Quarter" = 3 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 3 =  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Q3" *  EXTRACT( DAY_OF_QUARTER  FROM  CURRENT_DATE ) / 92
    WHEN TST."Dim-Time"."Quarter" = 4 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 4 =  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE ) THEN TST."Fact-Q4" *  EXTRACT( DAY_OF_QUARTER  FROM  CURRENT_DATE ) / 92
    WHEN TST."Dim-Time"."Quarter" = 1 AND  MOD( EXTRACT( YEAR  FROM  CURRENT_DATE ), 4) = 0 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 1 <  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Total_Amount" WHEN TST."Dim-Time"."Quarter" = 1 AND  MOD( EXTRACT( YEAR  FROM  CURRENT_DATE ), 4) <> 0 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 1 <  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Total_Amount" WHEN TST."Dim-Time"."Quarter" = 2 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 2 <  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Total_Amount" WHEN TST."Dim-Time"."Quarter" = 3 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 3 <  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Total_Amount" WHEN TST."Dim-Time"."Quarter" = 4 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 4 <  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN TST."Fact-Total_Amount" WHEN TST."Dim-Time"."Quarter" = 1 AND  MOD( EXTRACT( YEAR  FROM  CURRENT_DATE ), 4) = 0 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 1 >  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN 0 WHEN TST."Dim-Time"."Quarter" = 1 AND  MOD( EXTRACT( YEAR  FROM  CURRENT_DATE ), 4) <> 0 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 1 >  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN 0 WHEN TST."Dim-Time"."Quarter" = 2 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 2 >  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN 0 WHEN TST."Dim-Time"."Quarter" = 3 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 3 >  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE )
    THEN 0 WHEN TST."Dim-Time"."Quarter" = 4 AND  EXTRACT( YEAR  FROM  CURRENT_DATE ) = TST."Dim-Time"."Year" AND 4 >  EXTRACT( QUARTER_OF_YEAR  FROM  CURRENT_DATE ) THEN 0 ELSE TST."Fact-Total_Amount" END
    In the above formula:
    TST."Fact-Total_Amount" is an aggregated to sum logical column, similarly TST."Fact-Q1", TST."Fact-Q2", TST."Fact-Q3", TST."Fact-Q4" are also aggregated to sum logical columns.
    Please let me know your findings.
    Many Thanks,
    Kind Regards,
    Achala

  • Container transaction NOT rolled back after a long period of time.

    Hi, I am using Weblogic 6.1SP5 on RedHat 7.1 and I have seen an unexpected
              behaviour with an MDB and I would like to know if there is any circumstance
              in which a transaction is not rolled back automatically by the container
              after the transaction timeout specified on MDB descriptor expired.
              The fact is I have seen a thread locked for 3 entire days without any
              exception being raised (the trans timeout was set to 900 seconds for
              debugging porpouses)
              Sadly I didn't thought on issuing a ps -ax and a netstat -np in order to see
              if there was any connection active for any of the JVM threads.
              As an aside note I had to throw a kill -9 to Weblogic's JVM in order to
              completely stop it because using the standard "stopWeblogic.sh" script it
              got stalled.
              The only unusual thing that I can think of the MDB is doing is opening a
              connection against a remote system via a socket.
              My question is. Is it possible that a thread locked on I/O (in this case a
              socket) to be out of control in terms of throwing at it a "Transaction
              rolled back exception"?
              I have modified my code in order to set SO_TIMEOUT on the socket just in
              case the other peer hangs and never returns control. But I would like to
              know the problem could be there.
              I know for sure that at the time the thread stalled the other peer died
              (exceptions on other MDBs trying to connect to remote system) but I expected
              a "socket exception" to be thrown by the O.S. to the stalled thread instead
              of having the thread waiting forever on that "open" socket.
              Thanks in advance.
              Ignacio.
              

    While a tramsaction may be rolled back at the transaction timeout,
              the thread is not stopped. The actual exception won't occur until
              the MDB completes. If the MDB doesn't complete (as in this case),
              you won't get the exception.
              "Ignacio G. Dupont" <[email protected]> wrote in message news:[email protected]...
              > Hi, I am using Weblogic 6.1SP5 on RedHat 7.1 and I have seen an unexpected
              > behaviour with an MDB and I would like to know if there is any circumstance
              > in which a transaction is not rolled back automatically by the container
              > after the transaction timeout specified on MDB descriptor expired.
              >
              > The fact is I have seen a thread locked for 3 entire days without any
              > exception being raised (the trans timeout was set to 900 seconds for
              > debugging porpouses)
              >
              > Sadly I didn't thought on issuing a ps -ax and a netstat -np in order to see
              > if there was any connection active for any of the JVM threads.
              >
              > As an aside note I had to throw a kill -9 to Weblogic's JVM in order to
              > completely stop it because using the standard "stopWeblogic.sh" script it
              > got stalled.
              >
              > The only unusual thing that I can think of the MDB is doing is opening a
              > connection against a remote system via a socket.
              >
              > My question is. Is it possible that a thread locked on I/O (in this case a
              > socket) to be out of control in terms of throwing at it a "Transaction
              > rolled back exception"?
              >
              > I have modified my code in order to set SO_TIMEOUT on the socket just in
              > case the other peer hangs and never returns control. But I would like to
              > know the problem could be there.
              >
              > I know for sure that at the time the thread stalled the other peer died
              > (exceptions on other MDBs trying to connect to remote system) but I expected
              > a "socket exception" to be thrown by the O.S. to the stalled thread instead
              > of having the thread waiting forever on that "open" socket.
              >
              > Thanks in advance.
              >
              > Ignacio.
              >
              >
              

Maybe you are looking for

  • Sharing library between 2 IDs on same machine

    Hello.  I'm trying to figure out the most strategic way for my wife and me to share content without overlapping each other on our respective devices.  Here are our specifics: *  We each have separate Apple IDs and iPhones/iPads.  *  We share a single

  • PO Item attachment as email attachment

    Hi Guys, I need to send the PO item attachment the data stored in the DMS document type SRM and Storage cat. DMS_C1_ST, I am able to get the document details using the  bapi BAPI_DOCUMENT_GETDETAIL2 but I want content of the document in SOLIX so that

  • MINI WAS on Windows vista business ?

    Dear All 1. Does SAP NetWeaver 7.0 ABAP Trial Version works on windows vista business? 2. Does SAP NetWeaver 7.0 ABAP Trial Version  supports Adobe forms, Web Dynpro, Composite Application Framework? I am interested only with ABAP engine. Thanks and

  • Songs on iTunes sometimes end before they're really done

    This problem is intermittent but happening enough that it's annoying. I have my iTunes software set to play my library on shuffle, and once in a while a song will be playing and then it will stop and move on to the next song in the shuffle. Any sugge

  • :awesome: snakey, a little SDL-game

    I'm a beginner when it comes to programming, but I've been trying to make a decent classic snake game in SDL, and I guess I succeded somewhat. It is coded in C++/SDL. Source can be checked out on: http://snakey.googlecode.com/svn/trunk/ Just "make" t