How to get aggregate balance?

Hi,
i have a requirement need to calculate % of total amont for each level.
ex:
product dimension have have 4 level, product level 1,product level 2, product level 3, product level 4.
if i drill to product level 4, i need have a calculate column to calcuate percentage
product level 4' balance / sum(product level 3' balance)
how to get aggregate balance sum(product level 3' balance)?

Hi,
Use the Function Module "PYXX_READ_PAYROLL_RESULT".
Check Tables PA0045 & PA0078 (If loan amount is more than Salary).
Cheers,
Sunil B.

Similar Messages

  • How to get loan balance

    Dear Friends,
    How to get loan balance in HR module.
    any help higly appricated.
    Regards,
    Malik

    Hi,
    Use the Function Module "PYXX_READ_PAYROLL_RESULT".
    Check Tables PA0045 & PA0078 (If loan amount is more than Salary).
    Cheers,
    Sunil B.

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • How to get opening balance of a g/l account using query ?

    Dear all,
    I'm developing consolidated g/l accounts debit,credit totals month wise with opening & closing balances thru query based report,
    i'have got expected results except opening balance g/l account,
    How to get opening balance of a g/l account based on date as conditonal parameter ?
    Any one throw light on this ?
    Jeyakanthan

    Hi ,
    Please kindly help me on this.I don't know how to calculate opening bal and closing bal over a period of time by Quarter, and how to generate the reprot using crystal reports and please suggest me on this how to go ahead with this report.
    Here you can go through the reprot requirement , and also an attachment of my Report template.
    we have "Category of Investment" , "Income On Investment" ,"Gross yield" and "Net yield" are  report fields.
    1)"Category Of Investment " is Hardcoded.
    2)In this we have to get  "Investment" column from VTBFHAPO(BZBETR Field) table Database based on
    Flow type(SFHAZBA) in VTBFHAPO table ='0100' for bonds category.
    3)"Income on Investment" also we will get from DB using the following formula.
      Income On Investment= "Interest IncomeAmortizationCapitalgain"
    4)With the Date field(Making Date dimension based on date(DCRDAT) field in VTBFAHPO table.
    By Current Quarter,Year to Date,Last year)
    5)Opening bal---Investment
    Purchase--Flowtype=0100
    Meturity/Sales--Flowtype=0200
    Closing balance=Opening bal+(Investment or Purchase)-(Meturity or Sales)
                                      '0100'                 '0200'
    Here '0100' and '0200' are Flow types based on this i need to get value from the same Field.
    we need to Calculate "Gross yield" .
    The bellow are formulas  to evaluate "Gross yield "
    Ist Qtr  .Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
    Ist qtr. Year to date   Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
    Investment income=interest incomeamortisationcapital gain
    Iind Qtr.Gross yield=Investment income/(((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/3)
    Iind Qtr. Year todateGross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balanceJune closing balance)/2))((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/6
    This data should display over a period of time. based on "Current Quarter","YearToDate" and "Last year"
    The quarter starts from April,i,e FY,  I Like this i need to generate the report.
    Thanks in advance.

  • How to get Inventory Balances for PO data

    Hi Guys,
                   How to get Inventory Balances for PO data.
    from which tables I can get it ?
    We are migrating material data to a new plant.. for this process.. The inventory data also has to be moved..
    I am using BAPI_GOODMVT_CREATE to post inventory balances for the new plant.
    Thanks

    Hi,
    Try MARC, MSKA, MARD .
    Thanks,
    Krishna

  • How i get runing balance in ledger

    hi master;
    sir
    i have these field
    date sno. neration dabit credit balance
    5 5
    5 10
    5 15
    5 10
    10 20
    please how i get this type of query
    thanking you
    Aamir

    Hallo,
    compare
    select sal, sum(sal)over( order by empno)
    from scott.emp
    order by empnoRegards
    Dmytro

  • How to get closing balance in MM

    hi
    Please help me to get closing balance for every line in ABAP program. for example
    doc   dt     Mvt  receipts  issues     cl. bal
                                                                                    op. bal    100
    1 -  1.1.06 -  101 - 100   -    00    -     200
    2 -  2.1.06 -  601 - 000   -    50    -     150
    3 -  3.1.06 -  601 - 000   -    25    -     125
    here my problem is i am not able to get LOGIC for  closing balance in every line.i.e closing balance = ((op.bal + receipts) - Issues))
    i am very much appriciable if any body can give the solution immediately.
    with best regards,
    Message was edited by: Abdul  Jabbar

    Thanx

  • How to Get Opening Balance?

    Hello All,
    from our legacy system we inputed it to SBO... now i want to get the summary of all the opening balance. how can i get the data that i wanted to. is there a built in report in SBO for this?
    Please advice.
    FIDEL

    Hello,
    When in the Trail Balance selection criteria window, on the left hand side there is an option of selecting the Opening Balance.
    User can select the Opening Balances radio box and the balances would appear on the window under the column O/B in the Trial balance window.
    Hope it helps.
    Regards,
    Jitin Chawla

  • How to get iTunes balance

    How do I get iTunes balance

    I'm looking to see what my balance is, but I can't find it on my computer, iPad, or iPhone.  I'm logged into my account on all devices, and I've even tried to go through 'Settings/iTunes&AppStore' on my devices.  Still nothing.  Does that simply mean I don't have a balance?  If so, I would rather see $0.00 than nothing at all. 

  • How to get Opening Balance for Stock Report in Crystal Report?

    Dear Experts,
    I am using SAP B1 8.82.
    I am new to crystal report and now trying to do a monthly stock report with the following format:
    Species  BatchNum   OpeningBal   QtyInKD    QtyInRD    QtyInCD   Adj    ClosingBal
    ABC       T1234          17.43           10.16         17.43        0.00         0.00   10.16
    ClosingBal = OpeningBal + QtyInKD - QtyInRD - QtyInCD + Adj
    Parameters:
    - DateFrom
    - DateTo
    - WarehouseFrom
    - WarehouseTo
    I am having problem in defining formula to get the opening balance for each item. The report is grouped by species, whscode & batchNum.
    Anyone please share with me how to write the formula for opening balance in stock report.
    Thanks.
    Best Regards,
    Leng

    Hi
    Check the below discussion it may helps you
    Opening Stock Batchwise
    With Regards
    Balaji Sampath

  • How to get Unpaid balance from 30 days from chose date

    hello All,
    i have to get the UPB (unpaid balance) from daily table and i need to check the UPB from last month. there are seperate daily and monthly tables. And depending on user enter date range as parameter value i need to look up the monthly table.
    for example if user enter date range 08/01/2011 to 08/15/2011 then i need to check for month of July from monthly table to get previous month UPB.
    please help
    Thanks

    Have you tried the add_months function?
    This would allow you to find the date a month before the given value, then you could truncate that to get the previous month. I haven't tested, but I assume the code would be something such as below:
    select trunc(add_months(to_date('15-08-2011','dd-mm-yyyy'),-1),'MON')
    from dual;
    01-JUL-11I don't know the layout of your tables, but hopefully this will help.
    Kerri
    Edited by: Kerri_Robberts on Aug 17, 2011 5:14 PM

  • How to get plant wise Vendor Balance

    Dear All ,
    Kindly tel me How to Get Vendor Balance at Plant level.
    Regards
    Girish

    Hi Girish,
    we can give the customer balance through Plant wise in standard SAP
    But vendor balance not possible in plant wise.
    For that you can do customise userexit
    Regards
    Surya

  • How to get balance sheet report for profit centers

    hi
    how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for this

    Hi,
    You can use T. code KE5Z for actual line items.
    More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
    The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
    In selection, you can give ledger name which is generally 8A for profit center ledger.
    Reg

  • How to get a gl balance for a date

    Hi,
    I am trying to develop a reprt for a gl transaction from user entered date. The problem i am facing is fi table contains data for a period. So whenevri try to fetch opening balance it comes from start of the month not from any date into the maonth say 10th.
    Please provide me code to capture the balance of gl in any day of the month.
    CHEERS

    Hi,
    Thanks for your reply
    the table you have given contains the data with document numbers. To calculate the current date balance i have to consider all the documents till date.
    For fbl3n please guide me how can i catch the closing balance in report for a particular date. Because when i am running the tcode it is shownig the balance in structure from whic i am not able to get the balance.

  • How to get a opening balance in fbl1n

    how to get a opening balance in fbl1n as i copied it into zreport,
    plz help
    Moderator message : Spec dumping not allowed, thread locked.
    Edited by: Vinod Kumar on Dec 1, 2011 3:07 PM

    how to get a opening balance in fbl1n as i copied it into zreport,
    plz help
    Moderator message : Spec dumping not allowed, thread locked.
    Edited by: Vinod Kumar on Dec 1, 2011 3:07 PM

Maybe you are looking for

  • Resizing every page of a large iWeb website

    I've got a website built in iWeb with well over 100 distinct pages, each auto-formatted as 700 pixels wide. I'm now trying to reset every page to 750 pixels.... anybody know of a quick way to reformat every page to the new size, without having to man

  • Quicktime Widescreen Export....

    Can someone explain to me why when I export a widescreen Quicktime file, and play it back using Quicktime, it always opens up in a 4x3 window that isn't stretched for 16x9? And the image looks squeezed. Am I missing something? I can get a Quicktime f

  • HT201272 I lost my puchased itunes my computer had a virus how can i get them back

    I lost my purchased itunes when my computer got a virus how can I get them back

  • Output not proposing automatically

    Hi all Q1)When I am tyring to copy a std output type(BAOO)- order confirmation in output det., system gives error - ENTRY/SMB40/RVADOR01 does not exist inTRDIR-check your entry. As a result the processing program for transmission medium print output

  • Bluetooth Call Waiting Issues

    I use a plantronics voyager pro headset with my fairly new LG G3 that worked perfectly on my Samsung S3 prior to the change. I am not hearing a tone in my headset when another person is calling. I also have a friend of mine with T-Mobile that has thi