Dates - Creating an InfoObject with W/E Buckets

Hi Guys,
I have 'Pricing Date' in an DSO and I want to create a 'bucket' of weeks for a range of pricing dates. When the user runs the queries, they will have a variable to enter a range of Pricing Dates and the output will be the 'bucket weeks' for those dates eg. run for 30/10/07 - 21/11/07 and the report shows w/e 3/11/07, 10/11/07 etc with values below this.
I was thinking of a new InfoObject for 'Weeks' in the Cube, that will hold the w/e ending date, and will link to the 'Pricing Date' in the Transformation. Would this solution work and if so, can someone help me with the code?
Thanks
Scott

Hi Scott,
you 3 alternatives.
1st: create a hierarchy on your pricing date. As nodes you enter the 'bucket weeks' and assign the relevant dates to it. Maintain the hierarchy into the past as wide as required and into the future...
2nd: use your idea of adding a new field. In a routine you need to call fm DATE_COMPUTE_DAY with the pricing date and check the result. The fm will return the weekday as 0 - 6 for sunday until saturday. So with that you can easily calculate your 'bucket week'. But remember, you need to reload your cube to have that information available for the already posted data. If you are running bi7.0, you might use the remodelling tool for that and there is no need to reload.
3rd: to avoid a reload, just add a field for the 'bucket week' to the cube. Use it as virtual characteristic and derive the value at query runtime by implementing the same fm....
kind regards
Siggi

Similar Messages

  • How to create an infoobject with a flag kind of data?

    Hi Everyone,
    How do you create an infoobject with a flag kind of data? Like YES or NO.
    Will it have Master Data or just the Text?
    It will not have any hierarchy or anymore attributes?
    Should I select the DataType as CHAR or something else?
    Thanks

    Pl check the following objects from the contens:
    1. 0ACCDEBCRED     
    2. 0ABCKEY
    Ravi Thothadri

  • How to Change the data type of infoobject from NUMC to CHAR

    Hi Experts,
    I have created an infoobject with data type as NUMC, i used in DSO as a key figure and i have loaded data up to PSA.
    Now i want to change the data type of this Info Object from NUMC to CHAR.
    Can anyone suggest me the solution for this issue.
    Regards,
    Venu Gopal.K

    Hi pavan/binu,
    I have not loaded data into DSO i just added IO in Key fields and i started editing this IO then im facing error like
    1.Master Data Table /BIC/PZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated     
    2.SID Table /BIC/SZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated
    Im also unable to edit the P & S tables in SE14.
    NOTE:I have data only in PSA and when im trying to load data to DSO Im facing these issues.

  • Design Infoobject with version maintenance

    Hi,
    We have a oralce as source system. A table material group with mat group id, version id and some other columns needs to be extracted to BW. For every material group, 4 version id's are maintained and for each version id a validity period and version number is mainatained in another table.
    To design this in BW, The infoobject material group was created with attribute Version id. This did not work as the mat group is not unique without version id. If  versionid is defined as compounding infoobject,  every version will be available in the report for eachmat group. The requirement is that the mat group in the report should show the current version being used with the quantities consumed/procured.
    Any ideas how to design this in BW.
    Thanks and Regards,
    Srinivas
    Edited by: Srinivas on Mar 18, 2011 6:47 AM

    load second table to a dso (version id, version n°, valid period)
    Create the infoobject with version id as compound. add a infoobject ZCURVERS as an attribute to your infoobject.
    when loading from the first table to your infoobject , read the dso date in a start routine, and with the help of the valid period, you can determine which version is the current one. if this is the case you put an X in ZCURVERS. So per material group, you'll have only one line where ZCURVERS = 'X'. Now in your report, you need to filter on ZCURVERS = 'X'.
    this should do the trick, however some remarks:
    - use semantic groups to have all lines of the same material group in the same pacakge
    - you need to do full loads
    M.

  • The data type of InfoObject 0ORGUNIT is incompatible with field 0ORGUNIT

    I am trying to create a DataSource in BW to load the organizational hierarchy from HR R/3 to BW.  I get the message "The data type of InfoObject 0ORGUNIT is incompatible with field 0ORGUNIT," 
    Our BW version is 3.5; the version of HR R/3 is SAP ECC 6.0.
    I'm not sure what this message means but if I continue to click OK, I get transfer structures for the org attributes and hierarchies but not the text.  The key to the text is 60 characters.  Shouldn't the key be the org unit, which is in format NUMC 8?
    I was able to create this DataSource last summer, when HR was in a different version (4.6?) with no issues. Does anybody have any idea what's wrong and what I can do about it?
    Thanks!

    Would be nice if you could share the resolution they found,
    since that might help other people as well.
    For instance, me.... as we face exactly the same problem at the moment !!
    Ch

  • Copy Key figure data between two planning area with different storage bucket profile

    Hi,
    I have a DP planning area ' PA1' with monthly storage bucket profile data view 'PA1M' ( monthly TBF) and I want to copy the data to another planning area 'PA2' whose storage bucket is weekly. This would need me to write a custom program which will split monthly to weekly and then populate 'PA2'.
    However, In 'PA2', I created two data views 'PA2W' (with weekly time bucket profile) and 'PA2M' (with Monthly Time bucket profile). If I am able to copy the data from PA1 (PA1M) to PA2(PA2M), it will automatically splits monthly to weekly in PA2W.
    So my question is if there exists a way I can copy key figure data from PA1M to PA2M? Any BAPI?

    Hi Rakesh,
    You can use COPY/Version Management Function to do this.
    Path: Demand Planning > Environment >Copy/ Version Management
    The system takes into account only those periodicities that are common to both planning areas.
    For example, if the data is saved in months in the source planning area (PA1) but in months and weeks in the target planning area (PA2)
    the system copies to months in the target planning area and then Disaggregates the data to the storage buckets in accordance with the Time-based Disaggregation.
    hope this wil help to understand the basic concept.
    Kapil

  • Error: Data element for InfoObject AUFNR 0PM_ORDER could not be created(QA)

    Hi Experts,
    I am trying to Transport a request from DEV to QA,which consists Transaction Infosources,  afetr the inport the TR is failed with return code 8. and the error message in the log is as follows.....
    Error when determining a number from object BI_TSDTEL and number 01  
    Object name can only contain characters from syntactical character set
    Data element for InfoObject AUFNR 0PM_ORDER could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Errors occurred during post-handling RS_AFTER_IMPORT for ISCS L
    Data element for InfoObject TXTMD could not be created
    Errors occurred during post-handling RS_AFTER_IMPORT for IOBJ L
    please Could anyone give the Inputs to solve this , I'll be greatful to you.
    Thanks & regards
    SK

    hello AJ,
    Till now the problem is not solved , Please provide some inputs.
    here I'm getting this problem for TXTMD, 0CO_AREA, 0PM_ORDER, 0DATE, 0PLANT, 0ORDER_CURR, 0LOC_CURRCY
    Error when determining a number from object BI_TSDTEL and number 01
    Object name can only contain characters from syntactical character set
    Object name can only contain characters from syntactical character set
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Transfer structure 0CO_OM_NTW_1_SB activated under the name 0CO_OM_NTW_1_SA
    It is not necessary to copy dependent objects for transfer structure 0CO_OM_NTW_1_SA
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Activating Transfer Rules 0CO_OM_NTW_1_SA ...
    23 Transfer Rule(s) of the transfer structure 0CO_OM_NTW_1_SA removed from control table
    23 InfoObject(s) of the transfer structure 0CO_OM_NTW_1_SA removed from control table
    Formulas have been saved
    PLEASE PROVIDE SOME INPUTS.........
    Message was edited by:
            S K

  • Assigning InfoObject with Master Data as InfoProvider

    Hi,
    In BW 3.x we used to assign the InfoObject with Master Data as InfoProvider only if we want to perform Query on that InfoObject.
    But in BI 2004's, is it must to assign InfoObject with Master Data as an InfoProvider???
    Because when I create the Transformation to load Text or Attribute Data, the system automatically assigs that InfoObject as an InfoProvider.
    Is there a way to skip using that InfoObject as an InfoProvider during Tranformation if I do not want to perform any reporting on it.
    Thanks,

    Hello Sesh,
    No. It is not possible.
    However for easy grouping, create another infoarea and attach all report relevent infoproviders under this infoarea.
    Ravindra

  • How to create a report with survey data

    Hi All,
    I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
    Swapna

    Hi Swapna,
    According to your description, you want to create a report with survey data and display the summary.
    Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
    to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • Problem when creating a Report with a schduled date

    When I tried to create a report with a Schedule (any option except NOW) I get the error of "First Report Occur Date should be after or equal to Current Date" unless I use a date of 2012-10-01 or later in the First report occurs on field.  Today's date is 2012-08-23.
    Let me know if you can recreate this and if or when there will be a fix.

    Hi Tim,
    I'm glad to see you've been configuring your On100, but sad to see you've hit another snag. We are looking into this issue now. I'll get back to you with an update.
    Thanks,
    The OnPlus Team

  • How to create a chart with dates?

    I've created a table with projects I have to deliver and the date they were delivered. I would like to create a chart from this data - however I can't figure out how to use date in the chart.
    Ideally the chart would work with the date (lets say from jan 01 to april 5) on the x-axis and the project on the y-axis. And a line that goes from time A (which marks the initial part of the project) to the time B (which marks the delivery date) defined on the table.
    Is it possible?
    heres a pic of what i mean:
    /Users/judavies/Desktop/Screen shot 2011-01-14 at 11.36.12 AM.png
    Message was edited by: jujudavies

    Hi Jerry,
    I'm ALMOST there! If you could help me with one last thing it would be amazing. I've uploaded my number project and you can downloaded it on the link bellow, if you prefer.
    I managed to do the same idea chart as you have. However I would like to have two bars for every JOB (y-axis). On my table i've inputed for every job 4 values = START DATE that was scheduled / Duration period scheduled (this happens prior to the job itself // START DATE Delivered / Duration Period Delivered (this is the actual time the JOB took place). This way I can see at the end of a JOB if I worked during the period I planned.
    using your example on the chart above (your reply) Could Proposal have a bar 1.0 / 4.0 - and bellow this bar have another one (with different colours) that went from 2.0 / 5.0 - for example? - the first one representing the "scheduled dates"and the second one representing what actually happened.
    I managed to do the four bars but couldnt manage to have them bellow each other.
    Tks again for your help
    files.me.com/jujudavies/wgugl1.numbers.zip
    x'jul.

  • How do I create a track with just controller MIDI data in it?

    How can I create a track with just MIDI controller data in it? 
    For example: I'd like to create a track that issues a bank change/patch change and sets the default volume for that track, and that's it.
    I can then use this setup as a template for future projects.
    How can I do this?
    It seems like LPX will not allow me to enter any controller data into a track without first defining a region. However, it seems that LPX also won't allow me to create a region with just controller data in it. 
    Ideas?
    Thanks
    -Mike

    Soniq2 wrote:
    How can I create a track with just MIDI controller data in it? 
    For example: I'd like to create a track that issues a bank change/patch change and sets the default volume for that track, and that's it.
    I can then use this setup as a template for future projects.
    How can I do this?
    Let me qualify, I'm using Logic 9, not upgrading for various reasons.
    Is this for an external Instrument? If so it's very easy to do using the inspector, but first you have to create an instrument in the environment. (at least in L9 and the way I do it, which is old school)  Here's an example of an external instrument setup in the Environment.
    A multi Instrument is created, channels 1, 2, 3, & 9 are active. Patch names are entered, format for bank change is selected. (just happens I selected channel 14 to open the patch names).  This Instrument will now appear in the arrange page, and you can set patch change, bank change, volume & pan.

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How to create a table with data in it?

    I need to have a temp table in a PL/SQL procedure for processing which can hold data values from two other tables and a sequence number.
    Ex:
    Existing tables:
    table1 (col1 varchar2(100), col2 date, col3 number20) - Has more 1Lakh rows
    table2 (col1 varchar2(100), col2 date) - Has more 900 rows
    New table
    temp_table (col1 PRY KEY(seq1.number), col2 varchar2(100), col3 date)
    Currently i have created the temp_table and inserting all the data from both table1 & table2 (which is poor). Please suggest me a way to have the temp_table created with data(atleast from table1 which has more than 1Lakh rows). Please see i need a sequence number as well.
    Thanks in advance.

    Vel wrote:
    I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
    Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
    Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
    EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
    EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
    I'm using Oracle 10.2.0.4 version.
    Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements.

Maybe you are looking for

  • Internal Server error while configuring External service for CAF

    Dear All, While configuring the External Service (RFC) for CAF Core project in our EP7 SP11 server we are getting error message we are getting Internal server error when we click on service registry. 500   Internal Server Error   SAP NetWeaver Applic

  • Migration to new machine failed.

    I have purchased a new iMac and the iTunes migration from the old to the new is what I would consider a failure. I have attempted to move all my songs from the old to the new one using several methods and all have failed, I am defining failure as not

  • Video is in right format but wont show up in library Help!

    this has been making me mad i downloaded a movie and it plays and every thing then i put it in mpeg-4 format and it want so up in the library when i drag it over there. it wont even work when i use Quick Time Pro. suggestions please.

  • Getting the last clicked menu item

    Hi everybody, Does anyone know if there is a method which exists to get the last item selected from a JMenu? For example, if you click on a menu item called "blah", that method would return that item to you? I looked over the Java tutorial about the

  • How do i find out the size of my checked music

    I'm trying to prepare the tracks I want to transfer to my new iphone 3g (16gig). I have went through "checking" the music i want and "unchecking" that which I dont. Only problem is I dont know the total size of the checked music niw. Anyone know how