Is conditional calculation in the report possible?

Hi,
While using currency translation in a query, amounts are being multiplied by 100 for currencies JPY, KRW & TWD.
Is there a way to divide these currencies by 100 if currency key is one of above mentioned type?
I've already checked notes 153707 & 760195 which are relevant to my issue.
other options are fixing this bug which could be a nightmare for us as "Currency decimal bug" originated from R3 settings.
we have many functions & programs (both in R3 & BW) where we hardcoded to get the correct value.
So, we might not be able to handle this bug so easily by removing above mentioned 3 entries from table TCURX.
Appreciate any kinda help.
Thanks,
hari immadi
http://immadi.com
SEM BW analyst

Eugene,
you are right. I could able to manage with a total of just 10 columns (same as before) & still get the correct results.
only change I've made to your solution is, "not equal to < >" rather than "greater than >" in the formula you have proposed.
So, final formula is as follows.
( ‘CUR100’ < > 0 ) * ' CUR100' * 100 + NOT ( ' CUR100' < > 0 ) * 'YourKF'
It took 2 hours for me to figure out why 9 columns are working with your formula but not 1 column.
1 column is having a debit (negative amount) for currencies JPY, KRW & TWD and is not dividing by 100 as it is not meeting formula condition.
Overall, your solution is great & it helped me a lot.
Sudhakar,
I agree with you on writing a transfer rule to divide by 100. But, we are dealing with a Transactional/Basic combo cube so, I just can't depend on transfer rules. But, am sure that will work.
Srini,
thanks for your reply. Appreciate if you can share what exactly you are doing with your code & where the code is written.
Thanks,
hari immadi
http://immadi.com
SEM BW analyst

Similar Messages

  • How to integrate conditional colors to the Report

    <!--Hi all APEX gurus,
    I would like to ask if you could help me with the problem how to integrate conditional COLORS to the Report. I need to display Severity field in RED but how to include the multiple "quotation marks" and 'apostrophs' to the query below?
    I need to replace i."Severity" field in the query below with the DECODE like this:
    DECODE (i."Severity", 1, '<span style="color:red;font-weight:bold">' || i."Severity" || '</span>', i."Severity") "Severity"
    Original Query:
    DECLARE
    q varchar2(4000);
    BEGIN
    q := ' select ';
    q := q || ' i."ID" "ID", ';
    q := q || ' i."Task_ID" "Task ID", ';
    q := q || ' i."Severity" "Severity", ';
    q := q || ' i."Priority" "Priority", ';
    q := q || ' i."Task" "Task Name", ';
    q := q || ' p."Project_Name" "Project" ';
    q := q || ' from ';
    q := q || ' "IDEAS" i, ';
    q := q || ' "PROJECT_LOOKUP" p ';
    q := q || ' where ';
    q := q || ' p."Project_ID" = i."Project_ID" ';
    if :P1_Show != 'ALL' then
    q := q || ' and i."Project_ID" = :P1_Show';
    end if;
    RETURN q;
    END;
    I have tried many variants but still have problem with the " " and ' ' included in the DECODE command together with the q-variable.
    Thank you for any tips and
    Happy New Year!
    AB
    -->

    Hi user487406,
    What about a select like this:
    select i.id,
           i.task_id,
           case i.severity
             when 1 then '&#60;span style="color:red;font-weight:bold"&#62;' || i.severity || '&#60;/span&#62;'
           else
             to_char(i.severity)
           end severity,
           i.priority,
           i.task,
           p.project_name
      from ideas i,
           project_lookup p
    where p.project_id = i.project_id;
    And PL/SQL like this:
    q :=
    ' select i.id, ' ||
    '        i.task_id, ' ||
    '        case i.severity ' ||
    '          when 1 then ''&#60;span style="color:red;font-weight:bold"&#62;'' || i.severity || ''&#60;/span&#62;'' ' ||
    '          else ' ||
    '            to_char(i.severity) ' ||
    '        end severity, ' ||
    '        i.priority, ' ||
    '        i.task, ' ||
    '        p.project_name ' ||
    '   from ideas i, ' ||
    '        project_lookup p ' ||
    '  where p.project_id = i.project_id; '; Regards Pete

  • Percentage calculation in the report

    Gurus,
              I have a report which has a characteristic called Rate Category which has Commercial and Residential customers. I want to find out the percentage what is the percentage of each category in a paricular business area. But I dont have any charaterictics/KF to keep a running total. Please help. Thanks
    -A

    Hi
    You need to create a counter in the calculated KF which counts the customers (characteristic for exception of aggregation)
    Then you need to use this KF in the report and play with the result options to calculate the percentage
    Try to look in the how to documents for How to count....
    Hope it helps
    PY

  • Is printing to generic text printer and hand-coding the report possible?

    We have created Oracle Reports that are formatted to print to Zebra printers. We code the report in Report Layout and the text printed is for generic text printers, what our Zebra printers requires. Can this be done with APEX reports?
    Example:
    ^xa
    ^ilr:val_set.grf2^fs
    ^fo88,132^a0,90,80^fb464,1,0,C,0^fd&<ACCESSION>^fs
    ^by2,3.0,32^fs
    ^ft64,402^BCb,32,n,n^fd&<FARMFIELD>^fs
    ^ft600,402^BCb,32,n,n^sn&<LOCLOW>,1,y^fs
    ^fo304,232^a0r,20,20^fd&<LOCTYPE>^fs
    ^fo334,232^a0,50,45^sn&<LOCLOW>,1,y^fs
    (skipping some code here for brevity)
    ^pq&<LOC_ROWS>^fs
    ^xz
    Asking whether APEX can print to generic text printers and can we code the report output
    ourselves.
    Thanks for any help.
    dave

    Here is a simple example of printing via pl/sql to a text file...
    create or replace procedure utl_file_io is
    l_fil utl_file.file_type;
    l_buf varchar2(200);
    begin
    l_fil := utl_file.fopen('TMP', 'amar_test.t', 'W');
    utl_file.put_line(l_fil, 'This is a sample text file.');
    utl_file.put_line(l_fil, 'Generated from Oracle utl_file package.');
    utl_file.put_line(l_fil, 'Below is the content of am1010 table.');
    for rec in (select col1, col2 from am1000) loop
    utl_file.put_line(l_fil, rpad(rec.col1, 15, ' ') || rec.col2);
    end loop;
    utl_file.put_line(l_fil, 'End of File');
    utl_file.fclose(l_fil);
    exception
    when no_data_found then
    utl_file.fclose(l_fil);
    end;
    This routine will generate a text file to the default directory on your server, you would need to build an Oracle directory and change the code to include the path to your file there. Getting it to the printer could be a simple shell script that copies the file out your your printer if it is on the network and can be seen..
    Thank you,
    Tony Miller
    Webster, TX

  • Current age calculation in the report

    Hi Experts,
    How can i calculate the current age based on the date of birth in the report.
    like   current age = current date - birth date
    some body help me out of this issue.
    Rgds,
    Satya

    Hi Satya,
    Could you please update me on how you calculacted AGE..please as i am also looking for that
    I shall be great full if you can send me screen shots and code required to
    [email protected]
    Thanks

  • Conditional display in the report.

    Hi, I have a report on the page that dislplays values (numeric). Is it possible to dislplays null values as N/A in the column?
    Thanks in advance.
    Robert

    Hi,
    In classic and interactive report have option "Show Null Values as"
    How to replace Interactive Report "-" for null columns fields with blanks?
    Br,Jari

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

  • Change/View formula in the report ?

    Hi SDNer's,
    Is it possible for the user to view the formula used for a calculation in the report ?
    Any close workarounds? What if the user wants even to change the formula from the report ?
    Please share your thoughts.....any inputs wud really help !!
    Envi - Netweaver 7.0, BEx.

    Hi Werner,
    I have seen that feature and that wouldn't really help us. I was looking for a way out for the user to change the formula in the query ( w/o going to query though ), like change A0.68 to A0.75  from report itself.
    Thankyou though !!

  • Shared DateVar in Subreport and datediff calculation in Main Report?

    Hello experts,
    I am using CRXI sp2.  I have a report that contains two subreports for different dates in the same date field that are identified by a Service Code.  The subreports have been placed in the same group footer 1a to be displayed and the calculation resides in the main report group footer 1b.  The shared variables are as follows:
    whileprintingrecords;
    shared datevar Codedate5473;
    Codedate5473:={@Codedate5473};
    and
    whileprintingrecords;
    shared Datevar Codedate5623;
    Codedate5623:={@Codedate5623}
    The main report has the following calculation is in group footer 1a.
    Whileprintingrecords;
    Shared numbervar daysbetween;
    if (isnull({@Shared 5623})or isnull({@Shared 5473})) then 0
    else daysbetween:= datediff("d",{@Shared 5623},{@Shared 5473})
    This returns negative numbers as well as calculations where one of the shared variables is null.
    I reset the calculation in the report header as well.
    Thanks for your help in advance.
    Kevin

    Hi Kevin,
    I can reproduce your issue, As per my knowledge the crystal will make some issues in null value computation as well as  shared variable  computation
    In your report i can see , you tried to access values from subreport to main report through shared variable. that will make problem. we can access values from main report to subreport without any issue using shared..dont ask me the reason..i am not the right person to say that... lol.
    The another wrong thing  i was found in your formula is , you are not resetting the shared variable any where.. so once the date field is null, the shared variable returning the previous value.
    So this is the solution for you..
    1,You have to add one more subreport for displaying your result., Lets say 'Sub report3'
    and create a formula, like.(Same which you have write before for the result)
    shared datevar Codedate5473;
    shared Datevar Codedate5623;
    numbervar daysbetween;
    WhilePrintingRecords;
    daysbetween:= datediff("d",Codedate5473,Codedate5623);
    daysbetween;
    2, Re- write your first two formulas like this
    For Subreport1,
    WhilePrintingRecords;
    shared dateVar Codedate5473;
    if isnull({Codedate5473}) then
    Codedate5473:=date(0,0,0)
    else
    Codedate5473:=date({Codedate5473});
    For subreport2
    WhilePrintingRecords;
    shared dateVar Codedate5623;
    if isnull({Codedate5623}) then
    Codedate5623:=date(0,0,0)
    else
    Codedate5623:=date({Codedate5623});
    Hope this will works for you,
    Cheers,
    Salah.
    Edited by: salahudheen muhammed on Aug 7, 2009 1:05 PM

  • Quantity Total Stock is incorrect in the report

    0TOTALSTCK (Quantity Total Stock) is a non-cumulative key figure in the standard cube 0IC_C03 (Material Movements). The user is running a report for September month (01.09.2008 to 30.09.2008). At the end of the month i.e., 30.09.2008 the total stock is 0 in R/3, But in the BW reoprt it is showing as -19,000 which is incorrect.
    How can I check how the that value is calculated in the report? I can't see that key figure in the Infocube content preselection screen. In the definition of key figure,  it is calculated throgh Inflow and Outflow and mentioned arregation as Summation and Exception aggregation as Last Value. Is it correct? It should be linked with 0CALDAY for checking the stock day by day. How does it know?
    Any setting has to be done in the Report in order to get the correct values for the total stock qty?
    Please reply asap.

    Shiva,
    Inventory is calculated as a non cumulated KF which is aggregated based on stock receipts and stock outflows based on an opening stock marker. Think of this as something like a bank passbook where only debits and credits are entered and accordingly the balance is calculated. The Brought Forward line on your passbook is similar to the marker where once a page is completed the last available balance is updated.....
    only things which are not to be done in MM are :
    1. Compression without marker update - this corrupts the MM stock values.
    Also make sure you update the marker properly. The only solution to your case would be to do a full recon between the cube / R/3 and accordingly re-init / update the marker etc.
    Arun

  • Added new key figure in the report

    Experts,
    I have added new key figure in the report .If i display this key figure value in the report it is populating correct value with ERROR(example 22.5 ERROR).The report is on the multiprovider .i have check the value for this in multiprovider it is populating correctly .There is no calculation in the report for this .While extracting in to report i am getting this. Help me to resolve this issue.
    Thanks
    Murali

    Hi,
    I have already created a formula like NODIM(Key field).that only i am using .
    and mapping I did in this way. I went to multiprovider and I have selected this key figure and right click and select (assign) then I have click on create proposal for all infoobjects option.
    Please suggest any thing need to do.
    I am sorry .I did not understand the lonterm solution suggested by you .what is UOM .Please tell me how to map.can you pls tell me clearly please
    Thanks
    Murali

  • Calculations with Web Report results

    Hello, I'm just getting started with SAP BW and Web Reporting and that’s why I need some help. I have created a Web Report that shows the query results in a table. Now I want to make further calculations within the report. Therefore I have to access the results of the web report and I just don’t know how to do this. Maybe there are some javascript functions for that problem?

    A basic form of web report is to show the Bex report in Web table form, for that we assign the query to the table in the web table item.
    if further calculations need to be done using the already present keyfigures, then you can use the Calculated Key figure.
    Depending on the scenario you can also define the cell calculations, if you have structures both in the rows and columns.
    Refer to Web Table API to manipulate the cells of  the web table. This article using Web Table API could be helpful for you.
    Table interface doubt ?

  • Is it possible to sort the list of Conditions/Calculations?

    Is it possible to sort the list of Conditions/Calculations so that they display alphabetically in the list?
    My list of conditions is getting quite long and haphazard now!
    Cheers
    Sapphie

    I was afraid of that!. It is very disappointing because , as I am developing a set of reports for the first time, I will create conditions/calculations in quite a non-ordered way and then end up wanting to group similar ones together.
    Hopefully a future version will allow this?
    Lee

  • Share  calculation  Not working in the report

    Iam surprised not to ge the simple share calculation not working at my report.
    I have a dimension and corresponding values ( measures) .I made a Total at the end of the report. and I want to calcualte share of Total to each corresponding value.
    how to do this, any thougts,...
    I have used calculated memebers for this, But I wan to make the percentage of the total ( which is calculated inside Tool itself)
    Please help....

    Prassad,
    Not totally sure what you are trying to achieve but there a couple of possible solutions:
    1) Total = total of all dimension members. Assuming you only have three dimension members then you should have a fourth member called ALL_DIMS or something similar. In the Share calculation template you need to specify the Total level as the basis for your share calc. This will generate the following result:
                             Revenue  % Share
    - All Members     600         100%
         A                  100           17%
         B                  200           33%
         C                  300           50%2) The total you are referring to is in fact a sub total and is the result of adding together only the results for A + B + C, i.e. you have hundreds of dimension members but you specifically want to see a total for just these three members. To do this create a new custom aggregate call "My Total" and add together the dimension members A + B + C - Custom Aggs are a new feature to Discoverer OLAP (Checkout Mark Rittman's excellent blog article for more information on this feature: http://www.rittmanmead.com/2006/11/13/checking-out-the-new-discoverer-101220-features/)
    Then in the Share calculation wizard set the basis for your index using the last option in the list "Specific Dimension Member" and select your new custom aggregate member.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Not possible to determine a condition type for the price in ME49

    Hi,
    While saving the price in ME49 i.e. comparision of Quotation i am getting below error:
    Not possible to determine a condition type for the price
    Message no. 06657
    Diagnosis
    When it attempted to generate the time-dependent conditions for the price you entered, the system was unable to determine a condition type. Price determination is therefore not possible.
    Procedure
    Contact your system administrator.
    The latter can maintain the calculation schema assigned to the purchasing document using the Implementation Guide (IMG).
    Utsav

    Hi Utsav,
    You can refer to the following link. it might be useful to you
    RFQ price
    Thanks
    Nisha

Maybe you are looking for

  • Need driver for HP Laserjet 4 Plus

    LaserJet 4 Plus, Windows 8, but Customer support says Windows 7 works. I have just upgraded from Vista to Windows 8 and have been unabvlke to find a driver for this workhorse printer. I can't believe that HP wants me to stop spending 132.99 on toner

  • Message No BS027 - Create Sales Document is not Allowed

    Hi All I have created a status profile zfm00001 copying the status profile FM000001. I have created a new user status as OPEN in which I have allowed all the transactions including create sales document. All the possible transactions in Funds Managem

  • Xlsx docx inplace in udm_dispute

    Hello. I have the following problem: in trx udm_dispute i can attach all kind of documents doc,docx,xls,xlsx,ppt,pptx etc etc. When i try to display docx or xlsx or pptx with double click i have an word/excel error and it says that is not compatible.

  • IDOC message type for GL entries

    I have a requirement to transfer GL Entries from ADP to SAP . Please suggest what are the message types to be used both in Outbound and Inbound.

  • Release date for Arch 0.8 ?

    Hi all, I am a Slackware user in search of a new home. I have installed and played around with ArchLinux 0.7 on my test machine and feel ready to install it on my workstation, along with the current Slackware installation, in order to ease migration.