Updating Monthly Actuals - Better Approach?

Does anyone have any experience or comments on these two approaches to the monthly process of loading actuals?
1. Clear all fact records for existing month. Load the file data as-is.
2. Keep existing fact records. Load the variance between current file and previous file (stored in a staging database)
Wouldn't the second approach be ideal since the process would only get faster towards the end of month? It would also generate fewer records. Generally, the file will produce about 90K records each month.

1. This process clear data - means the BPC is adding the value into the system with negative sign and you will 0 for values of that month
Importing data after is adding the valuefrom your file into database
2. This process is doing something similar with first:
first is checking wwhat records are you importing into database for dimensions used by your application into work status.
Usually Category, Time, Entity and after that is adding the diference into datbase only for tuples Category, Time, Entity from File.
But even in this case is doing first a clear for that selected tuples and after that is adding the new values into system
In my opinion I will say that first process is better and easier to follow. Depending by how big is the import file the second process is an option.
For big files I suggest first approach for small file probably is better the second but even in that case I suggest to use the first one because it is easier to understand where is the problem if you have some bad values into database.
Regards
Sorin Radulescu

Similar Messages

  • What is a better approach, batch or prepared statement?

    Hi,
    In my application, the user account property will be retrieved from DB and the last login time will be updated after a successful sign on. There are two query statements in this procedure; select and update. What is a better approach in JDBC to deal with the two queries: batch or prepared statement?
    Thanks.

    Hi, Duffy,
    Thanks for your input.
    I would like to use PreparedStatement with batch update. From my reading, however, it is not suitable to use PreparedStatement with batch update. At less, I haven't see a single example on the tutorial or article sections of this site. I am not sure the following is valid or not:
                   stmt = connection.prepareStatement(INSERT_SMT_QUERY_STR);
                   stmt.setLong(1, details.getRegardID());
                   stmt.setLong(2, details.getWriterID());
                   stmt.setInt(3, details.getVisibility());
                   stmt.setString(4, details.getSubject().trim());
                   stmt.setString(5, details.getContent().trim());
    stmt.addBatch() <-- what goes into here?

  • What would be the better approach at showing a course is complete?

    (OT: I'm being evlauated to do some online software simulations using Captivate so I'm trying to merge my Authorware "thinking" with Captivate)
    I have a 14 slide simulation; task to edit preference files. Scoring is not necessary but getting to slide 14 is all that is necessary.
    Presently I have a click object on slide 13 whose reporting options is "Include in Quiz" with adding 1 point.
    So I have a course with Objective ID=Quiz10111 Interaction ID=Interaction11184 and a score of 1.
    But I also note in the reporting preferences I could use "Slide views only." So maybe this is all that is necessary?
    I'm not that savy (yet) with LMS's but if I wanted to write this data out as a tab delimited file on the hosting server what should I consider? Authorware had a function "WriteExtFIle." Would a button on the last slide set to execute Javascript be a better approach?
    Another idea looking for a point of view. If I get the project I am considering a 2 month contract Adobe Acrobat Connect Pro to get more confortable with this approach. Would this help?
    FYI...I just downloaded the Captivate 4 manual. Last modified on May 19th according to the doscument.
    Thanks

    Regarding your function hanging, that seems to be because your loop never ends. Also the inner query is missing a WHERE clause:
    Select Translate(comnt_rec.comment_text,'%#$^',' ') into repvalue from test_comnt;  <-- How many rows will this bring back?However I don't think you meant to query the test_comnt table at all - it looks as though you just wanted to assign the result of the TRANSLATE expression (btw please, TRANSLATE() or translate() but not Translate() - the parser doesn't care but it drives me nuts), in which case just
    repvalue := translate(comnt_rec.comment_text,'%#$^',' ');or even include the expression in the cursor itself and save yourself the trouble.
    Another thing that drives me nuts, although not the rest of the world apparently, is the name "c1" for a cursor. Why don't you name your variables "v1", "v2" etc? If you had two cursors would you seriously name the second one "c2"?
    While I'm at it, what kind of a name is "test_comnt"?

  • Budget Updation (commitment,actual) after cost transfer

    Hi  Gurus
    we are going to start one project by next month.For that we are finalizing wbs element etc.this project will be in separate plant.
    but initial expenses like land acquisition,statutory expenses are already booked against cost center.now we want to transfer the cost in cost center in to wbs elements.I know this can be done via KB11N. But the problem is when i am transferring cost budget details in CJ31 are not updating.means there is no effect in budget (commitment,actual,assigned)
    My client wants to update commitment,actual in CJ30 after cost transfer from cost center to WBS
    Can anyone help me on this?
    Thanks in advance.
    Regards
    Haran.

    Hi Hari,
    The expenses transferred to WBSE will be in the form of actuals which can be seen in "Assigned" tab of txn. CJ30.
    As per my understanding costing is already carried out in your project & you have used it for budget generation & these actuals were not a part of earlier costing then you can manually update the project cost & copy it again as budget in CJ30.
    I hope it will help.

  • XDD Vs Offset file usage -Which is better approach

    Hi,
    We are designing a new workspace (on Documaker 11.5) for a client sending a flat file input. To reduce the impact of offset driven changes we are planning to use either of the below:
    1) XDD
    2) OFFSET.DAT file for which we can update AFGJOB.JDT with folowing rules.
    ;LoadEXTOFFS;1;OFFSET.DAT;
    ;CUSAltSearchRec;1;;
    Based on the copybook/layout of the incoming file we should be able to build a XDD or OFFSET.DAT file.
    The reason I am asking this question is we already have some experience with offset file approach, and we wanted to explore if XDD is a better approach from maintanance perspective.
    Regards..

    The XDD extract mapping method is standard support.
    The OFFSET.DAT file you mention was a pseudo-custom implementation originally submitted by CSC/PMSC for their customers. It was added to the product as a curtesy and not really promoted as a mainstream feature (if that is a good term). As such, that feature is not specifically targeted by QA testing or included in internal regression results. I'm not even sure it is documented. I doubt you would be able to get much help (or quickly) via Support if you had questions.
    Therefore, the official recommendation would be to use the XDD, but if you have experience with the OFFSET.DAT method and are comfortable with the functionality, then the feature should still be available.

  • LAN chain in iptables. Are there better approaches?

    Hi all.
    I'm a newbie in iptables and network security stuff. Would like to get an advice on a following problem.
    I have a router with IP 192.168.1.1, my LAN contains bunch of wireless devices and desktop PC with a static IP *.2.
    I want to enable certain services (ftp, sftp for local user, game servers, etc.) on my desktop PC to be accessible from any of my wireless devices.
    Though, I don't want them to be accessible from the router, because I want to be safe just in case if router gets hacked (router has DDNS enabled and runs sshd for tunneling purposes).
    It is not actually safety that bothers me a lot. I'm just trying to gain some understanding on topic, so I decided to make this particular setup.
    I've read that Simple Stateful Firewall article on wiki and now I'm considering doing the following, but not sure, whether this is good approach:
    # create chains
    iptables -N LAN
    iptables -N LAN_TCP
    iptables -N LAN_UDP
    # route all traffic from wireless devices to LAN chain
    iptables -A INPUT -m iprange --src-range 192.168.1.3-192.168.1.255 -j LAN
    # specific LAN chain rules
    iptables -A LAN -p tcp --syn -m conntrack --ctstate NEW -j LAN_TCP
    iptables -A LAN_TCP -p tcp --dport 22 -j ACCEPT
    Is it worthwhile? Are there better approaches? I suspect, that if router gets hacked, hacker will be able to change its IP, so such rules won't work, will they?
    Just thought, that perhaps restricting by routers mac would be a better approach. Though I've wrote a lot of text already... So, anyway, would like to get comments from forum members
    Thanks in advance.

    That should work, although don't forget to DROP or REJECT by default:
    iptables -P INPUT DROP
    iptables / netfilter is very flexible and you can achieve any given task a number of ways. There are generally no "right" and "wrong" ways, just best practices here and there.

  • List View: How to force update of *actual* file dates when sort by date?

    List View: How do I force and update of actual file dates when sort by date?
    When I go in, I often see the sort order and dates from 12-15 hours ago!
    not good

    Hi, did you ever get that Windows® Sharing thing worked out?
    On this problem, If it's just that you need the Finder to wake up to the fact that it needs to update the window give a try with Refresh Finder - 1.3...
    http://www.versiontracker.com/dyn/moreinfo/macosx/33066

  • Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?

    Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?
    change in sharepoint scripts not require compilation but anything else?

    Yes, PowerShell is great, since you can quick change your code without compilation.
    SP admin can write ps scripts without specific tools like Visual Studio.
    With powershell you can use cmdlets,
    which could remove a lot of code, for example restarting a service.
    [custom.development]

  • User defined Characterestics not being updated in actual line items

    Gurus!
    I am using Accounting Based COPA only.
    I have defined a user based characteristic for which I am using user exit to derive.
    However, this charaterstic is not getting updated in actual line items.
    The derivation is working correctly at Sales order and Invoicing documents. (account assignment tab).
    Where could I be going wrong??
    Regards
    Saurabh

    Hi,
    Please check the settlement rule of the sales order and check whether the relevant characteristics have been maintained in the settlement rule of PSG. If not, you may have to include the same.
    Trust this helps much.
    Cheers

  • Need to update the actual start date & time of a operation in workorder

    Hi Experts,
                   I need to update the Actual Start date and Actual start time of a Operation of  a WorkOrder through a Function Module.
    I was looking into the BAPI_ALM_ORDER_MAINTAIN FM, but i couldn't find any field relating to the actual start date and start time of a operation.
    Kindly Suggest me which Function module i can use to complete my task.
    Thanks in Advance
    bye

    Hi,
    It is system's standard behavior and no other MRP type will help you in moving the start date outside the planning time fence. With MRP type P3 new requirements are covered at the end of the fixing period, the end date is set and planed order is scheduled backword. Hence the start date will lie within the planning time fence.
    Rgds,

  • What's the better approach?

    Hi, I was just making a program that access a DB through JDBC, and I got myself into this dilemma
    What's the better approach to make a connection to a DB?
    approach #1(use of singleton pattern)
    import java.sql.*;
    public class DBConnection {
        private ResultSet rs;
        private Connection conn;
        private PreparedStatement ps;
        private static boolean singleton = false;
        private DBConnection() throws Exception{
            Class.forName("driverPath").newInstance();
         conn = DriverManager.getConnection("url", "user", "pass");
         singleton = true;
        public static DBConnection getInstance() throws Exception{
            if(singleton)
             return null;
            return new DBConnection();
        protected void finalize() throws Throwable {
            //close the connection and release resources...
            singleton = false;
        //Methods to make DB querys and stuff.     
    }approach #2 (make a connection only when doing querys)
    public class DBConnection {
        private ResultSet rs;
        private Connection conn;
        private PreparedStatement ps;
        public DBConnection() throws Exception {
            Class.forName("driverPath").newInstance();
        //Just some random method to access the DB
        public ArrayList<Row> selectAllFromTable() {
            ArrayList<Row> returnValue = new ArrayList<Row>();
         try {
             conn = DriverManager.getConnection("url", "user", "pass");
             //make querys and fill the arraylist with rows from the table
         } catch(Exception ex) {
             returnValue = null;
             ex.printStackTrace();
         } finally {
             if(ps != null)
                 ps.close();
                if(rs != null)
              rs.close();
             if(conn != null)
              conn.close();
         return returnValue;
    }I know this classes maybe don't even compile and I don't handle the Exceptions, I'm just trying to make a point about how to manage the connection
    So, what it's the better approach in your opinions? #1? #2? neither?

    Hi,
    I'm resurrecting this thread to ask is this approach OK?
    I'm trying to make a single MySql JDBC connection accessible throughout the model.
    I'm planning to use it in a Swing application. Whilst I realise the Swing apps are inherently multi-threaded, everything I plan to do can (I think) be done within the constraint that all access to model happens on the EDT, and the user will just have to wear any unresponsiveness.
    package datatable.utils;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    abstract public class MySqlConnection {
         public static final String URL = "jdbc:mysql://localhost/test";
         public static final String USERNAME = "keith";//case sensitive
         private static final String PASSWORD = "chewie00";//case sensitive
         private static final Connection theConnection;
         static {
              String driverClassName = "com.mysql.jdbc.Driver";
              try {
                   Class.forName(driverClassName);
                   theConnection = DriverManager.getConnection(URL, USERNAME, PASSWORD);
              } catch (Exception e) {
                   throw new DAOException("Failed to register JDBC driver class \""+driverClassName+"\"", e);
         public static Connection get() {
              return(theConnection);
    }Is there a better solution short of c3po? Which I played with, but couldn't work out how to configure.
    Thanx guys (and uj),
    keith.

  • Better approach for adding a new assignment block in a standard component

    Hi
    I need to add a new assignment block in the standard component bt116h_srvo. There are two approaches :
    1. create a new view in the component bt116h_srvo
    2. create a custom component and embed it into bt116h_srvo using component usage.
    Please tell which one is a better approach and why ??
    Thanks,
    Swati.

    Thanks for the quick reply lakshmi. However I am sure there is no possibility of reuse . My  main concern here is tat will patch upgradation in future would have any impact on the views added directly in standard component  or any other risk in adding view directly.
    Rgds,
    Swati

  • Validating 10 numeric fields - any better approach?

    Hello All,
    I've an internal table with 15 fields. First 5 fields are all text fields and the next 10 fields are of type DMBTR. I have to validate each of these fields. Currently I've coded as follows:
    data: begin of itab1 occurs 0,
         text1     type     char4,
         text2       type     char2,
         text3       type char10,
         text4     type char6,
         text5     type     char4,
         amt1             type     dmbtr,
         amt2             type     dmbtr,
         amt3             type     dmbtr,
         amt4             type     dmbtr,
         amt5             type     dmbtr,
         amt6        type     dmbtr,
         amt7             type     dmbtr,
         amt8             type     dmbtr,
         amt9             type     dmbtr,
         amt10     type     dmbtr,
          end of itab1.
    perform some steps and
    collect data into itab1.
    loop at itab1.
    if itab1-amt1 CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' or
       itab1-amt1 CA 'abcdefghijklmnopqrstuvwxyz' or
       itab1-amt1 CA '~`!@#$%^&*()-_=+[{]}\|;:'",<.>/?'.
    write:/ 'error'.
    endif.
    if itab1-amt2 CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' or
       itab1-amt2 CA 'abcdefghijklmnopqrstuvwxyz' or
       itab1-amt2 CA '~`!@#$%^&*()-_=+[{]}\|;:'",<.>/?'.
    write:/ 'error'.
    endif.
    if itab1-amt10 CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' or
       itab1-amt10 CA 'abcdefghijklmnopqrstuvwxyz' or
       itab1-amt10 CA '~`!@#$%^&*()-_=+[{]}\|;:'",<.>/?'.
    write:/ 'error'.
    endif.
    endloop.
    Do we have a better approach to do this, instead of repeating the same step for 10 fields?
    Thanks in advance.
    Siri

    or using field symbols
    data: fieldname(11) type c value 'ITAB1-AMT',
             idx(2) type c.
    field-symbls <field> type any.
    loop at itab1.
       do 10 times.
          write sy-index to idx. "' 1', ' 2'...'10'
          condense idx. "'1', '2'...'10'
          concatenate fieldname idx into fieldname. "ITAB-AMT1, ITAB-AMT2 ...
          assign (fieldname) to <field>. "now <field> stores appropriate value
          if <field> CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' or
             <field> CA 'abcdefghijklmnopqrstuvwxyz' or
             <field> CA '~`!@#$%^&*()-_=+[{]}\|;:'",<.>/?'.
            write: / 'error'.
          endif.
       enddo.
    endloop.
    Regards
    Marcin

  • Can iMac be updated or just get new one? On iMac with OSX10.5.8, 2Ghz Intel Core 2 Duo--it's so much slower than iPad. It hasn't had cache cleaned or "First aid". I'm wondering if a computer store/techie can clean/update it or better to put $$ towards new

    Can iMac be updated or just get new one? On iMac with OSX10.5.8, 2Ghz Intel Core 2 Duo--it's so much slower than iPad. It hasn't had cache cleaned or "First aid". I'm wondering if a computer store/techie can clean/update it or better to put $$ towards new?

    If you want to clean up your hard drive some, here are some of my tips, also.
    Hard drive getting full or near full?
    Do a search for and downlaod and install OmniDisk Sweeper and OnyX.
    Here are some of my tips for deleting or archiving data off of your internal hard
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Other things you can do to gain space.
    Delete any old or no longer needed emails and/or archive older emails you want to save to disc, Flash drive/s or to ext. hard drive.
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, Flash drive or ext. hard drive and/or delete any old documents you no longer use or immediately need.
    Uninstall apps that you no longer use. If the app has a dedicated uninstaller, use it to completely uninstall the app. If the app has no uninstaller, then just drag it to the OS X Trash icon  and empty the Trash.
    Also, if you save old downloaded  .dmg application installer  files, you can either archive and delete these or just delete the ones you think you'll never install, again.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its thing initially, then go to the cleaning and maintenance tabs and run all of the processes in the tabs. Let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    If you have any other large folders of personal data or projects, these should be thinned out, moved, also, to the external hard drive and then either archived to disc, Flash drive or ext. hard drive and/or deleted off your internal hard drive.
    Good Luck!

  • All components of fusion middleware in one domain - is this better approach

    Pls advise, is this better approach to have all the components of Fusion Middleware (SOA, B2B, BPM, WebCenter, Content server) in one domain itself in cluster environment for production. If not, pls advise the better architecture for production environment..
    Regards,
    Suneel Jakka

    Suneel,
    It's a good idea to use split domain approach (multiple domains in one MW Home) for large enterprise deployments as it makes maintenance very easy. Lot of customers have been using this approach and they are quite happy about it. Following benefits you get while using split domain approach -
    1. Patching becomes flexible where patching of one component will not affect other
    2. System downtime will decrease as because of issue with one component, only one domain will be affected
    3. Reduced risk of incompatibility or classpath issues which arise because of different components (jars and third party utilities) being used in each product
    4. Modular integration and more layers of security
    If you are using all SOA, B2B, BPM, WebCenter, Content server and they have significant load then better have below domains -
    1. Dedicated domain for B2B (as it is a gateway product and will be having communication over internet)
    2. Shared domain for BPM and SOA (if load is high on both then better have separate domain for each)
    3. Shared domain for WebCenter & Content server (if load is high on both then better have separate domain for each)
    I also recommend to install Webcenter and SOA products in separate middleware home itself so that you may also upgrade them independently.
    Regards,
    Anuj

Maybe you are looking for

  • Issue accessing VMs via RDweb

    Hi All, I have followed the article written below by Keith, and have set up a virtual network on Azure with one machine hosting AD & DNS, and the other configured for RDP session virtualisation (so i can publish an app for multi user access) http://b

  • Execute InfoPackage in ABAP program and Pass Values at runtime

    Hi All,    I want to execute an InfoPackage in an ABAP program. I am looking to execute the Infopackage in a loop passing in different values to 0FISCPER under Data Selection tab in the InfoPackage at run time. Please help. I would appreciate if some

  • WRT54G2 with Subnetted Virtual Machines

    I am unable to access the internet from guest virtual machines on a /25 subnet, although local lan connectivity seems to work fine, and local lan access to the internet works fine. My setup: WRT54G2 in Gateway mode 10.100.200.1/25 Host machine 10.100

  • Running Business Rules with global Variables in Composite Forms

    Hi, I am having trouble running Business Rules, that include Global Variables, in composite forms. I have two forms in the composite form, both have entity in Page dimension set to 'local'. one includes entities at level 3 and the other has entities

  • Sync iPod Photo with iTunes 10.x

    Hello my friends! I'm using SL and iTunes 10. I found my old iPod Photo with it's 30GB hdd. I tried to hook it up to my iMac and sync but iTunes doesn't reconize the iPod. Is the support for old iPods dropped or is there another reason I can't sync i