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

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

  • 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 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 get runing total but opening balance pass from form through parameter

    Sir I have tow table in accbal have opening balance and in voudetail have daily transaction I need ledger report with opening balance
    My report get opening balance from accbal and get befor given date balance from voudetail
    Such as
    For opening balance
    Selelect case when dr>cr then dr-cr
    When cr>dr then cr-dr
    End opbal from accbal
    For get balance form daily transaction
    Select case when sum(debit)-sum(credit)> sum(credit)-sum(debit) then
    sum(debit)-sum(credit)
    when sum(credit)-sum(debit)>sum(debit)-sum(credit) then
    sum(credit)-sum(debit)
    end trbalance from voudetail
    where date <givendate
    cal acute both balance in variable
    total =opbal+trbal
    and send this total in report as opening balance on top of report and add this amount asper condition in amount report amount is debit and totalbal is debit then
    placeholdercolumn=totalbal+reportdebit
    or credit then
    placeholdercolumn=totalbal-reportdebit
    sir I need this type of calculation in report
    or
    if you give me idea n query is best for me I calculate with over function and use report only for output
    please sir give me idea urgent
    thank
    aamir

    Meilan (guest) wrote:
    : I wrote a Report called by a Form and pass a parameter from the
    : Form to the Report, successfully! But I imported a Graphic in
    : the Report, and the Graphic could not get the parameter...(the
    : parameter in the Report and Graphic should both pass from the
    : Form).
    : I call the Report by " Run_Product( REPORTS, :V_PRTNAME,
    : SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,NULL); " in the Form.
    : and I imported the image from file for the Graphic in the
    Report.
    : Thanks for your help!
    Meilan,
    This forum is for Headstart related questions and experiences
    only. Please go to metalink.oracle.com to get more information on
    your problem.
    Regards,
    Ton
    null

  • 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 display Opening Balance/Closing Balance in Genral Ledger PLD

    Hi all,
    How to display Opening Balance
    in General Ledger
    PLD
    (OB is already displayed in
    header of print report)
    on first page only?
    How to display Closing  Balance
    in General Ledger
    PLD
    (CB is already displayed in
    footer of print report)
    on Last page only?
    Thanks,
    With regards,
    Jeyakanthan.

    Hi,
    If you open General Ledger Report and after selecting customer code you will see the Print Preview. On that time, one window opens and asks you to select any one from two options.
    Option 1 : Book of Accounts
    Option 2 : Subsidiary Account
    In both the Options, PLD has Opening Balance in Repetitive Area Header and Closing Balance in Repetitive Area Footer. So, it will when Report grows more than one page and if you want to see both the Opening Balance and Closing Balance in all the pages then you should Tick the Check Box "Display Repetitive Area Footer on all Pages" . So that you can view OB and CB in all the pages.
    Raja.S

Maybe you are looking for

  • Reallocation of void check. to another payment document

    Hi Friends, I have an isse. Our customer has allocated the check to wrong payment document and she wants to reverse the document and allocate the same check number to another payment document number. when i reverse the payment document sysytm is tell

  • Camera raw slow tiff save

    Camera Raw takes almost 2 seconds to save 103MB tiff file. (I use Photoshop CS6) When i save a bunch of tiff files, camera raw uses only half of my CPU and half of my RAM. In addition, I use SSD that writes 530MB/s outside Photoshop. According to the

  • Accordian Panels: want all CLOSED

    The Accordian panels I've installed are lower down in the page body, just high enough to begin to see without scrolling down.  Would like visitors to immediately see there's a list of topics - having the first panel open to start with, defeats that g

  • Temp and bios question

    Okay, new to the board and I must say I am impressed. Not a lot of hating goin on. First the details: MSI 875P NEO-FISR mobo bios v3.5 Intel P4 2.8 800fsb - Northwood not overclocked- stock HS/Fan ATI Radeon X800Pro Kingston DDR400- 2x512 Lite-on CD

  • Ejb deployment issue

    Hello, I am trying to deploy an ejb to a cluster. It deployes fine on primary node (where I am running the dcmctl deployapplication command). However, on the secondary node it fails. It can't find generated classes. When I am looking at the server, a