Formula Field in Conversion File

Hi,
I have a scenario where I need to multiply the values of accounts of a particular entity (say entity External "9000", Internal "EntityA"). I have created a Conversion File as shown below
External      Internal       Formula
9000           EntityA       Value*0.371996
Now when I upload the data file using this conversion file the data of 9000 directly goes into EntityA without the formula being applied. Why is that so? What is then the use of the Formula Column?
Thanks,
Prasanth.

Hi Patrick,
I did what you said. I added the following in the options section of the transformation file
CONVERTAMOUNTWDIM=LEGALENTITY
In the Conversion section I already had the reference to the conversion file as follows
Legalentity=entityconversion.xls
I add the second line
Amount=entityconversion.xls
When I process the transformation file with a datafile I get the following error messaga
"Index was outside the bounds of the array"
When I remove the line Amount=entityconversion.xls from the conversion section, the transformation file gets validated succesfully but the Formula value is not getting applied.
Any idea what could be wrong?
Thanks,
Prasanth.

Similar Messages

  • 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

  • BPC Netweaver version - Conversion File Formulas

    BPC (Netweaver) Expert,
    When creating formulas on the Data Conversion File that is called by the Transformation File, the Formulas are not working on the Netweaver Version.  Does anyone have any idea what may not be set up correctly?
    Thanks,
    Greg Rotvold

    Hello Greg,
    BPC Netweaver uses somewhat different syntax for conversion formulas, and uses javascript for complex formulas, so formulas written using Visual Basic on the MS version will not work, though the basic *IF logic should work (I think I'm remembering MS conversion formulas correctly, but it's been a while). You can find the relevant Netweaver version documentation here: [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/81/94a8a5febd40268d5c59b4fc31be37/frameset.htm]
    If you want help specifically on the Netweaver version I suggest you ask your question in the Netweaver forum. I'm not sure what forum is most appropriate for questions about the differences between the two versions
    Ethan

  • CURRENY CONVERSION RULES TABLE - FORMULA FIELD

    Hi,
    I have a list of rate types (avg,end,hist etc) defined in the Rate account dimension. The currency conversion (SPRUNConversion) procedure is running fine for all these rate types.
    Now I have added two new ratetypes to the rate account dimension. I have added corresponding rate date for these accounts for all reporting currencies for the required category and time. I have then used these new rate accounts in the 'FORMULA' field of the Currency Conv Business Rule table. When I now run the SPRUNConversion procedure I get the following error
    SPRunConversion Version 7.0.112
    ERROR FX-310 Timeid=20090300 - Nothing Extract from Fact - RATE
    When I go back to the Rate dimension and change the 'Ratetype' property for the new rates to blank (from 'FX') then I dont get any error with SPRunconversion however the accounts related to the new Ratetypes do not get processed.
    I have tried everything (Full process of dimensions, Optimizing applications etc) but nothing seems to work.
    Any idea why the CC table is not accepting the new rate accounts?
    Thanks,
    Prasanth.

    Hi Craig,
    There is an inherent limitation in BPC 7 MS version in the number of characters of the combined total of rate id characters with rates that you can define in the rate application. In my case we are trying to maintain in 'GLOBAL' rate entity about 12 different rates (avg, end, historical etc) and the combined char total is around 750. When we run currency conversion all the rateids are put into a field, but the char limit of this field is 500 char, so the system gives out an error.
    The currency conversion logic only considers those rate accounts with Group 'FXTYPE'. So when I remove this property for a few rate accounts, they were not considered and since the rateids char limt as mentioned above is within the 500 char limit the currency conversion was happening without error.
    This has been reported to SAP and they confirmed that it is a bug and this will be addressed in the SP being relaeased end of this year.
    We did a workaround by maintaining single alphabets for the rate ids i.e., AVG=A,END=B etc ... and used Rate entities to take care of the number of rates that we had.
    Thanks,
    Prasanth.

  • BPC: Conversion File Formulas

    Hi all,
    Would appreciate your help with the following scenario...
    I have a conversion file that converts account ID's, however if it has a certain External account number I would like to use a formula to go pick up a property from the Entity Dimension and use that property value as the Internal Account.
    I am hoping I can use the Formula column, but currently I have limited expericence with entering formulas on Conversion files.
    I am very appreciative of any formula samples.
    Many Thanks,
    Brian

    Brian,
    Unless another user has the correct script and I have never used it, I don't think the process you have in mind is an available conversion technique. Since the conversion file is basically a 2 column replacement process sheet, you should be able to copy the members into the conversion sheet, execute a property lookup using evpro, and then copy-paste-value to convert the properties to text that would be used in the conversion process.  The only downside is that this would need to be performed after any property changes or updates to the dimension file.
    In addition, I would suggest logging this as an enhancement request with support; I think that this has been requested in the past, but if it is a very useful tool, then product development should see a case for adding the functioality to BPC
    Thanks.

  • Formula not working in conversion file

    Hi,
    I had given the formula to divide the values with 50. But its not working.
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = ;
    AMOUNTDECIMALPOINT = .
    SELECTION= 0FISCYEAR,2010;0LOC_CURRCY,INR;0FISCPER3,7;
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    CONVERTAMOUNTWDIM=P_ACCT
    *conversion file
    EXTERNAL     INTERNAL     FORMULA
    *     *     VALUE*50
    Anurodh
    Edited by: Anurodh Jindal on Aug 27, 2010 12:29 PM

    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = ;
    AMOUNTDECIMALPOINT = .
    SELECTION= 0FISCYEAR,2010;0LOC_CURRCY,INR;0FISCPER3,7;
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=NO
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    CONVERTAMOUNTWDIM=
    *MAPPING
    Category = *NEWCOL(ACTUAL)
    DOC_CURR = *NEWCOL(INR)
    Entity = 0COMP_CODE
    IntCo = *NEWCOL(NONE)
    P_ACCT = IF(0FUNC_AREA=Str(P) then Str(EP-)+col(22,1:6);0FUNC_AREA=*Str(S) then Str(ES-)+col  (22,1:6);0FUNC_AREA=*Str(A) then Str(EA-)+col(22,1:6);*col(22,1:6))
    P_DataSrc = *NEWCOL(INPUT)
    RptCurrency =*NEWCOL(IGAAP)
    Time = 0FISCYEAR*str(.)0FISCPER3
    SIGNEDDATA = 0DEB_CRE_LC
    Planning_Entity = *NEWCOL(P_CORP)
    P_Activity = *NEWCOL(AMOUNT)
    *CONVERSION
    Time = Time.xls
    P_ACCT = P_ACCT_Anurodh_Jindal.xls
    Now i am getting 0DEB_CRE_LC from BI and i need to divide it by 50.

  • Error when embedding a formula field in a text box in a subreport

    I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application.  In VS2003, I have had no problems with the reports as they are written.  In VS2010, I get an unusual error on some reports with subreports. 
    In one report I have multiple subreports.  In those subreports, I have formula fields.  If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
    This field name is not known.
    Details: errorKind
    Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
    Error in formula  optionStrike:
    '{Command.OPTIONSTRIKETIME}'
    This field name is not known.
    Details: errorKind
    If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
    In the case above, OPTIONSTRIKETIME is a string field.  This rules out any conversion errors from a date/number/etc to string for the text box.
    Has anyone else encountered this error?  If so, what can be done to avoid it?

    Hello,
    Thank you for the info.
    Which driver are you using for the dataset?
    If you are using ADO.Plus add this to your App.Config file:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
    Thank you
    Don

  • Display Image on report through Field Definitions Only File.

    Hi all,
    I have a report where I work with Field Definitions Only files (ttx).
    These files are mapped to classes in code behind (csharp).
    In code behind I make lists of these classes. Each list is set as the datasource of a subreport.
    This works great!
    My new goal:
    Now I tried adding a picture to my report.
    In the TTX file I added a BLOB field.
    In the code-behind class I added a System.Drawing.Image.
    My actual problem:
    The class gets filled with the image, but the image is NOT displayed on the report
    Does anyone know why this is happening?
    How can I fix this? (should I use another Type in my class for the picture?) (should I format the picture in the report? ....)
    Kind regards,
    Wim

    Hi AG,
    Thanks for your response.
    This is my TTX field:
    Signature     BLOB          
    I can't see the image in the report because I create the image in code-behind.
    I think the problem doesn't occur in CrystalReports but in the conversion from my StrokeCollection (I use an InkCanvas [WPF] to capture a signature) to a ByteArray.
    I am already one step closer to the solution. You can't just assign an object of type Image to the BLOB field of the report but it has to be a Byte-Array.
    The problem I am facing now is that the picture is black after a conversion. (I see this when I export to disk and open the file in MSPaint).
    The good thing is that CR shows me a black image so I guess CR is doing its job!
    Kind regards,
    Wim

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How to create a Formula Field that does a SQL "WHERE" statement

    Hi all,
    I have a field (let's call it "altuser") in a report I'm creating that pulls in a key value from the users table, which is the same table that I'm reporting on. So when I'm reporting on the users in the users table, I'm pulling in the value of altuser for each user.
    What I'd like to do is have a formula field that would pull in the name stored in the table instead of the key value for altuser. So what I envision the formula I need would be like:
    SELECT fullname FROM userlist
    WHERE userkey = altuser;
    Which would make it pull in the name of the user instead of the key value for the "altuser" field.
    I cannot figure out how to do this in the context of either a Formula Field, or a SQL Expression field. Can anyone show me how this would be done?
    Thanks,
    Will

    So right now, the SQL generated by Crystal Reports is like:
    SELECT "userlist"."username", "userlist"."lname", "userlist"."fname", "userlist"."altuser"
    FROM   "db"."dbo"."userlist" "userlist"
    My report now looks like this:
    FULLNAME          LOGIN          ALT. USER
    Jones, Sam        SJONES         2002
    Smith, Barney     BSMITH         2068
    (etc.)
    I have a Formula Field that concat's the <lname>", "<fname> for the first col, then uses the username value for that user for the second col, then the altuser value for that user for the third col. The thing I'm trying to do is resolve the ALT. USER data (which is a key value for the userlist file) into the LOGIN value for that user, so the report would end up looking like:
    FULLNAME          LOGIN          ALT. USER
    Jones, Sam        SJONES        KBROWN
    Smith, Barney     BSMITH        FROGERS
    (etc.)
    where the record with key "2002" has the username value "KBROWN", etc. (they are other user records in the same userlist file.)
    Hopefully this makes it clearer...
    Thanks,
    Will

  • How to handle a comma in a field in CSV file during FCC ?

    Hi,
    I am having a requirement where we have to convert a CSV file into XML using File Content Conversion . The issue is one of the field in the file is having a comma inside. So the XML parser is taking it as a field separator and throwing an error.
    The contents of the file are as follows:
    "02975859","New Key","9","Failed, rejected by RTI server"
    How to handle a comma inside field "Failed, rejected by RTI server".
    Any help would be appreciated.
    Regards
    Pravesh

    Hi ,
    You have to write an java mapping programm to perdromance this task , in a estandar way i think is not possible , because the fiel adapter have just one option for the delimiter character.
    Here's some code that could help you
    Supouse a file in this way:
    1,rahul,siemens,mumbai
    2,consultant,12032005
    1,viswanath,sisl,hyderabad
    2,systemeng,23052005
    package TXTMapping;
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    public class TMapping implements StreamTransformation {
    private Map map;
    public void setParameter (Map param){
    map = param;
    public void execute (InputStream in, OutputStream out){
    try{
    out.write("<?xml version ='1.0' encoding='UTF-8'?>".getBytes());
    out.write("<ns0:Output_Data xmlns:ns0=\"urn:javamapping_test\">".getBytes());
    String line = null;
    BufferedReader bin = new BufferedReader(new InputStreamReader(in));
    StringBuffer buffer = new StringBuffer();
    while((line = bin.readLine())!= null){
    String Company = null;
    String Name = null;
    String Place = null;
    String Desgn = null;
    String Since = null;
    char[] str= new char[100];
    str = line.toCharArray();
    String[] Data = new String[10];
    int S1 = 0;
    int s2 = 2;
    for (int i=2; i<line.length(); i++)
    if (str<i>==',' && str[0]=='1')
    Data[S1]= line.substring(s2,i);
    S1=S1+1;
    s2 = i+1;
    if (i == line.length()-1 && str[0] == '1')
    Data[S1]= line.substring(s2,i+1);
    Name = Data[0];
    Company = Data[1];
    Place = Data[2];
    out.write ("<Data>".getBytes());
    out.write ("<Header>".getBytes());
    out.write (("<Name>"Name"</Name>").getBytes());
    out.write (("<Company>"Company"</Company>").getBytes());
    out.write (("<Place>"Place"</Place>").getBytes());
    out.write ("</Header>".getBytes());
    if (str<i>==',' && str[0]=='2')
    Data[S1]= line.substring(s2,i);
    S1=S1+1;
    s2 = i+1;
    if (i == line.length()-1 && str[0] == '2')
    Data[S1]= line.substring(s2,i+1);
    Desgn = Data[0];
    Since = Data[1];
    out.write ("<Item>".getBytes());
    out.write (("<Designation>"Desgn"</Designation>").getBytes());
    out.write (("<Since>"Since"</Since>").getBytes());
    out.write ("</Item>".getBytes());
    out.write ("</Data>".getBytes());
    out.write("</ns0:Output_Data>".getBytes());
    catch(Throwable t){
    t.printStackTrace();

  • Using formula field as parameter to subreport fails

    Anyone passing formula fields to subreport to feed into a SQL stored proc?  I'm using Crystal XI to develop the report and I haven't consistently been able to get it to work. 
    The main report is essentially a shell to call the subreport.  I have created a variable to store the currentceusername value so it can be passed to the subreport as a parameter.  This doesn't work immediately since I get the error message "Database connector error '42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or Function 'usp_PG0123...' expects parameter '@username', which was not supplied. [Database vendor code: 201]
    But I have set up that parameter in the Subreport Link.  My workaround is to edit the subreport, refresh the report and enter the parameters to the subreport to retrieve data.  Close the subreport and the main report will now function properly and pass the data to the subreport.
    After it is working locally in my CR XI, I save the report to the BOE XI server.  Running the report on the server I get "Error in file reportnamerpt: Database Connector Error".  My local copy of CR XI is patched with the latest SP and hotfixes.  Our BOE XI server is on SP3 with hot fixes. 
    I can't figure out what I'm not doing right... I have been constantly removing and re-creating the subreport and re-creating the sublinks.  This error does not occur if I replace the formula field with a regular parameter in the main report to feed to the subreport.
    Anyone have any suggestions?
    Thx.
    Patrick

    I know this can be done, because that's basically how I pass multiple-selection parameters to an SQL Command.
    The only thing I can think of is if the data types of the formula field is not exactly the same as the database parameter, Crystal may drop the link or something.  That's pretty much a WAG, but it's something...
    HTH,
    Carl

  • BPC Conversion File - Same External ID for different Dimensions

    Hello Experts,
    I hope you can help me.
    We are running BPC NW V10.0 SP13
    I have a Conversion File for External to Internal Mapping on the DATASRC Dimension.
    See Image 01
    I would now like to use the same 'External ID' to identify the mapping rules for two Dimensions, DATASRC and CATEGORY Member ID
    See Image 02
    The rules that determine how the External ID is mapped are subjective rather than derived from patterns present in ID.  This means I cannot use any conditional logic to determine the mapping rules. For example, I cannot assume that all IDs that start with 99Z19 will need to be mapped the same way.
    So the CATGORY Member ID needs to be hard-coded somehow.
    Although it is simple enough to copy the entire worksheet and hold the mapping for each Dimension as separate w/sheets, this duplicates the amount of ongoing maintenance and turns 80 rules into 160 (a number which will rise!)
    Is there a way of using javascript in the Formula column to identify the Internal Member ID for the CATEGORY Dimension.
    If so, how would the Transformation File reference this?
    Any help would be much appreciated

    Sorry Vadim, I was having problems uploading the actual files.
    So I have had to screenshot instead...............
    Transformation File
    Conversion File
    As you can see, the Trans file assumes the CATEGORY is fixed to one Member.
    But I want to use the External ID in the the DATASRC Conversion w/sheet and specify different CATEGORY Member IDs.

  • BPC conversion file

    Hi experts,
    I am really newbie for this aspect. really need advice.
    we usually using like below in conversion file:
    external     internal                                                       formula
    *               js:%external%.toString().replace(/\s+/g,"")
    in transformation file:
    *conversion
    ACCOUNT=ConversionFile.xls!ID
    is it possible to fetch data from other dimension in ConversionFile.xls ?
    cause i have requirement to move data transaction between BPC cube with some logic.
    as example,
    - source transaction data:
    ACCOUNT     CP_REL     ENTITY     INTERCO
    no_account     cp1               e1          intc1
    no_account     cp2               e2          intc2
    - logic process:
    CP_REL     ACCOUNT
    cp1               a1         
    cp2               a2
    - destination transaction data:
    ACCOUNT     CP_REL     ENTITY     INTERCO
    a1                    cp1          e1               intc1
    a2                    cp2          e2               intc2
    what i want to do is, in account ConversionFile.xls, i want to fetch current data of CP_REL, if(%external%=cp1 then a1; a2)
    thank you.

    Hi Chris,
    many thanks for your reply. that is exactly what i want to do.
    another question is
    is it possible to map 1 to many?
    1 row of source data generate many rows of destination.
    for example:
    - source transaction data:
    ACCOUNT     CP_REL     ENTITY     INTERCO
    no_account     cp1               e1          intc1
    no_account     cp2               e2          intc2
    - logic process:
    CP_REL     ACCOUNT1    ACCOUNT2
    cp1               a1                        a2.1
    cp2               a2                        a2.2
    - destination transaction data:
    ACCOUNT     CP_REL     ENTITY     INTERCO
    a1                    cp1          e1               intc1
    a2.1                 cp1          e1               intc1
    a2                    cp2          e2               intc2
    a2.2                 cp2          e2               intc2
    Hi Vadim,
    any advice is welcoming. thank you.
    Thank you.

  • Using Conversion file

    Hi friends,
    I am using a Conversion file to load a data file. In my data file, dimension member is like "0001234" while loading i want to skip frist three digits "000". could you please help me..
    Thank in advance

    For a simpler solution, probably you could just set the mapping in your transformation file:
    *COL(A, B:C)
    A = column index in the data file
    B:C = the start and end positions within the column
    This function defines a dimension for a subset of a field in the data file.
    EXAMPLE
    Account=*COL(3,1:4)
    Please refer to: http://help.sap.com/saphelp_bpc75_nw/helpdata/en/5d/9a3fba600e4de29e2d165644d67bd1/content.htm
    Hope this helps...
    Thanks,
    Yen Li

Maybe you are looking for

  • SAP CE7.1 3-tier landscape

    I have a customer who wants to build a CE7.1 landscape. He is requesting a 3-tier landscape, but to be honest I don't think that this is required and I have even issues to understand how you will keep the consistency in your development setup. I almo

  • HT1229 how do I make a contact sheet?

    i want to make and organize a contact sheet with about 9 to 12 photos.  How do i do this?

  • Email related to email login info

    I  received an email on 9/21/11 from Verizon(?)..... related to shutting down unused email  accounts , resend login info to [email protected] ...is this a legitimate email from Verizon? Solved! Go to Solution.

  • AIR 3.4 - Congratulations Adobe!

    As developers we are the first to bicker and complain when things don't work the way we'd like them to. This isn't one of those posts! I am very impressed with the improvements in AIR 3.4 BETA All of the memory crashes, lagging, etc I was seeing all

  • Recruiter Role 1.40: Missing Services Tray & Service Map in EP

    Hi everyone we're implementing SAP E-Recrruiting EHP 4 (SP04). We did some basic customizing in backend and installed Recruiter 1.40 and Recruiting Administrator 1.40 BPs on portal side. After assigning portal roles to users, on first sight everythin