Calculated member not displaying

I have a calculated member that has a case statement with many many when clauses. I have included a part of the code below. But when a member doesn't exists in the "Beginning Buildings" calculated member doesn't appear in the cube as a measure.
If I comment out the lines where the member doesn't exists then I can see the calculated member in the cube.
So on the code below if I comment out the first when clause that has [FEB Estimate] in the Edition dimension I can see the calculated member in the cube. The Edition dimension doesn't have this member anymore but since is in a CASE statement it should
not find it still display the member.
CREATE MEMBER CURRENTCUBE.[Measures].[Beginning Buildings]
AS
case
when [Dim Edition].[Editions].CurrentMember is [Dim Edition].[Editions].[Qtr].&[FEB Estimate]&[1]
then SUM([Dim Edition].[Editions].[Month].&[Year12 Actuals]&[4]&[12], [Measures].[base Buildings In Inventory])
when [Dim Edition].[Editions].CurrentMember is [Dim Edition].[Versions].[Qtr].&[Year13 Budget]&[1]
then SUM([Dim Edition].[Editions].[Month].&[Year12 Actuals]&[4]&[12], [Measures].[base Buildings In Inventory])
else
SUM([Dim Edition].[Editions].Prevmember, [Measures].[base Buildings In Inventory])
end
FORMAT_STRING
= "#,##0",
VISIBLE
= 1, DISPLAY_FOLDER = 'Building';

maybe I didn't explain it clearly but say I have this
case
when [Dim
Edition].[Editions].CurrentMember
is [Dim Edition].[Editions].[Qtr].&[FEB
Estimate]&[1]
then SUM([Dim
Edition].[Editions].[Month].&[Year12
Actuals]&[4]&[12],
[Measures].[base
Buildings In Inventory])
when [Dim
Edition].[Editions].CurrentMember
is [Dim Edition].[Versions].[Qtr].&[Year13
Budget]&[1]
then SUM([Dim
Edition].[Editions].[Month].&[Year12
Actuals]&[4]&[12],
[Measures].[base
Buildings In Inventory])
else
SUM([Dim Edition].[Editions].Prevmember,
[Measures].[base
Buildings In Inventory])
end
the calculated measure doesn't this play
but if I have this
case
when [Dim
Edition].[Editions].CurrentMember
is [Dim Edition].[Editions].[Qtr].&[FEB
Estimate]&[1]
then SUM([Dim
Edition].[Editions].[Month].&[Year12
Actuals]&[4]&[12],
[Measures].[base
Buildings In Inventory])
else
SUM([Dim Edition].[Editions].Prevmember,
[Measures].[base
Buildings In Inventory])
end
the calculated measure displays.
Why is that?
I have another cube that has the same type of case statement and it displays even though some case statements are not meet.

Similar Messages

  • Currency members not displayed on Essbase

    Environment:* EPMA version 11.1.2.1
    As part of multicurrency, we have added the two members EUR and USD in *‘Currency’* dimension to perform currency conversion and then re-deploy application. Deployment has done successful without any error. But members not displayed in Essbase as expected.
    We have setup default application currency and reporting currency as GBP.
    Currency Dimension hierarchy in EPMA (Before Deployment)_
    Local
    GBP
    EUR
    USD
    Currency and HSP_RATES hierarchy in Essbase (After Deployment)
    Currency Dimension*
    Local
    GBP
    Actual Problem:_ Missing EUR and USD member in Essbase
    HSP_Rates
    HSP_InputValue
    HSP_InputCurrency
    HSP_Rate_GBP
    HSP_Rate_EUR
    HSP_Rate_USD
    Now you can see EUR and USD member not dislayed as expected in Essbase. Can anyone help in guiding or resolving the issue?
    Thanks in Advance

    1.     Yes. Outline created, we have used the option Refresh and Full Deploy
    2.     Not having access to server. But if you particular log file then let me know the name. I will try to arrange the log file.
    3.     I have added two new member RUB and CAD. But problem remain same, these member not displayed under currency dimension. But it will displayed successfully under HSP_Rates with names ‘HSP_Rate_RUB’ and HSP_Rate_CAD’. It means functionality working fine, but not displaying member. If it won’t display then I can’t create currency conversion script.
    4.     Successfully deployed, no error messages

  • How to display a percentage sign in calculated member column?

    Hello all,
    in my report I have a calculated member column whose value is determined by follwing value formula:
      if CurrentColumnIndex - 2 = 1 then 
            If GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex) = 0 then 
            0 
            else 
            (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex)/ 
            GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex)) * 100 
        else 
            If GridValueAt(CurrentRowIndex, CurrentColumnIndex-5, CurrentSummaryIndex) = 0 then 
            0 
            else 
            (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex)/ 
            GridValueAt(CurrentRowIndex, CurrentColumnIndex-5, CurrentSummaryIndex))*100 
    Returned is a numeric value and it is being correctly displayed in calculated member column. As the value should represent percentage, I need to display a % sign after every value.
    How would I achieve this? I have seen a thread here in the discussion where approach with a formula and DisplayString function is mentioned - but there are no details how this could be achieved....
    The crosstab in question looks like this:
    Calculated Member is based on "REV_TOTAL" group column.
    I also attached the .rpt file (renamed to .txt for upload)
    Many thanks in advance,
    Marin

    Hello Raghavendra,
    thanks for the quick reply.
    Unfortunately it is not as easy at it seems - calculated member column is not showing in report designer and I can not apply the suggested approach with formatting toolbar...
    The column only shows here (right click on table ->  "Advanced Calculations" -> "Calculated Member...") and there is no possibility to format it directly:
    Any other suggestions?
    Many thanks,
    Marin

  • Why not displayed new member in dimension sap bpc?

    Good day guys
    I have the following problem:
    Add new members to a dimension but not displayed.
    example: DIMENSION(inputcurrency) added MEMBER: MXN (Mexican Pesos); when I excel interface I can not see the new member, before this process the dimension and active AppSet.
    that could be?
    Use SAP BPC 7.5 SP8

    Hi Bish,
    Without processing a dimension the data should no go to the database. If you modify the the dimension and you want those new members in report you have to process that dimension. And if you save that dimension after modification its save the members in application sever. while retrieving the data it pick up from the database layer not from application layer, So the on fly calculation are  stored in application layer( Like conversion files, Transformation files, script logics and Member formulas). So if you want the new members in report you have to process. Its by SAP design it self.
    After modification of dimension no need to logoff and login every time. In order to avoid that option we have a anothe solution that is  Activate Metadata Cache option.
    In order to use that go to EPM--> User OPtions---> Activate metadata Option
    You can clear the metadata cache. When the cache is cleared, the structure of the data source you are connected to is synchronized with the structure copied locally; which means that the members of dimensions that have been added, modified or deleted in the data source are loaded.
    For more details related to  Metadata option go to the EPM 10 Office Addin User Guide document which is available in google free of cost
    Regards,
    Saida Reddy G

  • Search for member activities - points are not displayed correctly

    Hi experts,
    I have a question concerning the search for member activities. I personalized my result list and added the field points (STRUCT.Product_ID), but there the amount of the points is always displayed as zero. When going into the details of the member activity I can see that there are points booked.
    Can anyone tell me why the points in the result list are not displayed correctly?
    Thanks and best regards
    Anne

    Sometimes threads are deleted if they violate the Rules of Engagement.  If that happens, you'll lose points that were allocated to you.  Othertimes, if you broke the rules, then it's possible that points that had been awarded could have been removed - but you should check your emails (of your registered address) to verify this.  I'd guess, it's more likely you'd responded to a post that broke the rules.
    Really important
    1. Don't reply to posts that break the rules - you risk losing any points awarded and you risk wasting your time responding (which is probably more valuable). 
    2. Don't ignore rejection emails or other communications from moderators.  They are followed up, and, if warnings are ignored, then accounts will be deleted.  Recently, one poor soul's account was deleted, and they'd accrued over a 1000 points... they'd been copy and pasting from other sites and ignored moderator warnings.
    matt

  • Groups are not displaying in the user's member of tab

    Hi ,
    We have a issue,
    After mapping any AD  group in CMC,the groups and users are displaying  in the cmc list. but when we go to the properties of the user and member of option ,the groups are not displaying .
    After restarting the CMS every thing works fine.
    Every time after adding a new user we should restart the CMS, it is very difficult for  us as number of users are working on this .
    We are using number of AD groups.
    Is there any resolution for this with out restarting the  CMS.
    Thank you  in advance.
    Environment -
    BO XI3.1,
    LDAP authentication.
    Thanks & Regards,
    Collin.

    The LDAP graph is responsible for showing the membership when viewing the user properties, an issue like this would indicate the graph is not auto updating. It normally builds when starting the CMS then every 15 minutes or so for new users (depending on system activity). It shouldn't lose any info (if it does this indicates a caching or communication problem with AD). There is a graphtimeout setting in the registry (search SAP notes) if this were disabled then it may cause similar symptoms.
    I'm not aware of any bugs in 3.1 causing this behavior so you may need to open a case with support (authentication team) to help troubleshoot.
    Regards,
    Tim

  • Hidden Sort - Order by calculation that is not displayed

    Hi,
    I want to sort by the absolute value of a column, but do NOT want to display that absolute value. Rod West mentioned a 'hidden sort' in a previous post, but I can't find any way to do it.
    Is it possible? If it matters, the column in question is a calculation itself - the sum of 2 other columns.
    The worksheet is in Discoverer Desktop 10.1.2.
    Thanks in advance,
    Dawn

    Hey Dawn.
    The concept of the crosstab is that you cannot sort on a data column as you are presenting a 3d look at the data. So unlike a table, you may be seeing records from all over the table (ie: not concurrent records, etc.) and it's therefore more difficult (well it is for me anyway).
    So, first of all, if you want it to be a xtab, then fine.
    But you mentioned that if it was a table, then you are getting several lines for each customer - one for each order or return.
    So, if using a table - which will be easier for what you want to do IMO, let's see if you can rework it for that.
    Suppose for the first column you had the customer id.
    Then for the second column you wanted to display just the month for the data.
    Then for the third column, you had the total dollar order amount for that customer for the month. So for that item, could you not just display 'total dollar amount SUM'?
    Then for the fouth column, similarly could you not just display 'final sales amount SUM'.
    Then create a calculation on the fourth column such as: ABS(final sales amount SUM). But make sure the calculation is checked off to not display it.
    Then in the SORT, could you not sort by the calculation (hidden), month (GROUP SORT) and customer id (GROUP SORT),
    Something like that should be what it sounds like you're trying to accomplish.
    Makes sense?
    Russ

  • SSAS 2012 Calculated Member in "hh:mm:ss" does not work

    I've seen a lot of posts that suggest this should work for displaying a calculated member in hours:minutes:seconds, but it doesn't in my 2012 developer environment.  I don't care that this specific code isn't accurate if the duration in seconds is over
    a day long at this point.  It seems no matter how I try to format this, the result is the same.
    [Measures].[Phase Duration Seconds] is an integer, and it doesn't seem to matter what goes in the FORMAT_STRING parameter, it comes out in SSMS, and SSDT as a decimal number.
    CREATE MEMBER CURRENTCUBE.[Measures].[Phase Duration]
     AS [Measures].[Phase Duration Seconds] / 86400, 
    FORMAT_STRING = "hh:mm:ss", 
    VISIBLE = 1  ; 
    If I write this as an MDX script, it works in SSMS, with or without the extra code to account for durations beyond a day:
    with member [Measures].[Phase Duration] as [Measures].[Phase Duration Seconds] / 86400,
         format_string = IIF([Measures].[Phase Duration Seconds] / 86400 < 1,'"0 days" hh:mm:ss','"' + cstr(int([Measures].[Phase Duration Seconds] / 86400)) + ' days" hh:mm:ss')
    select
            [Measures].[Phase Duration Seconds],
            [Measures].[Phase Duration]
       } on 0,
          [Phase].[Phase].Members
       } on 1
    from [SSASDB]
    Cheers and many thanks for any guidance,
    Simon

    After much trial and error, am I just barking up the wrong tree?  
    I just learned about the deprecation of the abilities of the browser in Analysis Services 2012, and started using Excel instead...  The original code above to create a calculated member does work in Excel.
    Cheers and thanks,
    Simon
    Cheers and thanks, Simon

  • DAX Dynamic Banding | Calculated Member based on Calculated Field

    Good morning,
    I've created a Power Pivot model that measures the blood glucose levels of clinical patients at specific times of the day. The requirement is that this metric, let's call it GlucoseLevel, is always averaged as it wouldn't make sense to sum up the values.
    To meet this first requirement, I set the "Summarize By" property of the GlucoseLevel column to "Average".
    The second requirement is to band the GlucoseLevel values so that groups of people can be measured by this band rather than by the individual measure values. I created a banding table in Excel and then imported it into the Power Pivot model. The banding table
    has three columns (BandName, MinValue and MaxValue) and has the following values:
    VERYLOW: Min Value = 0; Max Value = 3.99
    OK: Min Value = 4; Max Value = 6.99
    WARNING: Min Value = 7; Max Value = 10.99CRITICAL: Min Value = 11; Max Value = 30.00
    It is at this point where I face my challenge. I have a GlucoseLevel measure and I have a banding table. Great. The challenge is: How do I create a calculated, dynamic
    member that will look at my GlucoseLevel measure (at whatever level), do a lookup to my banding table, and then return the "BandName" column from the Banding table at that specific level? So to clarify what I mean by level: I want to be able
    to view the bandings at Year level, or a Month level, or even at a week level. Then depending on what level I am at, my measure should have a Band associated to it.
    I've tried to solve this issue in a couple of ways:
    Attempt 1
    Create a calculated column in my fact table that contains a nested IF statement to manually band my GlucoseLevel values. This works fine if I view my data at the lowest level of granularity, however
    it does not work if I start looking at my data at the day, week, month etc. levels
    Attempt 2
    1.) Create a calculated field (not a calculated column) that averages my GlucoseLevel measure. This is cool because it will average my measure at whatever level I am viewing it at. Let's call
    this field Bob...
    2.) Band my measure Bob by creating another calculated field (called PatientBand). This field uses my banding table (described earlier) in conjunction with my calculated field Bob. This works perfectly, except for one big flaw: Excel sees this banding field
    as a measure, and not as something that I can use as a column / row...
    So my question is: Can I trick Excel into viewing my PatientBand calculated field as an attribute, and not as a measure? And if not, how do I get around this challenge? Here is the DAX formula that I used to create my second calculated field "PatientBand":
    PatientBand:=CALCULATE(
        VALUES (Bandings[BandName]);
        FILTER (
            Bandings; 
            Test[Bob] >= Bandings[MinValue]
         && Test[Bob] <= Bandings[MaxValue]
    Thanks!

    So there are 2 ways that I can think of for doing that.
    1) if you are only using MDX clients like Excel or Reporting services you can create a text based measure that returns the banding name. (Note that this sort of approach does not work at the moment with PowerView as it only displays numeric measures). This
    would effectively let you show a label next to a reading as opposed to moving the reading under a given banding column.
    Banding Name :=
    CALCULATE (
        VALUES ( Bands[BandName] ),
        FILTER (
            Bands,
            [Average of GlucoseReading] >= Bands[BandMin]
                && [Average of GlucoseReading] <= Bands[BandMax]
                && NOT ( ISBLANK ( [Average of GlucoseReading] ) )
    2) This next approach will show the results exactly as you had them in your sample screenshots. It just takes a slight bending of the DAX. I'm using a SUMX here, not because I want to sum anything, but because the "X" version of SUMX basically loops over
    every row in the specified table and sums the expression in the second parameter. I have setup the second parameter so that it only returns a single value for the average if it is in the appropriate banding. 
    Banded Average:=IF (
        HASONEVALUE ( Bands[BandName] ),
        SUMX(
            'Bands',
            IF (
                NOT ( ISBLANK ( [Average of GlucoseReading] ) )
                    && [Average of GlucoseReading] >= MIN ( Bands[BandMin] )
                    && [Average of GlucoseReading] <= MIN ( Bands[BandMax] ),
                AVERAGE(Readings[GlucoseReading]),
                BLANK()
    ,AVERAGE(Readings[GlucoseReading])
    http://darren.gosbell.com - please mark correct answers

  • SSAS Cube Measures will not display for all associated dimensions in Excel client

    Dear All,
    Can you please clarify the below query to me?
    I have one Calculated Member CM1 and the expression used to calculate is:
    ([Dimension1].[HierarchyName1].CURRENTMEMBER.Prevmember,[Measures].[Amount]) associated to a Measure Group MG1.
    Dimension1 is having two Hierarchies HierarchyName1 and HierarchyName2.
    Measure CM1 is used to Calculate another calculated Member CM2 along with other Non Calculated measures and associated to the same Measure Group MG1.
    And the Measure Group MG1 is linked to other dimensions, Dimension2 and dimension3 as well.
    When I query the cube in Excel Client for the measure CM2, values appears only when the dimension Dimension1.HierarchyName1 is used to view the results.
    And values do not appear:
      When I do not use any dimensions (Only CM2 used to display in the excel)
      When I use Other dimensions linked i.e. Dimension2 and dimension3
      And Also does not display any values if the CM2 is used along with other hierarchy of same dimension1 i.e. HierarchyName2
    I don understand this concept OR Is this the concept how the tuples work in SSAS MDX?
    If a Calculated measure is created using a one of Dimension member, cannot we view that measure value along with other dimensions linked or when we do not use any dimension to view the results in excel?
    Can you please help me to understand this.
    Thanks in Advance and Regards.

    As you explained CM2 depends on CM1.
    The dependency for CM1 is "[Dimension1].[HierarchyName1].CURRENTMEMBER.Prevmember".
    So to get value for CM1 you need to bring HierarcyName1.
    So for CM2 also HierarcyName1
    has to be used only then the data will be visible. When HierarcyName1 is used you can play with
    the combinations of other dimension as well .
    http://www.bifeeds.com

  • Can not display Connection dialog.

    Hi There,
    Verry strange what happen.
    My Sqldeveloper stop working for an unknown raison.
    I could not see my connections, got stranger error When I try to create an Sql Sheet
    java.lang.NullPointerException
         at oracle.dbtools.raptor.controls.ConnectionPanelUI.listConnections(ConnectionPanelUI.java:426)
         at oracle.dbtools.raptor.controls.ConnectionPanelUI.resetConnections(ConnectionPanelUI.java:440)
         at oracle.dbtools.raptor.controls.ConnectionPanelUI.<init>(ConnectionPanelUI.java:120)
         at oracle.dbtools.raptor.controls.ConnectionPanelUI.<init>(ConnectionPanelUI.java:101)
         at oracle.dbtools.raptor.controls.ConnectionSelectorUI.<init>(ConnectionSelectorUI.java:36)
         at oracle.dbtools.raptor.controls.ConnectionSelectorUI.getConnection(ConnectionSelectorUI.java:59)
         at oracle.dbtools.raptor.controls.ConnectionSelectorUI.getConnection(ConnectionSelectorUI.java:42)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorWizard.invoke(SqlEditorWizard.java:108)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:317)
         at oracle.dbtools.sqlworksheet.sqlview.SqlEditorAddin$2.actionPerformed(SqlEditorAddin.java:248)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I have try to downlod the latest version but I am getting the same error.
    When I try to see parameters in the preference dialog, the righ pane of the preference screen it not changing when I select other options.
    I am a litle bit lost...
    This is installed on Windows Server 2008 R2. What is strange is that the problem occurs only with the administrator user and not with an other user who is also member of the administrators group.
    Many thank for your help
    Jko
    Edited by: JkoFr on 4 avr. 2010 06:24

    When I click on View > Connections, Raptor does not do anything.
    My coworker system has Windows 2000 and the same version of java. Beside that, there are so many other variables. I am not sure what to look for. Could you please give me more information on what to look for?
    When I open Raptor, it does not display Connection Tab by default.
    When I run Raptor from C:\Program Files\raptor\jdev\bin\raptor.exe, I get this output. Does it look normal?
    AWT Tree Lock Assert enabled
    java.lang.NullPointerException
    at oracle.ideimpl.docking.DockStationImpl.stateChanged(DockStationImpl.j
    ava:1854)
    at oracle.ideimpl.docking.DockStationImpl.initialize(DockStationImpl.jav
    a:258)
    at oracle.ide.IdeCore.initializeModules(IdeCore.java:1417)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1198)
    at oracle.ide.Ide.startup(Ide.java:672)
    at oracle.ideimpl.Main.start(Main.java:49)
    at oracle.ideimpl.Main.main(Main.java:25)
    Assert: Unknown Node:8: item type="PROCEDURE" reloadparent="true">
    <title>Rename</title>
    <prompt><label>New_Procedure_Name</label></prompt>
    <sql><![CDATA[rename "#OBJECT_NAME#" to #0#]]></sql>
    <help>Renames the selected procedure.</help>
    <confirmation>
    <title>Confirmation</title>
    <prompt>Procedure "#OBJECT_NAME#" has been renamed to #0#</prompt>
    </confirmation>
    </item
    Initializing.. [email protected]
    Assert: SQLView inited
    Thank for all your help.

  • ALV grid is not displaying few fields of final internal table of type DMBTR

    hello frnds,
    i am displaying 10 fields in ALV grid using field catalog.
    among them five fields are currency fields on which i doing some arithematic operations. but all these fields are not getting displayed in alv grid.
    here is my code....
    declaring final strucutre to generate report
    TYPES:BEGIN OF ty_final,
              gjahr   TYPE gjahr,       " Year
              wwert   TYPE wwert_d,     " Traslation date
              bukrs   TYPE bukrs,       " company code
              hkont   TYPE hkont,       " General ledger account
              txt20   TYPE txt20_skat,  " Account name
              belnr   TYPE belnr_d,     " Purchase order number
              shkzg   TYPE shkzg,       " Dt/Cr indicator
              dmbtr1   TYPE dmbtr,       " Ammount in local currency
              v_alc   TYPE dmbtr,       " Ammount in local currency
              wrbtr   TYPE wrbtr,       " Ammount in foreign currency
              ebeln   TYPE ebeln,       " Purchase order number
              ebelp   TYPE ebelp,       " Item number
              matnr   TYPE matnr,       " Material number
              menge   TYPE menge_d,     " Qunatity
              meins   TYPE meins,       " Unit of measure
              stprs   TYPE stprs,       " Std material master
              v_iv    TYPE dmbtr,       " Invoice value
              pswsl   TYPE pswsl,       " Currency
              v_erc   TYPE dmbtr,       " Exchange rate calculated
              v_op    TYPE dmbtr,       " Order price
              v_uos   TYPE dmbtr,       " Unit order to stock
              v_io    TYPE dmbtr,       " Invoice to order
              v_uv    TYPE dmbtr,       " Unit value
              v_t     TYPE dmbtr,       " Total
              v_d     TYPE dmbtr,       " Differecne
              netpr   TYPE bprei,       " Net price in purchasing document
              v_total TYPE dmbtr,       " Total
              v_os    TYPE dmbtr,       " Order to stock
              v_ito   TYPE dmbtr,       " Invoice to order
              saknr   TYPE saknr,       " G/L account number
           END OF ty_final.
    FORM move_data.
      IF NOT i_bseg[] IS INITIAL.
        LOOP AT i_bseg INTO wa_bseg.
          wa_final-gjahr  = wa_bseg-gjahr.
          wa_final-bukrs  = wa_bseg-bukrs.
          wa_final-hkont  = wa_bseg-hkont.
          wa_final-belnr  = wa_bseg-belnr.
          wa_final-shkzg  = wa_bseg-shkzg.
          wa_final-wrbtr  = wa_bseg-wrbtr.
          wa_final-ebeln  = wa_bseg-ebeln.
          wa_final-ebelp  = wa_bseg-ebelp.
          wa_final-matnr  = wa_bseg-matnr.
          wa_final-menge  = wa_bseg-menge.
          wa_final-meins  = wa_bseg-meins.
          wa_final-pswsl  = wa_bseg-pswsl.
          wa_final-dmbtr1  = wa_bseg-dmbtr.
          wa_final-saknr  = wa_bseg-saknr.
          wa_final-v_total = wa_bseg-dmbtr.
          READ TABLE i_bkpf INTO wa_bkpf WITH KEY bukrs = wa_bseg-bukrs.
          IF sy-subrc = 0.
            wa_final-wwert = wa_bkpf-wwert.
          ENDIF.
         CLEAR wa_bkpf.
          READ TABLE i_mbew INTO wa_mbew WITH KEY matnr = wa_bseg-matnr.
          IF sy-subrc = 0.
            wa_final-stprs = wa_mbew-stprs.
          ENDIF.
         CLEAR wa_mbew.
          READ TABLE i_ekpo INTO wa_ekpo WITH KEY ebeln = wa_bseg-ebeln.
          IF sy-subrc = 0.
            wa_final-netpr = wa_ekpo-netpr.
          ENDIF.
         CLEAR wa_ekpo.
          READ TABLE i_skat INTO wa_skat WITH KEY saknr = wa_bseg-saknr.
          IF sy-subrc = 0.
            wa_final-txt20 = wa_skat-txt20.
          ENDIF.
    calculating output values
          IF wa_bseg-shkzg = 'H'.
            wa_final-v_alc = -1 * wa_bseg-dmbtr.
          ELSEIF wa_bseg-shkzg = 'S'.
            wa_final-v_alc = 1 * wa_bseg-dmbtr.
          ENDIF.
         DATA : l_c_v_alc TYPE p DECIMALS 2,
         l_c_v_iv TYPE p DECIMALS 2.
         l_c_v_alc = wa_final-v_alc.
          IF wa_bseg-menge NE 0.
            wa_final-v_iv = wa_bseg-dmbtr / wa_bseg-menge.
          ENDIF.
          IF wa_bseg-dmbtr NE 0.
            wa_final-v_erc  = wa_bseg-wrbtr   / wa_final-dmbtr1.
          ENDIF.
          IF wa_final-v_erc NE 0.
            wa_final-v_op   = wa_ekpo-netpr   / wa_final-v_erc.
          ENDIF.
          wa_final-v_uos  = wa_mbew-stprs   - wa_final-v_op.
          wa_final-v_io   = wa_final-v_iv   + wa_final-v_uos.
          wa_final-v_uv   = wa_final-v_uos  + wa_final-v_io.
          wa_final-v_t    = wa_final-v_uv   + wa_bseg-menge.
          wa_final-v_d    = wa_final-v_t    - wa_final-v_alc.
          wa_final-v_os   = wa_final-v_uos  * wa_bseg-menge.
          wa_final-v_ito  = wa_final-v_io   * wa_bseg-menge.
          CLEAR wa_bseg.
          APPEND wa_final TO i_final.
          CLEAR wa_final.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "data_retrieval
    *&      Form  build_fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM build_fieldcat.
      CLEAR wa_fieldcat.
    *  TYPES : v_alc TYPE dmbtr. "curr. " decimal 2.
    DATA: l_c_v_alc TYPE p DECIMALS 2,
    l_c_v_iv TYPE p DECIMALS 2 .
    l_c_v_alc = v_alc.
    l_c_v_iv = v_iv.
    Constant Declarations.
      CONSTANTS:
                l_c_gjahr(5)   TYPE c VALUE 'GJAHR',      " Year
                l_c_wwert(5)   TYPE c VALUE 'WWERT',      " Traslation date
                l_c_bukrs(5)   TYPE c VALUE 'BUKRS',      " company code
                l_c_hkont(5)   TYPE c VALUE 'HKONT',      " General ledger account
                l_c_txt20(10)  TYPE c VALUE 'TXT20',      " Account name
                l_c_belnr(5)   TYPE c VALUE 'BELNR',      " Doc number
                l_c_shkzg(5)   TYPE c VALUE 'SHKZG',      " Dt/Cr indicator
                l_c_dmbtr(5)   TYPE c VALUE 'DMBTR1',      " Ammount in local currency
               " l_c_v_alc      TYPE c VALUE 'V_ALC',      " Ammount in local currency
                l_c_wrbtr(5)   TYPE c VALUE 'WRBTR',      " Ammount in foreign currency
                l_c_ebeln(5)   TYPE c VALUE 'EBELN',      " Purchase order number
                l_c_ebelp(5)   TYPE c VALUE 'EBELP',      " Item number
                l_c_matnr(5)   TYPE c VALUE 'MATNR',      " Material number
                l_c_menge(7)   TYPE c VALUE 'MENGE',      " Qunatity
                l_c_meins(5)   TYPE c VALUE 'MEINS',      " Unit of measure
                l_c_stprs(5)   TYPE c VALUE 'STPRS',      " Std material master
               " l_c_v_iv(4)    TYPE c VALUE 'V_IV',           " Invoice value
                l_c_pswsl(5)   TYPE c VALUE 'PSWSL',      " Currency
                l_c_v_erc(5)   TYPE c VALUE 'V_ERC',      " Exchange rate calculated
                l_c_v_op(4)    TYPE c VALUE 'V_OP',       " Order price
                l_c_v_uos(5)   TYPE c VALUE 'V_UOS',      " Unit order to stock
                l_c_v_io(4)    TYPE c VALUE 'V_IO',       " Invoice to order
                l_c_v_uv(4)    TYPE c VALUE 'V_UV',       " Unit value
                l_c_v_t(3)     TYPE c VALUE 'V_T',        " Total
                l_c_v_d(3)     TYPE c VALUE 'V_D',        " Differecne
                l_c_netpr(5)   TYPE c VALUE 'NETPR',      " Net price in purchasing document
                l_c_v_total(7) TYPE c VALUE 'V_TOTAL',    " Total
                l_c_v_os(4)    TYPE c VALUE 'V_OS',      " Order to stock
                l_c_v_ito(5)   TYPE c VALUE 'V_ITO',      " Invoice to order
                l_c_saknr(5)   TYPE c VALUE 'SAKNR',      " G/L account number
                l_c_i_final(7) TYPE c VALUE 'I_FINAL'.    " Final internal table
    Fieldcat for fiscal year
      wa_fieldcat-col_pos   =  1.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_gjahr.
      wa_fieldcat-seltext_m = text-007.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Translation date
      wa_fieldcat-col_pos   =  2.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_wwert.
      wa_fieldcat-seltext_m = text-008.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Company code
      wa_fieldcat-col_pos   =  3.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_bukrs.
      wa_fieldcat-seltext_m = text-009.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for General ledger account
      wa_fieldcat-col_pos   =  4.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_hkont.
      wa_fieldcat-seltext_m = text-010.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Account name
      wa_fieldcat-col_pos   =  5.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_txt20.
      wa_fieldcat-seltext_m = text-011.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Doc number
      wa_fieldcat-col_pos   =  6.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_belnr.
      wa_fieldcat-seltext_m = text-012.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Dt/Cr indicator
      wa_fieldcat-col_pos   =  7.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_shkzg.
      wa_fieldcat-seltext_m = text-013.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Ammount in local currency
      wa_fieldcat-col_pos   =  8.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = 'DMBTR1'.
      wa_fieldcat-seltext_m = text-014.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Ammount in local currency
      wa_fieldcat-col_pos   =  9.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = 'V_ALC'.
      wa_fieldcat-seltext_m = text-015.
      wa_fieldcat-ref_fieldname = 'DMBTR'.
    wa_fieldcat-no_sign   = 'X'.
    wa_fieldcat-do_sum    =  c_x.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Ammount in foreign currency
      wa_fieldcat-col_pos   =  10.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_wrbtr.
      wa_fieldcat-seltext_m = text-016.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Purchse order number
      wa_fieldcat-col_pos   =  11.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_ebeln.
      wa_fieldcat-seltext_m = text-017.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Item No
      wa_fieldcat-col_pos   =  12.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_ebelp.
      wa_fieldcat-seltext_m = text-018.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Material number
      wa_fieldcat-col_pos   =  13.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_matnr.
      wa_fieldcat-seltext_m = text-019.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Qunatity
      wa_fieldcat-col_pos   =  14.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_menge.
      wa_fieldcat-seltext_m = text-020.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Unit of measure
      wa_fieldcat-col_pos   =  15.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_meins.
      wa_fieldcat-seltext_m = text-021.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Std material master
      wa_fieldcat-col_pos   =  16.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_stprs.
      wa_fieldcat-seltext_m = text-022.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Invoice value,
      wa_fieldcat-col_pos   =  17.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = 'V_IV'.
      wa_fieldcat-seltext_m = text-023.
      wa_fieldcat-ref_fieldname = 'DMBTR'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Currency
      wa_fieldcat-col_pos   =  18.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_pswsl.
      wa_fieldcat-seltext_m = text-024.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Exchange rate calculated
      wa_fieldcat-col_pos   =  19.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = 'V_ERC'.
      wa_fieldcat-seltext_m = text-025.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Order price
      wa_fieldcat-col_pos   =  20.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_op.
      wa_fieldcat-seltext_m = text-026.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Unit order to stock
      wa_fieldcat-col_pos   =  21.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_uos.
      wa_fieldcat-seltext_m = text-027.
      wa_fieldcat-do_sum    = c_x.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Invoice to order
      wa_fieldcat-col_pos   =  22.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_io.
      wa_fieldcat-seltext_m = text-028.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Unit value
      wa_fieldcat-col_pos   =  23.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_uv.
      wa_fieldcat-seltext_m = text-029.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Total
      wa_fieldcat-col_pos   =  24.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_t.
      wa_fieldcat-seltext_m = text-030.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Difference
      wa_fieldcat-col_pos   =  25.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_d.
      wa_fieldcat-seltext_m = text-031.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Net Price in Purchasing Document
      wa_fieldcat-col_pos   =  26.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_netpr.
      wa_fieldcat-seltext_m = text-032.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Total
      wa_fieldcat-col_pos   =  27.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_total.
      wa_fieldcat-seltext_m = text-033.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Order to stock
      wa_fieldcat-col_pos   =  28.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_os.
      wa_fieldcat-seltext_m = text-034.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Fieldcat for Invoice to order
      wa_fieldcat-col_pos   =  29.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_v_ito.
      wa_fieldcat-seltext_m = text-035.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    fieldcat for invoice to order
      wa_fieldcat-col_pos   =  30.
      wa_fieldcat-tabname   = l_c_i_final.
      wa_fieldcat-fieldname = l_c_saknr.
      wa_fieldcat-seltext_m = text-035.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM.                    "build_fieldcat

    Hi romanch,
    defining the field catalog you must reference all currency fields to the respective currency key field (type CUKY).
    <alv_fieldcat>-cfieldname         = 'HWAER'.
    This is sample for alv output of a currency field. The alv structure has a field HWAER which carries the currency key, e.g. USD or so.
    Obviously you do not provide a cutrrency key for your values. If they are initial (zero), ALV will not display them as 0,00 but leave the field empty if the reference too currency key is not established.
    If you define a DDIC structure for the ALV output this refernce is enforced. You can pass the DDIC structure name to the ALV and don not have to create the field catalog manually.
    Regards,
    Clemens

  • Recordings on DVR Expander not displaying

    I have 2 FIOS DVR expanders that are connected to my FIOS DVR. The DVR model number QIP 7232 2.  The expanders are the approved ones form Western Digital.  I connect one of the DVR expanders at a time through the eSATA cable, and I disconnect and connect them using the DVR menus, so I just don't pull out cables without using the menu.
    The last time I re-connected my DVR expander #1 the names of the shows are not coming up in the menu even though the main DVR knows there is an expander connected.  DVR #2 works just fine.   I have checked all cables, rebooted the main DVR, and reinstalled both expanders many times.  #1 continues to not display the shows, #2 is just fine.
    Short of re-formatting #1, would anyone have a solution?
    Thanks!

    This issue actually has nothing to do with the 1.9a update to the guide interface.
    I have had the F1 event trio set up for a long time now  (and had 1.9 since last year as a beta tester) and they also did not schedule.  The culprit is Verizon's crappy guide data provider.  None of this past weekend's F1 live events (for the Indian Grand Prix) on Speed were marked as NEW so the series manager ignored them (I have it set for new, any time, and selected channel so I don't pick up the re-broadcasts).
    I don't know when Verizon is gloing to learn that a DVR is worthless if the guide data is wrong - this guide data issue is a persistent one that Verizon seems unwilling to correct.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • TDS line items are not Display in FB60

    Hi Experts,
    when in simulate a document in  T code- FB60. the TDS amount is calculated properly . DR , Cr is ok but the Line item of the TDS is not displayed.  when i post the document and open in FB03 all line items are dispalyed with TDS Line items also.. Proper Tax code of payment and invoice is attached.
    why not shown in FB60 when simulating a document??

    Hi
    If in FB60 you want to simulate tax items also, click on simulate from menu, you will be able to see the required details. If you click on simulate icon, it will not be visible.
    Regards
    Sanil Bhandari
    <a href="http://www.vcq.biz/">nature wallpapers</a>, <a href="http://www.utorrent.name/">utorrent</a>f in FB60

  • Excise tab is not displaying in migo

    Hi,
    for one material, purchase order has done. when i am going to do migo against purchase order, the excise invoice & excise items tab is not displaying.
    note:- for all other materials(purchase order), excise tab is displaying.
    could you please solve this problem.
    thanks/regards
    vish

    Hi,
    Check the problem with repect to the material,
    Check if the Tax % is assigned properly for the combination of tht material. check J1ID,
    Is in the PO the excise amount calculated? Check the condition records?
    Thanks & Regards
    Kiran

Maybe you are looking for

  • Advise On External Hard Drive

    I need to upgrade my external hard drive to 4TB.  Any suggestions?

  • Asset Accounting - ASKBN

    Hi, I Have a problem with Tcode ASKBN. We suspect that the error was caused a late correction journal in February on foreclosed sales, which after backdated posting and we FORGET to repeat run ASKBN. On March  we execute ASKBN with test run Clicked a

  • How do I install widgets from the dashboard onto the desktop?

    I would like to be able to add a few widgets from the Dashboard to my desktop, but I cant do it. I have gone to the terminal, antered the command sudo defaults write com.apple.dashboard devmode YES then killall Dock clicked on a widget clicked on F12

  • Change column headings

    I am using BC4J objects with the uiXML interface and need to know how do you change the column heading. I found one place where you can <bc4j:sortableHeader text = "new name"/> but what I really want is to use the control hints on my BC4J object. how

  • I just need some drivers, READ

    I have an Audigy 2 ZS and I have a Athlon 64 3200+, so I got the BETA Microsoft XP x86 Professinal, which is 64 bit, Im sure you have heard this before. So blah blah blah blah..... I want a link to some drivers that will work with this system... and