Updating data in infocube by MDX

Hi,
Does somebody have hand-on experience with the "UPDATE CUBE" feature of MDX syntax ? Does it work in SAP, because I was not able to produce working statement in MDXTEST ? Could somebody show me some working examples ? Which OLAP BAPI-s have to be used in order to pass it to BW for processing, the same which in case of data retrieval ?
Or does somebody know better solution to write back changed transactional data from an online application into remote BW system.
The scenario is that somebody clicks on SAVE button in an application running on separate system, which calls remotely a BW system to update changes on data cells.
Regards, Attila

... I only added this constructor to be able to run your code:
    public fillDbGui(){
        setTitle("Fill DB GUI");
        setSize(600,500);
        setLocationRelativeTo(null);
        try{
            DriverManager.registerDriver( new com.mysql.jdbc.Driver() );
            DriverManager.registerDriver( new sun.jdbc.odbc.JdbcOdbcDriver() );
            connection = DriverManager.getConnection(DATABASE_URL, DATABASE_USER, USER_PASSWORD);
            conc = connection.createStatement();
            System.out.println("Successfully connected to database '" +DATABASE_NAME+ "'\n");
        }catch(SQLException ex){
            System.out.println("Connection failed\n");
            JOptionPane.showMessageDialog( this, ex.getMessage(),
                    "Fill_DB_GUI:   SQLException", JOptionPane.ERROR_MESSAGE);
        db2vector();
    public static void main(String args[]) {
        new fillDbGui().setVisible(true);
    private final String DATABASE_NAME = "test";
    private final String DATABASE_URL =  "jdbc:mysql://localhost:3306/" + DATABASE_NAME;
//    private final String DATABASE_URL = "jdbc:odbc:" + DATABASE_NAME;
    private final String TABLE_NAME = "testuhrand";
    private final String DATABASE_USER = "root";
    private final String USER_PASSWORD = "sql";
    private Statement conc;
    private Connection connection;

Similar Messages

  • Error while updating data to infocube

    Hi BW Gurus,
    I am trying to update data from PSA to a non cumulative infocube. However I am getting the following two errors while doing so.
    Here is the detail of the error in the details tab.
    Record 11534 :Value 'ETFHU224681М2 ' (hex. '00450054004600480055003200320034003600380031041C00') of
    Error 4 in the update.
    I checked the PSA for the erroneous record and found that
    FHU224681М2 is the value of the 0material field.

    Hi..
    Correcting the record from PSA is temporary solution depends on u r criticality....
    Only Solution is to correct the record at source system level... Generally Material master data record is imp so just try to fix temporarily so that it vl not affect u r loads until it is corrected at Source System level..
    Note: inform the problem to u r co-ordinator and try to correct it ASAP... and explain the temp solution(PSA correction)...
    cheers..

  • Updating data from ODS to InfoCube

    Hello experts,
    I am not sure if my approach works so let me elaborate:
    ODS1 contains trips on participant level.
    The data in ODS1 looks like this:
    ODS1:
    trip_id___participant_id___price_____trip date
    __101_____1___________25.00_____20070112
    __101_____27__________12.50_____20070112
    __102_____21__________55.00_____20070124
    __102_____7___________55.00_____20070124
    __102_____15__________35.00_____20070124
    Now I want to update the data to InfoCube IC_TP which looks like this:
    IC_TP:
    dimensions:
    - time
    - participant_id (has nav. attribute participant_type on which I want to report or do I have to select participant_type instead of participant_id as dimension???)
    measures:
    - price
    - number of trips (according to the data in ODS1 it should be "2" for jannuary)
    - number of participants (according to the data in ODS1 it should be "5" for jannuary)
    is this updating approach possible?
    thanx
    hiza

    Hi,
    You have take these prperties in  the edit screen of the info objects. In the <i>Change</i> screeen , go to <i>Aggregation </i>Tab page. Here  you can find these settings.
    And try like this .
    Hi,
    Try this:
    For the KF Info object : number of trips,
    Take Exception Aggregat = <b><i>Counter(Values unequal to zeros)</i></b>
    Agg.referen.char = Trip_id
    And
    For the KF Info object : number of participants,
    Take Exception Aggregat = <b><i>Counter(Values unequal to zeros)</i></b>
    Agg.referen.char = participant_id
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by:
    Anil Kumar Sharma
    With rgds,
    Anil Kumar Sharma .P<b></b>
    Message was edited by:
            Anil Kumar Sharma

  • Will data be updated in the infocube if char. are added after instalation

    Will data be updated in the infocube if charecteristics are added after instalation? can any one help me.

    Nag,
    do you mean tat the IO is added to te cube after data has been loaded ? ( I am not sure if you can do this )
    If it means customizing the delivered version of Business content , you will have to add te IO o the update rules as well , and add the same if required to the Transfer rules and data source to populate date.
    BW is not that intelligent enough to realize what IOBJ you have added and how you want it filled without you specifying the same.
    Arun
    Assign points if helpful

  • Error while loading data to Infocube using DTP.

    Dear All
    I am facing problem while uploading data in Zinfocube. Up to PSA the data is loaded and not showing any error but when we try to upload the data from PSA to INFOCUBE through a DTP, It ens up showing error message (Error while updating to targets Infocube) . The long text and details doesnot give any further information. I can't figure out what could be the reason....
    Thanks
    Dinesh Sharma

    Hi
    The data might be mismatched between PSA and Cube or might be the problem in the transformation. We cannot really say what the problem until you tell the error msg.
    There will be some error message in DTP monitor
    Regards
    Srikanth

  • Dead lock error while updating data into cube

    We have a scenario of daily truncate and upload of data into cube and volumes arrive @ 2 million per day.We have Parallel process setting (psa and data targets in parallel) in infopackage setting to speed up the data load process.This entire process runs thru process chain.
    We are facing dead lock issue everyday.How to avoid this ?
    In general dead lock occurs because of degenerated indexes if the volumes are very high. so my question is does deletion of Indexes of the cube everyday along with 'deletion of data target content' process help to avoiding dead lock ?
    Also observed is updation of values into one infoobject is taking longer time approx 3 mins for each data packet.That infoobject is placed in dimension and defined it as line item as the volumes are very high for that specific object.
    so this is over all scenario !!
    two things :
    1) will deletion of indexes and recreation help to avoid dead lock ?
    2) any idea why the insertion into the infoobject is taking longer time (there is a direct read on sid table of that object while observed in sql statement).
    Regards.

    hello,
    1) will deletion of indexes and recreation help to avoid dead lock ?
    Ans:
    To avoid this problem, we need to drop the indexes of the cube before uploading the data.and rebuild the indexes...
    Also,
    just find out in SM12 which is the process which is causing lock.... Delete that.
    find out the process in SM66 which is running for a very long time.Stop  this process.
    Check the transaction SM50 for the number of processes available in the system. If they are not adequate, you have to increase them with the help of basis team
    2) any idea why the insertion into the infoobject is taking longer time (there is a direct read on sid table of that object while observed in sql statement).
    Ans:
    Lie item dimension is one of the ways to improve data load as well as query performance by eliminationg the need for dimensin table. So while loading/reading, one less table to deal with..
    Check in the transformation mapping of that chs, it any rouitne/formula  is written.If so, this can lead to more time for processing that IO.
    Storing mass data in InfoCubes at document level is generally not recommended because when data is loaded, a huge SID table is created for the document number line-item dimension.
    check if your IO is similar to doc no...
    Regards,
    Dhanya

  • Deleting Data from Infocube before loading

    We are doing full loads by "Plan Version" into our CCA cube. We do these full loads each night. Eventually a "Plan Version" will stop changing and we can discontinue loading.
    My question is there a way we can delete data in the cube by "Plan Version" before the new request is loaded. Right now it deletes overlapping request after the load but this is inefficient.
    We would like to delete the data before we load.
    We are doing this using a process chain in order to drop indexs first then reload and update statistics.
    Thanks
    Richard
    Message was edited by: Richard Carrier

    Richard,
    You can do full replacement load of your plan data by changing your plan data load infopackage which persumably have the selection to load plan data i.e. 0vtype 20-90. 
    In the Data target tab of the infopackage, select the update data target for the cube(s) in question and click on the automatic loading of identical/similar requests from the infocube (the column to the right of the pencil) and click on delete existing requests button and tick
    a) full or initial data load  and selection are the same or more comprehensive.  I typically like to tick also the
    boxes for infosources are the same, datasources are the same and source system are the same. 
    This will load the infopackage as you normally do and after that immediately delete any same or encompassed requests.  i.e. if current value type selection is 20-90, it would delete a request for 20 as well as a value type for 40 and one for 50...
    Hope this helps,
    Mary
    Hope this helps.

  • Update Data Automatically

    I have created a new ODS. In the ODS, the "Update Data Automatically" and "Activate Data Automatically" indicators are checked...I then created a Cube linked to this ODS.
    Because of the Update Data Automatically indicator is checked in ODS,so system will then update the data automatically up to the data target (InfoCube).
    Question is because I am now using the Transformation between InfoCube and ODS, does the update data will still happened automatically?
    Or I have to create the DTP and schedule the Process Chain?

    Hi.....
    "Activate Data Automatically" indicators is generally ignored while using a Process chain.......
    Solution -
    Use process chains to automate data activation.
    You are right........Update Data Automatically indicator is checked in ODS,so system will then update the data automatically up to the data target (InfoCube).....................But this settings are in most cases ignored ,becoz in a prod environment process chains are used........to load DSO......when process chains are used  both the settings..Update Data Automatically" and "Activate Data Automatically"........are ignorde.......
    So create a DTP........
    Hope this helps......
    Regards,
    Debjani.........
    Edited by: Debjani  Mukherjee on Oct 23, 2008 7:19 AM

  • How to load data in infocube BW 7.0.

    Hi,
    I am loading data in Infocube from R3(ECC 6.0) to BW(7.0). Following are the details.
    Steps in R3.
    1) I have created customized table in R3 and loaded data in the table.
    2) Using transaction RSO2 I have created data source.
    3) I am able to extract data using  RSA3 in R3.
    Steps in BW(7.).
    1) I have replicated data source in BW(7.0)
    2) Created Infocube in BW(7.0).
    Please let me know what are the steps required to load the data from data source to Infocube.
    Thank You,
    -Near

    There are a few ways to do this. Let me explain the quick and supposed to be the most efficient way.
    1. Right click the cube and chose create transformations.
    2. You will be prompted to chose the source object type and object; in your caae data source.
    3. The system will try to map the objects ( similar to update rules / transfer rules) and give a mesage " so many rules have been created". Check and activate.
    4. Right click the cube and chose create DTP ( DTP is similar to info package but have different functions) and chose your source and target.
    5. Chose the update mode ( delta , full etc)
    6. Activate the DTP and execute.
    Ravi Thothadri

  • Request (PSA) was NOT posted successfully to data target (InfoCube)

    In our daily load process chain I am getting an Error Message for "PSA to InfoCube" as:
    Request was NOT posted successfully to data target (InfoCube)
    Message no. RSMPC163
    Please what is the exact problem it means & what is the solution
    Rajesh Giribuwa

    Hello Rajesh,
    This requests fails when updating from PSA to Infocube.
    Pleaes check the update rules for errors.
    Try to find out the exact error message and explore the tabs in monitor for this job.
    Hope this helps..
    thanks,

  • BIA Test: Suggestion for creating enormousTest Data for Infocubes

    Hi,
    I need to create some enormous amount of data for infocube in order to test BIA.
    I don't think my basis team will allow me to load data from Production to Sandbox and moreover production has less than 250 millions records.
    Any suggestion for 250 million records?

    Hello,
    Just an idea. If you can load a minimum of data for your cube then it is easy.
    You just have to generate for your cube for instance a datasource and then create some update rules to loop on your data.
    a. generate export datasource
    b. map it to your infosource
    c. define some update rules to ensuere your data will be different. For example in the start routine.
    Hope it helps.
    Patrice

  • InfoPackage don't update Data Target

    I Have a general problem that InfoPacjage didn't update any data target especially InfoCube
    I am using the Data Flow 3X
    When I am using DTP instead I succesfuly update data target
    I need to know why InfoPackage didn't update data target?
    Edited by: Mohamed Anas on May 29, 2011 9:36 PM

    hi Mohamed,
    Make sure your infopackage data target is not PSA only, there are multiple selection like PSA, Direct to Data Target.. sequencially and paralller. If that is not the issue, is your datasource emmulated DS? or it is 3.X? make sure you use the correct datasource type.. you can change that in rsds tc. Still that is not the issue, then tell us if  you are getting any error? is it specific to one datasource or to others as well? try to do it in background instead of dialog. Hope that helps.
    thanks.
    Wond

  • Table - Update Date

    Hi Everyone,
    I need to know if someone knows which table is the one that store the "Update Date" that appears beside the request id in the ODS or Cube.
    For example: (ODS-Manage-Request Tab)
    Request ID:573
    QM Status: Green
    Update Date :09.01.2006 (i need the table in which this date is stored)
    THANKS IN ADVANCED !!! I REALLY APPRECIATE YOUR HELP.

    hi,
    check thread
    Table for Request information
    RSDCUBE, "Cube Attribute
    RSDCUBET, "Cube text
    RSDODSO, "Directory of all ODS Objects
    RSDODSOT, "Texts of ODS Objects
    RSICCONT, "Requests in the cube
    RSMDATASTATE, "Status of the data in the Infocubes
    RSMONICDP, "Monitor Request Data Packet Table
    RSSELDONE, "Monitor: Selections for executed request
    RSREQDONE, "Monitor: Saving of the QM entries
    RSLDTDONE, "Texts on the requested InfoPackages and groups
    RSMONFACT. "Fact table monitor
    RSMDATASTATE table gives the latest request available for reporting. You will have to compare & find out whether the request in question is available for reporting.
    the other table : RSDDSTATWHM
    REQUEST TABLE
    hope this helps.

  • Generic DataSource cannot be updated in an InfoCube!

    Hi Expert
    We have a Z infocube that is loaded directly by a Generic Datasource. We setup a infopack for initialize delta precess and other for Delta Update. With a DTP Full we load the initial data, but when we try to setup a DTP for Delta information the system respond that Generic datasource cannot be updated in an infocube directly because uses delta process AIE (RSM1112).
    We have a transformation rule and many routine from the generic datasource to Z infocube, so for us is very difficult to setup a ODS. So anybody know is there another option that allow us to setup a DTP Delta for generic datasource to update directly to Z infocube, for us is going to be very helpfull any idea.
    On the other hand, on DES with made a DTP Delta and the system doesn´t say anything, but on PRD the DTP Delta can´t be active.
    Thanks a lot

    Hi David:
       AIE only supports loading to ODS/DSO, for more details refer to the blog provided by Swapna Gollakota.
    "How does a datasource communicates "DELTA" with BW?"
    /people/swapna.gollakota/blog/2007/12/27/how-does-a-datasource-communicates-delta-with-bw
    Regards,
    Francisco Milán.
    P.S. Take a look at this thread for a similar discussion.
    "DataSource 0FI_AP_4 cannot be updated in an InfoCube! "
    Edited by: Francisco Milan on Jun 18, 2010 5:20 PM

  • DataSource cannot be updated in an InfoCube.

    Hi,
    I am new to SAP. Act, i created generic data source over VBAK and VBAP including the fields:
    VKORG, AMTBL, BSTNK, VBELN, MATNR, MATWA, ARKTX, KWMENG, LSMENG, KBMENG, KLMENG, VRKME, MEINS & CMWAE.
    I transferred the data source in BI side and make a new Infosource and infocube. I made 2 Infosources for AMTBL and ARKTX.
    And the rest of the fields are as follows:
    0salesorg, AMTBL, 0doc_num, 0doc_number, 0material, 0mat_entrd, arktx, 0cml_or_qty, 0reqdel_qty, 0cml_cf_qty, 0cml_cd_qty, 0sales_unit, 0base_uom & 0doc_currcy.
    After making transformations & mapping, when i made DTP, on activating the DTP it gives me error as:
    DataSource ZPRACTISE_GDS                 ECDCLNT230 cannot be updated in an InfoCube
    Can anyone please tell me how can i solve this error??
    Roma

    Dear Roma,
    Go to the datasource manage> Select the request which is loaded recently having the erroneous data> click on the PSA button.
    Now you can find out the erroneous record either by Filtering the value on the field 0DOC_NUM or by displaying the complete records in PSA and the searching the value (' .lkboig') in the 0DOC_NUM  field column.
    In this way you'll figure out the erroneous record, just try to correct it there by selecting the record and later on save the record.
    Try to move this request from PSA to the target once again. This time you will not face any problem hopefully.
    Regards,
    Rahul
    Edited by: Rahul on Apr 21, 2011 11:51 AM
    Edited by: Rahul on Apr 21, 2011 11:52 AM

Maybe you are looking for

  • E75 : I can't connect my mobile to Nokia-Suite, Pc...

    Hi, this week i missed the pop-up when i received a SMS on my E75 using Pc_Suite (last Build) on my Vista machine. I decided to remove all Nokia software and reinstall them. Since reinstalling, My E75 is not connectable with the cable (only Bluetooth

  • IPod does not play music from the beginning

    Hi there! The music is properly good on the hard disk of the PC. The music is imported into iTunes, where it played well from the beginning. On the iPod, the music is also available. When playing the music now as follows: The title starts 6-10 second

  • My account is "disabled" how can I reactive it?

    I need help with this...

  • Zero Value Invoice in SAP

    Hi, I have a scenario as I need to show days 15 cost zero, on the invoice, to show the customer we are giving service fee of charge. Is there any way in SAP where one can create a zero value invoice? The standard FoC (Free of Charge) business process

  • Is it possible to damage iPhone screen by pressing too hard?

    I have an iPhone 5s and I take really good care of it and want it to last a long time. I have an Otter Box and a screen protector and stuff to keep it in good condition. Sometimes, if I press the screen a little bit harder than usual, I notice that i