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

Similar Messages

  • Logical Formula at query level?

    I have requirment like if D =  0 then ' ' (SAPCE) else E / F.
    I dont know how to get space ?
    please help me to create this formula at query level?

    hi Hari,
    I am not really sure ,but u can try this...
    if D = 0 then ' ' (SPACE) else E / F.
    use the same formula and make it Zero instead of space and then in the Query properties replace Zero with Blank or Space Values.
    Rgds
    SVU123
    Edited by: svu123 on Sep 30, 2010 6:53 AM

  • Formula "At Current Level"

    Post Author: mlowrance
    CA Forum: Formula
    Is there a concept in Crystal to have it calculate a formula "at the current grouping level".  In our report we have several formulas that calculate a number of statistics.  The report has a sum for the fields at each group level and then uses those sums to calculate the formulas. However since this sum field is different, or at least has a different name at each group level, we have to create a copy of the formula for every level of the report we want it to appear at (Group 1, Group 2, Grand Total,etc.)Is there any way in Crystal to tell a formula to calculate "At the current level".  This way we could have one copy of the formula that would just plug inthe total field for the current group it is working in.This obviously is a really pressing issue since we can fix it by just having multiple copies of the formula, however it would be nice to not have to modify each one or create new ones each time the grouping is changed. I hope this made sense, it was the only way I could come up with to explain it.Thanks,matt 

    Post Author: yangster
    CA Forum: Formula
    what you've described it not feasible or a way to calculate to begin withthe sum/count/etc at a particular grouping will differ at each group level for the exact reason that you are grouping to begin witheach group level represents a distinct break in the dataif you are using crystal reports xi release 2  you can use the insert summary into all levels to speed things upbut if you are doing a statistical calculation at each level you will need to evaluate it at each group level

  • 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

  • Absolute Value in Transformation level

    Hi Team,
    I want to insert abolute value in Transformation routine level.Pl provide me the routine code to instert absolute value of Exchange Rate.
    I have tried to put below code but its not working.
    ABS(Exchange Rate).
    Regards
    Ramakanth.

    Hi,
    In your case, I'd strongly recommend you to use formula instead of routines (where you do have absolute function working).
    If you still want to go for Routine:
    data: abs_val type f.
    if SOURCE_FIELDS-EXRATE_ACC < 0.
    abs_val = SOURCE_FIELDS-EXRATE_ACC * -1.
    else.
    abs_val = SOURCE_FIELDS-EXRATE_ACC.
    endif.
    RESULT = SOURCE_FIELDS-NETVAL_INV * abs_val.
    --Akashdeep

  • Formula at characteristic level

    Hi All,
    I have a scenario in which I need to implement the formula in BeX at characteristic level. For example
    Comp Code     Plant     Material     Sales     Qty     Actual Rate(Sales/Qty)     Target Rate     Variance (Actual Rate - Target Rate) * Qty
    1001               TT01     ABC          100        10      10 (Rs/Kg)                         5 Rs/Kg           5 * 10 = 50Rs
    1001               TT01     ABC          500        10      50 (Rs/Kg)                         5 Rs/Kg           45 * 10 = 450Rs
    1001               TT01     BCA           900        10     90 (Rs/kg)                         100 Rs/kg        -10 * 10 = -100 Rs
    From above calculations, total variance is 50 + 450 - 100 = 400 Rs
    So, I need to make one report in which there is only one selection 'Variance' and it should display 400 Rs
    i.e.
    Variance = 400 Rs
    Please help how should I create such requirement in BeX.
    Thanks.

    Hi Sameer,
    I think in bex level you can't do it if your requirement is showing 450 when removing the material characteristic. You can add a KYF to your infoprovider and do the calculation through transformation and in the query that will work fine.
    Regards
    Yasemin...

  • 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?

  • Logic in Formula at Query level

    Dear All,
                  We are creating query, we want to use the sum of working days for perticular machine iin formula.
    Machine No=M1,  Calendar=1/12/2009, out put=100, workingdays=1, average out per day(formula)
    Machine No=M1,  Calendar=2/12/2009, out put=105, workingdays=1,
    Sum                                                        out put=205, workingdays=2,
    Machine No=M2,  Calendar=1/12/2009, out put=100,    workingdays=1, average out per day(formula)
    Machine No=M2,  Calendar=2/12/2009, out put=101,    workingdays=1,
    Machine No=M2,  Calendar=3/12/2009, out put=105,    workingdays=1,
    Sum                                                        out put=306,    workingdays=3,
    We want to use the sum of working days each machine wise in the formula (Average out per day). please help me
    Thanks&Regards
    Subba Rao
    Edited by: subba rao koyalakuntla on Dec 21, 2009 5:41 PM

    Did you try activating the sub-totals at Machine Level.. that might give you the summary values you are looking for..
    alternatively, we can use some VBA code for this.. or may be macros can help you as well..
    I know this is not an answer.. but some alternative to how we can get there..

  • 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

  • Apply formula at result level

    Hi,
    I need to build a report to get a KF of inventory turnover, the formular used is:
    <i>turnover =total consumption / average stock</i>
    while we use the formular below to get the
    <b>average stcok =(begin of stock + n stock at month's end)/(n+1)</b>
    what I need is to based on user's date input(let's say 09/2005 to 11/2005 for example),
    1,get the "total consumption" for Oct and Nov,
    2,and also get
    "average stock" = (Stock at Sep + Stock at Oct + Stock at Nov)/(2+1)
    3, get the turnover = "total consumption" /"average stock"
    let's say KF "Total cnsumption" for 10/2005 is 10, for 11/2005 is 20. so <b>"Total cnsumption" for Oct and NOv</b> will be 10+20=30;
    and if KF "Stock at Sep" = 12, "Stock at Oct" is 24,
    "Stock at Nov" = 30
    then <b>"average stck"= (122430)/(2+1) = 22</b>so the "turnover" will be
    <b>"Total cnsumption"/"average stck"= 30/22= 1.36</b>
    I am not sure how the report lay out will be, but as long as i can get the turnover based on teh user input's month during, that would be good enough. so probably the report will look like:
    "Month"  "Totalcnsump" "Stck"  "averageStck" "TurnOver"
    09/2005                  12
    10/2005       10         24       
    11/2005       20         30        
    <b>result:       30         66       22         1.36</b>
    Does any one have any idea how to make it done???
    Your input is very much apprecieated,
    ping

    Dear Ping,
      This may not suit your requirements perfectly.
      But if your report layout is "fixed," how about adding a formula in the XLS workbook for example at column "G" such as:
      = IF(cell = "Result", apply the turnover formula cell1/cell2, else 0).
      As I have said, this is not the best way to do it.
      How about defining 2 structures in your query and try the options using cells definition in the query designer. You may wish to try and have a look at it for other possible solutions.
      Thanks a lot.

  • 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.

Maybe you are looking for

  • How can I transfer a copy of Acrobat Pro 9 from one Mac to another?

    Is there a way to pull the license information from the Mac with Acrobat 9 Pro to use for installing on the new Macbook Air?

  • Rule based GUIs

    Hi! I�ve been doing a lot of Java GUIs lately, and I am starting to be tired of always defining the same checks to user inputs. Things like: - having 2 date fields and one cannot be older that the other - certify that a text field cannot have certain

  • Can I Set Accounts This Way?

    I have 3 accounts on this iMac...mine (administrator), my wife, and Guest. Is it possible to set things up so that if I, for example, walk away from my Mac for a time, when the computer is awakened from screensaver or sleep mode, it displays the thre

  • Trying to burn sd disc get message HVDVD-TS founk in build Location

    what does this mean? I've used compressor to generate a mpeg file but cant burn

  • Satellite L305-S5955 Freezing and not responding

    I have had this laptop for more than 4 years now and recently I have had issues with it freezing up and not responding within approximately 5-10 min of booting up. I have had to do a system restore to factory out of box state 3 times now. What could