Function module: cube partitioning

Hi,
I have one big cube that should be split into smaller cubes. Each year ("Posting Date" InfoObject) will get one cube.
So I have my DataSource, InfoSource, update rule, big cube. It's a 3.x data flow.
Is it possible to write a function module (and place it into the startroutine of the update rule) to split data into the new cubes? As I am not a professional Abap programmer: is there maybe somewhere a sample on the SAP network?
Thanks!

Hi,
we can debug a function module,but we cannot see the contents of a virtualcube before loading..

Similar Messages

  • 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

  • Query ID in Virtual Cube with services-Function module

    Hi,
    I am using virtual cube with services linked to a function module.
    The function module has fixed parameters(such as infoprovider name). None of these parameters consists of query information such as query  ID OR queryname .
    Do any one know how to determine query which was executed this function module?
    Best Regards,
    Anil

    Hi Claudio,
    I never implemented Virtual InfoCube with services with a FM, but I know there is a couple of How To Documents about named:
    - How to Reporting from External Data via Virtual InfoProvider
    -How to Implement a Virtual InfoCube with Services
    both with some code samples: did you read it?
    Hope it helps
    GFV

  • Function module(s) for Cube Collapsing/Compression

    Hi Experts,
    can anybody tell me if there's a SAP Function module availbale for Collapsing/Compressing requests of a cube ?
    Background is we want to automate collapsing of cubes by an APAB report instead of using a process chain or RSA1.
    Any suggestions? Any pitfalls for such an implementation ? Any expieriences ?
    We're on SAP BI 7.00 19, Oracle 10.2.0.4
    Best regards,
    yk

    Hi Srinivas,
    thanks for the quick answer, I will check the FM you mentioned.
    We think of a cube exceptions list wich should NOT be condensed, and all OTHER cubes should be condensed.
    With a process chain we have to maintain these OTHER list manually. In an ABAP report we could exclude the exceptions and condense the rest.
    Developers tend to "forget" to add the CONDENSE step. So with time more and more cubes store only in F-tables and nothing in the E-tables (producing more workload as query runtime, DB maintanence like index creation runtime , statistic runs ...) and last but not least occupy disk space wich is expensive if you have a mirrored high performance disk system .
    Best regards,
    yk

  • ABAP Function Module Example to move data from one Cube into Another

    Hi experts,
    Can any please help out in this ..?
    A Simple ABAP Function Module Example to move data from one Cube into Another Cube
    (How do i send the data from one client to another client using Function moduel).
    Thanks
    -Upen.
    Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again, BI related? ("cube"), also search for information before asking.
    Edited by: Thomas Zloch on Oct 29, 2010 1:19 PM

    This is the start routine to duplicate records in two currencies.
    DATA: datew   TYPE /bi0/oidateto,
          datew2  TYPE rsgeneral-chavl,
          fweek   TYPE rsgeneral-chavl,
          prodhier TYPE /bi0/oiprod_hier,
          market  TYPE /bic/oima_seg,
          segment TYPE /bic/oizsegment.
    DATA: BEGIN OF S_DATA_PACK OCCURS 0.
            INCLUDE STRUCTURE /BIC/CS8ZSDREV.
    DATA: END OF S_DATA_PACK.
    S_DATA_PACK[] = DATA_PACKAGE[].
      REFRESH DATA_PACKAGE.
      LOOP AT S_DATA_PACK.
        move-corresponding s_data_pack to DATA_PACKAGE.
        if DATA_PACKAGE-loc_currcy = 'EUR'.
          DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
          DATA_PACKAGE-CURRENCY = 'USD'.
          APPEND DATA_PACKAGE.
          DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalloc.
          DATA_PACKAGE-CURRENCY = 'EUR'.
          APPEND DATA_PACKAGE.
        else.
          DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
          DATA_PACKAGE-CURRENCY = 'USD'.
          APPEND DATA_PACKAGE.
        endif.
      ENDLOOP.
    This is to load Quantity field
    RESULT = COMM_STRUCTURE-BILL_QTY.
    This is to load Value field
    RESULT = COMM_STRUCTURE-NETVAL_INV.
    UNIT = COMM_STRUCTURE-currency.

  • Function module for Remote cube

    Hi all
    I just want to know, does the remote cube works for the datasource which is based on function module.
    Regards
    Preeti

    Preeti,
    the Remote cube  works on any type of datasource .as this datasource is already replicated into BI system then it is a BI datasource only.
    but at the time of extraction of data,the datasource fetch the data from the respective tables specified in the Function module.by applying the logic to the data.not to the fields.
    so the logic applies only to data not to fields.

  • Any standard function module to read data from a cube

    Hi,
    I want to read data from a cube say XYZ, into an internal table. Is there any standard function module to do this? If so can anyone plz tell me what change should i make in the function module for my requirement.
    Regards
    BW Fresher.

    Hi R,
    Try function module 'RSDRI_INFOPROV_READ'
    ABAP Report RSDRI_INFOPROV_READ_DEMO contains an example of how the function module can be used.
    Udo

  • Problems in Function Module of a Custom Virtual Cube

    Hi all,
    I have copied a Function Module-- RS_BCT_FIGL_DATA_GET_VC10 into a custom one ZRS_BCT_FIGL_DATA_GET_VC10. A custom Virtual Cube(ZFIGL_V10) was also created using this FM. The Function Module and Function Group are activated and there are no syntax errors in the custom FM.
    When I try to check data of this virtual cube using the T-CODE "listcube" it gives me the following errors.
    1. "An exception with the type CX_SY_DYN_CALL_ILLEGAL_FUNC occurred, but was neither handled locally, nor declared in a RAISING"
    2. "The function call failed; the function ZRS_BCT_FIGL_DATA_GET_V10 is either not activated or contains no code"
    Also some queries are not executing in this Virtual Cube.
    Could not figure out what the problem was.Can someone help me on this?
    Thanks
    Maddy

    HI,
    Can you check whether the FM is activated. Also check the function module group is activated or not. You can check the status of the same via SE80.
    Goto SE80 -> Select function grp -> give your function grp and press enter
    Double click on the below funtion grp to check status.
    Also expand FM and check whether it is activated.
    Also check the import and export parameters of the FM. Try to see whether there is any discrepancy.
    If any default values are specified, check whether they are correct.
    Also try to debug, put a breakpoint in your code and check whether it gets into the code or not.
    Regds,
    Shashank

  • Function Module to read Info cube data

    Hi Guys,
              Is there any function module which is used to read the data in the info cube and collect the data to an internal table?
    Thanks
    Kumar

    Reading data from ODS is the best choice provided (1) you have full key, (2) there is an index on ODS for the search fields, or (3) ODS doesn't have too many records.
    If performance starts becoming an issue (due to the lack of one of the three conditions mentioned above), you have no other choice but to read from the cube and only reliable way to query a cube is to use the function module mentioned earlier.

  • What Function Module is used in a Virtual Cube

    Hi,
    where can is see what Function Module is used for a Virtual Provider(Cube)?

    double click on infocube, then in the menu choose Extras --> Information/Log status and then choose "Type/Namespace" and you will see the screen with all required information.
    Regards,
    DL

  • APD vs Read from a cube using Function module

    Hi,
    Please could someone tell me which is the best practice for the below case:
    I want to sent information for one cube to another and in the transformation read from a third cube.  I think I have this two options:
    -     Option1: In the transformation use the function module to read from a third cube and take the information that I need.
    -     Option2: Use APD and send the information of the third cube to a DSO, and in the transformation read from the DSO, instead from the third cube.
    Thanks in advance for your collaboration.
    Judith.

    Hi,
    If I compare option 1 and option 2 then there are many complexities involved in option 2. First of all you will have to create an extra DSO just for look up purpose and this will occupy extra DB space.
    You will always have to do the data transfer from cube to DSO and you need to make sure that DSO data is perfectly matching with Cube so as to populate correct values during lookup.
    But in case of option1 you are simply reading data from original cube using FM so you don't need to worry about data quality for lookup. The only thing here you will have to check is how much time it takes to read data from cube. As you will be writing extraction code in Start routine and use internal table in field routine.
    I hope this will not impact much on your performance.
    Regards,
    Durgesh.

  • Function Modules to Update a Cube

    We're looking to programmatically alter a cube (read, insert, update, delete). Could someone point me to information and examples of function modules that can do this?

    There are several Function Modules for maintaining InfoCubes, and there are Classes too that peform these activities. Here are some of the Function Modules you can look at:
    RSAR_DELETE_ICUBE
    BAPI_CUBE_ACTIVATE
    BAPI_CUBE_CHANGE
    BAPI_CUBE_CREATE
    BAPI_CUBE_GETDETAIL
    RSDG_CUBE_ACTIVATE
    RSDG_CUBE_AFTER_ACTIVATE
    RSDG_CUBE_AFTER_DELETE
    RSDG_CUBE_BEFORE_ACTIVATE
    RSDG_CUBE_BEFORE_DELETE
    RSDG_CUBE_CHECK
    RSDG_CUBE_CHECK_DDIC
    RSDG_CUBE_CLEAR_ACTIVFL
    RSDG_CUBE_COPY_TO_VERSION
    RSDG_CUBE_DB_TAB_DROP_RECREATE
    RSDG_CUBE_DDIC_SAVE_GET
    RSDG_CUBE_DELETE
    RSDG_CUBE_INIT_DATASTATE
    RSDG_CUBE_SAVE
    RSDG_CUBE_SAVE_DATASTATE
    RSDG_CUBE_SAVE_FLAGS
    RSDG_CUBE_SAVE_TEXTS
    RSDG_CUBE_SAVE_VERSION
    RSDG_CUBE_SET_INACTIVE
    RSDG_CUBE_SET_TIME_STAMP
    Here are some Classes to look at too:
    CL_RSDD_CUBE_DELTA_WRITER
    CL_RSDD_CUBE_WRITER

  • Function module to load transactional cube directly.

    Hi,
    Is there any function module to load transactional cube directly.
    Thanks.

    Hi.
    Transactional cube behaves as regular cube except additional possibility to write directly from planning applications.
    So you can load this cube with regular BW tools (data source, info source, info package, update rules).
    But as mentioned above before loading you should switch cube to load mode and after switch to planning mode using FM or manually.
    Regards.

  • Is there function module for looking up CHANGE AUTHORIZATION for a cube?

    Hi All,
    In our BPS program we would like to look up the change authorizations a user has for his company in a cube. The problem is that with our current function module: RSSB_GET_AUTH_FOR_USER , SAP returns the values for "acitvity" DISPLAY and we would like to have "acitvity" CHANGE permissions.
    In other words:
    Is there a function module which we can use to look up authorizations for BW 7.0 on infocubes?
    Thank you very much.

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Is there any Function Module will give the Transactional data of a cube?

    Hi Experts,
    I have one Infocube Zco3_BILT , I need to write a routine (BADI Program)on top of this info cube  to fetch a characterstic value in the infocube.
    F table  & Etable wont give any characterstic values.
    Is There any SAP provided FM to give characterstic values of the Infocube.
    Thanks in advance.
    Regards
    Mohan

    Hi Mohan,
    this is correct since the values are stored in different tables (fact, dimension etc) due to star sheme modelling. As far as I know there is no standard function module for this issue.
    However ABAP report RSDD_SHOW_ICUBE might help. This is the report for transaction listcube, all relevant data is build up, there you should find all necessary steps and standard reports/modules to fetch the required characteristic value. Although I do not know the exact requirement you will probably have to work with SID values.
    Perhaps this will help resolving your issue.
    Best Regards,
    Marcel

Maybe you are looking for