Mass activation of Aggregation level

Dear all..
How to do the mass activation of all Aggregation level in Modeler at one instance. while collection tp we have to activate the individual aggregation level, its more time consuming.
I have lot of aggregation levels to activate, any solutions.
Regards
Perasel

Hi there,
Create this program (it was referenced by a SAP note) in se38 transaction:
*& Report  Z_ACTIVATE_ALVL
REPORT  Z_ACTIVATE_ALVL.
TYPE-POOLS: rs.
PARAMETER: g_iprov TYPE rsinfoprov.
PERFORM run.
*&      Form  run
FORM run.
  DATA: l_t_return    TYPE STANDARD TABLE OF bapiret2,
        l_s_return    TYPE bapiret2,
        l_subrc       TYPE sysubrc,
        l_t_alvl      TYPE STANDARD TABLE OF rspls_alvl,
        l_s_alvl      TYPE rspls_alvl,
        l_t_alvl_iobj TYPE STANDARD TABLE OF rspls_s_rfc_alvl_iobj.
  SELECT * FROM rspls_alvl INTO TABLE l_t_alvl
                           WHERE infoprov = g_iprov
                           AND   objvers  = 'A'.
  CHECK l_t_alvl IS NOT INITIAL.
  LOOP AT l_t_alvl INTO l_s_alvl.
    CALL FUNCTION 'RSPLS_ALVL_CHANGE'
      EXPORTING
        i_aggrlevel    = l_s_alvl-aggrlevel
      IMPORTING
        e_subrc        = l_subrc
      TABLES
        i_tk_alvl_iobj = l_t_alvl_iobj
        e_tk_return    = l_t_return.
    CHECK l_subrc = 0.
    CALL FUNCTION 'RSPLS_ALVL_CHECK'
      EXPORTING
        i_aggrlevel = l_s_alvl-aggrlevel
        i_objvers   = rs_c_objvers-active
      IMPORTING
        e_subrc     = l_subrc
      TABLES
        e_tk_return = l_t_return.
    READ TABLE l_t_return INDEX 1 INTO l_s_return.
    CHECK l_subrc <> 0 OR ( sy-subrc = 0 AND l_s_return-type = 'S' ).
    CLEAR l_t_return.
    CALL FUNCTION 'RSPLS_ALVL_ACTIVATE'
      EXPORTING
        i_aggrlevel = l_s_alvl-aggrlevel
      IMPORTING
        e_subrc     = l_subrc
      TABLES
        e_tk_return = l_t_return.
  ENDLOOP.
ENDFORM.                    "run
This will mas activate your aggregation levels built on InfoProvider.
Diogo.

Similar Messages

  • Aggregation level activation problem

    Hello experts.
    I have a problem with activation of aggregation level with abap program. When I debug the program i saw error like 'BWTK907074 BEX report is unavailable.' . Its a request code. Now i dont know how to pass this step and activate aggregation level.
    Best Regards
    Bilal
    "If it is Nescessary my code is:
    REPORT  z_activate_obj.
    DATA stat TYPE rsobjstat.
    DATA cube TYPE rsinfocube.
    TYPE-POOLS rsds.
    DATA  :  rspar_tab  TYPE TABLE OF rsparams ,
             rspar_line LIKE LINE OF rspar_tab.
    DATA zaglevel LIKE STANDARD TABLE OF rspls_alvl.
    DATA wa1 LIKE LINE OF  zaglevel .
    ZFI_M01
    SELECT SINGLE infocube objstat
    INTO (cube,stat)
    FROM rsdcube
    WHERE objvers  EQ 'A'.
    IF stat NE 'ACT'.
      PERFORM act_mpro USING cube.
    ENDIF.
    SELECT *
    INTO TABLE zaglevel
    FROM rspls_alvl
    WHERE objvers  EQ 'A'
      AND objstat  EQ 'INA'.
    LOOP AT zaglevel INTO wa1.
      PERFORM act_agglevel USING wa1-aggrlevel.
    ENDLOOP.
    *&      Form  ACT_mpro
    FORM act_mpro  USING    p_cube.
      rspar_line-selname = 'P_AREA'.
      rspar_line-kind    = 'P'.
      rspar_line-sign    = 'I'.
      rspar_line-option  = 'EQ'.
      rspar_line-low     = 'X'.
      APPEND rspar_line TO rspar_tab.
      rspar_line-selname = 'SO_MPRO'.
      rspar_line-kind    = 'S'.
      rspar_line-sign    = 'I'.
      rspar_line-option  = 'EQ'.
      rspar_line-low     = p_cube.
      APPEND rspar_line TO rspar_tab.
      DATA: number           TYPE tbtcjob-jobcount,
            name             TYPE tbtcjob-jobname ,
            print_parameters TYPE pri_params.
      CONCATENATE 'Activate' p_cube INTO name SEPARATED BY space.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = name
        IMPORTING
          jobcount         = number
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
      SUBMIT rsdg_mpro_activate WITH SELECTION-TABLE rspar_tab
                                VIA JOB name NUMBER number
                                AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
      ENDIF.
    ENDFORM.                    " ACT
    *&      Form  ACT_AGGLEVEL
    FORM act_agglevel  USING    p_agglevel.
      DATA: l_t_return TYPE STANDARD TABLE OF bapiret2,
            l_s_return TYPE bapiret2,
            l_subrc TYPE sysubrc,
    l_t_alvl TYPE STANDARD TABLE OF rspls_alvl,
    l_s_alvl TYPE rspls_alvl,
      l_t_alvl_iobj TYPE STANDARD TABLE OF rspls_s_rfc_alvl_iobj.
      data zreturn like LINE OF l_t_return.
      CALL FUNCTION 'RSPLS_ALVL_CHANGE'
        EXPORTING
          i_aggrlevel    = p_agglevel
        IMPORTING
          e_subrc        = l_subrc
        TABLES
          i_tk_alvl_iobj = l_t_alvl_iobj
          e_tk_return    = l_t_return.
      CHECK l_subrc = 0.
      CALL FUNCTION 'RSPLS_ALVL_CHECK'
        EXPORTING
          i_aggrlevel = p_agglevel
          i_objvers   = 'A'
        IMPORTING
          e_subrc     = l_subrc
        TABLES
          e_tk_return = l_t_return.
      CHECK l_subrc = 0.
      CALL FUNCTION 'RSPLS_ALVL_ACTIVATE'
        EXPORTING
          i_aggrlevel = p_agglevel
        IMPORTING
          e_subrc     = l_subrc
        TABLES
          e_tk_return = l_t_return.
    loop at l_t_return into zreturn.
      WRITE zreturn-message.
    ENDLOOP.
    ENDFORM.                    " ACT_AGGLEVEL

    Hi,
    Check the link and manupulate your code accordingly..
    [Activate all the Aggregation level of underlying multi provider;
    Thanks
    Pratyush

  • Aggregation level ZSPLN inconsistent : Infoprovider 0PLANT can not be used

    Hi ,
    I have added a new characteristic in the multi provider . Added the same characteristic in the aggregation level. But when I activated the aggregation level , system is giving aggregation
    level inconsistent message? Has anyone come across this error.  Early reply on this issue will be much
    appreciated.
    Thanks
    JC

    Hi Mayanak,
    I have looked at this post earlier . I have activated planning cube and  multi  provider. But still I a not able to activate the aggregation level. Please let me know if you have any other thoughts.
    Thanks
    Hareesh

  • Activate an Aggregation Level in Production

    Hi,
    Can anyone please assist me in activating an aggregation level in Production?
    Some of our aggregation levels are inactive and we can't transport them at the moment as we are busy with an upgrade in development.
    Your help would really be appreciated, as this is quite high priority at the moment.
    Thank you!
    Regards,
    Tanya

    Hi Shafi,
    We did do the investigation. The MultiProvider on which the Aggregation Level was built, was still active in the morning. We ran two queries from the MultiProvider, and the second one (for some reason) de-activated the one InfoCube in the MultiProvider.
    We did version comparisons to see what might have changed in the InfoCube or MultiProvider, but there was nothing. We re-activated both the InfoCube and MultiProvider with programs that are available in SE38 (RSDG_CUBE_ACTIVATE and RSDG_MPRO_ACTIVATE), but could not find a program to re-activate the aggregation levels (and the function module did not work).
    Thank you!
    Regards,
    Tanya

  • Aggregation level is not getting activated

    Hello Experts,
    I am working for Integrated Planning(BI 7.0). I have created one Aggregation level and i have transported from Dev to Qty.
    After transporting i need to do some changes in Aggregation Level in Dev.
    Problem:
    When i am trying to change aggregation level in Dev, It is showing below errors.
    1) choose an existing request
    2) BEx transport request is not available or not suitable
    3) Aggregation level is locked by the change and Transport organizer.
    Please help me to solve this issue.
    Best Regards,
    Ranganath

    Hi,
    Please check if the respective aggregation level is assigned to
    a transportable development class. If so, there must be a BEx
    request in /nRSA1 created for further processing in this regard either.
    The reported message is raised when aggregation level is not assigned
    to Bex Transport request. In this case, maybe creating a new transport
    request will be helpful.
    Please check the following URLs.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/c6ba9859c4332ee10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/38/5ee7377a98c17fe10000009b38f842/content.htm
    Regards,
    Amit

  • Inactive aggregation levels

    Hi,
    I had to change a multiprovider. I activated it, and now the aggregation levels based on this multiprovider are all inactive. How to activate all in mass ?
    Quick answer appreciated.

    Hi,
    I understood from you post that, u have done some changes to a multi provider and activated it.so the cubes , on which the multiprovider is based are deactivated.
    If this is your question,
    the solution is, check the cubes , on which this multiprovider is built.
    Activate those cubes.
    Assign points if it helps....

  • Aggregation level doesnt support non-cumulative kf

    hello
    IP planer generates an error "Infoobject 0AMOUNT (version A) is not compunded" when I include non-cumulative kf into aggregation level of infoprovider.
    KF ZAMOUNT is non-cumulative and depends on 0AMOUNT. Both kf are active.
    I need non-cumulative kf just for informative purposes, i dont want to plan with this kf.
    Does anyone know is it possible to use non-cumulative kf in aggregation level of multicube?

    Hi,
    no non-kumulative key figures are not supported in aggregation levels.
    But one can use a MultiProvider on the cube with the non-cumulative key figure. Create an aggregation level for the objects you want to plan and use this aggregation level also in the MultiProvider. Then you can integrate the 'plan objects' and the non-cumulative key figure in a query defined on the MultiProvider.
    Regards,
    Gregor

  • Aggregation level disactivation.

    Hi All.
    In our solution we use multiProvider and several aggregation levels based on it. When we are updating something in multiProvider all aggregation levels become inactive.
    It is very boring to activate each aggregation level by hand.
    Does anybody know how to do it automatically or by ABAP code?
    Best Regards,
    Andrey.

    Hi,
    the following report reads all aggregation level using g_iprov as InfoProvider and activates the aggregation levels:
    *& Report  ZGD_TEST_ACTIVATE_ALVL
    REPORT  zgd_test_activate_alvl.
    TYPE-POOLS: rs.
    PARAMETER: g_iprov TYPE rsinfoprov,
               g_objv  TYPE rsobjvers DEFAULT 'M'.
    PERFORM run.
    *&      Form  run
          text
    FORM run.
      DATA: l_t_return    TYPE STANDARD TABLE OF bapiret2,
            l_s_return    TYPE bapiret2,
            l_subrc       TYPE sysubrc,
            l_t_alvl      TYPE STANDARD TABLE OF rspls_alvl,
            l_s_alvl      TYPE rspls_alvl,
            l_t_alvl_iobj TYPE STANDARD TABLE OF rspls_s_rfc_alvl_iobj.
      SELECT * FROM rspls_alvl INTO TABLE l_t_alvl
                               WHERE infoprov = g_iprov
                               AND   objvers  = g_objv.
      CHECK l_t_alvl IS NOT INITIAL.
      LOOP AT l_t_alvl INTO l_s_alvl.
        CALL FUNCTION 'RSPLS_ALVL_CHANGE'
          EXPORTING
            i_aggrlevel    = l_s_alvl-aggrlevel
          IMPORTING
            e_subrc        = l_subrc
          TABLES
            i_tk_alvl_iobj = l_t_alvl_iobj
            e_tk_return    = l_t_return.
        CHECK l_subrc = 0.
        CALL FUNCTION 'RSPLS_ALVL_CHECK'
          EXPORTING
            i_aggrlevel = l_s_alvl-aggrlevel
            i_objvers   = rs_c_objvers-active
          IMPORTING
            e_subrc     = l_subrc
          TABLES
            e_tk_return = l_t_return.
        CHECK l_subrc = 0.
        CALL FUNCTION 'RSPLS_ALVL_ACTIVATE'
          EXPORTING
            i_aggrlevel = l_s_alvl-aggrlevel
          IMPORTING
            e_subrc     = l_subrc
          TABLES
            e_tk_return = l_t_return.
      ENDLOOP.
    ENDFORM.                    "run
    Regards,
    Gregor

  • Aggregation level save

    Guys,
      I got an aggregation level which is moved for testing. Now we got make some changes in development environment. After I am done with my changes and click on save/activate, its not giving popup screen to save the aggregate level in my request. How do I save te aggr levels in my request?
    Thanks.

    Here is the process I followed to save the aggregation levels in my own request.
    My Aggregation levels were inactive. Before activating them, I collected them (inactive aggr levels) into my own request in the Transport connection and then I activated them. So my aggr levels got saved in my own request.

  • Aggregation level  is locked by the Change and Transport Organizer

    Dear All,
                   I have created aggregation level in the planning cube and transported to Production from dev, Once i transported to production i am not able to change the aggregation level in Dev, and also aggregation level is Inactive.  Aggregation level YPNC2 is locked by the Change and Transport Organizer. Please suggest how to activate the aggregation level in Dev.
    Thanks
    Christopher

    Hi,
      Kindly check the following,
    1. Is your aggregation level transported properly to the production system ?
    2. Was your aggregation level active while you were including it in the transport request ?
    3. Did you properly include the aggregation level in the request?
    If you find that the answers of all the above questions is "YES", then there should not be any problem in your aggregation level.
    Hope this solves your issue, if not kindly get back to me.
    Regards,
    Balajee

  • Aggregation level query "value help" = Only Values in InfoProv doesn't work

    Hi,
    I have a problem with Selection Variable for a BEx Query :
    - I'm working with SAP BI 7.0 support package 15
    - My query is an input ready query built for an "aggregation level" based on "real time infocube" (Planning);
    - Characteristic, I want to filter with variable, has query property Advanced->Query Execution for Filter Value Selection = Only Values in InfoProvider
    - Characteristic (info-object) has set the property: Business Explorer tab--> Query Def. Filter Value Selection as Only Values in the info-provider...
    My problem is:
    when I execute a query,
    the Select Values for Variables screen appears
    I push on the Select from List button
    and Select Values For MyCharacteristic appears...
    but it shows me all values in master data table of my characteristic instead of only values in the infoprovider!!!
    If I build a query for the Real Time Cube it works correctly, but if the query is built for the aggregation level it doesn't work!
    Could someone explain me why it doesn't work correctly?
    Thanks in advanced
    Fede

    Thanks to  Mariana Lazar
    30.03.2009 - 12:30:36 CET - Risposta by SAP     
    Dear Fede,
    Regarding the query built on aggregation level please note the following
    the aggregation level is always a Virtual Provider built other
    InfoProvider and hence it does not have the dimension table and hence
    the F4 mode D is not supported.
    Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
    displayed in the value list.
    Reference from the note
    984229 F4 modes for input help as of SAP NetWeaver 2004s BI
    4. Since other InfoProviders do not have a dimension table, the system
    displays only posted values if you select "Only Posted Values for
    Navigation". Otherwise, it displays the values from the master data
    table.
    Hope this should clarify your doubts. Please let me know if you have
    questions else please confirm the message at your earliest convenience.
    Thank you for your cooperation and kind regards,
    @KR@ Mariana Lazar
    Senior Support Consultant
    SAP Active Global Support
    Netweaver Business Warehouse

  • IP question: Aggregation Level picture icon color?

    We are pretty new on IP (Integrated Planning).  You know that the picture icon of Aggregation Level look like a two step stair.  When we check our BI 7.0 system, find for some aggregation levels, both the steps are white color, while for others, the top step is white color and the bottom step is blue color which looks like a small cube shape.  What are the difference?  The one with bottom step being the blue color means this aggregation level is activated and the one with both steps being white colors means they are inactivated?
    Another question, as what we know, in order to do planning, the Cube must be real-time cube other than standard InfoCube in the setting of the cube, right?  In our system, we find the aggregation is built on a Multi-Provider and underlying the Multi-Provider, there are about 6 cubes.  But when we check all the 6 cubes, find the settings for these cubes are all set to Standard InfoCube.  That means with the aggregation level built upon this multi-provider, users can't do any planning, right?
    We will give you reward points!

    Hi Kevin,
    You can build a simple aggregation Level on a real time cube.
    Aslo we can build AGgregation levels on Multi providers ( which must contain atleast one real time Cube) . These kind of aggregation levels are called as Complex Aggregation levels.
    Also regd the Aggregation level Colours , your understanding is right.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/1c3c7031b70701e10000000a422035/frameset.htm
    Search for Aggregation level and you would get more details .
    Hope this clarifies.
    Raja

  • IP - Aggregation Level not showing in Query Designer as infoprovider

    Hi guys
    I just started implementing Integragted Planning at a new client. I created an aggregation level to build my input ready query. However this aggregation level is not available as an inprovider in the Query Designer nor is it available under the infocube in RSA1 on which the aggregation has been defined.
    Any suggestions?
    Thanks for your help.
    Ameya Kulkarni

    Hi Mayank
    Good point. But I could not see the aggregation level whatsoever in RSA1. The aggregation level is consistent and activated but does not show in the query designer.
    I was wondering if there is some configuration that I have to do to get the aggregation level available in the query desginer.
    Please let me know.
    Thanks,
    Ameya Kulkarni

  • Cross-Aggregation-Level Selection Evaluation indicator

    Hi,
              Can any one explain me the meaning of the below statements in the two paragraphs. This is for "Cross-Aggregation-Level Selection Evaluation indicator" in alert monitor.
    If the Cross-Aggregation-Level Selection Evaluation indicator has not been set in the SDP alert profile, only planning objects that exactly correspond to the aggregation level defined in the selection are taken into account. This means that the planning objects contain exactly the characteristics of the aggregation level. Planning objects that have additional characteristics are not taken into account.
    If however, the Cross-Aggregation-Level Selection Evaluation indicator is not set in the SDP alert profile, the system takes into account not only planning objects that exactly correspond to the aggregation level of the selection but also those containing additional characteristics.
    Example
    If you use a selection with the aggregation level 'Product' in the SDP alert profile and set the Cross-Aggregation-Level Selection Evaluation indicator, alerts will be issued not only for this product but for the relevant location products.
    Thank you.

    Hi Datta,
    Let me go further with my data model first.
    Selection criteria:
    Sales organisation = CZ01
    Sales statut = active
    Standard / promo = standard
    Product size = A, B, C, D, E
    Aggregation level:
    Sales organisation
    Distribution chanel
    Division
    Product size
    What I understand of the 546079 OSS notes:
    Distribution chanel and division are to be out of the aggregation level. Moreover in my case, there is only one value possible.
    What I understand of the 374681 OSS notes:
    The system searches for all the characteristics of the sales organisation * product size (of the aggregation level) that match the selection. At that step, APO should select only active and standard skus for CZ01 sales organisation and A, B, C, D, E product size. Afterwards the system searches for all the characteristics combinations that fit the chosen aggregation level and aggregates its values.
    My question is: does APO disaggregate on the ID selection?
    The characteristic combination I see in the job log are those defined on the aggregated level taking into account the sales organisation and product size restriction defined in the selection ID.
    Thank you for your return.

  • DP Disaggregation and Aggregation levels

    Hi all,
    I have a question regarding disaggregation and aggregation levels.
    KFu2019s and disaggregation setup:
    KF001:
    Calculation type: I (not relevant)
    Disag. Key Fig.: KF000 (not relevant)
    Time-Based Disaggregation: K (not relevant)
    Time-Based Disag. Key Figure: (not relevant)
    KF002:
    Calculation type: I
    Disag. Key Fig.: Keyfigure001
    Time-Based Disaggregation: P
    We are now interested on the KF002. KF002u2019s disaggregation is based on KF001. I am trying to copy KF001 values to KF002 with a macro that is attached to a background job. Macro doesnu2019t do anything else than copy values from KF001 to KF002.
    Background job setup:
    Selection:
    Sales organization: 2000AB
    Location: 1000EF
    Product: 1 to 2000 (consists 2000 products, including products that do not belong to above location)
    Excluded values:
    Customer group 1: 2500AB
    Aggregation level:
    Sales organization
    Location
    Product
    Customer group 1
    What I try to accomplish (through background job - mass processing):
    I am trying to copy values with above setup so that the most detailed level which is Customer group 2 would have values through disaggregation. I have successfully copied values to product level, location level, sales organization level but the customer group 2 level values are not as KF001u2019s. Values are right in the SUM level, but not disaggregated right to customer group 2 level.
    I get right results when I choose Customer group 2 to the aggregation level but this is not something we can do as it causes way too long runtimes. What I am also interested in is that how come the disaggregation does not work properly or does it? How can I get the disaggregation work so that I only have to select the aggregation levels which are defined in the selection and get proper results through disaggregation to customer group 2 level?
    Thanks in advance,
    Juha

    Hello Juha,
    You do not need another macro, just make the above change to your original one, and the macro should work.
    Your aggregation level in the job should also be OK.
    Since you mentioned that the values at detailed level are not the same as key figure 1, it sounds to me that the system did a pro rata disaggregation. Do you have the key figure 2 totally cleared out before copy? Since you're using disaggregation type 'I', it only disaggregates based on another key figure when the key figure value is initial.
    So my suggestion is, you can try to change the key figure's disaggregation tyep to 'P' and check if the macro works.
    Or if you have to use type 'I', you should add a step in the macro before the copy step, to initialize key figure 2 first.
    To initialize a key figure, just put the row in the step, and for the 'Change Mode', select 'Initialization'.
    Best Regards,
    Ada

Maybe you are looking for

  • Wifi problems on Macbook since installing update

    My Macbook can no longer connect to my wireless network at home ever since I installed a software update (NOT Snow Leopard!) at the weekend. It worked fine until I installed the automatic update, which included an Airport Update & Security Update. It

  • Scan for file and report back if it exists

    Hello, I am new to scripting and trying to find a way to search for a supposed virus file named wsr[any two numbers]zt32.dll on a large group of computers. I'm not sure how or where to use Get-ChildItem -Path C:\Users -Filter ?zt32.dll -Recurse | exp

  • Video o/p on Monitor that takes USB i/p

    I am thinking of buying a 19inch computer monitor which takes USB video input from a PC ( just like VGA from computer), Does Iphone4 support video o/p via usb sync cable ? As i can not connect A/V cable to watch video & USB is the only option, how wi

  • Playlist order on iPod not same as iTunes

    I have a 80-ish song playlist. I will occasionally go into the list in itunes and re-shuffle it. On subsequent sync's however, the ipod will revert to the old shuffled order which does not match the itunes order. I have tried copying the playlist and

  • New Ipad User looking for some good CRM suggestions for small business

    Hello All, I am a new (and satisfied) Apple Ipad2 user.  I am the sales rep for a small business that is in the health care field.  I am looking for a good CRM program for the following reasons and I am wanting to know if there is a particular progra