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

Similar Messages

  • 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

  • Seeking a Current Age calculation based upon b'day

    I'm seeking a Current Age calc based upon birthday and a set date in the future (5-5-2012) for a registration form.  I have zero Java or FormCalc background.  I'm using LiveCycle Designer 8.0 for the first time.  Any assistance would be appreciated.

    Thank you radzmar, sadly I do not know where to enter the formula you suggested.  I found a page that mentions FormCalc (Form Properties / Default tab under the File menu option).  My novice skills are not up to this challenge apparently.  ;- (
    I changed the field to a text field with Optional user input.  I’ll have to buy a book and read up.  ;- )

  • 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

  • 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

  • FI -Account Statement and Aging calculation

    Hi all,
      I need to develop an account statement for customer open items (FI)  in smartform and also need to do the aging calculation at the end of main window ....for the days like 30,60,90,120,150,and grtthan 150 which is given at selection screen....pls help in this regard
    thanx
    suresh

    Hi,
    Open Items cannot be archived in SAP even if has met Document/Account Life.
    Items in BSIS, BSAS & BSID are all open items.
    1) Identify all open-item managed accounts
    2) Check which accounts have automatic clearing through SE16 BSIS table
    3) DISCUSS and AGREE WITH THE FINANCE TEAM which of these accounts need to be open-item managed. Those that do not have to be OIM can be changed in MASS transaction
    4) Block the accounts that need to be changed to non-OIM
    5) Run a COPY of RFSEPA03 (of course you have to do testing first). This program changes the status to non-OIM in the master data and line item tables. You have to do this for each combination of company code and GL account. If you have a lot of combinations, I suggest creating an ABAP program to "loop" the program. The combinations can be read from a flat file. Run-time depends on the number of line items that need to be changed
    6) Test the accounts for archive eligibility
    7) Unblock the accounts if everything is ok
    This is safer than clearing. As someone mentioned earlier, you have to be careful with clearing. The same with resetting clearing.
    Also, changing an account to set OIM active is very complicated. It involves reloading archived data and could result in huge problems later on. Your totals may not match with line items. This can be accomplished through a copy of RFSEPA02. SAP suggests that you create a new account instead. Knowing this, you MUST be certain that the accounts you change to non-OIM remain OIM.
    For aging Calculation:
    use the function module to get the customer open items....from BAPI_AR_ACC_GETOPENITEMS Function module.... after fetching the data from the bapi,
    .-> read the internal table values and move to the local internal table. and prepare the final table.
    .-> as asking aging 30,60,90,120,150,and GT 150 ... declare parameters and also declare the similar fields in form interface in the smartform...
    .-> And pass these parameter fields VIA smartform function module....
    .-> so now ur values are availble in smartform ....just arrange as per need....
    if you still not clear plz feel free to contact me......
    Thanks and Regards,
    Reward If Helpful

  • How can i use month dynamically in the report?

    Hi Xperts,
    i have requirment that i need to display the data on the report output only for one month.
    and it will dynamically change in every month with out using any selections in the selection screen.
    i found that i have to use customer exits for it.
    can any one please tell me where and what is to be written in that code?(as i don't have any ABAP knowledge).
    Regards,
    sat
    Edited by: SAP534 on Dec 30, 2010 8:07 AM

    There are SAP Standard Variable Exits that will pick the current month based on the report execution date.
    You just have to activate them from standard content and use those variables in your query. You dont have to write any code to use this.
    you can even use variable offsets to pick prior month or next month or even a range of last 12 months etc.
    0CMONTH is a SAP Standard Variable that needs to be activated from standard content and used in the query. There are some other SAP Standard variables such as 0LMONTH for last calendar month 0CMQUAR for current quarter etc that may also come in handy for reporting.
    Similar variables are also available for 0FISCPER infoobject if your fiscal year is different than the calendar year.
    Good luck.
    MP.

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

  • Send the output of the report  in a zip format

    Hi,
    I have a report,
    Currently when we run the report we are sending the file in excel format to the external mail id using the FM SO_DOCUMENT_SEND_API1.
    But now the requirement is to ZIP the data in the format of an excel form and then send it to the Mail.
    If any of you have done with this,
    Please help me with a sample code starting from converting to Zip and then sending the mail.
    Iam having two versions of SAP 4.7 and ECC 6.0.
    Regards,
    Sasidhar

    Hi,
    In my report program i have my data in an internal table.
    lets say ITAB.
    Now we cna send the data from this table easily in amail as an excel attachment using FM SO_DOCUMENT_SEND_API1.
    But in our case,
    we want our ITAB data to be first converted into an excel format and then convert this into a zip file and send as an attachment.
    How cna we cna make use of classes CL_ABAP_ZIP AND CL_DOCUMENT_BCS.
    I have checked all th threads as specified by you.
    But now where its clear on this.
    Can anybody have a sample code for this.
    Please help me.
    Regards,
    sasi

  • 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

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

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

  • How to generate a Yearly report based on a calculation at the Month level

    Have the need to create a report as follows. Any ideas on how this can be accomplished in OBI is appreciated. I have already tried different ways but non worked for me.
    The data is stored in a table at day level as follows:
    Day Amount_A Amouont_B
    1/1/2008     100     100
    1/15/2008     200     100
    2/1/2008     100     400
    2/15/2008     300     200
    1/1/2009     100     300
    1/15/2009     100     200
    2/1/2009     200     100
    2/15/2009     400     300
    The report should be displayed at Year level. Amount_A is just the summation of Amount_A from the table at daily level rolled up to the Year level in the Time dimension. The same thing for Amount_B.
    The formula for Absolute_Error is Absolute(Amount_A - Amount_B). But the problem is that it has to be calculated at the Month level instead of Day Level. So following is the logic for Absolute_Error:
    Month     Amount_A Amount_B     Absolute_Error
    Jan-2008     300     200     100
    Feb-2008     400     600     200
    Jan-2009     200     500     300
    Feb-2009     600     400     200
    The report should be displayed as follows:
    Year Amount_A Amount_B     Absolute_Error
    2008     700     800     300
    2009     800     900     500
    Note that the calculation of Absolute_Error results in a different value if it is calculated at the Month level and summed up to Year than if it were calculated at the Day level and then summed up to Year. It is required to be based on Month level for this report.
    Is there a way to do this without having to build an aggregated fact table at the Month level?

    Hi.
    Do this:
    1. Create Amount_A and Amount_B in BMM without SUM as default aggregation rule.
    2. Now, just go to Answers and make report with three columns:
    YEAR -- EXPRESSION 1 -- EXPRESSION 2
    EXPRESSION 1 is:
    sum(Amount_A) - sum(Amount_B)
    EXPRESSION 2 is:
    sum
    abs
    sum(Amount_A by MONTH)
    sum(Amount_B by MONTH)
    My example in Answers:
    TIMES.CALENDAR_YEAR
    sum(SALES.QUANTITY_SOLD_NORMAL) - sum(SALES.AMOUNT_SOLD_NORMAL)
    sum( abs(sum(SALES.QUANTITY_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) - sum(SALES.AMOUNT_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) ) )
    This will first summarize amount A and amount B on a month level and then do a difference, after that ABS and then sum on the year level.
    This is workaround to avoid larger RPD changes.
    Regards,
    Goran O
    http://108obiee.blogspot.com/

  • Lead time values are not appearing in the report for current year.

    Hi friends,
    Iam checking a report in production.  where lead time values are displayed as 0 for 1 key figure lead time3 (w/0 dim) . i found there is a formula for this it shows like NODIM ( 'Lead Time 3' ).and there is a value for cal.lead time
    how can i get values in the report.
    Thanks ,
    VRV.

    Hi,
    Although your question is not clear, I understood that the formula built on that KF is NODIM. Basically it means, units of measurement is not considered when calculating.
    Eg: 5 Minutes + 5 Kilograms = 10
    You please try to analyze your KF by the above logic. Then you would be able to figure out why the data is not appearing in the report..
    Assign if helps...
    Regards,
    Suman

Maybe you are looking for

  • Creation of file

    Hi Abapers. Can any body tell me how create the a logical and physical file by using FILE tcose. Please tell me step by step. <Moved thread, has nothing to do with ABAP Objects. Please choose your forums more carefully in future> Edited by: Mike Pokr

  • Cropping pictures in iOS issue

    Hello, I would like to know if somebody else experience the following issue: After cropping a photo using the native iOS photo application, the images are being sent as "original" size either by email, dropbox, etc.. I also connected my iPhone via US

  • CO MAPPING IN BI

    Hi, I am trying to clarify what fields i require the CO team to give me to map KEY FIGURES into BI. What should i ask them? The have already provided me with field names and table names for characteristics, i need to ask them for the key figures) we

  • Thumbnails only visible

    I have iphoto version9.1 the libary is stored on my mac mini server when i open iphoto i can see the thumbnails but no large picture just a black screen, but when i open iphoto on the imac and use the same libary when i click on a thumbnail it opens

  • Some simple re-design please

    Hi, This is my workflow. 1. I get the news letter from SAP Community .. i click on 2 or 3 articles of interest. 2. All directed URL's go to a login page 3. I log-in and i am directed to main page. 4. By now i have forgotten the article that held my i