To create monthly buckets for a keyfigure in report...

Hi Gurus,
I have a keyfigure called Demand in my report.  For Demand, I need to create monthly buckets in the form of columns, ie Demand-Month1, Demand-Month2, Demand-Month3 whereas from R3 the demand values for Month1, Month2, and Month3 flows in rows.  In short, I need to transpose it to columns from the report level in BW. 
Also, in the description of the columns, for example: If month1 flowing from R3 is July, then Demand-Month1 should be Demand-July, Demand-Month2 should be Demand-August, Demand-Month3 should be Demand-September.
Can I do this with the help of variables or some other method.  Please help me in detail.
Thanks,
Edited by: sachitp on Oct 5, 2010 6:55 PM

Hi ,
inorder to design a bucketing report For this you need to create a formula variable with replacement path on the date and take the system date varaible which is provided by SAP.
create a formula to calculate the difference of days.
based on the diff of days you can create the formula to get the buckets.
Check the below blog link which will give you some idea to go ahead.
Calculating the Ageing of the Materials
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc
REgards
KP

Similar Messages

  • Last Month value for the keyfigure in Report

    HI ALL,
    how do we get keyfigure value for the last month in the report.
    for ex:  for  amount keyfigure should come for the last month  rest of the key figures should come for the current month values.
    SBU |    AMOUNT (LAST MONTH VALUE) |      QTY(CURRENT MONTH) |     NETPROFIT(CURRENT MONTH)
    The above shown is ex as i required in same manner. Even i restricted with calmonth offset value -1 in keyfigure but it is not working. please help me to get solution .
    Thanks
    Pinky Reddy

    Hi Pinky,
    It is not advisable to use offset to get the previous month value.This is not effective in the case when your current month is Jan & u have to get the previous year's dec month value.It is always better to opt for Exits
    Do use the code mentioned below.
    Note:- ZCUSMFIS3 - Variable in the selection screen for entering current month
               'ZPREVPER - Variable with which the amount key figure has to be resticted.
      WHEN 'ZPREVPER'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                                  WHERE VNAM = 'ZCUSMFIS3'.              
            V_PERIOD = LOC_VAR_RANGE-LOW+4(3).
            V_FYEAR = LOC_VAR_RANGE-LOW+0(4).
            V_FVARIANT = 'B1'.
            V_FISCPERYEAR = LOC_VAR_RANGE-LOW.
            IF V_PERIOD = '001'.
              V_PERIOD = '012'.
              V_FYEAR = V_FYEAR - 1.
              CONCATENATE V_FYEAR V_PERIOD INTO V_FISCPERYEAR.
            ELSE.
              V_FISCPERYEAR = V_FISCPERYEAR - 1.
              LOC_VAR_RANGE-LOW = V_FISCPERYEAR.
            ENDIF.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW. "YYYYMMDD - DD will indicate the no of days
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    Hope this provides the solution for your requirement.
    Regards,
    Saswati.

  • How do you create a macro for Acrobat Convert Multiple Reports action in Microsoft Access

    I have several reports in microsoft access and I've been able to combine them into a single PDF file using the Acrobat Convert Multiple Reports feature. Is there a way to create a macro for this action? I would like to create a time event for this procedure.
    Any help I get on this is greatly appreciated.
    Thanks

    CTPetEng,
    Since this question is not related to CreatePDF, but rather to Acrobat, I'm moving your question to the Acrobat forum.
    Dave

  • Create a validation for SQL Query (updateable report)

    Hello
    I have a need for creating a validation on a SQL Query (updateable report)- type region
    1)
    When a row get populated i don't want same values to be populated in the second row.(as shown in first 2 rows)
    Also, I don't want to have a value that falls in range in between 100 and 1000 for the period falls in the previous. (as shown in third row)
    i.e
    Type_id
    Lower_Limit        Upper_Limit           Date_From       Date _To
    1
    100                      1000                   1/1/2013        12/31/2013
    2
    100                      1000                    1/1/2013        12/31/2013
    3
    101                       500                    2/1/2013        10/31/2013
    appreciate any help
    thanks
    kp

    This example could help:
    http://apex.oracle.com/pls/otn/f?p=31517:214
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Create a button for user to export report to Excel format

    The report requirement is to access parameter and report output on the same page. I have successfully implemented a form in passing parameters to reports on the same page. However, users are also interested in having Excel output format to be accessible via a button on the same page. How can I acheive this in the additional pl/sql section of the reports? Thanks for your help!

    would you be able to give some inputs for obtaining output in excel for a report which shows a graph.
    Also do you have any idea on how to do color coding of a bar chart based on conditions,
    say red if negative and green if positive?

  • Creating Selection Criteria for an Existing CR2008  Report

    I have an Crystal .rpt that works outside of SBO 8.8. It is base in a view (VIEWUNIONVENTASNOTASDETALLE). Before importing in SBO 8.8, I change a parameter that is dynamic into a static one and changed its name according. From Vendedores to Vendedores@SELECT EMPLEADONOMBRE FROM VIEWUNIONVENTASNOTASDETALLE
    Once I change the report, in CR2008 I set Add-ins->SAP Businese One > Preview in SAP Business One
    I get an error message,  in CR2008 which is:
    SAP Business One
    Value cannot be null
    Parameter name: o
    any suggestions ?

    Did you use optional parameter and in your record selection, did you use HasValue?
    If so, you might want to try with removing the HasValue code in record selection.
    I think when you are retrieving records based on primary key, you might get an error within SAP B1 when running the report.
    Eg: If you are running a report based on OINV that require invoice Number and Invoice Date, SAP B1 request value to be mandatory entered,.  I would think it is the same logic applies here.
    Good luck.

  • Exchange 2010 SP3 Create Dynamic DL for Direct Reports

    I am not sure this is possible but if there is a will there is a way I guess.
    System: Exchange 2010 SP3 on Windows Server 2008 R2
    I am trying to see if there is a way to create dynamic DLs for Manager(s) direct reports.
    Example: Manager has 5 people that report directly to them, is there a way to make an dynamic email distribution list that will poll the direct reports as people leave or hired.
    I know I can create one manually but some depts. may have high turnover rates which increase overhead so I am just trying to simplify the process. I of course googled my question but not getting the results I intended.
    Thanks. 

    hi,
    as from above  i understand you are asking about creating an custom attribute and then referencing them .. if yes please check below command
    Get-Mailbox -OrganizationalUnit Sales | Set-Mailbox CustomAttribute1 "SalesOU"Now you can create an e-mail address policy for all recipients that have the CustomAttribute1 property that equals SalesOU, as shown in this example.
    New-EmailAddressPolicy -Name "Sales" -RecipientFilter { CustomAttribute1 -eq "SalesOU"} -EnabledEmailAddressTemplates "SMTP:%s%[email protected] check this.. http://technet.microsoft.com/en-us/library/ee423541%28v=exchg.150%29.aspx
    MARK AS USEFUL/ANSWER IF IT DID
    Thanks
    Happiness Always
    Jatin

  • Planned order is creating before planning bucket for a specific material.

    Planned order is creating before planning bucket for a specific material.
    Eg: Planning Bucket future: 12 months & Start date- 01/02/2012, but Planned order Availability/Requirement date is 12/23/2011.
    What causes this, how to fix it? Please suggest u2026
    Thanks
    Ravi

    Since your planning bucket start date is in the future, so this is normal that the system is trying to satisfy the demand in jan2012 bucket by creating a receipt on Dec23, 2011.
    Reasons for RECEIPT to be generated earlier is
    (1) There might be a FIRM HORIZON( SNP PROD HOR)
    OR
    (2) There might be a GR time and the system is considering that time
    In Customizing for Advanced Planning and Optimization -> Supply Chain Planning -> Supply Network Planning (SNP) -> Basic Settings -> Maintain Global SNP Settings, in the SNP:GR for Plnd Ords field, you have selected Processing Time.
    Blank out these times and see if it works, else do one of the following:
    (1) Set Period Factor(LOT SIZE TAB of PRODUCT MASTER) to 1, so that the receipts get created at the end of the bucket.
    OR
    (2) Create your demand at the end of the planning bucket period
    Thanks
    Kumar

  • How to create user Exits for selecting ranges of the month

    Hi Bw Experts,
    Right now i need to create a user exits for my report which is coming from Infocube which has 12 months and 12 qtys. But if my client want to see the content of the report for e.g 1 to 3 months in selection screen means then we need to create a variable and user exit to accomplish this problem or is there any solution by which we can solve the problem. Try to suggest me and steps to achieve.
    Thanks in advance,

    Hi,
    Thanks for your input. But the questions is 12 amounts and 12 qtys not 12 months sorry for the typoerror. We are not carrying month field. But the User want to see the for e.g 1 to 3 months data means then how it is possible to accomplish this issue. Try to suggest me.
    Thanks in advance
    Message was edited by:
            mano_biw durai

  • Generic FG/class for spreading non-monthly qty's into monthly buckets

    In custom long-term planning reports, we may have to use data like labor hours that are stored in non-monthly buckets, e.g. buckets like
    12/15/2010 u2013 1/14/2011  100 hours
    1/15/2011 u2013 2/14/2011       80 hours
    etc.
    But in order to make our long-term reports useful for cash-flow estimation/planning, we may have to reslot such non-monthly data into fiscal monthly buckets like:
    Dec 2010
    Jan 2011
    Feb 2011
    In the above simple example, the translation from non-monthly data to monthly data is simple:
    half of the hours from the 12/15/2010-1/14/2011 non-monthly bucket go into the Dec 2010 monthly bucket and
    half of the hours from the 12/15/2010-1/14/2001 non-monthly bucket go into the Jan 2011 monthly bucket.
    etc.
    And generalizing from this simple example, you can see that there will always be some ratio in which the non-monthly data can be split into monthly data.  (For example, the ratio between a non-monthly bucket and two successive monthly buckets might be 3:1 if 3 weeks of the non-monthly bucket fall into the first monthly bucket and the fourth week of the non-monthly bucket falls into the second monthly bucket.
    These considerations suggest that SAP developers and customers might benefit from a generic FG or class that:
    accepted a set of non-monthly buckets plus a set of quantities 
    figured out the monthly buckets spanning this set of non-monthly buckets
    spread the non-monthly data into the monthly buckets correctly (according to the simple u201Cratiou201D idea outlined above.)
    This generic FG or class would do (1-3) regardless of the specific nature of the quantities involved ... because who cares what they are.  Also, one could imagine a version of this class or FG where the output buckets might not be monthly, but rather a different set of non-monthly buckets than the input non-monthly buckets.
    So, my four questions are:
    Does anyone know of an SAP-delivered class or FG that does (1-3)  (Iu2019m thinking SCM/APO might well have one u2026)
    If not, does anyone have anything approaching this class of FG that they would care to share with me (via email, of course)?
    If not, does any genius out there have the time to write such a class and put it in the SDN code base?
    Do you all agree that the safest way to get the ratio is to take everything to the u201Clowest common denominatoru201D of days and then figure the ratio accordingly?
    Thanks for considering this matter.
    djh

    As you can see from below, the code markers aren't working in Mozilla either ....oh well
    FUNCTION ZCK_TRAN_TO_MONTHS.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(START_DATE) TYPE  FSTAD
    *"     REFERENCE(END_DATE) TYPE  FENDD
    *"     REFERENCE(AMOUNT) TYPE  ZZVGWRT
    *"  TABLES
    *"      MONTH_TABLE_FOR_RUN TYPE  ZMMY_MSTR_DATA_EST_YRMO
    *"  CHANGING
    *"     REFERENCE(MONTH_BUCKETS) TYPE  ZMMS_MSTR_DATA_EST_MOBUCKETS
    FIELD-SYMBOLS:
      <fs_mobu>             TYPE zmms_mstr_data_est_mobuckets,
      <fs_mota>             TYPE zmms_mstr_data_est_yrmo,
      <fs_buck>             TYPE zzvgwrt.                        "bucket of month_buckets
    DATA:
      lv_month(2)           TYPE n,
      lv_year(4)            TYPE n,
      lv_m_days             TYPE i,
      lv_total_days         TYPE i,
      lv_last_day           LIKE sy-datum,
      lv_out_flag           TYPE c,
      ls_month_buckets      TYPE zmms_mstr_data_est_mobuckets,
      lv_yrmo               TYPE zzbkper,
      lv_index1             LIKE sy-tabix,
      lv_index2             LIKE sy-tabix,
      lt_month_table        TYPE zmmy_mstr_data_est_yrmo.
      lt_month_table[] = month_table_for_run[].
      lv_total_days    = end_date - start_date.
      lv_month         = start_date+4(2).
      lv_year          = start_date(4).
      CLEAR:             lv_out_flag,
                         gt_mo_spread,
                         ls_month_buckets.
      DO.
        IF lv_month = start_date+4(2) AND lv_year = start_date(4).
          CALL FUNCTION 'MM_LAST_DAY_OF_MONTHS'
            EXPORTING
              day_in            = start_date
            IMPORTING
              last_day_of_month = lv_last_day
            EXCEPTIONS
              day_in_no_date    = 1
              OTHERS            = 2.
          lv_m_days = lv_last_day - start_date.
        ELSEIF lv_month = end_date+4(2) AND lv_year = end_date(4).
          lv_m_days = end_date+6.
          MOVE 'X' TO lv_out_flag.
        ELSE.
          CONCATENATE lv_year lv_month '01' INTO lv_last_day.
          CALL FUNCTION 'MM_LAST_DAY_OF_MONTHS'
            EXPORTING
              day_in            = start_date
            IMPORTING
              last_day_of_month = lv_last_day
            EXCEPTIONS
              day_in_no_date    = 1
              OTHERS            = 2.
          lv_m_days = lv_last_day+6.
        ENDIF.
        APPEND INITIAL LINE TO gt_mo_spread ASSIGNING <fs_mosp>.
        <fs_mosp>-year   = lv_year.
        <fs_mosp>-month  = lv_month.
        <fs_mosp>-amount = amount / lv_total_days * lv_m_days.
        IF lv_month EQ 12.
          ADD 1 TO lv_year.
          CLEAR lv_month.
        ENDIF.
        ADD 1 TO lv_month.
        IF lv_out_flag EQ 'X'.
          EXIT.
        ENDIF.
      ENDDO.
    * now:
    *   loop thru gt_mo_spread
    *   pick up month_bucket index from month_table_for_run
    *   add amount from gt_mo_spread row to appropriate month_bucket
      ASSIGN ls_month_buckets TO <fs_mobu>.
      LOOP AT gt_mo_spread ASSIGNING <fs_mosp>.
        lv_index1 = sy-tabix.                          "just in case we need it
        CONCATENATE <fs_mosp>-year
                    <fs_mosp>-month
               INTO lv_yrmo.
        READ TABLE lt_month_table ASSIGNING <fs_mota>
          WITH KEY
            zzyrmo = lv_yrmo.
        lv_index2  = sy-tabix.
        ASSIGN COMPONENT lv_index2 OF STRUCTURE <fs_mobu> TO <fs_buck>.
        <fs_buck> = <fs_buck> + <fs_mosp>-amount.
      ENDLOOP.
      month_buckets = ls_month_buckets.
    ENDFUNCTION.
    FORM build_bucketed_detail.
    FIELD-SYMBOLS:
      <fs_mobu>                         TYPE zmms_mstr_data_est_mobuckets,
      <fs_comp1>                        TYPE zzvgwrt,  "bucket in ls_mo_buckets/<fs_mobu>
      <fs_comp2>                        TYPE zzvgwrt,
      <fs_mota>                         TYPE zmms_mstr_data_est_yrmo,
      <fs_buck>                         TYPE zzvgwrt.            "bucket of month_buckets
    DATA:
      lv_matnr_arbid_cur(26)            TYPE c,
      lv_matnr_arbid_lag(26)            TYPE c,
      lv_dtlh_index                     LIKE sy-tabix,
      ls_month_buckets                  TYPE zmms_mstr_data_est_mobuckets,
      lv_nummo                          TYPE i,
      lv_yrmo                           TYPE zzbkper,
      lv_yindx                          TYPE i,
      lv_bindx1                         LIKE sy-tabix,     "index on ls_month_buckets cmpnts
      lv_bindx2                         LIKE sy-tabix.     "index on <fs_dtlhmo> buckets
                                                           "note: must be lv_bindx1 + 5.
      lv_nummo = LINES( gt_mo_tbl ).
      READ TABLE gt_dtlh_keys INDEX 1 ASSIGNING <fs_dtlh>.
        CONCATENATE <fs_dtlh>-matnr
                    <fs_dtlh>-arbid
               INTO lv_matnr_arbid_lag.
      lv_dtlh_index = 1.
      APPEND INITIAL LINE TO gt_dtlhmo_keys ASSIGNING <fs_dtlhmo>.
      <fs_dtlhmo>-matnr      = <fs_dtlh>-matnr.
      <fs_dtlhmo>-arbid      = <fs_dtlh>-arbid.
      <fs_dtlhmo>-arbpl      = <fs_dtlh>-arbpl.
      <fs_dtlhmo>-kostl      = <fs_dtlh>-kostl.
      ASSIGN ls_month_buckets TO <fs_mobu>.
      DO.
        READ TABLE gt_dtlh_keys INDEX lv_dtlh_index ASSIGNING <fs_dtlh>.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        CONCATENATE <fs_dtlh>-matnr
                    <fs_dtlh>-arbid
               INTO lv_matnr_arbid_cur.
        IF lv_matnr_arbid_lag <> lv_matnr_arbid_cur.
          CLEAR <fs_dtlhmo>.
          APPEND INITIAL LINE TO gt_dtlhmo_keys ASSIGNING <fs_dtlhmo>.
          <fs_dtlhmo>-matnr        = <fs_dtlh>-matnr.
          <fs_dtlhmo>-arbid        = <fs_dtlh>-arbid.
          <fs_dtlhmo>-arbpl        = <fs_dtlh>-arbpl.
          <fs_dtlhmo>-kostl        = <fs_dtlh>-kostl.
          CLEAR ls_month_buckets.
          CLEAR <fs_mobu>.
        ENDIF.
        <fs_dtlhmo>-tot_vgw01_03   = <fs_dtlh>-vgw01 +
                                     <fs_dtlh>-vgw02 +
                                     <fs_dtlh>-vgw03.
        IF <fs_dtlh>-fstad+4(02) = <fs_dtlh>-fendd+4(02).
          lv_yrmo = <fs_dtlh>-fstad+0(6).
          READ TABLE gt_mo_tbl ASSIGNING <fs_mota>
            WITH KEY
              zzyrmo = lv_yrmo.
          lv_yindx  = sy-tabix.                                "month number
          lv_yindx  = lv_yindx  + 5.                           "to account for leading fields
          ASSIGN COMPONENT lv_yindx
              OF STRUCTURE <fs_dtlhmo>
                        TO <fs_buck>.
          <fs_buck> = <fs_buck> + <fs_dtlh>-tot_vgw01_03.
        ELSE.
          CALL FUNCTION 'ZCK_TRAN_TO_MONTHS'
            EXPORTING
              START_DATE             = <fs_dtlh>-fstad
              END_DATE               = <fs_dtlh>-fendd
              AMOUNT                 = <fs_dtlhmo>-tot_vgw01_03
            TABLES
              MONTH_TABLE_FOR_RUN    = gt_mo_tbl
            CHANGING
              MONTH_BUCKETS          = ls_month_buckets.
          lv_bindx1 = 1.
          DO.
            IF lv_bindx1 > lv_nummo.
              EXIT.
            ENDIF.
            lv_bindx2 = lv_bindx1 + 5.
            ASSIGN COMPONENT lv_bindx1 OF STRUCTURE <fs_mobu>   TO <fs_comp1>.
            ASSIGN COMPONENT lv_bindx2 OF STRUCTURE <fs_dtlhmo> TO <fs_comp2>.
            <fs_comp2> = <fs_comp2> + <fs_comp1>.
            lv_bindx1 = lv_bindx1 + 1.
          ENDDO.
        ENDIF.
        lv_dtlh_index = lv_dtlh_index + 1.
      ENDDO.
    ENDFORM.
    Edited by: David Halitsky on Sep 9, 2010 9:42 PM

  • How to create monthly table creation?

    Hi Mates,
    Unable to create table by month in analytic database but load the data to the previous table continuous as attached screenshot, Schema user has the creation privilege. We are using Webcenter interaction 10gR4.
    How to create monthly table creation please?
    Thanks,
    Katherine

    Hi Trevor,
    Thanks for your help.  We were able to create table and load data till Apr as attached.
    However the analytic user privilege has been modified on Apr due to server operation.
    Since then, there was a message saying there is no permission to create tables in the analytic log,
    analytic user privilege has been granted after checked this message, As I suspected, the issue occurred after modifying analytic user privilege.
    Currently, analytic users are granted with all privilege.
    Any idea please?
    Thanks,
    Kathy

  • Maintenance View - Can you sort/Filter? How to create z transaction for it?

    Hi,
    I will be creating a maintenance view that will be used several times at the end of every month, eventually storing more than 500 entries.
    Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful, since they would like to see what similar records are stored before adding others.
    What are my options?
    Also, how do you create a transaction code to go straight to the maintenance view instead of having to go through SM30?
    Please help.
    Thanks,
    John

    Hey John,
    Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful, since they would like to see what similar records are stored before adding others.
    What are my options?.
    Option1:
    We canu2019t give the sort button (as we give in the nomal reports). But if you know like - based on what field user want to see the sorted output(lets say field MATNR)? then we can create an Event for the table maintainance generator using SE11 and write the code. In this code we sort the output that will be displayed in SM30 as per the requirement.
    Also, how do you create a transaction code to go straight to the maintenance view instead of having to go through SM30?.
    Go-to SE93 and choose the option u201Ctransaction with parametersu201D and give the t.code as SM30 and Check Skip initial screen.
    regards
    Shyam.

  • Customer Exit Variable in formula to get values for multiple keyfigures

    Hi to all,
    I have query as defined in following scenario:
    CHAR_X     C_KF1 (based on KF1)     C_KF2 (based on KF2)     u2026     C_KFn (based on KFn)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    C_KF = calculated key figure
    I need to create a customer exit variable that will search through selection e.g. CHAR_X/KF1 and give some result. I need this variable for every keyfigure (KF1-KFn). Using customer exit variable is the only solution.
    My question is: do I have to create formula variable (customer exit) representing every keyfigure separately (VAR1 u2013 VARn, like in below example)?
    CHAR_X     C_KF1 (using VAR1)     C_KF2 (using VAR2)     u2026     C_KFn (using VARn)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    Or is it possible to create one general formula variable since the way to retrieve the value in variable is always the same (like in below example)? In this case, how do I pass the value of the respective keyfigure to this variable?
    CHAR_X     C_KF1 (using VAR_X)     C_KF2 (using VAR_X)     u2026     C_KFn (using VAR_X)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    Thanks for your replies, points will be awarded!
    Cheers

    That is my concern, the value of variable is not the same.
    What variable should do is:
    take KF1 id, go through values for CHAR_X, get back one value
    This value would always be different, and also "KF" part in code of variable should be different, based on the column where the variable is being used (so, in column C_KF1 ,variable should "pick up" id of KF1, etc.).
    I hope it makes it more clear. For now, I do not have the code for variable yet, I am just interested in concept whether it is possible to pass the ID of keyfigure dynamically so I can make decision how to model this request.
    Thanks

  • Create aging bucket in BEx - based on  date variable

    Hi everyone,
    I have a report for which we need to create account receivable aging bucket to classify arrears (1>29 / 30>59 / etcu2026).
    Our solution overall architecture is the following :
    Source System (SAP) >  BW back end...Multiprovider > Super BEx Query > Universe > Webi Report
    BW 7.0
    BO XI 3.2 SP3.0
    In this report, each bucket is defined by the difference between:
    -     the Net Due Date (which is the due date of payment of the invoice)
    -     and the Current Date (date for which the report is run u2013 can be the date of the day or a date in the past)
    We can develop this either in BEx or in Webi, but to avoid potential performance issues in Webi, we take the try to develop this in BEx.
    As you can easily imagine, this BEx query will be used for many reportsu2026so not only for this specific report.
    What weu2019ve done so far:
    1-     We created a variable to prompt the user with the date he wants to run the report for
               - ZTEST is an optional variable, single value, User input, based on characteristic 0CALDAY
    2-     We developed RKF in BEx
    -     Key Figure restricted by Amount
    -     Net Due Date restricted by the variable ZTEST using the between function and an offset (to determine the range)
    => When we save the query we are getting a warning message saying u201CVariable ZTEST for characteristic Net Due Date has been converted to a required entryu201D
    Why? (you probably knowu2026) Because my RKF is using a variable with an offsetu2026which automatically turn on my variable as mandatory and no more as optional.
    Consequences:
    -     In BEx: My variable, which is required to be optional (because we donu2019t have to have this field as mandatory for each and every report running on top of this query) is now mandatory.
    -     In Webi: If I use the variable (funnel in webi), my report is working fineu2026but if I donu2019t use it in the webi report, I get an error message saying u201Cvalue required for ZTESTu201D
    o     Funnel is configured as optional in the universe designer (so the issue is not coming from here)
    => 2 consequencesu2026same issue
    Question: What can we do to keep our bucket logic running in BEx and avoid this variable to become mandatory?
    Solutions (potential)
    -     Create a custom exit routine to work around this issue u2013 how?
    -     Create CKF/Custom exit to create our bucket (using ZTEST as an entry value to determine the range) and then use the created range in our RKF to restrict the amount u2013 how? Not so easyu2026
    -     Build the logic in Webi
    -     Any other suggestions?
    Here we are, any advice would be really appreciated
    Thank you guys
    Regards
    Henri

    Hi peeps,
    We finally find a solution for this problem! So I can share it with you.
    The overall solution is pretty easy to understand.
    1st step is to prompt with the user with a 0DATE variable. The date selected becomes a date input for the next step.
    The variables is defined as a range [01/01/1900;variable_value)...in order to retrieve the right data set.
    2nd step is to use this date to create our aging bucket, dates range.
    To do so, we created 4 user exit variables (for each aging bucket).
    3rd step is to use these ranges in RKF.
    This way you get aging bucket dynamically defined by the user input pretty cool!
    Regards
    H

  • Disaggregation of Key figure not in proportion at monthly bucket

    Dear Expert,
    Please find the below case.
    Here Key figure 2 is disaggregated based on Key figure 1 (Calculation Type P) also we maintained Time based disaggregation K.
    The issue is - if you check total, it is 13 for both key figures as shown in below screen shot.
    But region wise (Detail level) if you checked, it is not in 1:1 proportion and it is causing problem for us.
    For example Region 2 having value in KF1 as 2 for Week 11.2015 but after disaggregation it got nothing on KF2.
    (The reason is Key figure 2 is having value in week 12 and week 13 and nothing in Week 11)
    We tried 2 different approach to get 1:1 proportion in Monthly bucket, but it could solve our problem.
    Approach 1-After  Key figure2 calculated in Weekly bucket, Reset Key figure 2 at total level in Monthly data View and enter the Total of Key figure 2 at Total level in Monthly bucket.Check the result at detailed level.
    But in this case it is calculated for week 10, 11, 12 and 13 as 0,  9, 3, 1. (We want Key figure2 as per original calculation i.e it should be 12 and 1 in week 12 and 13 respectively)
    Approach2 -
    Approach 2 - Add another New Key figure as Key figure 1 Total- which sum the Key figure1  at detailed unit at Month level and then disaggregation of Key figure2  based on this new KF.
    Its working for this scenario but different scenario is not working.
    For example- here region 3 and 4 affected.
    If disaggregation at Month level is corrected, our issue will be resolve.
    Waiting for your feed back.
    Thank you
    Sachin

    Hi,
    In Planning Area u2013 Key Figure settings,  did you try to use  u2018N - No disaggregation in timeu2019  for KF2  key figure ?
    This will mean that copying will occur in technical periods of the storage bucket profile and not the way it happens now.
    Other  option:
    Now, you storage bucket profile and also the planning bucket proifile  are  in Days/Weeks/   .Months 
    Is it necessary for your user to view data in daily buckets ?  Can the user view  the data in weekly buckets only (and not in daily buckets) ?
    Your planning bucket profile can be in Weeks/..Months .
    This way your displayed data will be in weekly buckets.
    Regards
    Datta

Maybe you are looking for