Calday vs. Calmonth report

Hello Gurus.
I want to develop a query in Bex Query Designer and I`m not having success.
What I want to do is develop a query where in the lines I have the 0PLANT and 0CALDAY objects, and in the columns I want 0CALMONTH and one key figure for Quantity.  And I expected the report to be like the example below:
Plant       0Calday               0CALMONTH
5001                                    2010.001                     2010.002         ...
               1                            10T                                  9T
               2                             3T                                   3T
               3                             6T                                   5T
               4                             8T                                   5T
               5                             6T                                   7T
              31                           5T                                    6T
5002
             ...  (repeat the structure above)
But It Doesn`t work like I expected...
Does anyone know how to make a report like this??
Regards,
Thiago

The problem isn't that. This is OK. I put the 0CALMONTH over the figures structure. But the problem is how can I insert the days of a month, in the lines, in a structure like this:
Day1
Day2
Day3
Day4
Day 31
and for each day (in lines) I`ll have the calmonths in columns...and the report should work like
                        Jan/2010    Feb/2010    Mar/2010  (...)
Day 1
Day 2
Day 3
Day 31
And than, I will know, from the 0CALDAY of each register in the cube, where to put the data (day1, day2...or any other)
Thats the problem..
Anyone face with this situation?
Regards,
Thiago

Similar Messages

  • User exit to get Calday from Calmonth to populate Key Date

    Gurus
    we have a requirement to populate key date using exit variable where the user is going to fill in the Calmonth and the last day of the month should go to Key date at query run time.
    Would you please advise the sample code I can write to achieve this? Appreciate your quick help on this.
    Thanks
    Kris

    Thanks Tripple K
    I wrote the following but its giving me error when i execute the query saying "Value is too long for VAR_LASTDAY_CALMONTH.
    Data: v_date type sy-datum.
         WHEN 'VAR_LASTDAY_CALMONTH'.
         IF i_step = 2.
              READ TABLE i_t_var_range INTO l_s_var_range WITH KEY vnam = 'VAR_CALMONTH_SO'.
              IF sy-subrc EQ 0.
                CONCATENATE l_s_var_range-low '01' INTO v_date.
                ADD 40 TO v_date.
                 v_date+6(2) = '01'.
                  l_s_range-low = v_date - '1'.
                  l_s_range-sign = 'I'.
                  l_s_range-opt = 'EQ'.
                  APPEND l_s_range TO e_t_range.
                                ENDIF.
                               ENDIF.
    Would anyone please advise where I am making mistake?

  • Regarding displaying calmonth in report.

    Hi All,
    In one report my client wants to get the sales per month. But it is acutally displaying per date.
    I have checked the infoobjects and there are both calday and calmonth available in the InfoCube. But there are only values for the Calday whereas calmonth i am getting blank values. Is there any way to calculate the calmonth values and represent them in the reports????
    Regards
    JY

    This process will be very tedoius. Let me clearly explain the situation.
    I am getting output in this fashion:
    Date           Amt               Qty 
    1/2/2006      Rs1000             20
    2/2/2006      Rs1002             21
    3/3/2006      Rs30               23
    6/3/2006      Rs100              1
    I want report in this fashion:
    Month/Year    Amt           Qty
    2/2006        Rs2002         41
    3/2006        Rs130          24
    Isn't there any way to modify it in the query definition itself??

  • Display of month insted of date in report!

    Hi Experts,
    Question 1:
    I want to display month instead of date as a characteristic in my report. Is this possible in BEx without using Virtual Characteristic and without changing existing data module.
    Question 2:
    I am able to display the month as keyfigure using formula variable, but it is displaying as 201.106 insted of 201106. How to correct this? means with out displaying the thousand separator for this keyfigure.
    Thanks.
    Herozoh.
    Help will be highly appreciated.

    Hi Herzoh,
    In order to display calday as calmonth.. create a formula variable with replacement path  to get the date into formula.
    While creating in replacement path tab give offset start and length. In the currency unit tab under dimensions select date.
    Note :But the problem is you have to drag 0calday in rows.
    so 0calday also visible in the report.
    I don't know how to hide a charecteristic.
    Regards
    Ranganath.

  • Back up cube for report from planning area

    Hi Gurus,
            We are in implementation and i had seen that client wanted to see daily data and wanted to delete that data and load next day data.One more point is client even wanted monthly data as well in a same cube and this two facilities should be in single info cube.
    How is is possible?
    for further info we have calday and calmonth time Chart.
    please suggest me some good ideas.
    I will be verythankfull to your suggestions.
    Thanks a Lot
    Regards,
    Raj

    Hi Raj,
    You can use SAP BW to create reports for the user. You have the option of using an external BW system or the BW system that is coupled with the APO server. If you have an external BW system, then it is recommended that you report from there. As you may know APO is an OLTP system and thus is configured for such. The external BW system will be configured for OLAP access and thus would be much more suitable for reporting purposes.
    You may want create a SAP RemoteCube so that the data in your report is "as fresh as possible".
    Here are the steps if you will be using the BW component in the APO system:
    1) Create an export datasource for your planning area. (Transaction /n/SAPAPO/SDP_EXTR)
    2) Create an InfoSource and attach the datasource your have created in step 1. (transaction RSA1 Modelling tab)
    3) Create a SAP RemoteCube and attach your InfoSource and SourceSystem to that.
    4) Create a BeX query and a BeX report (either in Web or Excel).
    If you will be using an external BW system here are the steps:
    1) Create an export datasource for your planning area in the APO system (Transaction /n/SAPAPO/SDP_EXTR)
    In the external BW system:
    2)replicate the datasource your have created.(transaction RSA1, Modelling tab, sourcesystems->choose the APO system->Right click->Replicate DataSources).
    3) Create an InfoSource and attach the datasource that you have created in step 2. (transaction RSA1 Modelling tab)
    3) Create a SAP RemoteCube and attach your InfoSource and SourceSystem to that.
    4) Create a BeX query and a BeX report (either in Web or Excel).
    Note that a RemoteCube is only suitable for few users only. If you will have many users, you need to create a Basic InfoCube instead.
    In your BeX query, you can choose the granularity of your report. If you want your report to be aggregated to monthly level then be sure to include the 0CALMONTH InfoObject.
    Please post again if things are not clear and I will be happy to help out.

  • Query Designer restricted key figures using a prompt value

    Hallo Experts,
    I would like to restrict key figures after user has beeen prompted to enter a date. I have 2 key figures:
    a) KF1, Date1
    b) KF2, Date2
    User should be prompted to select a specific date: e.g. 01/2011. After selecting/entering the prompted date value, it should be given to date objects for intance Date1=01/2011 and Date2=01/2011.
    How could I achieve it in Query Designer without using customer_exit function? Reason is that non-experienced users will use this report and they should not be confronted with complex query. Do you have any idea?  
    Many thanks
    Mamadu

    Hi,
    I assume that you need to restrict the value of keyfigures by date based on user input data on variable selection screen.
    First create one user input variable on your date field say for eg calday.
    Now restrict your KF1 with calday and choose that vairable which you created.
    For second KF2 which seems to me need to be restricted with offset of +1 based on the date entered by the user.
    So restrict this KF2 with calday and use the same variable with offset of +1
    I just misunderstood you ned calmonth or day because in requirement you have given month but you are calling it as date.
    If its month then replace calday with calmonth..
    Hope it helps.
    Regards,
    AL:
    Edited by: AL1112 on Dec 21, 2011 9:42 AM

  • Q1: Secondary Index. Q2: Fiscal Year /Period

    Hi gurus,
    I have two questions need your explain:
    Q1: To improve the query performance I am going to create some secondary indexes on an ODS, I am wondering whether this action will remove the data from the ODS therefore I have to reset the data loading process and if these indexes can be maintained while data loading automatically ?
    Q2: About fiscal year /period which technical name is 0fiscper. we know in sales order header, item also purchase order and billing ODS or CUBEs, FY/Period are existed in those models. but there are still some other dates e.g. delivery date, goods issue date, goods recieve date, document date, posting date and so on. So which date is used to generate FY/Period ?
    Thanks in advance
    Edited by: Leon Ouyang on Dec 3, 2008 4:27 PM
    Edited by: Leon Ouyang on Dec 4, 2008 1:26 AM

    Hi,
    1)The creation of index have no effect on the data stored and you need not delete or relaod the data.
    System will adjust the index with every data load to the DSO automatically.
    2)Fiscal year period depeneds upon the module from which you are using the data and you can tweak the logic for this suit your need.
    If the data source is providing the fiscal period values then well and good.
    If not then generally its mapped to those dates which are driving date of the query or the date which is going to be used by the user for the input selections in the report.
    for example if you want sales based on the posting date in the reports and user just wnt sale till month and not date then.......you map posting date to fiscal period in the transformation and use them in the reporting.
    This can vary too...there is no hard fast rule for what date it should be mapped...and it all depends upon the reporting requirement
    The good design practise is to fill it with the same date which is filling calday and calmonth objects.This will keep granuarlty as same...but if you want some other selection in the report then you can map calday to some other date and fiscal period to some thing else.
    Ajeet

  • Help with Customer exit variable

    Hi Guys,
         I need your urgent help. I have a requirement where I need to create a variable (on CALDAY) in a report which should use the input value given for another variable (created on CALMONTH). To put in words more clearly, CALMONTH is a variable that is mandatory for input but the CALDAY variable should not appear on the selection screen. I was told that I should write a customer exit to make this happen. So can someone please explain me the process of creating a customer exit and give me the code.
    WHEN CALMONTH values are selected to be 07/2006 - 08/2006... CALDAY values should be 07/01/2006 to 08/31/2006.
    CALMONTH is user entry, mandatory, range and multiple selection variable.
      Early reply is highly appreciated and duely rewarded. Please let me know if I am not clear about the requirement. Thanks a bunch in advance.

    Let us say, user enters multiple ranges for the month, you would want corresponding date ranges for the same, right?
    data : w_date like sy-datum.
    case I_VNAM.
    when 'ZCALDAY'. " Calday var
    loop at i_t_var_range into LOC_VAR_RANGE         
         where iobjnm = 'ZCALMONTH'.
      WA_RANGE-SIGN = 'I'.     
      wa_date+2(6) = loc_var_Range-low.
      wa_date+0(2) = '01'.
      wa_range-low = wa_date.
      if loc_var_range-high eq space.
        WA_RANGE-OPT = 'EQ'.     
      else.
        wa_range-opt = 'BT'.
        wa_date+2(6) = loc_var_range-high.
        wa_date+0(2) = '01'.
        wa_date = wa_date + 31.
        wa_date+0(2) = '01'.
        wa_date = wa_date - 1.
        wa_range-high = wa_date.
       endif.
       append wa_range to e_t_range. clear wa_range.
    endloop.
    endcase.
    This should do.

  • Building consolidated Cube in BW

    Dear Experts
    I wnat to build a Monthly consolidated Cube on the Std. SD Cube SD_C05. I want the new cube should contain only one consolidated record for the given month. I have tried by creating the transformation on SD_C05 where i mapped the calday with calmonth in new cube. In the new cube I don't have calday . But I am not getting the consolidated One record for the given month when I uploaded the data from 0SD_C05 to the New cube. Pl. let me konw where i went wrong , Do I have to use aggregate to achieve the same?????
    Pl. advice
    Thanks in advance
    Dinesh Sharma

    Hi
    As suggested above you can achieve same using agreegates.
    what are other characteristics in your new cube??
    to have single record by month you will have to check values of other characteristics as well in cube if any of char value changes a new record willbe created but still you can see single record by excluding that characteristic from your display or report.
    Share some more details of you requirements.
    REgards
    Sudeep

  • How to Find out what are the top 20 queries executed in the system

    Hi Guru's,
    I would like to know how to gather the information regarding the Top 20 queries used in the system per week, by a multicube.
    Note: I am using BI 7.0 and also Statistics are turned on.
    People have provided me the Cube name and table name last time but nothing seems to work.
    I do not have the query names and I just have my multiprovider name and with the help of that, I want to find out what are all the queries which were executed related to that multiprovider.
    Thanks and regards,

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • How to find out what are the interfaces used for Job and Job Codes

    HI All,
    I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
    Thanks In Advance
    Sunny

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • Subject: 0TCT_VC12 Transformation not working

    0TCT_VC12 by default does not have any transformation.  0CALDAY is populated but 0CALMONTH is
    All zeros. I set up a transformation (from 0TCT_VC12 to 0TCT_VC12), then mapped 0CALDAY->0CALMONTH. I do see transformation rule type as Time Characteristic.
    I activated the transformation.
    Yet when I Display Data for 0TCT_VC12, it 0CALMONTH it is still 00000 as though transformation never worked.
    What am I doing wrong?

    Hi,
    So in this case either you need to add a routine in update rules to convert the calday to calmonth or you need to add field in Cube Fiscal Year variant and populate a constant value. Even to write a routine you will be in need of Fiscal year variant.
    This will convert from Calday to Calmonth.
    Hope this helps
    Regards,
    Akhan

  • Procedures for implementing a snapshot scenario with custom DataSources

    Hi Gurus,
    I have checked the How To paper ([How to Handle Inventory Management Scenarios in BW (NW2004)|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]). However, only SAP standard BW objects are mentioned in the paper e.g. InfoCube (0IC_C03), Material Stock InfoSource (2LIS_03_BX), Material movements IS (2LIS_03_BF) and Revaluations IS (0LIS_03_UM).
    On the contrary, I need to handle custom DataSources for the Snapshot scenario. Are there any differences in the implementation methodology? Which additional aspects should I take into consideration? For example, the load sequence, delta type, etc.
    Could you please list out the step-by-step procedures for such an implementation?
    Thanks in advance!
    Regards,
    Meng

    Hi Meng,
    You can approach this in two ways.
    1) If the volume of data is not much, you can derive the balance at query level, as follows.
    User enters the date, based on this restrict your key figure to display all values less than this date.
    2) If the volume of data is high, then you will have issues with performance if you are calculating the balance in the front end. In this case, you can model this with 'Non cumulative' key figure.  Again there are 2 ways of approaching this back end solution based on the volume of data. ( Say in one case you have 2 years of history in your DSO and in the second case, you have  5 years of history ).
    A) For example, If there are only 2 years of history
    Create a non cumulative Key figure 'ZBALANCE' with inflow and outflow, in a cube.
    Map this to your credit and debit as + and - respectively and map the calender day to posting date.
    Just initialise the dataload with data transfer and start loading the delta as normal.
    You will be able to see the balances for each and every calday in your reporting.
    This approach is straight forward and simple.
    Compress the cube for getting the better performance.
    B) If there are 5 years of history and you are not interested in loading all the 5 years data in getting the balance
    Here you want to have the initial balance, continue delta and would like to load 2 years of history.
    The cube and non cumulative KF are created as mentioned above.
    For generating initial balance, you have to create another DSO without calander day and ZBalance mapped to credits and debits in additive mode. Load your DSO data into this new DSO to generate initial balance. This balance will be loaded to your cube as initial balance. ( Like 2LIS_03_BX ).
    You have to compress this request with marker update ( Must ).
    Load your historical data for 2 years from the original DSO. Compress without marker update ( Must ).
    initialise without data transfer from DSO to cube and load deltas normally.
    Compress the delta requests normally for performance reasons.
    Please read the 'Inventory document' in detail.
    Please let me know, if any of the information is still not clear.
    Thanks,
    Krishnan

  • BW Modelisation: Number of ticket by product, family, ....

    Presentation of existing :
    In our model, we will have 1 DSO with ticket information: CalDay, Ticket ID and Product
    A product is lowest level of hierarchy composed of following nodes :
    u2022     Sector
    u2022     Module
    u2022     Family
    We want create a report which display how many tickets are linked with each level node.
    Example:
    DSO Data:
    CalDay | Ticket | 0MATERIAL | Family | Module | Sector
    Day 1   | 1       | 581923    | 14     | 1      | 3
    Day 1   | 1       | 529940    | 14     | 1      | 3
    Day 1   | 1       | 529939    | 88     | 2      | 3
    Day 1   | 2       | 529939    | 88     | 2      | 3
    Day 1   | 3       | 581923    | 14     | 1      | 3
    Day 1   | 3       | 529940    | 14     | 1      | 3
    Day 1   | 4       | 529940    | 14     | 1      | 3
    Day 2   | 11     | 529940    | 14     | 1      | 3
    Reporting example (criteria selection : Calday = Day 1):
    Report 1 :
    Product   |   Number of tickets
    581923   |  2
    529940   |  3
    529939   |  2
    Report 2:
    Family   |    Number of tickets
    14         |   3
    88         |  2
    Report 3:
    Module   |    Number of tickets
    1            |  3
    2            |  4
    Report 4 :
    Sector   |    Number of tickets
    3            |  4
    Constraints:
    u2022     Hierarchy can be changed every day (refresh indicator require)
    u2022     High volumetric of Ticket information (Daily full update not possible)
    u2022     Ticket information available in DSO will not be loaded into cube (no reporting at ticket level required).
    Could you please help me to desing this in BW?
    Regards,

    Closed

  • Number of Customer respect to month

    Dear all,
    I have 0customer, with attributes, what i need is to get the number of customers respect to month , year etc.
    What should i do? Do i have to create another infoprovider and fill with master data?
    Thanks

    hi again,
    if i am not wrong you are saying that;
    If ı have 0date, that is for example 20.10.2009, then i can transform into 0calmonth where my 0calmonth will be 1 for October, hovewer it will be 1 for november as well, as it starts from october and goes forever..
    Is it feasible to do that like that?
    i have 0startdate for example, in bex, if my 0 startdate < calmonth(report) then add 1,
    and report my results?
    Thanks

Maybe you are looking for

  • How to determine the solution's ID in absl?

    Hello Community, I have a simple question yet I fear there is no simple answer (possibly no answer at all). The question is: Does any body know ways how to determine the ID (e.g. Y123ABCDY_) of the solution the code is running in? My use case is the

  • Removing "Not Deleted" Mailboxes from a Database

    Before I go anywhere, let me explain what I mean by "Not Deleted" mailboxes - We will be deleting and recreating a pair of databases this weekend. A s part of this process, we move all mailboxes from these databases to the other 22 mailbox databases

  • IPad 1 and disabling Passcode/lock option on Find My IPad

    I have an iPad 1.  Just got the Find my IPad app after 3 years.  But, after setting it up, I discovered that it locks and requires my password every time it goes to sleep or is turned off.  I thought I could instruct it to be locked if I lost it and

  • Plz reply its urgent.

    hi,     I have one issue i:e I have one selection screen with fields company code and plant.If i give plnt as m001 and company code as 'renl' then display two more selection screen input fields verna and  ' vernr' and after giving this i have to disp

  • Cannot see the infoareas through Bex

    Hi: I have requested for and got BI Admin access for a Dev APO server (SCM 7.0). I tried to logon to the Bex query designer but cannot see the infoareas (or the cubes underneath them). There are several infoareas and cubes on the server when I look a