Formula in transformation

Hey, BW Gurus:
If I need to filter out value "A" in field "customer" in a 7.0 transformation before the cube, I think i need to use a formula. The source filed and target field, I will be using "customer". In the rule type, i need to choose formula. Can someone tell me what is the syntax in this formua to only filter out value "A", but still making the rest of the values of customer field going to the cube?
Thanks for your help!!

Thanks very much!! You have helped me resolved the issue!!
As I tried out in DTP, there is one lag thing and wonder if you have experience before.
In DTP>Extraction Mode>Filter-->There are ten fields avalable but not my needed field. Then, I click on change selection, I was able to find the field and put on the selection screen on the top  -->Continue -->Put value A as exclusion field and save, activate my DTP.
The problem is as I went back and check the filter selection again, I couldn't find the customer filed, Nor the value "A" . All I saw is the equal sign on the bottom in the red square.
However, it does filter out the value as I loaded the data to cube again.
Have you ever seen the strange GUI before?? Or I have missed any configuration here?

Similar Messages

  • Formulas in Transformation.

    Hi Gurus,
    I have Postingmonth and Forecast quantity in the source system. I have posting month, forecastquantity and one more extra field M-1forecast quantity in target syste. this M-1 forecastquantity should pick the previous month's forecast quantity.
    can you please help to write the formula in transformations.
    Thanks.
    Suresh.

    Hi ,
    If I am getting correct in M1you want to populate the qualtity of previous month, that means which was loaded in previous request.
    Assuming that has got for previous month.
    then in this case as per my understanding, you have to read the active table of same DSO in start routine, and populate the M1 with previous month in field lavel routine.
    Thanks
    Mayank

  • Formulas in Transformations.

    I have to Postingmonth and Forecastquantity in the source.
    I have new field in target M-1Forecast quantity which needs to pcik the previous month Forecastquantity,
    how to create a formula in transformations.
    Thanks

    Hi Raj,
    thanks for responding right away. I seem to be missing something basic it looks like. For key figures with currency - price and revenue it always complains saying ZSKQUAN not assigned to infoobject. So I go ahead and enter it and then I get assignment in the right box.
    For the formula,
    a) yes, you are right I am choosing the fields from the flat file. These are the two key figures (operands) that are to be multiplied to get revenue.
    b) the formula syntax is correct. The error says "Rule 6 - cannot create formula or something to that effect".
    For it to work, I entered the formula in the excel sheet itself(source file), but I would like to know in the future what I have to do.
    regards,
    Sanjay

  • Formula at Transformation level

    Hi All,
    One formula has written at transformation level for the infoobject Zvendor. 
    Formula is as follows RIGHT( 10, REPLACE_FIRST( '2VEN', '0000', GN_VENDOR ) ).  As per my understanding Vendor number will take 10 digits and it is replacing with '0000' if the value is '2VEN'
    Can you please confirm whether my understanding is correct or not?
    Thanks in advance.

    What i understood is:
    It will replace the first occurance of 2VEN with 0000 and take first 10 digits of the resulting string.
    Edited by: Pravender on May 26, 2010 1:26 PM

  • Problem in formula during transformation.

    PFA the snapshot of the problem..
    http://img122.imageshack.us/my.php?image=problemwy7.jpg
    I have two Infoobjects in the infocube, which are formulas based on the other infoobjects.When i'm trying to create a transformation for them,im facing these errors.
    The flag condition is that if revenue is greater than 50000 , it should be made 1.
    The profit percentage condition is that it is calculated by profit/revenue.
    Can u please help me on this ? its kinda urgent !
    Message was edited by:
            snehith allamraju

    On your screenshot, it rather looks that the problem comes Rules 4 and 5, which are (as their error description shows it) Profit and BudgetedProfit.
    As it has been told previously in this thread, as well as in the error message, you probably need to assign a source unit.
    Hope it helps,

  • Formula during transformation, with no values.

    Hi:
    I have a transformation who has a formula for 2 KFs plus currency key, and the result goes to another KF with his currency key. The problem is that in the source DSO not always I have values for the source fields, and the DTP stops with an error. How can validate that I have all the required source filelds with "no empty values" before executing the formula in the transformation?. Any idea on how to write a "more intelligent" formula to avoid this error.?
    Thanks in advance.

    Hi,
    As Suresh and Barris have suggested it could be easily done using a routine.
    Something like:
    If source_fields-KF1 ne SPACE and source_fields-KF2 ne SPACE .
    Result = source_fields-KF1 + source_fields-KF2
    endif.
    However, if you want to implement it using formula, then  you can try something like this:
    IF(source_fields-KF1 = Blank,0,source_fields-KF1) + IF(source_fields-KF2 = Blank,0,source_fields-KF2)
    Hope this helps!
    Meera

  • BPC 7.5 NW - IF stament in Formule for Transformation File ?

    Hi, i try load data from 0PROFIT_CTR to BPC reading PDF "How To Import Master Data and Hierarchies into BPC 7.5 from SAP NW BW".
    Then use this assing:
    *MAPPING
    ID=ID
    RESPONSABLE=0RESP_USER
    BPC=*IF(ID(2:2)=*STR(I) then *STR(I);*IF(ID(2:2)=*STR(D) AND ID(4:4)=*STR(Z) then *STR();*STR(D)))
    PAIS=*IF(ID(1:1)=*STR(C) then *STR(CHILE);*STR(PERU))
    In Validate get Error for Field BPC : The number in parentheses is incorrect, check your formula
    *IF(ID(2:2)=*STR(I) then *STR(I);*IF(ID(2:2)=*STR(D) AND ID(4:4)=*STR(Z) then *STR();*STR(D)))
    This line working good :
    PAIS=*IF(ID(1:1)=*STR(C) then *STR(CHILE);*STR(PERU))
    Examples value for 0PROFIT_CTR is :
    CD1Z0101
    CD101C01
    PI1CA001
    CI1CA001
    I look sintaxis and is good number in parentheses.
    Any idea the problem ?

    I test this :
    BPC=*IF(ID(2:2)=*STR(D) AND ID(4:4)=*STR(Z) then *STR();*STR(D))
    And GET error :
    *IF formula is not valid, check your formula
    Maybe problem is in "AND" stament ?
    This is part the previous code posted :
    BPC=*IF(ID(2:2)=*STR(I) then *STR(I);*IF(ID(2:2)=*STR(D) AND ID(4:4)=*STR(Z) then *STR();*STR(D)))
    But here get error :
    The number in parentheses is incorrect, check your formula
    Any idea how use "AND" stament or correct sintaxis in this line :
    BPC=*IF(ID(2:2)=*STR(I) then *STR(I);*IF(ID(2:2)=*STR(D) AND ID(4:4)=*STR(Z) then *STR();*STR(D)))
    Thank you.

  • BPC:  Conditional Formulas in Transformation Files, Possible?

    Hi All,
    I have an issue where I have a standard conversion file for the Account dimension, however for certain accounts the account is also dependent on the Entity ID.  Rather than writing several conversion files to maintain for each entity I am wondering if the following is possible:
    Is it possible to write some sort of conditional formatting in the transformation file such as:
    If (stringAccount)= "XXX" then (stringAccount) + (stringEntity) and go pick up conversion file A, else (stringAccount) and pick up conversion file B
    Conversion File A would have Entity/Account combo as the External account, and the Internal account would be the account for that specific Entity.  (I actually have this stored as a property on each entity but currently its assumed that some sort of dynamic EVPRO/property defintion will not function in a conversion file.)
    Conversion File B would be my standard conversion file.
    I am thinking that I this might be possible but need assitance in the syntax for the transformation file.
    Any help is greatly appreciated!
    Brian Tyson
    Edited by: Brian Tyson on Aug 12, 2008 9:48 AM

    I think I have figured out how I am going to do this, my co-worker suggested the solution is more simple than I was making it out to be:
    my transformation file will be:
    Account= Accountstring + Entitystring
    then int he conversion file i will have the following:
    1001*              1001
    1002*              1002
    1003EntityA     1013
    1003EntityB     1023
    1003EntityC     1033
    1004*               1004
    Only thing is that I will have to hardcode, rather than using the property...

  • Formula in transformation file to remove trailing zeroes,BPC 7.5 NW

    Hi Experts,
    I have implemented automation of master data from BW info object to BPC dimension.
    I have few issues with the transformation file. employee percentage in BW is of type number and has lenght of 17.
    In BW 0EMPLPCT holds the value as 100,000 , 75,000  but when i send to BPC dimension the values are sent as 100,00000
    Emp percentage is maintained as below in the transformation  file.
    EMP_PC=0EMPLPCT
    However i wanted to remove the zeroes in BPC , i wanted to see the numbers as 100, 75, 50 and so on.
    Is there any way i can handle this in transofrmation file. Please let me know as this is really urgent. Thanks much.
    Regards,
    Sanjeev

    Hi,
    The properties in BPC are stored as string. So, you will have to convert it to string while loading. Secondly, it will be really difficult to use this percentage value in any script logic; since it is stored as string.

  • Query on simple formula write in transformation

    Hi Bw Experts,
    i am loading 0calday(20100401) to Standard cube(BI 7.0) from flat file.In the cube output i need only month and year(i.e 04.2010).I have to write the simple formula in transformations on 0CALDAY Field.What is the formula i have to write?
    Could you please help me out?
    Thanks

    Hi,
    you can achive this using the Filed routine or formula
    DATE_MONTH(0calday) which will display month and year.
    or write filed routine
    RESULT = TRAN_STRUCTURE-0CALDAY+0(6). (BW 3.x)
    RESULT = SOURCE_FIELD-0CALDAY+0(6). (BI 7.0)
    Regards
    Kp
    Edited by: prashanthk on Jul 31, 2010 7:12 PM
    Edited by: prashanthk on Aug 1, 2010 6:21 AM

  • Formula IF in transformation

    Hi Gurus,
    I am trying to write a formula in transformation for a charecterstic.
    IF( ( UMSKZ = 'E' OR UMSKZ = 'X' ), ( LEFT( ZUONR, 10 ) ), 'null' )
    check if spl. GL = E or X, then split the assignment number and update document number.
    It says formula syntax if fine but, while Doing DTP it is throwing error. like
    "Exceptions in Substep: Rules"
    Please help me out.

    This error comes in the DTP because of incorrect mapping/routine in the transformation. If i understood your problem then you want to pass on first 10 characters of ZUONR to your document number if Spl GL is E or X right?
    For this you can write a simple routine in the transformation instead of a formula.
    IF ( UMSKZ = 'E' OR UMSKZ = 'X' ).
    RESULT = ZUONR(10).
    ENDIF.
    Let me know if you face any issues.
    Thanks,
    Arminder

  • Redefining formulas for BEX queries.

    Hello all,
    Going a little bit further, I realise now that it would be better to have some complex calculations stored in some formulas to be reusable in many queries.
    So, I think I can create and define new formulas by using BAdis. I have read something like this in SAP HELP. I'm doing this by creating a new implementation that redefines the interface method IF_EX_RSAR_CONNECTOR~GET.
    I have never done this before, so I would appreciate any help on this. Now I could create this redefinition of that interface method but, how can I "insert" the new formula in BEX to make it available. I think I should create the formula definition before but I don't know where, the only thing I know is that the formula should begin with "C_".
    Am I in the right path?

    Hello Roberto and everybody,
    this is what SAP Help says about this:
    BAdI: Customer-defined Functions in Formula Builder
    Use
    This Business Add-In (BAdI) is used in the formula builder transformation library. You use this BAdI to integrate user-defined functions into the transformation library of the formula builder. In this way, you can make special functions that are not contained in the transformation library available for regular use.
    Requirements
    <u>The technical name of a user-defined function
    Must be specified
    Must be unique
    Must begin with 'C_'
    Can contain only alphanumeric characters ( ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_) (lower-case letters, empty spaces and special characters are not allowed)
    Can be a maximum of 61 characters long.</u>
    Standard settings
    The BAdI can be used repeatedly. Is it not filter-dependent.
    Activities
    After you have called up the IMG activity, a dialog box appears in which you enter a name for implementation.
    If implementations have already been created for this BAdI, a dialog box appears in which the existing implementations are displayed. In this dialog box, choose Create and proceed as follows:
    1. In the Implementation field, enter a name for the implementation of the BAdIs and choose Create.
    2. The initial screen for creating BAdI implementations appears.
    3. In the initial screen, in the Short Text for Implementation field, enter a short text for the implementation.
    4. Choose  the Interface tab index.
    5. On the tab page, the field Name of Implemented Class is filled automatically, since the system assigns a class name based on the name of your implementation.
    6. Save your entries and assign the implementation to a development class.
    7. Position the cursor on the method and double-click on it to reach the method editing screen.
    8. Between the statements method <Interface Name>~<Name of Method>. and endmethod. the coding for your implementation.
    9. Save and activate your coding and return to the Change Implementation screen.
    10. Save your entries on the Change Implementation screen.
    Note: You can create an implementation for a BAdI and activate it later. If this is the case, close the editing screen now.
    11. Choose Activate.
    When you execute the application program, the coding you defined in the method is run through.
    See also:
    Method
    GET
    And what I can't find where to do is <u>underlined</u>.
    Don't know where to create the functions, because the BAdI is clear and also the method I have to redefine in my own Z_Implementation.

  • SUBSTRING in formula

    Hi,
    Could you please tell me how to use the "substring" function of the formula in transformation? If its syntax is
    SUBSTRING( <character string>, <offset>, <length> )
    what is offset here? and what does length determine here? in which instances do we use this substring? If I want to put current date in this substring how will i be able to enter it in substring? and how will i able to make an entry of 1 apr or 30 sep for that matter?
    Please help me in this regard.
    Thanks.

    Just do an F1 on Substring Functionality - It gives your clear explanation with an example.
    Ex - > /message/4692118#4692118 [original link is broken]

  • Tablename for formula tech. name

    Hi Gurus,
    I created a formula in transformation. I need to know which table have formula informations, means in which table I could see the formula technical name.
    Thanks
    Liza
    Edited by: Liza on Mar 14, 2008 8:59 PM

    Hello Liza,
    Local formulas (DEFTP = 'FML') or Calculated Key Figures (DEFTP = 'CKF') should contain definition of the calculations in the table RSZCALC.
    These are the tables used for BEx Queries
    Selections or RKF without definition in RSZSELECT table
    The table RSRREPDIR is a header table of the generated reports
    The table RSZCOMPIC contains an InfoProvider assignment for queries and other reusable query components (STR, RKF and CKF).
    The table RSZELTXREF contains all links and dependencies between the query elements within a query or query component
    The table RSZGLOBV contains the definitions and technical properties of the variables.
    The table RSZELTDIR is the main directory table containing all query elements available in the system.
    For more details you can refer the OSS Note 792779 - Report ANALYZE_RSZ_TABLES
    Thanks
    Chandran

  • An error occured in a function of the formula - DATE_DIFF

    Hi,
    I have loaded the Data from PSA to ODS. I need to load data from ODS to InfoCube to MultiProvider. I am trying to use DATE_DIFF for two fields with datatype mm/dd/yyyy in formula.
    I am getting the error as "An error occured in a function of the formula".
    Please let me know how I can solve this problem.

    Hello Deva
    Follow any of the below option.
    1. Create formula in transformation for the difference ZNDAY
      Select Date Functions > DATE_DIFF(ZSTODAT,ZSFRMDAT).
    2. You can do it by routine also by using standard FM to calculate the diff bewn two days.
    DAYS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES_2
    FIMA_LEAP_DAYS_BETWEEN_2_DATES
    LEAP_DAYS_BETWEEN_TWO_DATES
    HR_99S_INTERVAL_BETWEEN_DATES
    ISB_DAYS_BETWEEN_TWO_DATES
    3. If you don't do here you can do it in reporting formula variable.
    4. In reporting you can do it with customer exit.
    Assign points if your problem is solved.
    Thanks
    Tripple k
    Message was edited by:
            Tripple k

Maybe you are looking for

  • How do I add a playlist to iPhone with iTunes 11 manually i.e. with new iTunes 11.2.2.3

    How to add a playlist folder to your iPhone manually so the music can be organized in separate folders (playlists). It's supposed to be simple and intuitive in Apple but I spent few hours trying to figure it out in my iTunes/searching in internet a s

  • Starting program�s from Java.

    Hi! Do anyone know how to start, for examples Outlook or IE from my Java application? //Thanks!

  • Cluster actions slow

    OES 2.2 server with ncs on nss volumes, VMware with iscsi. When I migrate between nodes, it's been taking about 3 minutes. Browsing for files, opening, etc, all reasonably fast on either node before and after migration. We've also seen some delayed w

  • IWeb vs Muse

    I would have expected an intuitive web development application such as Muse for example from the "Most innovative company in the universe". I haven't seen much progress for your iWeb app for the last years. Are you getting out of ideas or do you have

  • Iphone 3gs will not accept any "enter Passcode"

    powering up my iphone 3gs will not accpet enter passcode. all buttons are locked.