Reading data from infocube

Hi all,
We have an infocube which contains some figures like number of days, number of hours etc. We should calculate some indicators on them, something like:
Ind = Hours1 * 100 / Hours1 + Hours2
where Hours1 and Hours2 are figures which come from two different records, with codes 1 and 2.
We are not using BEx, but some other reporting tool which takes quite a long time over it. So we were asked to write an ABAP program which should read the data out of the InfoCube and calculate these indicators on basis of such fomulas.  Writing a Transfer Rule with the InfoCube as DataSource proved not to be such a good idea because data is split in packages for the upload, so a subroutine within the transfer rule might not be able to find the records with codes 1 and 2 within the same package and that gives errors.
The question is: does anyone know of programs/functions/classes which could do the job? so read data from the infocube and eventually update it back into the infocube after the calculations?
Thanks in advance,
Ioana

Hi Ioana,
maybe Analysis Process Designer (APD) can solve your problem. In an APD process you can read the data from any InfoProvider, calculate your key figures in an ABAP routine and write the result to an ODS. This ODS has to be transactional and can't be directly reported, but you can report the ODS data by defining an InfoSet on it; you can also write the ODS data to any cube via the data mart interface. The data package split shouldn't be a problem in the APD process because you can define a partitioning characteristic in the APD routine.
The APD is available in BW 3.x via transaction RSANWB.
Martin

Similar Messages

  • How to Read data from Infocube

    Dear Friends,
    I have requirement to read data from Infocube.
    I know the Function module(FM) which SAP provided. The FM name is RSDRI_INFOPROV_READ.
    But when i am trying to execute this FM in SE37, it giving "Error generating the test frame" message.
    I called this FM in start routine, it giving error while loading.
    If any using this please let me know, how to use this. If any have sample code, please share.
    Thx
    Raj

    Hi,
    i used to check documentation all time, but this time I forgot to check.
    It is well documented. thx for igniting my mind.
    bye
    Raj

  • Error reading data from Infocube using shell script.

    Dear all ,
    I am facing a problem while reading data from an infocube using a shell script.
    The details are as follows.
    One of the shell script reads the data from the infocube to extract files with the values.
    The tables used for extraction by the shell script are :
    from   SAPR3."/BIC/F&PAR_CUBE.COPA"     FCOPA,
           SAPR3."/BIC/D&PAR_CUBE.COPAU"    COPAU,
           SAPR3."/BIC/D&PAR_CUBE.COPAP"    COPAP,
           SAPR3."/BIC/D&PAR_CUBE.COPA1"    CCPROD,
           SAPR3."/BIC/D&PAR_CUBE.COPA2"    CCCUST,
           SAPR3."/BIC/D&PAR_CUBE.COPA3"    COPA3,
           SAPR3."/BIC/D&PAR_CUBE.COPA4"    COPA4,
           SAPR3."/BIC/D&PAR_CUBE.COPA5"    COPA5,
           SAPR3."/BIC/MCCPROD"      MCCPROD,
           SAPR3."/BIC/SCCPROD"      SCCPROD,
           SAPR3."/BIC/MCCCUSTOM"    MCCCUSTOM,
           SAPR3."/BIC/SCCCUSTOM"    SCCCUSTOM,
           SAPR3."/BIC/SORGUNIT"     SORGUNIT,
           SAPR3."/BIC/SUNIMOYEAR"   SUNIMOYEAR,
    /*     SAPR3."/BI0/SFISCPER"     SFISCPER, */
           SAPR3."/BI0/SREQUID"      SREQUID,
           SAPR3."/BI0/SCURRENCY"    SCURRENCY,
           SAPR3."/BIC/SSCENARIO"    SSCENARIO,
           SAPR3."/BIC/SSOURCE"      SSOURCE
    The problem is that the file generation by this script (after reading the data from teh infocube) is taking an unexpected time of 2 hours which needs to be maximum 10 mins only.
    I used RSRV to get the info about these tables for the infocube:
    Entry '00046174', SID = 37 in SID table is missing in master data table /BIC/MCUSLEVEL2
    Entry '00081450', SID = 38 in SID table is missing in master data table /BIC/MCUSLEVEL2
    and so on for SID = 39  and SID = 35 .
    Checking of SID table /BIC/SCUSLEVEL2 produced errors
    Checking of SID table /BIC/SCUSLEVEL3 produced errors
    Can you please let me know if this can be a reason of delay in file generation (or reading of data from the infocube).
    Also , Please let me know how to proceed with this issue.
    Kindly let me know for more information, if required.
    Thanks in advance for your help.
    -Shalabh

    Hi ,
    In continuation with searching the solution to the problem , I could manage to note a difference in the partition of the Fact table of the infocube.
    Using SE14 -> Storage Parameters, I could find the partition done for the fact table as :
    PARTITION BY: RANGE
    COLUMN_LIST: KEY_ABACOPA
    and subsequently there are partitions with data in it.
    I need to understand the details of these partitions .
    Do they correspond to each requests in the infocube(which may not be possible as there are 13 requests in infocube and much more partitions).
    Most importantly, since this partition is observed for this onfocube only and not for other infocubes, it is possible that it can be a reason for SLOW RETRIEVAL of data from this ionfocube( not sure since the partition is used to help in fast retreival of data from the infocubes).
    Kindly help.
    Thanks for your co-operation in advance.
    -Shalabh

  • Error reading data from infocube using RSDRI_INFOPROV_READ

    hi,
    I am trying to write a Function module to read data from an Infocube.
    This is a remote enabled Function module and is working fine if I make a few minor changes and customize it to read data from a  case of a DSO.
    However, for cube, code is showing no syntax errors, but on execution is not returning any data also.
    I have tried defining E_T_data as E/F/V tables of the cube, but still not getting any output.
    Probably this is related to structure of E_T_data only. . . .
    Can anyone please guide me on this.
    regards
    Parikshit.

    Hello,
    E_T_DATA needs to defined as an internal table with all the fields you need as an O/P from the infocube you are trying to fetch data from. Just make sure, you keep the name of the fields same as Name of the infoobjects in the Cube. So just define e_t_data Standard internal table with all fields you want to fetch from Infocube (name of fields same as infoobject name).
    Also fill in the g_th_sfc, g_th_sfk internal tables with the list of characteristics and Keyfigues you wanna o/p with chanm/kyfnm field populated with exact name of infoobject and chaalias/kyfalias same as defined in g_t_data (good to keep both same).
    Thanks
    Edited by: Sandesh Shetty on Jul 29, 2008 2:26 PM

  • DUMP ANALYSIS- DBIF_RSQL_INTERNAL_ERROR    when reading data from infocube

    HI ALL,
    When i am trying to read the data from an info provider RSDRI_INFOPROV_READ.
    the runtime error which is comig is DBIF_RSQL_INTERNAL_ERROR
    it is throwing a dump which says An internal error in the database interface occurred during access to
    the data of table "RSMDATASTATE ".
    the lines at which it is dumping are
    SELECT SINGLE * FROM RSMDATASTATE
    INTO E_S_DATASTATE
    WHERE INFOCUBE = I_INFOCUBE
    I checked in the table RSMDATASTATE it is having an entry for the required infoprovider.
    Please suggest me if anybody across this error in the past.
    is there anything to do with cube settings rool ups and compression or something. Please suggeste me.
    Thanks in advance
    Best regards
    SG

    check this thread...
    [Function Module 'RSDRI_INFOPROV_READ';
    --- thanks...

  • Read data from an Infocube

    Hi,
    I'm writing a program to read data from an infocube, usfin FM RSDPL_CUBE_DATA_READ, but I can't get a result.
    This are the parameters I'm using:
    I_INFOCUBE                                = 'ZGE_CUB10'
    I_REFERENCE_DATE                  = sy-datum
    I_S_RFCMODE-ID                        = BIDCLNT100
    I_S_RFCMODE-RFC_RECEIVER  = RSDPL_CUBE_DATA_READ                
    I_S_RFCMODE-PACKAGESIZE    = 100
    I_S_DELTAMODE-SYSID             = BID
    I_S_DELTAMODE-DELTAMODE   =''
    I_T_CHA-chanm    = 'ZGE_KPI'
    I_T_CHA-chaalias  = 'ZGE_KPI'
    I_T_CHA-orderby    = 0
    I_T_KYF-kyfnm   = 'ZGE_VALOR'
    I_T_KYF-kyfalias = 'ZGE_VALOR'
    I_T_KYF-aggr      = 'SUM'
    i_t_range-chanm       = 'ZGE_KPI'.
    i_t_range-sign           = 'I'.
    i_t_range-compop     = 'EQ'.
    i_t_range-low            = 'FTL_GLC10_0331'.
    i_t_range-high          = 'FTL_GLC10_0331'.
    E_T_COLUMN-colname   = 'salida_zge_valor'
    E_T_COLUMN-iobjname  = 'salida_zge_Valor'
    E_T_COLUMN-keyflag    = 'X'
    but I keep getting DELTAMODE_ERROR.
    any help??? any sample-code you may share??
    thanks
    MAuricio

    found some sample code...
    http://www.web-dreamer.de/blog/2009/04/reading-on-sap-bi-infocubes-via-rsdri_infoprov_read.html.
    SAP also gives you sample programs on how to use the same...
    RSDRI_INFOPROV_READ_DEMO
    from thread :
    Re: RSDRI_INFOPROV_READ and compound selection conditions
    Edited by: Arun Varadarajan on Jun 5, 2009 7:24 PM

  • Reading data from 2 infocubes in same start routine - RSDRI_INFOPROV_READ

    Hi guys,
    Is it possible to read data from 2 Infocubes via RSDRI_INFOPROV_READ FM in same start routine of Infosource.
    Both infocube have different KF's.
    my one Infocube reading is working fine but now need to another infocube in same strat routine.
    Help will be appreciated and full points will be assigned.
    Thanks in advance,
    Harry

    Hi,
    1.It means I have to call FM twice
    2. Can I use same internal table to store data of both infocubes
    3. both cubes have got different KF
    Can you please explain in detail?
    Thanks,
    Harry

  • Gurus..need help in reading data from virtual infocube

    Gurus,
    I have to read data from an virtual infocube...I am trying to use FM RSDRI_INFOPROV_READ to read data but it doesn't work..
    I am doing exactly what has been done in the demo program RSDRi_INFOPROV_READ_DEMO...
    Please help me...its really URGENT...
    Thanks
    sam

    Check out this thread....
    must be helpful
    Re: Read data from 0BWTC_C02 via ABAP

  • Error reading data from an infocube

    Hello,
    I want to read data from a remote infocube in tcode listcube, and I get this 2 error messages: "Error reading the data of InfoProvider IC_SNP_DR" and "Error when generating program". This is a remote cube reading data from a SNP Planning Area.
    I´ve already activated Plng Object Strucuture 9ASNPBAS and repair all infoobject but in tcode /SAPAPO/MSDP_ADMIN in 9ASNPBAS I get message "Not All InfoObjects Can Be Read". Is this why I get the error in reading the infocube?
    Does anyone know why I get this errors and how to solve them?
    Thanks and Regards,
    Teresa Lopes

    Teresa
      From   /SAPAPO/MSDP_ADMIN go to extras/data extraction tools.  This gives you all the things you need to manage the extractors on the snp planning areas.  you can use RSA3 to test the extractor and pull data to a list.  Are you sure you want to extract using the total POS  (9SNPBAS).  Based on the data you need you might want to extract based on one of the standard SNP aggregates.  MALO  (material location) for example.
    You mention that the POS was active.  Make sure you Planning area is also initialized
    George

  • Reading data from Real-time Infocube

    Is it possible to read data from the Real-Time Infocube by using the function module
    RSDRI_INFOPROV_READ

    Hi,
    If records from both the request should be read ie Request under processing(which is in yellow) and Request which is processed(Which is in Green) at a time. What should be done.
    Is there any function module which returns the records of both requests.
    Rgds,
    Ganesha

  • Reading data from an infocube into wd application

    Hi,
    How can we read data from an infocube.I have to read data from two infocubes and then display it in table in an wd application.
    I have found an FM RSDRI_INFOPROV_READ to read , but how to use the same in wd application.

    Hi Sanjeev,
    Use CALL FUNCTION To use FM in WD.
    something like this..
    Declarations for BAPI_HU_DELETE_FROM_DEL
      DATA : Del     TYPE BAPIDELICIOUSDELIVERY-DELIVERY_NUMBER,
             Return1 TYPE TABLE OF BAPIRET2.
      del = lv_imp_outdel.
      DATA : HUKEY    TYPE BAPIHUKEY-HU_EXID,
             wa_hukey TYPE BAPIHUKEY-HU_EXID.
    loop at lt_pack_mat into ls_pack_mat.
      wa_hukey = ls_pack_mat-HANDLING_UNIT.
      MOVE wa_hukey TO hukey.
    endloop.
    Calling BAPI_HU_DELETE_FROM_DEL
      CALL FUNCTION 'BAPI_HU_DELETE_FROM_DEL'
        EXPORTING
          DELIVERY = del
          HUKEY    = HUKEY
        TABLES
          RETURN   = Return1.
    Commit Work
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
    Chers,
    Kris.

  • Function module to read data from a SPO

    Hi guys,
    Inside a transformation a have a rule, ABAP routine type, in wich I need to read data from a SPO (semantically partitioned object). Is there an ABAP function module or Class that allows to read data from a SPO?
    The SPO from wich I need to read the data is DSO based.
    Thanks in advance.
    David.

    Hi David,
    The normal procedure is using Function Module RSDRI_INFOPROV_READ. However, according to the documentation it only works for DSOs, InfoCubes and MultiProviders.
    Could you access as a work-around a MultiProvider? Or use any logic to first determine which PartProvider of the SPO-based DSO or InfoCube is required and then use the Function Module to read the data?
    Best regards,
    Sander

  • Data From Infocube(Source)  to Infocube(Target)

    Hai ,
    Please can some tell me how to populate data from Infocube to Infocube.Iam working on BW 3.5.
    I have created one infocube and loaded data into it and then right clicked on first infocube and said export datasource.I am able to see in BW source system the data source.Now i have created second cube and i want to populate data from 1st cube.
    Please tell me the procedure.I will allocate points to all of u.Thanks in advance.
    Bye
    Madhu

    Hi,
    what are the navigational steps  in loading data from cube to cube?
    3.X
    how to copy the one cube to onether cube
    7
    Create transformation btn cubes.
    Create DTP and run it.
    Loading data from one cube to another cube.
    Cube to cube data loading
    how to upload data from cube to cube
    Can we pull data from one cube to another cube
    Data Load Steps:
    Reading data from another cube
    Thanks,
    JituK

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • Read data from SAP R/3 Class-System

    Hello,
    first of all sorry when I posted this into the wrong subforum, but I wasn't sure about that. My Question is how to read data from the Classystem I have specified in my ABAP report.
    The goal is to read data from my individual class-system as well as data from MM and write them to a table that is to be read by another report. But right now I can't find information about the class system and abap. Maybe you know some tutorials or blogs about right that topic you can suggest?

    What class system have you specified in your report?
    Normally a class can be used by declaring a variable of type of the class in question, if this class can be instantiated this is. If your class can't be instantiated, but it has only class methods, you can call this method directly.
    But there is a lot more to this ABAP Object Oriented Programming, than just this short explanation. Search on SDN for some ABAP OO Tutorials.
    some links:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/frameset.htm
    http://www.sapgenie.com/abap/OO/
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
    Transacation ABAPDOCU.

Maybe you are looking for

  • Deleting files out of system preferences desktop background.

    Does anyone know how to delete files out of system preferences>desktop & screen saver? Some how when adding one photo to the file for the desktop background it took the entire photo file. So that instead of one photo for the file it has over 200 now.

  • I just updated iPhoto, now iTunes won't sync my photos with my iPhone.

    Earlier today I was able to sync photos just fine. Then I updated iPhoto via the Mac App Store. I connected my iPhone and got this error message from iTunes: iTunes could not locate a supported photo application. Would you like to change your photo s

  • Output 1440p through MDP to HDMI 2?

    Hello there, I have a mid 2011 27" iMac, and I recently bought an LG 4k TV. I have everything (iMac, Xbox, cable TV, bluray) running through an Onkyo TX-NR636, which is a 4K AV reciever, and then one HDMI cable runs to the TV. It's all very fancy. MY

  • Java server does not start; config tool

    Hi All, I am fairly new to SAP BASIS setup. I have installed IDES ECC 6.0 on Oracle(Win2003 as a guest on VMWare). At the time of installation the install program installed a part of the Oracle database files on an external harddisk. The ABAP server

  • Possible to determine hrefs from flash?

    Hi - I'm writing a web crawler. I am running into an issue with sites that use menus written with flash as I am not able to grab the hrefs. Is there a way to do this? If so could someone at least point me in the direction of where to look? I've never