Read data in InfoCube using Planning Function

Hi Expert,
someone know the appropriate FMs for reading data in an infocube and provide data, from the same infocube, to the bps cube using FM-Init and FM-Exit in a planning Function?
Many Thanks in advance
Fabio

You could try to use FM RSDRI_INFOPROV_READ: it will give you back the data in E_T_DATA.
Hope it helps
Regards

Similar Messages

  • 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

  • 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

  • Use Planning Function to calculate new value

    Hi All,
    I have what seems to be a simple problem, but no success in resolving.
    I have 3 planning keyfigures:
    -Units
    -Price
    -Value
    The price field is populated from another planning sheet.
    The unit field is entered by the user.
    The value should be calculated by planning function when button pushed.
    I have tried just basic "Value=Units*Price", but always comes back zero.
    I have also tried more complex "{Value, CharA, CharB, CharC} = {Units, CharA, CharB...." for each characteristic.  Still zero.
    It must be multipling by zero, but not sure how to avoid.
    If I put "Value=Price", it works. If I put "Value=Units", it works. If I put "Value=Units+Price", it works.
    Please help.
    Terrence

A: Use Planning Function to calculate new value

Here is the details.
In the infoprovider the data is like this:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/                 0/             0
DE/             Shirt/              0/             100.00/        0
The query is display:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/              100.00/         0
I have tried the following 2 formulas:
Formula 1:
= {Unit Sales} *
Formula 2:
FOREACH Country, Product.
{Value, Country, Product} = {Unit Sales, Country, Product} * {Price, Country, Product}
ENDFOR.
Both return zero for values.
Thanks,
Terrence

Here is the details.
In the infoprovider the data is like this:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/                 0/             0
DE/             Shirt/              0/             100.00/        0
The query is display:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/              100.00/         0
I have tried the following 2 formulas:
Formula 1:
= {Unit Sales} *
Formula 2:
FOREACH Country, Product.
{Value, Country, Product} = {Unit Sales, Country, Product} * {Price, Country, Product}
ENDFOR.
Both return zero for values.
Thanks,
Terrence

  • Input enable query column using Planning function

    Is it possible to input enable a column in query based on user action in Radio button group or button group by calling a planning function or WAD?
    By default the column property for query will be Planning not allowed, but a user action should change the mode to Planning allowed using planning function or entries.
    Thanks

    Hi Ravi,
    you could try to write an exit data slice and a planning function which sets the data slice to not lock the data during runtime. You can find several threads in this forum. how an exit data slice can be used to control the locking of data during runtime.
    Together with the command I mentioned in my last answer this may work, but it still depends on your requirements. A dataslice checks only the combination of characteristics. If you can identiy a characteristic for each column this may work. If not, there is no characteristic combination which can be locked. Please consider this when designing your application. This may lead to an additional characteristic which is used just to identify which column should be locked.
    Hope this helps ...
    Regards Matthias Nutt
    SAP Consulting Switzerland

  • Error when reading data from XML using JAXB?

    Hi all,
    I get the error message when reading data from XML using JAXB.
    [org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
    (AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
    I don't find the reason, please help!
    Thanks in advance!

    The problem is sovled.

  • Reading Data From a Different Planning Package in a Exit Function

    Hi,
    Is it possible to read data from a planning level / package other than the package that the exit function was executed with?  I want to read data into an internal table from another package and use that data in combination with the data in the current package to create new records.  If this is possible sample code for how to read data from a different package would be appreciated.
    Thanks!
    Mel Waldner

    Hi,
    As an example lets say you have restricted 0calmonth in your package to 6.2007. In the planning layout to fetch values for 5.2007 (read only), you can take 0calmonth in data columns, and for this column restrict it as 5.2007.
    Similarly in Planning functions, you can mark 0calmonth as field to be changed and fetch data for 5.2007.
    Hope this helps.

  • 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

  • Awful performance when using planning function of type EXIT

    Hi.
    I created planning function base on my own class with interface IF_RSPLFA_SRVTYPE_IMP_EXEC_REF.
    In this class I read active buffer and do some validations.If validation not successful I give error message, otherwise I do nothing.
    After my method ends to run (very fast and without any problem and only on active filter rstricted values) it seem that application goes forward, come to method EXECUTE_SERVICE in CL_RSPLFR_CONTROLLER==========CM002 (see code below) and at line 387 when calling read_data_from_buffer it hangs for 10 minutes.
    I seems that system try to read all data in cube (not only restricted with active filter) and hangs. This method returns me all records of cube into L_R_REF_DATA.
              IF n_use_node_selection = rs_c_false.
                read_data_from_buffer( EXPORTING i_t_charsel = l_t_charsel_ref
                                                 i_t_charsel_orig = l_t_charsel_orig
                                                 i_tsx_seldr_orig = p_tsx_seldr
                                                 i_th_block_chars = l_th_ref_block_chars
                                                 i_enqmode = 'S'
                                                 i_th_attr = l_th_attr
                                       CHANGING c_r_data = l_r_ref_data
                                                c_r_sid = l_r_th_sid
                                                c_ok = l_ok ).
              ELSE.
    Does anybody has an idea WHY ???
    Regards.

    Solved.
    I just need to fill E_T_REF_CHARSEL at end of my class run.

  • Read data from SharePoint using ABAP sql command

    We need to read data from a SharePoint site and update the sap object services with the information. There is a lot of information on how to put data into Sharepoint from SAP, but we need to get data from SharePoint and put it into SAP. Is it possible to retrieve data from SharePoint using sql command in ABAP program? If it is possible, what do we need to do to have SAP recognize where to get the SharePoint data?
    Richard Newman

    Hi Newman,
    You can use native sql in your abap code to read data from SharePoint's database. But I would suggest you to generate a SharePoint webservice which can provide you the neccessary data so that you can consume this webservice in ABAP
    (Will be quite faster than native sql).
    Regards,
    Ozcan.

  • How to execute process chains using planning function

    hi, i need to execute process chains from web. i know the steps to that needs to be followed for accomplishing the task.
    1) RSPC_CHAIN_START ( function module) into which process chain has to be passed
    2) create a planning function to invoke the said function module
    3) create a function button on web and assign the planning function.
    Now the thing is how to create the planning function in BPS. plz provide me a solution with steps. And how to pass the process chain into the function module and handle it.
    Thnaks

    Hi Anand
    RSPC_CHAIN_START is the standard function module to run a process chain which i want use. Now, how to use the said FM in planning function to achive my task. Do i need to maintain any parameter in planning function inorder to execute the FM. If you know the solution plz explain in detail.
    I am very new to BPS..bare me plz
    Thank you

  • Error while reading data from MapMessage using MDB

    Hi,
    I have written a small client program to send a message to a queue and an MDB receives the message in the onMessage() method. The message is of type MapMessage. I set key value pairs and send the message in a queue. When I try to read data from MapMessage inside onMessage() method of MDB, I get an exception:-
    javax.jms.MessageNotReadableException: In write mode
    When I send the message, by default the readonlymode is false. How do I set the mode to readonly exclusively in case of MapMessage ?
    Sirisha

    Hi,
    I do not have any problem with TextMessages...I works fine..It is only with MapMessage that I am not able to read the values..Before sending the message, the message has the flag "readMode" set to false by default by the server...R there any configurations to be made to any files like web.xml or server.xml or jms.xml ?
    I am running my JMS application on JDeveloper IDE that has an in-built OC4J server which supports JMS.

  • Divide key figures in real time cube by using planning function

    Dear all,
    I have a real time cube which contains one key figure which is defined by 10 characteristics.
    For one country, the users types the values fpr the key figure in a wrong format, so I have to divide those values by 1000.
    I have tried to do this with a planning function "Revaluating" and a filter (on this spec. country). I have combined this two element in a planning sequence. When I run this I just get the error message "planning function ended with errors" without any further information.
    Is there an other way to devide values within the cube? the BI release is 7.0.
    Any help would be great.
    Best regards,
    Stefan from Munich/Germany

    Hi Stefanos,
    What you are doing is absolutely right.. However, I want to ask a few question..
    1. Are the characterestic values included in the filter ? ie. If you want to change for Country: UK, is UK present in filter?
    2. Are there any other characteristics that you have not included in the function and are getting changed by chance ? Like you might need to include 0fiscyer in To Change if you are assigning 0Fiscper.
    3. Write a small FOX function with hardcoded values to check if the system is accepting the values or not..
    It should work.. Please write back in case you need more help..
    Regards, Rishi

  • Cfspeadsheet not picking up data from cells using excel function indirect

    I am receiving data from comany executive in a sreadsheet and trying to post selected data to a company intranet by reading the data using cfspreadsheet.  for the most part, cfspeadsheet works, however, this speadsheet is rather complicated.  The spreadsheet uses the excel indirect function to determine which data to post.  When I read this cell, or any cell dependent on it, with SpreadsheetGetCellValue, if get the cell formula instead or the calculated value for the cell.  Is this function not supported by cold fusion?
    Is there any way around this?
    Is the a list somewhere of which Excel functions are or are not supported?

    Thanks for your reply...
    it is now displaying data in independent cells , but is it possible to add multiple headings in that excel sheet.
    ex
    Heading 1
    heading 2
    Column Headings-------
    Is it possible to do that way?? for column headings i think we need to pass in fields parameter of Tables...
    can we include multiple headings???
    Thanks for help..

  • Maybe you are looking for

    • Macbook Pro laptop (early 2013) sudden slow down, and heats up while sleeping

      Hi! I need help with my Macbook Pro laptop (early 2013) that suddenly slowed down, and heats up while sleeping. It slowed down 3 days ago. I want to know what checks I can do to find what is wrong with my laptop. Thank You

    • Inter company STPO

      Hi All, We have created the inter company P.O.  Supplying plant delivery the material paritial qty and done PGI, Billing also.  Now, Receiving plant as change the delivery date in Purchase order for the balance qty. Now, the issue is when we change t

    • Hyperion workspace Error

      Hi all, I'm using HFM 9.3, i configured shared services,HFM,Reporting succesfully.HFM and Shared services are working properly but Workspace is not working.When i able to Log - on it shows following warning messages. "Could not find a Hyperion Report

    • Javascript future in Webdynpro (JAVA and ABAP)

      Hi WebDyn Pro's, I see many sophisticated capabilities enabled inside Webdynpro for JAVA from use of Javascript.  Further, in many cases, Javascript provides the only solution for the requirements! From this forum, I think I hear that Javascript capa

    • Workflow agent assignment in Production system

      Hello Sap Gurus,   Is there a way to maintain harcoded agents(not a general task..but putting in a user's name) on the tasks in the SAP production system without going to Change mode. I know we can do it for the Workflow templates in Dispaly mode but