Budget is not rolling Up

Hello Experts,
                   Whenever I am assigning budget against child WBS/'s and Totaling Up, The Budget is not accumulating to the Parent WBS . Also, here was a problem of -ve Available budget against those WBS.  Now, even after making  the budget (Available) to +ve value, the system is  not behaving accordingly.
Please suggest..
Regards,
Ankur

Hi,
As per the standard sap budget is distributed from top to bottom ,you are assign the budget in the cj30 at the lower level but that time system is check the all assigned and planned values assign the WBS, Open the cj30 and assign the budget and select all now check, the check indicator if the budget is grater then the distributed budget system allowed to do the transaction
Thanks & Regards
R.B.Rao

Similar Messages

  • FMJ2 not rolling budgets

    I need some help, quickly.
    We are tryiing to do our year-end carryover (FMJ2) but the budget component are not getting carried over.  I am unfamilar with this area so I am not even sure about where to go to start looking.  I have looked at the transports that set this up but I can't find anything. 
    I run FMJ2 in test run and it looks ok but when I run the report I can see where the budget does not come accross but the commitment items do.
    Gale.
    LCSD1 sys admin

    Hi Gale,
    As per your explanation solution could be correct, nevertheless as advice you could check information about "Closing operations" in help.sap.com. Here you will see standard proccess and detailed information about how works system.
    Check this URL to further informaiton
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/f0/ca5716260211d28a430000e829fbbd/frameset.htm
    I hope this help,
    Regards,
    JLB

  • Account in Dimension not rolling up

    I have an Accounts dimension and one of the accounts in only the Budget scenario does not rollup. The particular account has several children and they are not rolling up to the main account. However, this is only happening on one particular scenario.Any ideas?

    I have had this happen when rearranging the outline has confused the intelligent calculation engine into think blocks are untouched, when actually they have changed bacause the set of members that make up their children has altered.Either turning off intelligent calc or clearing upper level blocks and recalcing cured it.

  • Budget is not getting displayed in Report S_ALR_87013558

    Hi Friends,
    For project the budget is not getting displayed in Report S_ALR_87013558 though the budget is planned by TCode: CJ30 and released also by TCode: CJ32
    Is there any setting in customising in information systems to display in the report.
    Please treat this as quite urgent.
    Regards,
    Manohar N

    Hi Sridhar,
    Thanks for the input.
    But still Budget is not appearing in the report, even after running CJBN & CJEN.
    I had a look into CJ30 but the overall Budget is available. Is there any change required in the report.
    Regards,
    Selva

  • 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

  • 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

  • ECC IM report, the available and assigned budgets are not correct

    Hi All
    Can any one tell me why there is a difference in the ECC IM report, the available and assigned budgets are not correct on program position level.
    But individual investment order level, they are correct..
    The report we are running is : S_ALR_870122806 .
    Any help higly appreciated and points are assigned .
    Cheers
    ravindra .

    Hi,
    Tcode GR23 , Under 1VK Report library, Choose Characteristics Tab for Company Code Select BUKRS,and GSBER for Business Area.
    Regards,
    Shankar K B

  • 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.
              >
              >
              

  • Transaction not rolling back in stateless session bean

              Hi,
              I am facing a problem...
              I have one stateless session bean which does multiple updates in SYBASE database.I
              am using non-transactional datasource. Bean calls a method of data access obejct
              whcih internally calls more than one one mehtod to update different tables.If
              any of update fails then I am explicitly thorwing EJBException. Still it is not
              rolling back.
              I have one more application where similar situation is there but only difference
              is that there we have Entity bean and updates are being done through store method.
              In that case with same datasource it is rolling back perfectly.
              I have tried with transactional datasource as well but it didn't work.Then I tried
              to put setAutoCommit(false) in my connection class which gives me connection.But
              then it is not allowing me to enter into my application.
              In deployment descriptor for both the beans transaction attribute is required
              for all methods.
              Regards.
              Rahul.
              

              Hi,
              I am facing a problem...
              I have one stateless session bean which does multiple updates in SYBASE database.I
              am using non-transactional datasource. Bean calls a method of data access obejct
              whcih internally calls more than one one mehtod to update different tables.If
              any of update fails then I am explicitly thorwing EJBException. Still it is not
              rolling back.
              I have one more application where similar situation is there but only difference
              is that there we have Entity bean and updates are being done through store method.
              In that case with same datasource it is rolling back perfectly.
              I have tried with transactional datasource as well but it didn't work.Then I tried
              to put setAutoCommit(false) in my connection class which gives me connection.But
              then it is not allowing me to enter into my application.
              In deployment descriptor for both the beans transaction attribute is required
              for all methods.
              Regards.
              Rahul.
              

Maybe you are looking for

  • SharePoint 2010 Slow query duration when setting metadata on folder

    I'm getting "Slow Query Duration" when I programmatically set a default value for a default field to apply to documents at a specified location on a SP 2010 library. It has nothing to do with performance most probably as I'm getting this working with

  • How can recipients submit completed PDF forms using a MAC?

    We have created fillable PDF forms using LiveCycle Designer 8.0.  They include submit buttons that are set to submit the completed forms as PDFs.  Rights have been extended for Adobe Reader users.  They work great when the recipient is using a PC, bu

  • WRT54GS won't connect my static IP computer to internet

    My goal is to get completely connected to a torrent site. Their instructions were to configure a static address for my computer, forward a port and life will be good. My current setup is my computer is wired to a WRT54GS which in turn is wired to an

  • More than one loop in audio file

    Please, allow more than one loop in a wave file. This functionality was present in the Adobe Audition 3.0, but it is gone now. The sampler tab is gone from the metadata. Please, bring it back. Even though, the user can set more than one region marker

  • How to put in low quality without use the mouse ?

    Hello, I look for a means to put an flash player application in low quality by passing only by the keyboard. By example, for put in high quality, I can use the hotkey shortcut ctrl + h. I search that too for the option 100% and "afficher tout" (in fr