Mapping date field to a month field

Hi gurus
I am working on BI 7 and as per a requirement i need to map a date field present in a DSO to a calmonth(0CALMONTH) field in an infocube...so do i need to write a routine for  it..so that the month field can fetch data from a date field...

hi,
cube have additive property, and the date based records would have converted in month based and in the cube you will have the reduced aggregated records only.
chk the KF values.
Ramesh

Similar Messages

  • Line chart to plot count of 2 date fields against calendar month

    Post Author: springle
    CA Forum: Charts and Graphs
    I would like to create a line chart with 2 lines.  I would like the x axis to be a calendar month.  I would like the y axis to be the count of a date field for that month.  I would like 2 lines, one the the count of applications recieved in a month and the other to be the number of shipments in a month.  I can make a chart to plot one or the other but not both on one chart.So in summary I want of a count of date1 and a count of date2 by calendar month in one line chart.Thanks in advance,Scott

    Post Author: springle
    CA Forum: Charts and Graphs
    Thanks for the reply but I am afraid this does not solve my problem.  Your proposal make the month count of Date1 records in the fields and the count of Date2 in the month of date1 I am try to graph...In the month of Jan: 56 apps and 49 deliveriesIn the month of Feb: 76 apps and 79 deliveriesIn the month of Feb: 86 apps and 69 deliveriesThe change on date cannot be either app date or del date.  It needs to be independent from a calendar timeline. Scott 

  • How to set variant which gives date range of last month for sel.scr field

    Hi All,
    I want to set a variant which can do dynamic date calculation, need get last month period i.e when i select a variant it should always pick last month start date & end date for the period selection field. How can i achieve that. Please help me to know that.
    Thanks in advance.
    Regards
    Vishal

    I think in the date selection you can put in the calculations last month start date and end date, did you see what options you are getting in the variant? I am not in front of the system, so can't see.
    <b>I just looked up and found that you can specify the first and last day of the last month in the variant dynamic value setting.</b> When you saving the variant, select the check box for the SELECTION VARIABLE and then click the dynamic value calculation second traffic light. Then you will get drop down where you can select the values.
    Regards,
    Ravi
    Note : Please mark all the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Unable to Edit month field in iCal

    Hello all,
    I'm having a very strange problem with iCal. I can not edit the month field of any event. The field always shows "01" (no mater the month) and when I try to move the cursor to edit it, it jumps over the month field to the year. This happens for all kind of event in all calendars. I have been to an apple store and show their support team the issue but they seems to have never seen anything like that before and asked me to reinstall the OS, which I did but no chance... still the same issue. Has anyone encounter such problem before? Any idea how to handle this? It is very annoying. I'm an over 20 year Microsoft user and shifted few weeks ago to Mac ... very cool but these small things are killing me :-(! Please Help!
    Thank you in advance!
    - a.

    Ok cool, I have changed the time displayed to Military 24H in Time and Date setting ... while keeping my International region to Canada ... and iCAl still seems to be working well! Great!
    Again thank you very much! I have recently transitioned from WIN to MAC and this was making me crazy!
    - a.

  • How to Map Proces form field with Resource form field?

    Hi,
    How to Map Proces form field with Resource form field while creating Process form in Form designer

    Are you talking about Provisioning ?
    then you do that in Data Flow under Process Defintion in OIM 10g
    In OIM 11g you use Request Dataset. In that you can directly map fields to process form.

  • Exception: non-read-only mapping defined for the primary key field

    Hello.
    I'm new to Oracle and I created Java EE Web Project.
    And I created entities from tableA, tableB, tableC from my database.
    tableA has foreign key to tableB and has unidirectional Many-to-One relationship. tableC has two primary keys and one of these is foreign key to primary key in tableA. tableC also has unidirection Many-to-One relationship to tableA.
    Then I created session bean and data control from it, in design window, created read-only table from tableA.
    And I selected columns in tableA and also in tableB.
    I ran the application and saw the following exception in log window.
    Local Exception Stack:
    Exception [EclipseLink-46] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [tableC.tableA_ID].
    Descriptor: RelationalDescriptor(mypack.tableC --> [DatabaseTable(tableC)])
    tableA_ID is a primary key in tableA.
    How can I solve this error?
    Please help me.
    Edited by: 900471 on 2011. 12. 3 오전 5:32
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:34

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • Change the field attribute of a field in data source - 0CRM_SALES_ACT_1

    Hi ,
    I have a data source named 0CRM_SALES_ACT_1 in CRM system.
    The fields PLANNED_TS_FROM and PLANNED_TS_TO are hidden fields i.e. the field attribute is 'A' - Field in OLTP and BW Hidden by SAP.
    Following are my doubts:
    1. Whether the values of these fields will be extracted into BW or it will not be?
    2. How do I change the fields attribute value of these fields(its standard data source)?
    3. Is there any SAP note to do this ?
    4. If the above doesn't exisits, then should I go for a append structure to the standard data source?
    Please help me.
    Regards,
    Ahmed.

    Hi,
    U can unhide ur fields in RSA6 and then replicate the datasource in BW. These fileds will come in BW.
    You cant change the attribute value for STD DSO.
    No SAP note for the same.
    You can append the datasource with the new fields with the attribute you want and hide the std. fields then goto BW and replicate it. You can then map it with the BW fields as you want.
    *Assign points if helpful.

  • Populating data of a No Qualifier Field

    Hi All,
           I have 3-4 fields as Yes Qualifiers in my Qualified Table. I want to merge the data of these fields into a single No Qualifier field of the same table so that I can see that data in Matching Mode while merging of two records as I can not see the data of Yes qualifiers in matching mode.

    hi,
    1. in the console, in the qualified table, create one ( NO qualifier multivalued) filed.
    2. When you are importing qualified table, use partitions to concatenate required YES qualifiers, it will create one concatenated multivalued field. Those concatenated fields separated by delimeters.
    3. Map source multivalued field to the Destination No qualifier multivalued field.
    4.Do the import, and you can see the concatenated fields in the match mode, when ever you are doing merging of two records.
    hope this may help you,
    Regards
    Srinivas

  • 0VENDOR_ATTR: No data coming through for the field VBUND(trading Partner ID

    Hi Friends,
    I am working on Fi-AP line items for trading partners in BW. Trading Partner ID is a attribute of 0Vendor_attr datasource but it is not pulling the data for it. The field name is VBUND. In BW this field is mapped to 0COMAPNY. I want to use 0PCOMPANY in BW for trading Partner whi is referenced with 0COMPANY.
    Please advice why 0Vendor_attr is not pulling the data for VBUND.
    Thanks,
    SB

    Hi Rajesh,
    thank you for your answer. I am not familiar with field exits and had not thought about it.
    I found this link on the forum : http://www.sapdevelopment.co.uk/enhance/fexits.htm that gave me additionnal info on field exits.
    I will have a look on monday to see if it solves my issue, but it seems to be a very suitable solution.
    I'll reward your answer as soon as I know wether it solved my problem or was only helpful :).
    Thanks a lot.
    Regards,
    Damien.

  • While inserting numeric data into a character datatype field and vice versa

    Sir,
        I have a very basic qiestion.Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?Iam using Oracle Database 10g Enterprise edition.

    Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?
    Oracle tries an automatic conversion, when possible. Post an example of a character type data inserted into a numeric column.

  • How to creat a Data provider  based on different fields in SAP BW ?

    Hi,
    Experts,
    There are  20 fields  of  Plant Maintainace  like : 
    SWERK
    BEBER
    STORT
    TPLNR
    EQUNR
    INGRP
    QMDAT   ---peroid
    STTXT
    QMDAT  - Date of Notification
    QMNUM
    QMTXT
    QMART
    AUSVN
    AUZTV
    AUSBS
    AUZTB
    AUSZT
    ERNAM
    QMDAB
    AUFNR
    I  want to creat a  Report based upon these fields  ?
    For that I h'v  checked the relevant Fields to the   existing standard  Datasource  in Bw side   &
    Checked  cubes   created  based upon these Datasource  in Bw side !
    i h'v found  some fields are  existing different cubes & some are  missing .
    How to creat a Data provider  based on different fields in SAP BW ?
    plz suggest      !!!!!!!
    Thanx,
    Asit
    Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
    Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
    Edited by: ASIT_SAP on Jul 15, 2011 12:37 PM

    Hi Lee, Please see below..
    DECLARE @Machine2 TABLE
    DispatchDate DATE
    INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
    DECLARE @DateFrom DATE
    SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
    SELECT @DateFrom AS DateFrom
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • How can I create an index on the date part of a timestamp field?

    is there a way I can create an index on the date part of a timestamp field?

    LONGENECKER wrote:
    Idea:
    If you find no direct command that allows you to create an index on JUST the date portion of a timestamp datatype column then I recommend you consider splitting date and time into two seperate columns.
    If date is column "A" and time is column "B" then you can concatenate them using a view or virtual column (in 11G) to re-assemble them at run time.
    In the solution I describe above you might trade ease of management for better performing queries.
    Additional Info:
    This thread may be of some value.
    Can we create INDEX on TIMESTAMP column???
    And what datatype do you propose for your columns A and B? The only proper datatypes would be DATE or TIMESTAMP. Both of these inherently carry both date and time components, so that would have to be dealt with anyway. The use of any character or number datatype to hold date and/or time should be treated with an application of Billy's lead pipe.
    Perhaps function based indexes would be a better solution.

  • Exporting one specific pdf form field data to a specific webpage field

    Hello there.
    I am currently creating a form in which I need to export one specific pdf form field data to a specific webpage field to avoid typing it again or hitting ctrl+c and then ctrl+v to the webpage, as there are several records that need to be copied and pasted.
    I read that there is no access to the clipboard within pdf therefore, would like to know if there is any way to do that without accessing the clipboard.
    I am a newbie and have been learning by searching the forums and Google, therefore, would appreciate any insight on whether or not this is possible using javascript or the "submit form" funcion.
    Any help is greatly appreciated!

    Hi George, thanks for your response!
    The main issue I have is that this web page is in fact a government page in which I have to manually copy and paste information.
    I have no idea how to automate this process - I have access to the scripts on the page to see what I am able to do, but since I do not have much experience (only very basic javascripting), any other insight would be great!

  • How to compare table's date field with dropdown year field

    Hi All,
    I have one requirement to display the selected rows from a database table based on the selection of drop down.
    Here, I have one dropdown of year(like 2009,2010,....) and I have one database table which contains one field with "DATE".
    Now, I want to compare table's DATE field with my dropdown field.
    Problem is that table's DATE field is of type "DATS" and dropdown is of type INTEGER(or) STRING ...
    How to compare this fields?
    Can any one please give me solution for this...!
    Thanks in Advance!

    Hi  sreelakshmi.B,
    try the following:
    DATA lt_dats        TYPE TABLE OF dats.
    DATA l_dat_i        TYPE          i.
    DATA l_dat_c_4(4)   TYPE          c.
    DATA l_dat_c_12(12) TYPE          c.
    DATA l_dats_from    TYPE          dats.
    DATA l_dats_to      TYPE          dats.
    *Move Date from Integer to Char
    l_dat_c_4 = l_dat_i = 2005.
    *Create Date From use in WHERE-Clause
    CONCATENATE '01.01.' l_dat_c_4 INTO l_dat_c_12.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external            = l_dat_c_12
         IMPORTING
              date_internal            = l_dats_from
         EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *Create Date To use in WHERE-Clause
    CONCATENATE '31.12.' l_dat_c_4 INTO l_dat_c_12.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external            = l_dat_c_12
         IMPORTING
              date_internal            = l_dats_to
         EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
    ENDIF.
    * Select records in range
    SELECT *
           FROM [DBTAB]
           INTO TABLE [ITAB]
           WHERE [DATE] BETWEEN l_dats_from
                        AND     l_dats_to.
    Regards
    REA

  • Issue in mapping the same source and target fields

    Hi All,
    I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
    What I want to know is there any possibilty of solving this issue without installing an updated java version ?
    Regards
    Vinay P.

    I've faced the same for many times and all of that were due to Java version.
    1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
    Then, last shot should be downgrade your Java version.
    The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
    Tks.

Maybe you are looking for