How to use dimension property in REC statement?

Hi,
In dimension ACCOUNT I have created additional property ZACC where I store "alternative" account numbers.
After I load actuals from BW to "regular" accounts I want to copy values to "alternative" accounts.
Regular accounts are hierarchy nodes and alternative are base members.
ACCOUNT dim values looks like that:
ID     ZACC
A1     A.1
A2     A.2
A.1
A.2
etc.
I wrote code below for that but when I validate I get message:
UJK_VALIDATION_EXCEPTION:Invalid dimension "ACCOUNT].[ZACC" in model ZXC
*XDIM_MEMBERSET TIME=2012.01
*XDIM_MEMBERSET ZKEYFIGURE=ZBALANCE
*SELECT(%ACC%,"[ID]",ACCOUNT,"[ZACC]<>' '")
*FOR %AC%=%ACC%
*WHEN ACCOUNT
*IS BAS(%AC%)
*REC(ACCOUNT=[ACCOUNT].[ZACC])
*ENDWHEN
*NEXT
Can you suggest me how to fix my code?
Thanks,
Andrzej
Message was edited by: A Ksik

Hi Andzej,
I will try to explain in details. If we are talking about target member override in REC like:
*REC(EXPRESSION=%VALUE%,SOMEDIM=TARGETMEMBER,...)
TARGETMEMBER can be:
1. Some fixed single member
2. Variable like %VAR%, but this %VAR% will get the value from FOR/NEXT loop (simply duplicating lines of code).
Something like:
*WHEN SOMEDIM
*FOR %VAR%=MEM1,MEM2,MEM3 //lines between FOR and NEXT are duplicated
*IS %VAR%
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIX%VAR%SUFFIX)
*NEXT
*ENDWHEN
Where PREFIX%VAR%SUFFIX - is the target containing fixed prefix or suffix and contents of %VAR%
The result of code processing this code will be evaluated to:
*WHEN SOMEDIM
*IS MEM1
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM1SUFFIX)
*ENDWHEN
*WHEN SOMEDIM
*IS MEM2
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM2SUFFIX)
*ENDWHEN
*WHEN SOMEDIM
*IS MEM3
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM3SUFFIX)
*ENDWHEN
This code is VERY slow and ineffective!
In you case the code can be:
*FOR %AC%=%ACC% //list of nodes
//or *XDIM_MEMBERSET ACCOUNT=BAS(%AC%)
*WHEN ACCOUNT
*IS BAS(%AC%) //or * if XDIM
*REC(EXPRESSION=%VALUE%,ACCOUNT="PREFIX%AC%")
*ENDWHEN
*NEXT
but you will need special coding for target to support PREFIX
3. Member property containing correct member ID, like
SOMEDIM.SOMEPROPERTY
In this case the member property of the current record of WHEN/ENDWHEN loop will be used as a target.
Hope it's clear!
B.R. Vadim

Similar Messages

  • How to use the property-loader?

    Hello,
    i´m using TS 3.5 and LV 8.0. Now i also want to use the built-in property-loader from Teststand.
    Is there somewhere a documentation for "beginners" how to use this property-loader? At the end i want to read parameters from an ascii-file which updates my input-parameters of the steps in the current-sequence.
    I know how to read and change parameters from teststand in labview via active-x, but i have no idea how to use this propertyloader-thing.
    Is there an easy help file somewhere in the net ( I havent found one yet)?
    Thanks for your help.

    Meanwhile i can use the propertyloader for Limits and Variables which are in a container of the teststep. What not worked was:
    1.) setting the properties of a "Messagebox". For example the property "Button1Label". Why is this not working?
    2.) The second thing what is not clear: Do i need for each sequence an own property-loader? I tested it with a sequence with one subsequence. Does the subsequence needs its own property-loader?
    Currently the import-csv-file looks like this:
    Start Marker,,,
    <Step Name>,Limits.Low,Limits.High,Cont.Voltage
    TestStep_1,1,2,4
    TestStep_2,8,16,32
    End Marker,,,
    When Teststep_1 and Teststep_2 are both in mainsequence then it works. When i copy Teststep_2 in a subsequence then i get an error (-18).
    Any ideas about my two questions?
    Thanks

  • How to Use Dimension Operator

    Hi
    I'm trying to implement SCD Type 2. I have done so using conventional methods.
    I have read in some blogs that dimension operator can be used for SCD. Can any one provide me material on how to use Dimension Operator. I tried OWB User guide. But its not useful.
    I have seen that we need to create levels. But i dont need levels.
    Can somebody please tell me how to use it.
    Regards
    Vibhuti

    Hi Vibhuti,
    using dimensions with OWB 10g R2 isn't that difficult. You just create a number of attributes like an ID, a business key and probably a description and then associate each of the attributes with a level. You need at least one level that all the attributes are associated to. Then you can use the slowly changing dimension wizard (SCD) to track changes. In the SCD settings you can determin for which attribute you want to trigger history and which attributes contain your effective date and your end date (if you want to use SCD type II). Obviously you would need two additional attributes in every level for that purpose.
    Regards,
    Jörg

  • Concatenate property with two other dimension values in REC statement

    Greetings,
    I am attempting to concatenate a member property with two member values to create a this dimension member ID in a REC statement, as in the example:
                      *REC(FACTOR=1, COSTCENTER = PROFITCENTER.PCID + %DEPARTMENT% + %COMPANY%)
    So the COSTCENTER member is the concatenation of the PCID property of the current PROFTCENTER member and the ID of the current DEPARTMENT member and the ID of the current COMPANY member.
    I appreciate your help.
    Regards,
    Craig
    P.S. This syntax works fine in the Microsoft version
    Edited by: Craig Tennant on Oct 27, 2010 9:58 AM

    Gersh,
    I have tried:
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID %DEPARTMENT%) //PROFITCENTER has brackets around it and there is a space between the two.
    When I validate and save it tells me "Attribute PCID%DEPARTMENT% does not exist in dimension PROFITCENTER"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID_%DEPARTMENT%) //PROFITCENTER has brackets and there is an underscore between the two.
    When I valiudate and save it tells me "Attribute PCID_%DEPARTMENT% does not exist in dimension PROFITCENTER"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID [DEPARTMENT].ID) //PROFITCENTER and DEPARTMENT have brackets around them and there is a space between the two.
    When I validate and save it tells me "Member [PROFTCENTER].PCID[ does not exist"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID_[DEPARTMENT].ID) //PROFITCENTER and DEPARTMENT have brackets around them and there is an underscore between the two.
    When I validate and save it tells me "Member [PROFTCENTER].PCID[_ does not exist"
    Again I appreciate your help and insight
    Cheers,
    Craig

  • Using properties in a *REC statement

    Hi
    I want to copy the result of a cost center allocation from the source cost center profit center to the destination cost center profit center.  We use a property on the cost center dimension to define the profit center of the cost center.
    I first use *RUN ALLOCATION to generate the cost center allocation results but I then need to copy the results to the right profit center.  I have written the following code to do this which validates successfully:
    *WHEN ACCOUNT
    *IS A10000
      *REC(PROFITCENTER=COSTCENTER.PROFITCENTER)
    *ENDWHEN
    However when I run it I receive the following error message:
    'RUN_LOGIC Property value not found'
    Does anybody know whether it is possible to use properties in *REC statements and if so how I should write the logic?
    Kind Regards
    Wayne

    Hi,
    Try following code. However you should be sure that all the profitcenter property members of costcenter exist in profitcenter dimension members. For example if you have a member of costcenter like na_cc and if property profitcenter of this member is blank, this code doesnt work. So you have to add a XDIM_MEMBERSET.
    XDIM_MEMBERSET COSTCENTER <,> NA_CC or
    XDIM_MEMBERSET COSTCENTER = BAS(CC)
    *WHEN ACCOUNT
    *IS A10000
    *REC(FACTOR=1, PROFITCENTER=COSTCENTER.PROFITCENTER)
    *ENDWHEN
    Hope this helps.

  • BPC : Using Dimension Property in Formula of a Conversion File

    Hi,
    I want to export data using Package Export from Fact Table. I have transformation and conversion files.
    I want to use the property of a dimension in Formula Column of a Conversion file.
    I want to lookup the property and based on property I want to either skip record or have internal value.
    I am looking for something like follows..
    =iif([%external%].TYPE = WBS,*SKIP,D2113)
    So if my Dimension 's TYPE property is WBS , I would like to skip that record else I want the value from fourth column.
    I am running the Export from Fact Table with various combinations in formula column , but it is only returning null in the export file.
    Please let me know how I can make this work.
    Thanks,
    Sanjay

    Sadi,
    You can write if Statement in transformation not conversion.
    Look at this docs,
    How to Import Master Data and Hierarchies into SAP BusinessObjects BPC 7.5 from SAP NetWeaver BW
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c02d0b47-3e54-2d10-0eb7-d722b633b72e?QuickLink=index&…
    Thanks

  • How to use where clause with get statement in LDB programs

    Hi All,
    I am using logical databse in my report program.I am not getting how to use the where clause in the get statement is it possible to use?or if not possible only option is we should filter it after get statment is right?Can you please some body throw some idea on this?
    Regards
    Mahesh

    Hi,
    Reffer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    reward if helpful
    Thanks,
    Suma.

  • Delete adjacent duplicates how to use in the below select statement

    hi i have a problem
    i am suing the below select statement
    SELECT    a~extno
              a~guid_lclic       " for next select
              e~ctsim
              e~ctsex
    *revised spec 3rd
              f~guid_pobj
              f~amnt_flt
              f~amcur
              f~guid_mobj
              e~srvll     "pk
              e~ctsty     "PK
              e~lgreg  "PK
      INTO TABLE gt_sagmeld
      FROM /SAPSLL/LCLIC  as a
      INNER JOIN /sapsll/tlegsv as e on elgreg = algreg
      inner join /sapsll/legcon as f on fguid_lclic = aguid_lclic   " for ccngn1 selection
      inner join /sapsll/corcts as g on gguid_pobj = fguid_pobj
                               where   a~extno in s_extno.
      sort gt_sagmeld by guid_lclic lgreg ctsty srvll GUID_POBJ GUID_MOBJ.
      delete adjacent duplicates from gt_sagmeld comparing guid_lclic lgreg ctsty srvll GUID_POBJ GUID_MOBJ .
    now i am confused how to use delete adjacent dupliacate and on which fields
    as first table /sal../lclic primary key is guid_lclic
    and it is joined to table
    legcon by guid_lclci ( not a primary key here)
    legcon primary key is guid_legcon
    and table 3 legsv by lgreg (pk here)
    table 3 has tow more primary key srvll and ctsty also
    NOW MY QUESTIO IS TAHT IS I USE ABOVE DELETE ADJACENT STATMENT IT FETCHES 20 LAKH RECORDS
    I WANT TO REDUCE IS LET ME KNOW ON WHAT fields i need to use delete adjacen duplicates
    or use comparing all fields?
    regards
    Arora

    hi sudha
    if u see my select statement is contains four Primary keys
    srvll
    lgreg
    ctsty
    guid_lclic
    but the next table connected to this table legcon is by guid_pobj and anothe table by guid_mobj
    and if i take this gt_sagmeld to another temp table and i find abt 10 lakh uniques guid_pobj
    similary 6 lakh guid_mobj so the next slect is hanpering because of this
    not COMING TO OUR POINT IF I SORT ONLY BY OUR PRIMARY KEYS NOT TAKING INTO ACCOUNT TEH GUID_POBJ AND GUID_MOBJ
    THE ENTRIES ARE VERY LESS BUT IF I TAKE INOT ACCCOUNT IN GT_SAGMELD THE ENTRIES ARE ABT 20 LAKH
    SO I AM NOT SURE WHETHER TO TAKNE GUID_POBJ AND GUID_MOBJ INOT ACCOUNT FOR DELECTING ADJACENT DUPLICATES?
    HENCE THE QUESTION OF ON WHICH FIRLD DELETE OR COMPARING ALL FIELDS I USE?

  • How to use escape character in update statement.

    Hi All,
    I'm trying to update table using following sql update statement, but everytime it's asking me for the input due to the '&' value in below sql.
    UPDATE xyz_xyz
       SET NAME = 'ABC & PQR'
    WHERE ID = (SELECT ID
                   FROM abc_abc
                  WHERE NAME = 'C & PQR');Please let me know how to use escape character syntax or let me know if there is any alternative solution.
    Thanks,
    Vishwas

    Hi,
    By default, & marks a substitution variable name.
    If you're not using substitution variables in that statement (or, if this is in PL/SQL, in that entire package or procedure) then the easiest thing to do is just diable substitution variables; then & will be a normal character:
    SELECT  DEFINE  OFF
    UPDATE xyz_xyz
       SET NAME = 'ABC & PQR'
    WHERE ID = (SELECT ID
                   FROM abc_abc
                  WHERE NAME = 'C & PQR');
    SET  DEFINE  ONIf you can't do that, then & is always taken literally if it comes right before a single-quote, so you could say:
    UPDATE xyz_xyz
       SET NAME = 'ABC &' || ' PQR'
    WHERE ID = (SELECT ID
                   FROM abc_abc
                  WHERE NAME = 'C &' || ' PQR');There is a SQL*Plus "SET ESCAPE" command, too, but if you use it, you have to worry about whether the escape character is to be taken literally or not.
    SET   ESCAPE  \Yet another alternative is to make some other character, such as ~, mark the substitution variables:
    SET  DEFINE  ~Read all about them in the SQL*Plus manual.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch2.htm#sthref103

  • How to use postback property for JSF to reneder a popup only once

    Hi All,
    I'm using java script function to show a JSF page as popup. I have called the javascript function on page load of another JSF page.
    How do i make sure that the popup is getting rendered only once and not everytime the page is getting refreshed .
    Can i use postback property in JSF page for this purpose ?
    Thanks in Advance.

    try postback..
            Boolean postBackValue = (Boolean)resolveExpression("#{adfFacesContext.postback}");
            Boolean defaultBooleanValue = new Boolean("false");
            if (postBackValue.equals(defaultBooleanValue)) {
      public static Object resolveExpression(String expression) {
        FacesContext ctx = FacesContext.getCurrentInstance();
        Application app = ctx.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = ctx.getELContext();
        ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
        return valueExp.getValue(elContext);
      }

  • Row Axis using dimension property

    Dear All,
    I have a property on the Currency dimension, say "R_Acct", that identifies the R_Account ID each Currency memebr should post into. For example:
    R_account:
    ID  Desc
    UK UK Inflation
    US Us Inflation
    Eur Euro Inflation
    Currency:
    ID Desc  R_acct
    GBP Pound Sterling UK
    USD US dollar US
    Euro Euro CUrrency Eur
    My requirement is to build an input sheet with the R_account and Currency dimensions expanded on the row axis. However, i want to fetch the corresponding R_acct for each currency member to replace the EPMOlapMemberO for the the R-Account dimension. Using the EPMMemberProperty only makes it a local member and does not make it an axis. And when i tried "EPMOlapMemberO(E19,"[R_ACCOUNT].[PARENTH1].[US]","US","","000") the first parameter does not move with the expansion. Kindly help me with this as am not sure which EPM function enables it.
    I appriciate all your inputs. We are on EPM 10.0 SP 12 Patch 9
    Regards
    Seyi Obabiyi

    Hi Seyi,
    You dont require any local members.
    First column will represent the CURRENCY dimension.
    In the second column, get the R_ACCOUNT dimension. In the memberset of this dimension, select "Dimension Property", then select the dimension as CURRENCY, and then select the property as R_ACCT.
    Hope this helps.

  • How to use useMaxValue property in ODI for XML?

    Hello All,
    I am using 11.1.1.5 version of ODI. I want to use "useMaxValue" for which description is given as follows by oracle.
    When this property is set to true, elements for which maxOccurs is not specified in the XSD are considered as maxOccurs ="unbounded". Otherwise, the driver assumes that maxOccurs=1 when maxOccurs is not specified.
    when I use this property as useMaxValue in the JDBC url for XML technology I get the following error.
    ODI-1227: Task SrcSet0 (Loading) fails on the source XML connection XML FILE.
    Caused By: java.sql.SQLException: ODI-40717: Unknown parameter : usemaxvalue
    I am trying to get multiple records for the same elements in XML for this I am using this property. Is there any other way to get it done?
    Thanks in Advance!

    please try uimv or useimplicitmaxvalue. I justed tried, both works well. I will file a doc bug to track the issue, maybe document need change, maybe code, waiting bug updates.
    Edited by: tina.wang on Oct 7, 2012 9:28 AM

  • How to use SET ID in select statement of SQ02

    Hi,
    I have a infoset, where for one of my Zfield, i have writen a select statement in order to get my ouput.
    if aufk-aufnr = 'XYZ'.
      select sum( FKBTR ) from fmifiit into zfmifiit
      where fikrs = aufk-kokrs
      and fipex IN capex
      and wrttp NE '51'.
    endif.
    For the above statement, i have created (with 10 single values, table name FMCI, field name FIPEX)  a SET id named CAPEX and used with IN operator.
    But when i generating the infoset i am getting error like below
    The IN operator with "CAPEX" is followed neither by an internal table nor by a value list
    I was using IN opeartor for set ids during validation / substitutions, where if i have to validate multiple single values.
    What to do here?
    Regards,
    Srinu

    [OPEN-SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_GENERAL.htm] set of statement, [SELECT|http://help.sap.com/abapdocu_70/en/ABAPWHERE.htm] statement, [WHERE|http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP.htm] addition requires a selection table (type range, [WHERE - IN seltab |http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_SELTAB.htm]) of parameter and not a set. We are in Abap here, not in a Customizing screen
    You have to convert the set to a selection table in an ABAP coding before using it in a SELECT statement.
    (Check FM like G_SET_TREE_IMPORT to import definition of set (values and intervals) and map them to a select-table, or ask a developper to perform it, look at G_SET_TREE_IMPORT -> select statement)
    Regards,
    Raymond

  • How to use Dimension Build to change member property?

    Hello,
    I have researched online on how to do this and I think i have an understanding but I cannot get it to work. My dimension build rules file is of type Parent Child. The fields are Parent, Child, Alias. I am looking to add a Property field to change the consolidation property to - for one member. I have checked off all the options required and tried several different ways but always come with the following error on that line.
    \\Record #95 - Child Member - with no parent (3331)
    P&L - ACC OPERATING Operating Expenses -
    order is:
    Parent Child Alias Property
    What i want to do is assign the - subtraction for consolidation on the OPERATING member. Can this be done with the Parent Child type dimension build? Could this be achieved automatically in another way?
    Thanks
    Alex

    Hey guys, thanks for the tips. The source file is tab delimited. I made sure there was a tab between Operating Expenses and the - for subtractions.  The lines look like so.
    REV_PROJ PS100001 - ACC PS100001 - ACC_PS-M9 Revenue Settlement
    REV_PROJ SC100000 - ACC SC100000 - ACC_SCS Revenue Settlement
    P&L - ACC OPERATING Operating Expenses -
    OPERATING LABOR Labour
    LABOR PAYROLL Payroll related
    I know they don't show the tab but it's there. I have the field set to Property for Account_Desc (Dimension im updating in the outline) with a value of 0. I have also checked off "Delete when the field is empty" as to not change the consolidation on the other lines. i guess i need to figure out why it's treating the final "-" as a member and not as a part of the same line holding it's property. Is there a EOL delimiter i should be setting?
    thanks again

  • How to use AttributeHierarchyOptimizedState property with Primary Key of the Dimension?

    I'm reading the article about increasing SSAS performance. http://www.mssqltips.com/sqlservertip/2567/ssas--best-practices-and-performance-optimization--part-3-of-4/
    I would like to increase processing performance of Customer Dimension with CustomerID as the primary key. It is a good practice to set AttributeHierarchyOptimizedState to NotOptimized to CustomerID attribute. What are the implications to the query
    performance?
    Please advise.

    Hi,
       Since the CustomerID is the primary key (surrogate key) and the usual practice is to hide the surrogate keys in client tools. It is the best practice to set the AttributeHierarchyOptimizedState to NotOptimized to CustomerID attribute. As specified
    in the article SSAS will not create Bitmap indexes on top of that attribute and it saves a lot of processing time and decreases the cube size.
    Regards,
    Venkata Koppula

Maybe you are looking for

  • Out Put Problem in Sales Order

    Hi , i created a sales order , but prinit out is not generating automatically for one particular customer, rest of customers ok , it's working fine and when i assign output type BA00  manually in sales order  , system throwing error "Requirements are

  • Are Time Machine, Mountain Lion and Retina able to work together?

    I have been using for a while Time Machines with various Mac's and OS X systems with no problem. But Time Machine (backing up on a 2TB Time Capsule) + Mountain Lion (10.8.2) + a Retina Mac Book Pro have been not able to appropriately work together fo

  • How do you copy and paste a photo from the internet without a mouse?

    Does anyone know how to copy and paste a photo from the internet without a mouse?  I would appreciate a response asap.  Thanks.

  • Extract  Oracle Developer Suite 10g (10.1.2.0.2)  for Microsoft Windows

    Dear Oracle Support I have down load Oracle Developer Suite 10g (10.1.2.0.2) for Microsoft Windows this tow files name as the following ds_windows_x86_101202_disk1 , ds_windows_x86_101202_disk2 from this site of oracle http://www.oracle.com/technetwo

  • Unique 4 digit alphanumeric code generation.

    Hi Everyone, Please look into this code and suggest me, how should I approach to change this streak. My DB version is BANNER                                                        Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi PL/SQ