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
Similar Messages
-
Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?
Hi Experts,
A requirement has come up where I want to get Customer closing balance based on its sales organization as this particular customer is extented to 2 different sales organizations. I want to get the closing balance of individual sales organization vise.
Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?AFAIK there is no such BAPI, cause there is no database table with balance for customer per sales organisation. (No KNCx table for VKORG)
First ask functionals (*) how to recover sales organisation from a FI document (I suppose for SD invoice it is easy if no merging between organisation) will be a little tricker for pure FI document like payment transactions (hope thet are quickly cleared...) Then start from non cleared records of BSID (also BSAD if you use a past date of reference, in case you have to add the records of BSAD with clearing date greater than reference date) and cross it with SD information to break FI into sales organisation.
Regards,
Raymond
(*) Ask for where do they store VKORG in FI documents -
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 ?
JeyakanthanHi ,
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 Upload Closing balances of ECS and SHECS
Hi Experts ,
Please let me know how to upload closing balances of Education cess and Higher Secondary Education cess of Excise duties
Thanks in advance
GMRhi
Through Table J2_IACCBAL (OPENING/CLOSING ACC.BALANCE TABLE) -
Dear Friends,
How to get loan balance in HR module.
any help higly appricated.
Regards,
MalikHi,
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 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.
ThanksHi,
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
AamirHallo,
compare
select sal, sum(sal)over( order by empno)
from scott.emp
order by empnoRegards
Dmytro -
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.
FIDELHello,
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 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,
LengHi
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
ThanksHave 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 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 -
How to get plant wise Vendor Balance
Dear All ,
Kindly tel me How to Get Vendor Balance at Plant level.
Regards
GirishHi 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
Maybe you are looking for
-
Hello, I'm using MBP 13" mid 2009, processor 2.53 Ghz Intel Core 2 Duo, Mac OS X Lion 10.7 My MBP can play any movie dvd, but when I insert a dvd-r from my friend which have data inside, the MBP says that the dvd-r is blank and ask me what i want to
-
IPhoto does not recognise my iPhone 4S
iPhoto has stopped automatically importing photos from my iPhone 4S when it is connected. It now doesn't even recognise it is there - yet iTunes does.
-
Database Parameter _ktb_debug_flags in 11.2.0.2
HI Folks, Could Anyone Please explain the importance of Database Parameter _ktb_debug_flags in 11.2.0.2 . This parameter has been recommended Early Watch Report of ECC System. Regards, Sharma TVK
-
Does anyone know if there is a way to save the Airport Extreme 'N' syslog to an attached USB drive?
-
I WANT FEILD AND TABLE NAME FOR VALUE OF UNRESTRICTED STOCK
I WANT FEILD AND TABLE NAME FOR VALUE(PRICE) OF UNRESTRICTED STOCK