Creation of Virtual Cube

Hi all,
My requirement is creation of virtual cube based on Function Module.
Would you please tell me what all are the steps need to be done, how to create Function Module,What is the structure of Function Module.
Regards,
K.Krishna Chaitanya.

I think you may be confusing two different concepts. I have provided links to more on both.
1) Extract data into Virtual InfoCubes using function modules
[http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
2) Creating function modules
[http://help.sap.com/saphelp_46c/helpdata/en/ea/e9af304c7211d189520000e829fbbd/frameset.htm]

Similar Messages

  • Querying on aggregates created on Virtual Cube

    Hello,
    I have implemented a virtual InfoProvider with Services.When I create queries directly on the Virtual Infoprovider the query runs fine and I see the report.
    As per my requirement I create an aggregate on the Virtual Infoprovider .Then I define a query on the aggregate .But when I execute this query I get the following errors :
    Error reading the data of InfoProvider AG4
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    Dereferencing of the NULL reference.
    Would appreciate any assistance on this topic.
    Thanks
    Priyadarshi

    Yes it is possible to create aggregates on Virtual cubes.
    I will be grateful if hope anybody who is aware of the method of aggreagate creation and who has faced similar issues comes forward and throws some light on what could be the error.
    Thanks

  • Report issue on Virtual cube with services

    Hi,
    I'm following a how-to document to report on a virtual cube using a custom function module and everything seems to be OK except it is dumping at the following line which is included in the How To document "How Tou2026Implement a virtual InfoProvider with Services".
    Both <l_s_data> and E_T_DATA  are of same data types as discussed in the how-to document.
    append <l_s_data> to E_T_DATA
    These are the declarations which are same as HowTo document
    E_T_DATA TYPE  STANDARD TABLE
    FIELD-SYMBOLS: <l_s_data> TYPE ANY.
    Did any one face this issue. Greatly appreciate any insight into this issue. We are on BW 3.0B.
    the dump i'm getting is ...
    Data objects in a Unicode program are not convertible.
    Error analysis                                                                               
    The statement    "MOVE src TO dst"   requires the operands "dst" and "src" to be comvertible.                                                                             
    Since this statement occurs in a Unicode program, the special  convertibility rules for Unicode programs apply.
    Thanks,
    Hari Immadi
    http://immadi.com
    SEM BW Analyst

    Hi,
    In the debugging this is what I found out.. Any further insight?
    Virtual cube has only 1 characteristic Z_CRNUM & only 1 keyfigure Z_SR
    Report has only Z_CRNUM & Z_SR
    <L_S_DATA> has following record & value
    component      type     length     contents
    K____504     P     9     1.000
    S____504     C     18     16EA4D-R
    K____504 is the technical name of Z_SR in virtual provider.
    S____504 is the technical name of Z_CRNUM in virtual provider.
    E_T_DATA (type standard table) has following structure with a total of 5 fields.
    S____504    K____504           &KEYEND 1ROWCOUNT   Z_SR
    Regards
    Hari Immadi
    http://immadi.com
    SEM BW Analyst

  • Can not find data in virtual cube

    Experts,
    I can not find data in virtual cube with services function module (copying Z_RS_BCT_FIGL_DATA_GET_VC10 from RS_BCT_FIGL_DATA_GET_VC10).The standard cube is maintained with data.
    Can anybody tell me what could be the reasons the data is coming through Virtua cube.
    Thanks,
    AK

    Hi,
    i_basic_infoprov is the name of the provider where the data is selected from. This must be a basic provider that contains data. What I meant was, create a copy of fm RS_BCT_FIGL_DATA_GET_VC,1 maybe as Z_BCT_FIGL_DATA_GET_VC1, and enter the name of this fm in the properties of your virtual cube. For that fm it might also be a good idea to enter a default value for i_infoprov. And this should be the name of your virtual cube.
    regards
    Siggi

  • Not able to fetch the data by Virtual Cube

    Hi Experts,
    My requirement is I need to fetch the data from Source System (From Data base table) by using Virtual Cube.
    What I have done is I have created Virtual Cube and created corresponding Function Module in Source System.
    That Function MOdule is working fine, if Data base table is small in Source System.But If data base table contains huge amount of data (millions of record), I am not able to fetch the data.
    Below is the code I have incorporated in my function module.
    c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = '0PARTNER'.
      l_s_map-fldnm  = 'PARTNER'.
      insert l_s_map into table l_th_mapping.
    create object l_r_srv
        exporting
           i_tablnm              = '/SAPSLL/V_BLBP'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    In the above function Module,Internal table L_TH_MAPPING contains Info Objects from Virtual Cube and corresponding field from Underlying data base table.
    The problem where I am facing is, in the method FETCH_PACK_DATA, initially program is trying to fetch all the recordsfrom data base table to internal table.If Data base table so lagre, this logic is not working.
    So would you please help me how to handle these kind of issues.

    Hi Experts,
    My requirement is I need to fetch the data from Source System (From Data base table) by using Virtual Cube.
    What I have done is I have created Virtual Cube and created corresponding Function Module in Source System.
    That Function MOdule is working fine, if Data base table is small in Source System.But If data base table contains huge amount of data (millions of record), I am not able to fetch the data.
    Below is the code I have incorporated in my function module.
    c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = '0PARTNER'.
      l_s_map-fldnm  = 'PARTNER'.
      insert l_s_map into table l_th_mapping.
    create object l_r_srv
        exporting
           i_tablnm              = '/SAPSLL/V_BLBP'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    In the above function Module,Internal table L_TH_MAPPING contains Info Objects from Virtual Cube and corresponding field from Underlying data base table.
    The problem where I am facing is, in the method FETCH_PACK_DATA, initially program is trying to fetch all the recordsfrom data base table to internal table.If Data base table so lagre, this logic is not working.
    So would you please help me how to handle these kind of issues.

  • Virtual Cube with DTP for direct access

    Hello experts, I would like to hear about some tips to improve performance on reporting over this kind of infoprovider. If there were no performance impact in reporting then this cubes would be perfect to face the requirement we are facing. So I would like to get some help on deciding if we can go ahead with this idea or not.
    The volume of information is not going to be small in underlying cube staged in APO source system but we can take care on reports using restrictions and small horizons of information. There is no processing in BW side, we would just transfer records from source system to report.
    What else besides restrictions in reports can we do to reduce query performance impact? Any work in underlying cube like partitioning, compression or so?.
    Any advice from your experience?.
    Thanks so much.

    Hi Martin,
    There are 2 BCS documents that might give you some starting point on Virtual cubes, if you have a S-userID for service.sap.com/support, these generally discuss the use of Multiproviders, helped by VirtualProviders so you'll have to skip through some redundnat content.
    How tou2026 use Deltacache and Deltapair in SEM-BCS (
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000063832008E)
    How to... configure the Delta Load based MultiProvider Scenario
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000063842008E
    or
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700006323702006E
    How to... Set up a SEM-BCS Data Mart in BW;
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700006323962006E
    A generic Virtual provider link that I had lying around;
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004124212004E

  • Virtual cube and multiprovider

    Hi Experts
    I got a problem in Virtual cube. when adding fields in the multiprovider, i can't see in the virtual cube.  i hope you can help me. thanks.

    Dear Paolo,
    I'd like to try help about your question,
    There are various type of InfoCube in BW, ones of then are BasicCube and VirtualCube. When you create a MultiProvider, you should see a sreen wiht five tap level, the first is InfoCubes in this list you should choose your VirtualCube (If you don't see it, try to change your selection in the botton Display Option and select "Display all InfoProviders")
    I hope this suggestion can help you to answer your question,
    Luis

  • Enhancement 0FI_AP_30 donu2019t working on virtual cube 0FIAP_R30

    Hi Gurus,
    I have make an enhancement for the extractor 0FI_AP_30 and 0FI_AP_3.
    I have added the Purchasing document and the item to the structure DTFIAP_3 and all working fine.
    After that I have added the following code enhancement for add the WBS element in the extraction.
    Itu2018s working only for the extraction on ODS 0FIAP_O03 and cube 0FIAP_C30 but not with the virtual cube 0FIAP_R30.
    Thank for helps,
    Franck
    CASE I_DATASOURCE.
      WHEN '0FI_AP_3' OR '0FI_AP_30'.
    * On recherche si la pièce comptable est liée à un document et un poste d'achat.
    * Si oui, on recherche l'élément d'OTP.
        SELECT * FROM EKKN INTO TABLE LT_EKKN.
        SELECT * FROM PRPS INTO TABLE LT_PRPS.
        LOOP AT C_T_DATA INTO LS_DATA.
          LV_TABIX = SY-TABIX.
          IF LS_DATA-EBELN IS NOT INITIAL AND LS_DATA-EBELP IS NOT INITIAL.
            READ TABLE LT_EKKN INTO LS_EKKN
                           WITH KEY EBELN = LS_DATA-EBELN
                                    EBELP = LS_DATA-EBELP.
            IF SY-SUBRC = 0.
              READ TABLE LT_PRPS INTO LS_PRPS WITH KEY PSPNR = LS_EKKN-PS_PSP_PNR.
              IF SY-SUBRC = 0.
                LS_DATA-POSID = LS_PRPS-POSID.
                MODIFY C_T_DATA FROM LS_DATA INDEX LV_TABIX.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.
    ENDCASE.

    HI,
    Check the below link,
    Loanding Multiproviders 0FIAP_M20 and 0FIAP_M30 (EhP3)
    For Direct update no need to extract separately its just get the data based extract structure.
    Regards,
    Satya

  • BEx query based on virtual cube donu00B4t display a valid List of Value (LOV)

    Hello
    I have a problem with an invalid LOV. The scenario is the following; There´s a BEx query based on a virtual cube. The query has an exit variable on caracteristic that is based on 0CALMONTH.
    At Universe Designer I simply create a connection, a universe based on this query and export.
    At Web Intelligence (also at Live Office), when I try to execute de query, the prompt to fill my exit variable display a list of value that doesn´t match with the values of the caracteristic at the cube.
    Actually, the list at the prompt starts with 01.0000 and finishes with 05.0968.
    In Universe Designer, the option to edit the list of values is not available. But I think that editing the LOV is not the correct way.
    I´ve tried creating a new query based on the DSO that is the source of the virtual cube. In this case, I had a valid list. Unfortunately, I can´t use this DSO.
    Did anyone already have this problem?

    Hi James,
    can you explain what you mean with "input length for that filed" ?
    The field in the table is varchar2(120). I coudn't found options for the List of value.
    Thanks for your response
    Carsten
    null

  • Query on virtual cube showing incorrect values

    Experts,
    I have create a virtual cube on a base cube using services (info-source). both virtual as well base cube are z-development and are in BI.
    Base cube has 6 records, now when I check data in virtual cube using display data it shows correct values based on routine written in virtual cube transformation.
    Problem is when I created query on this virtual cube it doesnt show correct data or sometime no applicable data. After debugging I found, in end routine itself result package contains records with blank values in it on which I have written routine. But it does this only while executing query not when I display data in cube.
    Regards,
    Akshay

    Hi!!!
    And how do you solved it?

  • Reporting on Virtual Cube - DTP Authorisation is required??

    Hi all,
    Say there is a Virtual Cube V, i have multiprovider on top of it M, When i am running report on this M, it is saying as there should authorization to run the DTP's.
    Is it necessary to have DTP authorizations, to run a report on Virtual cube??
    Please let me know how to overcome this, other than including DTP authorizations in the User roles.
    Let me know your suggestions.
    Thanks,
    Sowrabh

    Hi Krishnan,
    Yes Users needs to run the report in front end.
    Can we give authoraztions for only these particular DTPs that to in display mode, so that they can run the queries??
    Would there be any issues by doing so??
    Thanks,
    Sowrabh

  • VIrtual Cube with user exit

    Hi,
    This is the Scenario :
    Version : Bi 7 / Nw04s patch 11.
    Source : ECC 6.
    1) Virtual Cube V1 based on a generic Data source D1 in ECC or R/3 source system
    2) The generic data Source has 10 fields , 7 are from a Standard Table, the 3 are populated during extraction via Transaction data User exit ZRS01*).
    3) When I run the extractor checker for Data source D1 in R/3 all the 10 fields are populated.
    4) Problem : when I do A list cube in BI on the virtual cube all te data in ECC is seen however the enhanced fields derived in the user exit are coming in as blank.
    Any experience on this, whether this is a limitation of I need to create a message with SAP.
    Would apreciate any thoughts or experience n this are,
    thanks
    TC

    Check the user exit,if the code has been written to that specific datasource which was meant for the ODS(Watch out for case statements).

  • Virtual cube with function module

    hi
    I wrote function module which is used with virtual cube.
    When I launch query build on this cube in the BEX i can't interrupt execution
    of function module. How to put break point. may be there is any option that could turn off debugging?

    Try an external breakpoint.  How you set that depends on your version.  If there's not a button for it on your editor screen, look at utilities->settings->ABAP Editor->debugging in SE38.
    matt

  • Report on Virtual cube is not working.

    Hi,
    I  created a report on virtual cube, Virtual cube is based on Function module which will pick data from Multiprovider, In the FM mention the import parameter name as " Muli Provider" Name.
    Multiprovider built on SPO object , On SPO object BIA is created, If can de activate the BIA on SPO then the report built on virtual cube is working in the portal. If I can activate the BIA the report is not working in the portal.
    The report is working fine in RSRT and Analyzer either BIA is active and deactive.
    Regards
    GK

    Hi
    The multi cube you created must be comprising of Info cubes, DSO and Info objects. Now this error which you are getting is it for
    - a specific characteristics or
    - any characterisitcs that is entered fourth in the series of filter selections or
    -  the fourth value in a specific characteristics
    Is the characteristics and the value which you use in filter present in all the underlying objects included in the multi cube ? You can check it in each of the objects associated in the multi cube, independently. This will give you an idea as to whether the error reported by the system is genuine or not.
    Cheers
    Umesh

  • What is the use of Data packet dim with Virtual cube with services

    Hi Friends,
    Could anybody tell me what is the use of Packet dimension in Virtual cube with services , It cannot contain data persistently ,Just fetch at runtime,Then there is no Physical load happening,Then why it should be automatically created for this??
    Message was edited by: Pradeep choudhari

    Hi Maik,
    Unit dimension will not be created automatically until and unless you have keyfigure referning units..
    But my question is : Why should we have data pack dimension , which is useless in this case of Virtual cube with services.It should not be created automatically!! What do you say??

Maybe you are looking for

  • Re: Satellite Pro A120 - CD/DVD drive doesnt work anymore

    Hi, I have a Satellite Pro A120, and keep on having problems with my CD/DVD driver. I spoke to few of you on the phone, the fix it solution on http://support.microsoft.com/kb/314060 seems to do the trick for a couple of hours and then I am back to sq

  • How do i set up my mac to  eject cd after burning from itunes play list ???

    how do i set up my mac to  eject cd after burning from itunes play list ??? thanks

  • Sync photos (edited in iPhoto)

    When I edit a photo in iPhoto it creates a new photo in a modified folder. Which photo is sync to apple tv ?

  • Reloading a grid view

    I have a gridview and records are filtered based on date range selected. Also have a link on the grid that takes me to another page. On the next page I have a link to take me back to the initial page and load the grid view with the same records that

  • AIR Application Launching problem

    Hi All, I created one AIR application using Flash CS3. The air file size is 350+ MB. This air file included swf and flvs. I installed successfully but the problem is when i try to launch the application It takes time. How can i solve this? Any one he