Problem regarding data function 'SUMGT' (Overall Result) in BEx query desig

Hi,
I have created one query where I want to see the inventory data month wise. That's why at first I have placed 0calmonth (with variable) in column, secondly kept all the key figures which I want to see month wise under one structure, then placed the structure under 0calmonth in column. Now in that structure I have one key figure like 'total stock' and another global calculated key figure '% of total inventory' (='total stock' <b>%A</b> <b>SUMGT</b> 'total stock').
Now the problem is when ever I'm giving the value of month from 02.2006 to 05.2006, it is calculating the value of '% of total inventory' for every month with respect to the overall result of 'total stock' for month 05.2006. 
But I want to calculate the value of '% of total inventory' for each month with respect to the overall result of 'total stock' for corresponding month.
Please suggest what I'll do now.
Thanks,
Arijit.

Hi,
now i got whats the issue is.
Check aggregation properties of 'total stock'(RSD1>provide tech name of total stock>display-->aggragation tab)...
Exception aggregation would have been set to <b>'Last Value'</b> with some time char as aggregation ref characteristic..
That is the reason why  SUMGT (or %SUMGT) is calculating on Last value of the 0calmonth interval.
i.e if you provide 02.2006 to 07.2006, %of total inventory for every month would be with respect to value of 07.2006...
Hope this helps...
Dont forget to reward if it helps!
thanks
Message was edited by: Murali

Similar Messages

  • Supress the "Overall Result" in the Query

    Hi,
    Is there a way of supressing the overall result in the query? I do know that i can supress results by characteristics, but I would like to supress the results on a query level.
    Thanks

    Hi Davy,
    Select all the characteristics and supress the result for all of them.
    Regards,
    Diego

  • I can see the result column but not overall result in the query

    Hi all,
    How to display the overall result in the query, I am able to see the result value in the query and not the overall result!!
    Thanks

    Hi Pooja,
    I hope you have to check the Display property of the attribute.It should be always display.
    Regards,
    Vasanthan V

  • Problem in positioning of the Overall Result Row when using a hierarchy

    Hello All,
    i've built a query on a hierarchy and i want the 'Overall Result' to be displayed at the bottom.
    I've made the following setting in the Query Designer
    <b>Query Properties -> Display -> Results Position -> Bottom/Right</b>
    but still, the 'Overall Result' is displayed at the top of the result rows.
    Could some one please tell me if this is how the functionality is expected to work when a hierarchy is used for display ?
    We are on BW3.1 SP 9
    Best Regards,
    Sanjay<b></b>

    Hi Roberto,
    could you please let me know if the following analysis of mine is correct.
    The Overall Result will be dispalyed at the top if the 'Position of Lower-Level Nodes' is set to 'Down'(default setting) in the Hierarchy Properties of
    the characteristic. If the 'Overall Result' is required to be at the bottom then 'Position of Lower-Level Nodes' has to be set to 'Up'. It is not possible to display the Overall Result at the bottom with the 'Position of Lower-Level Nodes' set to 'Down'
    Will greatly appreciate your help !
    Best Regards,
    Sanjay

  • "Date" Shown in "Overall Result"

    Hi,
    1) When I run a report I am getting the Date and all the other KFs in the overall result where in I should see only the Amount added up and shown.
    2) When I loaded the master data and the transaction data, I could the data getting loaded multiple time(3 times) except for one master data.'
    My doubt is that whether this is an issue caused because of loading data to PSA multiple times or is it due to creating DTP multiple times whenever there is an issue in loading. How do I resolve this?
    3) I can see one Unassigned row in the end of the report.
    4) I want to see the CustID and CustName on top of the report in 2 adjacent rows and then I should be able to see all the details of that customer below. How do I do this?
    Points will surely be awarded. Kindly advise.
    Regards,
    Sam

    Hi Dash,
    Thank you for the reply.
    Let me explain the scenario.
    I have transaction data this way. Cust->Contract->Account->Date->Units->Amount
    Cust->Contract is 1:N and Contract to Account is 1:N
    and one Account will have the rest of the details as 1:1.
    Now, my first requirement is that i need to see the details of one customer(lets say a customerid 1). I assume we may have to use variables here. Please help me with his,
    My second question is, when i trid to just pull all KFs(which has Paymnt Date as a KF) to columns, and then Contract,Account in Rows and Customer in Filer,
    I get rows for all contracts with accounts and other KFs and under each KF(column) I can see the Overall result which i dont want. I want the overall result for only one KF eventhough I might have 10 KFs.
    Please validate, does it mean that all KFs used in the query will automatically show the result summed up?
    Hope I am clear with this. Pasting the last 3 rows from this query.
    1900     $ 4,129.00     3/19/2002     5,986,542.000     5/19/2003     462.000     252.000 ERR     7/19/2002     1/19/2001     352.000
    2000     $ 4,130.00     3/20/2002     5,986,543.000     5/20/2003     463.000     253.000 ERR     7/20/2002     1/20/2001     353.000
    Not assigned     $0.00          0.000          0.000     0.000               0.000
    Overall Result     $ 127,906.00     3/31/2002     185,582,709.000     5/31/2003     14,229.000     7,719.000 ERR     7/31/2002     1/31/2001     10,819.000
    Regards,
    Sam

  • Working with Result in BEx Query Designer

    Dear All,
    I have a report showing sales amount customer wise. The result is aggregated for "total" sales amount. Now I want to use that value, total result value in a formula variable for calculation. Can that be done? How can I catch that result to work on it.
    Regards,
    Jack Silverz

    HI Jack,
    The result values cannot be used in the formula variables. But it can be used in the calculated key figures using the Overall Result function.
    Hope this Helps.
    Regards.
    Shafi.

  • Problem in date functions

    Using:
    Jdev 11.1.1.5.0-adfbc
    problem description:
    problem in function not properly working
    Resource:
    this is my vo query which is based on one eo
    SELECT LegalDocDetailsEO.LDD_BE,
           LegalDocDetailsEO.LDD_UNIT,
           LegalDocDetailsEO.LDD_SUPLR_ID,
           LegalDocDetailsEO.LDD_CUST_ID,
           LegalDocDetailsEO.LDD_EMP_ID,
           LegalDocDetailsEO.LDD_DOC_ID,
           LegalDocDetailsEO.LDD_DOC_NO,
           LegalDocDetailsEO.LDD_ISSUED_AT,
           LegalDocDetailsEO.LDD_ISSUED_ON,
           LegalDocDetailsEO.LDD_VALID_FRQ,
           LegalDocDetailsEO.LDD_VALID_DUR,
    (case when LDD_VALID_FRQ='D'  then LDD_ISSUED_ON +  LDD_VALID_DUR                       //D-Date
          when LDD_VALID_FRQ='M'   then add_months(LDD_ISSUED_ON,LDD_VALID_DUR)        //M -Month  //Y-Year
          else add_months(LDD_ISSUED_ON,LDD_VALID_DUR*12)
    end ) as  LDD_EXP_ON,
           LegalDocDetailsEO.LDD_STATUS,
           LegalDocDetailsEO.LDD_SL_FLG,
           LegalDocDetailsEO.LDD_VEHICLE_ID,
           LegalDocDetailsEO.LDD_BFCRY_TYPE,
           LegalDocDetailsEO.LDD_EMPDEPNT_NO,
           LegalDocDetailsEO.LDD_ASSET_ID,
           LegalDocDetailsEO.LDD_PROD_UNIT,
           LegalDocDetailsEO.LDD_PROD_ID,
           LegalDocDetailsEO.LDD_PROD_REV,
           LegalDocDetailsEO.LDD_CRE_BY,
           LegalDocDetailsEO.LDD_CRE_DATE,
           LegalDocDetailsEO.LDD_UPD_BY,
           LegalDocDetailsEO.LDD_UPD_DATE,
           LegalDocDetailsEO.ROWID
    FROM LEGAL_DOC_DETAILS LegalDocDetailsEO
    WHERE LegalDocDetailsEO.LDD_BE = :pbuthis vo exposed as af:table
    <af:panelBox
                           binding="#{backingBeanScope.cfg0060.pb18}" id="pb18"
                           showDisclosure="false">
                <f:facet name="toolbar">
                  <af:group binding="#{backingBeanScope.cfg0060.g6}" id="g6">
                    <af:toolbar binding="#{backingBeanScope.cfg0060.t19}" id="t19">
                      <af:commandToolbarButton actionListener="#{bindings.CreateInsert13.execute}"
                                               text="Insert"
                                               disabled="#{!bindings.CreateInsert13.enabled}"
                                               binding="#{backingBeanScope.cfg0060.ctb90}"
                                               id="ctb90"/>
                      <af:commandToolbarButton
                                               text="Save"
                                               binding="#{backingBeanScope.cfg0060.ctb91}"
                                               id="ctb91"
                                               action="#{backingBeanScope.cfg0060.*ctb91_action2*}"
                                               partialTriggers="pc5:t18"/>
                      <af:commandToolbarButton text="Clear"
                                               binding="#{backingBeanScope.cfg0060.ctb92}"
                                               id="ctb92" icon="/icons/clear.png"/>
                     <af:commandToolbarButton text="Rollback"
                                               binding="#{backingBeanScope.cfg0060.ctb94}"
                                               id="ctb94"
                                             icon="/icons/rollback.png"/>
                      <af:commandToolbarButton text="Additional Details"
                                               binding="#{backingBeanScope.cfg0060.ctb95}"
                                               id="ctb95"/>
                      <af:commandToolbarButton text="Activate"
                                               binding="#{backingBeanScope.cfg0060.ctb96}"
                                               id="ctb96"
                                               icon="/icons/confirm.png"/>
                    </af:toolbar>
                  </af:group>
                </f:facet>
                <af:panelCollection binding="#{backingBeanScope.cfg0060.pc5}"
                                    id="pc5" styleClass="AFStretchWidth">
                  <f:facet name="menus"/>
                  <f:facet name="toolbar"/>
                  <f:facet name="statusbar"/>
                  <af:table value="#{bindings.LegalDocDetails1VO2.collectionModel}"
                            var="row"
                            rows="#{bindings.LegalDocDetails1VO2.rangeSize}"
                            emptyText="#{bindings.LegalDocDetails1VO2.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.LegalDocDetails1VO2.rangeSize}"
                            rowBandingInterval="0"
                            filterModel="#{bindings.LegalDocDetails1VO2Query.queryDescriptor}"
                            queryListener="#{bindings.LegalDocDetails1VO2Query.processQuery}"
                            filterVisible="true" varStatus="vs"
                            selectedRowKeys="#{bindings.LegalDocDetails1VO2.collectionModel.selectedRow}"
                            selectionListener="#{bindings.LegalDocDetails1VO2.collectionModel.makeCurrent}"
                            rowSelection="single"
                            binding="#{backingBeanScope.cfg0060.t18}" id="t18"
                            partialTriggers=":::ctb90">
                    <af:column sortProperty="LddDocId" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddDocId.label}"
                               id="c19">
                      <af:inputText value="#{row.bindings.LddDocId.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddDocId.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddDocId.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddDocId.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddDocId.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddDocId.tooltip}"
                                    id="it144">
                        <f:validator binding="#{row.bindings.LddDocId.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LdDocIdDesc" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.label}"
                               id="c22">
                      <af:inputText value="#{row.bindings.LdDocIdDesc.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.tooltip}"
                                    id="it145">
                        <f:validator binding="#{row.bindings.LdDocIdDesc.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddDocNo" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.label}"
                               id="c21">
                      <af:inputText value="#{row.bindings.LddDocNo.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.tooltip}"
                                    id="it146">
                        <f:validator binding="#{row.bindings.LddDocNo.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddIssuedAt" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.label}"
                               id="c15">
                      <af:inputText value="#{row.bindings.LddIssuedAt.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.tooltip}"
                                    id="it147">
                        <f:validator binding="#{row.bindings.LddIssuedAt.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddIssuedOn" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.label}"
                               id="c17">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.LddIssuedOn}"
                                      binding="#{backingBeanScope.cfg0060.id7}"
                                      id="id7"/>
                      </f:facet>
                      <af:inputDate value="#{row.bindings.LddIssuedOn.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.mandatory}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.tooltip}"
                                    id="id10">
                        <f:validator binding="#{row.bindings.LddIssuedOn.validator}"/>
                        <af:convertDateTime pattern="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.format}"/>
                      </af:inputDate>
                    </af:column>
                    <af:column sortProperty="LddValidFrq" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.label}"
                               id="c20">
                      <af:selectOneChoice value="#{row.bindings.LddValidFrq.inputValue}"
                                          label="#{row.bindings.LddValidFrq.label}"
                                          required="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.mandatory}"
                                          shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.tooltip}"
                                          id="soc12" autoSubmit="true">
                        <f:selectItems value="#{row.bindings.LddValidFrq.items}"
                                       id="si13"/>
                      </af:selectOneChoice>
                    </af:column>
                    <af:column sortProperty="LddValidDur" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.label}"
                               id="c18">
                      <af:inputText value="#{row.bindings.LddValidDur.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.tooltip}"
                                    id="it148" autoSubmit="true"
                                    partialTriggers="soc12">
                        <f:validator binding="#{row.bindings.LddValidDur.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.format}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddExpOn" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.label}"
                               id="c16">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.LddExpOn}"
                                      binding="#{backingBeanScope.cfg0060.id8}"
                                      id="id8"/>
                      </f:facet>
                      <af:inputDate value="#{row.bindings.LddExpOn.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.mandatory}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.tooltip}"
                                    id="id9" partialTriggers="it148">
                        <f:validator binding="#{row.bindings.LddExpOn.validator}"/>
                        <af:convertDateTime pattern="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.format}"/>
                      </af:inputDate>
                    </af:column>
                    <af:column sortProperty="LddStatus" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddStatus.label}"
                               id="c14">
                      <af:selectOneChoice value="#{row.bindings.LddStatus.inputValue}"
                                          label="#{row.bindings.LddStatus.label}"
                                          required="#{bindings.LegalDocDetails1VO2.hints.LddStatus.mandatory}"
                                          shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddStatus.tooltip}"
                                          id="soc13">
                        <f:selectItems value="#{row.bindings.LddStatus.items}"
                                       id="si12"/>
                      </af:selectOneChoice>
                    </af:column>
                  </af:table>
                </af:panelCollection>
              </af:panelBox>
        public String ctb91_action2() {
            BindingContainer bindings = getBindings();
            DCIteratorBinding dciter2;
            dciter2 = (DCIteratorBinding) bindings.get("LegalDocDetails1VO2Iterator");
            ViewObject vo2 = dciter2.getViewObject();
            vo2.clearCache();
            vo2.executeQuery();
            //dciter2.executeQuery();
            OperationBinding operationBinding = bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }this is my save button code.
    while pressing save button date,month,year increment operation takes place.
    i did like this:
    date issued : 3/10/1999
    validtiy type : months /days /years in select one choice
    validty time : 1 if i give 1 means
    date expires on : *4*/10/1999 it should be generates by pressing save button.
    by my issues:
    first time pressing button
    date expires on : *23*/10/1999 wrongly generated. each every first time default adding 10 to date. i dont have default value. why it's happening
    eventhough used clearcache. but it's not perforing correctly in first time
    by second time or third time... n tmes means
    date expires on : *4*/10/1999 it correctly generating.
    see pics.
    inputdate: 2/18/2012:
    wrongly generating : http://imageshack.us/photo/my-images/210/testttt.png/ in this pics see expires on : 2/28/2012
    correctly generating : http://imageshack.us/photo/my-images/341/testtsds.png/ in this pics see expires on : 2/20/2012
    i followed one of my thread: JDeveloper and ADF
    Edited by: subu123 on Feb 24, 2012 6:27 AM

    thank you sir. for visting my thread. i understood. how can i over come that?
    SELECT LegalDocDetailsEO.LDD_BE,
           LegalDocDetailsEO.LDD_UNIT,
           LegalDocDetailsEO.LDD_SUPLR_ID,
           LegalDocDetailsEO.LDD_CUST_ID,
           LegalDocDetailsEO.LDD_EMP_ID,
           LegalDocDetailsEO.LDD_DOC_ID,
           LegalDocDetailsEO.LDD_DOC_NO,
           LegalDocDetailsEO.LDD_ISSUED_AT,
           LegalDocDetailsEO.LDD_ISSUED_ON,
           LegalDocDetailsEO.LDD_VALID_FRQ,
           LegalDocDetailsEO.LDD_VALID_DUR,
    (case when LDD_VALID_FRQ='D'  then LDD_ISSUED_ON +  LDD_VALID_DUR                       //D-Date
          when LDD_VALID_FRQ='M'   then add_months(LDD_ISSUED_ON,LDD_VALID_DUR)        //M -Month  //Y-Year
          else add_months(LDD_ISSUED_ON,LDD_VALID_DUR*12)
    end ) as  LDD_EXP_ON,
           LegalDocDetailsEO.LDD_STATUS,
           LegalDocDetailsEO.LDD_SL_FLG,
           LegalDocDetailsEO.LDD_VEHICLE_ID,
           LegalDocDetailsEO.LDD_BFCRY_TYPE,
           LegalDocDetailsEO.LDD_EMPDEPNT_NO,
           LegalDocDetailsEO.LDD_ASSET_ID,
           LegalDocDetailsEO.LDD_PROD_UNIT,
           LegalDocDetailsEO.LDD_PROD_ID,
           LegalDocDetailsEO.LDD_PROD_REV,
           LegalDocDetailsEO.LDD_CRE_BY,
           LegalDocDetailsEO.LDD_CRE_DATE,
           LegalDocDetailsEO.LDD_UPD_BY,
           LegalDocDetailsEO.LDD_UPD_DATE,
           LegalDocDetailsEO.ROWID
    FROM LEGAL_DOC_DETAILS LegalDocDetailsEO
    WHERE LegalDocDetailsEO.LDD_BE = :pbui want to excute this vo. by pressing button. so only wrote like that.
    why am going excutes means?
    if am entering date and choosing select one choice means. by pressing button the button excutes vo and prorbably i get my output.
    is there any other way??? to attain my target..
    Edited by: subu123 on Mar 8, 2012 7:45 AM

  • Regarding Date Function

    Hi All,
    Hi i want to implement the functionality as below, if i gave the Date as Input then i have to get the Respective Timezones is it possible, if yes then can u plz produce a sample snippet of it.
    With Regards,
    Justin

    java.text.SimpleDateFormat to parse and format a date in any time zone.

  • Regarding date function module

    Hi abapers,
    We have one requirement in selection screen validation.
    From date is Day 1 of the next period(month).
    To date is Day 1 of the next period*(month) + (next) 3 months.
    which function module we can use.
    how we can pass the selection screen of this date.
    Thanks
    Nani.

    Hi
    Why we need the fun module
    Just write the code as
    select-options : s_date for sy-datum no display.
    data: date like sy-datum, fdate like sy-datum, tdate is like sy-daum, mon(2),
           mon1(2), mon2(2), year(4).
    date =  sy-datum.
    year = date+0(4).
    mon = date+4(2).
    mon1 = mon + 1.
    mon2 = mon + 3.
    concatenate year mon1 '01' into fdate.
    concatenate year mon2 '01' to tdate.
    use the fdate and tdate and write the code
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Date function giving different results for different connections

    Hi there,
    I am relatively new to BusinessObjects universe design, so please forgive me if this turns out to be a UTS (user-too-stupid) error.
    I have created two universes. They are identical apart from the fact that they connect to different data marts (a live one and a testing one).
    Within both universes there is an object with the following SQL:
    CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
    When  I use the universe using WEBI connected to one data mart, I correctly get a set of dates and a corresponding set of dates with the day set to 1 (e.g. 23 Mar 2005 and 1 Mar 2005), but I change the WEBI query to point to the other universe, it incorrectly sets the month to 1 and leaves the day alone (i.e. the above to 23 Jan 2005).
    When I run this using MS SQL Server Management Studio as part of a query against either data mart, I get the same results for both data marts:
    SELECT
      DispatchDateCalendar.date,
      CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
    FROM
      DIMVolume INNER JOIN DIMIssue ON (DIMVolume.volumeKey=DIMIssue.volumeKey)
       INNER JOIN DIMCalendar  DispatchDateCalendar ON (DIMIssue.issuePublicationDate=DispatchDateCalendar.date)
    WHERE
      DIMVolume.volumePublicationYear  =  2008
    Has anyone got any advise on how I go about finding the cause of this problem and correcting it?
    I asked our DBA who said he wouldn't know where to start looking.
    Thanks in advance,
    Paul

    Don't have any links (oracle documentation search?). Currently the databases I work with are mostly NLS_CHARACTERSET WE8MSWIN1252 and I need to ensure that '£' and other characters are displayed correctly so a few years ago (after a little googling about the difference between windows and command line tools) I put host chcp 1252 in my glogin.sql.

  • Query regarding Date Function

    All,
    Can I know the difference between the following two queries
    select TO_CHAR(TRUNC(sysdate),'dd-mon-rr') from dual;
    select TO_CHAR(TRUNC(sysdate),'dd-mon-yy') from dual;
    However, both the query gives the same result as '03-nov-09'.
    Regards
    ND

    ...of which century?
    SQL> var dt varchar2(10)
    SQL>
    SQL> begin
      2     :dt := '03-11-51';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select TO_CHAR(to_date (:dt, 'dd-mm-rr'),'dd-mon-yyyy') from dual;
    TO_CHAR(TO_DATE(:DT,
    03-nov-1951
    SQL>
    SQL> select TO_CHAR(to_date (:dt, 'dd-mm-yy'),'dd-mon-yyyy') from dual;
    TO_CHAR(TO_DATE(:DT,
    03-nov-2051Don't use a two digit year...

  • A problem regarding Date?

    hi
    I have made a  input fieldUI element of type  date.I want a error to come when user dosenot enter this field .
    I am doing it in this fashion:
    view.java
    //wdInit()
          this.intialize();
    void intialize()
      wdContext.currentcontextElement.setInputfield(new Date(0));
    //void checkMandotry(java.lang.FieldName)
            all that to generate error message.
    //onMyActionClick
    void onMyActionclick()
       Date date1=wdContext.currentelement.getAttributeValue();
    if(date1.equals(new Date(0))
         this.CheckMandotry()
    But in my application 01/01/1970 comes by default on my inputfield which i donot want?
    How to do this?
    Please help me
    regards
    Nidhideep

    Hi,
      You can use the below code to check.
    If you dont want to see anything in the input field, just dont intialize with any value in the intialize().
    Date dd = wdContext.currentContextElement().getDate1();
    if(dd == null ){
       wdComponentAPI.getMessageManager().reportSuccess("Empty");
        checkRequired();
    }else{
       wdComponentAPI.getMessageManager().reportSuccess("Not Empty");
    Regards,
    Sridhar
    Message was edited by: Sridhar kanchanapalli
    Message was edited by: Sridhar kanchanapalli

  • Re:regarding date function:urgent

    Hi,
            below is my code, i need to run monthly report, s_wadat is select-option variable, if i give 06/26/2003 i should get from month 05/01/2003 to 05/31/2003 data, my below code is working for current year only(2007 only), how to modify
        data: last_month_last_day like S_WADAT.
    last_month_last_day =  S_WADAT  .
    last_month_last_day+6(2) = '01'.
    last_month_last_day = last_month_last_day - 1.
    *write:/ last_month_last_day.
    data : date1 like S_WADAT.
    date1 = last_month_last_day .
    date1+6(2) = 01.   "set the date to first of month
    *write:/ date1.
    SELECT  LIKP~VBELN
              LIKP~WADAT_IST
              KNA1~NAME1
              LIPS~MATNR
              LIPS~CHARG
              LIPS~LFIMG
              LIPS~WERKS
              VBKD~BSTKD
                      INTO CORRESPONDING FIELDS OF TABLE ITAB
                      FROM LIKP
                      JOIN LIPS ON LIKPVBELN = LIPSVBELN
                      JOIN VBKD ON LIPSVGBEL = VBKDVBELN
                      JOIN KNA1 ON KNA1KUNNR = LIKPKUNNR
                  WHERE LIPS~LFIMG GT 0 AND
                        LIKP~KUNAG IN S_KUNAG AND
                       LIKP~WADAT_IST between date1 and last_month_last_day
                      AND   "S_WADAT-low and S_WADAT-high  AND
                       LIKP~VBELN IN S_VBELN
                  ORDER BY LIKP~WADAT_IST
                           LIKP~VBELN.

    Hi,
    The following code i used find last day of last month from sy-datum.
    May this one help you
    data: date1 like sy-datum.
    parameters: p_date like sy-datum default sy-datum.
    p_date+6(2) = 01.
    date1 = p_date - 1.
    aRs

  • Showing Keyfigures  error for result and overall result in the Query output

    Hi All,
    when executing  query results show correct figures for qty & value but with ERROR  instead of uom(Unit of Measurement) & currency;
    Can anybody help?
    Rgds,
    C.V.

    Hi There,
    Try checking that the particular UOM and currency u are reporting is loaded into BW or not.
    hope it helps,
    Regards,
    Parth.

  • Current Date in Olap Universe basead in Bex Query

    Hi All!
    I'm having some problems as the current date in the universe.
    I need the report that runs in background and a filter has the current date, I mean current month and year. The universe is based on a query Bex, and the query have a variable with the current month and year.
    I canu2019t filter int the query because it always bring the current month, and a only need that for a few reports, the others it gonna be filter by date choosen by the user.
    To resolve this I made this filter:
    <FILTER KEY="[0CALMONTH].[LEVEL01]">
    <CONDITION OPERATORCONDITION="Equal">
    <CONSTANT CAPTION ="Dec 2010"/>
    </CONDITION>
    </FILTER>
    And to my surprise it worked!
    I wonder if there is any way to make a filter with the current date dynamic?
    I tried in the constant caption : "[0CALMONTH].CurrentMember" or "[0CALMONTH].DefaultMember", but didnu2019t work, the query returns blank. Is there any way to do this? Is there any variable that the BW understand that I want the current month and year?
    Tks a lot!
    Livia

    Sorry! I didn't see that, but i already posted in the right forum.
    In the Universe.
    But it could be done with a filter in web i report also.
    Any ideas?
    Tks!
    Livia

Maybe you are looking for