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
Similar Messages
-
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,
HarryHi,
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 -
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. -
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
samCheck 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 LopesTeresa
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 -
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.
-ShalabhHi ,
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 -
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,
IoanaHi 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 -
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 -
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
RajHi,
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 -
Reading data from Real-time Infocube
Is it possible to read data from the Real-Time Infocube by using the function module
RSDRI_INFOPROV_READHi,
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 -
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 -
Deleting data from an infocube
If I want to delete the data from an infocube before I carry out a load as part of the daily load can I do this and if so how would I do this? Thanks
This might be of some help:
<b>Steps for process Chain</b>
Start
Delete Index ( for Cube )
<b>IP1</b>*.....
<b>Delete Overlapping Requests from InfoCube*</b>
Create Index ( for Cube )
<b>IP1</b> - Infopackage - Datatargets - Automatic loading of similar or identical requests - Select Deleting Existing Requests - Flag Full or Initial Load - Flag Datasources are same - Selections Are " Same or Comprehensive " - Save .
<b>Delete Overlapping Requests from InfoCube</b>* - In this process type - Object Type - Execute Infopackage - Select the one in use for Full with the Tech name - Click on Deletion Selections at the bottom - Set the same selections as in the Infopackage. -
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,
PraveenDepending 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. -
Can not read data from URL!
Hello,
I want to read data from URL (http://84.100.130.82:8000/;stream.nsv). But can not do it. Because when try to call function openDataInputStream() shows this error: java.io.IOException: response does not start with HTTP it starts with: ICY. How I can fix this bug?
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
StringBuffer b = new StringBuffer();
String response,
responseLitle;
c = (HttpConnection)Connector.open(“http://84.100.130.82:8000/;stream.nsv”);
os = c.openOutputStream();
os.flush();
is = c.openDataInputStream(); // ERROR CODE HERE
int ch;
// receive output
while ((ch = is.read()) != -1)
b.append((char) ch);
response = b.toString();Regards, RamunasHi, I�m trying to do the same as above, get MP3 from a Shoutcast server.
I got the same fault ("response does not start with HTTP it starts with: ICY") when I tried to open an HttpConnection as bellow:
============================================
HttpConnection conn = (HttpConnection) Connector.open("http://64.236.34.196/stream/1074");
Then I tried to open a socket connection as bellow:
======================================
SocketConnection conn = (SocketConnection) Connector.open("socket://64.236.34.196:80");
String get = "GET /stream/1074 HTTP/1.1";
DataOutputStream os = conn.openDataOutputStream();
os.writeUTF(get);
InputStream is = conn.openInputStream();
But then I got the following error:
=========================
java.lang.SecurityException: Target port denied to untrusted applications
Could someone help me to find out what is going on?
Thanks a lot!
Maybe you are looking for
-
Just curious but I went to get an iPhone 5 for an upgrade I really wanted a black iphone 5 but they only had white ones in stock, I was wondering (because my screens cracked) will they possibly send me a refurbished black iPhone 5?!
-
Is it possible to play sound in an iPad Keynote presentation.
I'm new to the iPad and to Keynote. I can't find an option for importing audio into my presentation. Does this version of Keynote allow the inclusion of audio, such as a song downloaded from iTunes?
-
T5220 and Solaris 10 U6 - Jumpstart problem
Hi Server T5220 booting and installing (Sol 10u6) from DVD without any problem. But when I try to install server via net I have problem. I prepared install server according doc (Solaris 10 8/07 Installation Guide: Network-Based Installation) Install
-
Filter to convert HTTP request to JNLP arguments fails every other time
I want to pass HTTP request parameters to a Java Web Start program as arguments. I have implemented a filter which adds the arguments from the request parameters using XML DOM, and I also set the Last-Modified date to the current date/time. [ I am so
-
Will two identical objects that return identical hash codes regardless of how many times the program is run? For instance, will a String that contains for example "Test" have an identical hash code as another String that contains "Test" but was run i