How to calculate Opening balance for a customer?
Hi Experts,
How to calculate Opening balance for a customer? I am trying to develop a report where in i have to get opening AR balance,current sales,adjustments etc of a customer. Please let me know how can i do this. I have some tables with me KNC1, BSAD, BSID.
Thanks in Advance.
Sharat Chandra.
Say for example ..
Get the opening bal for Customer 'K' in CCode 'C1' in 2008 ..
First get all items from BSEG ..
Select * from BSEG where KUNNR eq 'K'
and BUKRS eq 'C1'
and GJAHR eq '2008' .
Sum all the DMBTR values (This is the total value).
Second get the cleared items form BSAD for the above entries;
Select * from BSAD for all entries in BSEG where KUNNR and BUKRS and XBLNR eq BSEG-XBLNR.
Sum all DMBTR values ( this is cleared value).
Third substract the cleared value from total to get Open value.
This is a overview .. you should go to the tables and look for fields and etc.. and then define the logic meeeting your requirements .... this is a genric undersatnding ....
Thanks,
Aditya. V
Similar Messages
-
How to query opening balance for all customer or Vendor for an speci. date
Hi,
How to query opening balance for all customer or Vendor for an specific date?
Example:
put any date and query will show all customer/ Vendor that date opening/current balance.
Regards,
MizanHi mizan700 ,
Try this
SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
WHERE T0.[DocStatus] ='O'
AND
(T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
Regards:
Balaji.S -
HOW TO CALCULATE OPENNING BALANCE
HI Experts..
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
I am Using 0FIAR_O03 ODS ..
Very Urgent Issue..
If Possible Stp by Step..
Cheers
Purushottam
09891683828
[email protected]Hi Saloni,
to get the debit and credit you would be using a variable 0I_FPER(Fiscal year / period), which is a user entry interval variable.
now to get the opening balance you will have to create a customer exit valiable and the low value of 0I_FPER will have to popuplated by writied the code for the customer exit valiable. you will have to restrict the key figure DEB_CRE_LC for this customer exit variable with the operand as less than(< Fiscal Year /Period from 0I_FPER)).
If the above was useful please assign reward points.
Regards
Venkata Devaraj -
How to Calculate Opening balance
Hi BW Gurus,
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
Thanks in advance
DJHi Friend,
If Your Prob is solve then tell me how to find perticular month balance amount.
i m create cash book report for perticuler GL Account , i use BKPF + BSEG for this
i found all entries,
But at last i want to Opening Balance for perticuler date.
like 01/05/2007 opening balance = 10000 as per tcode FS10N
and in 26/05/2007 ??????
how to find exact date opening balance is there any function for same
or any procedure..
Thanks
From
Gaurav -
How to find opening balance for customer?
Hello Abapers,
I have a requirement as i need to find opening balance for particualr customer in a company.This is related to FI/CO modules.Please solve my porblem.
Waiting for your favourable replies
Regards
MaruthiHi Maruthi,
Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem -
How to find Opening Balance for Cash Book
Hello Friends,
I am Creating one Report for Cash Book.(Means : For Perticuler GL Account)
I have no idea how to find Opening Balance for some Perticuler Date.
Ex.
Current date: 07/06/2007
and i want to find Opening Balance on 26/05/2007
i have Function for Calculating Opening Balance,
Group No: 3006 Business Object General Ledger Account
BAPI_GL_ACC_EXISTENCECHECK Check existence of G/L account
BAPI_GL_ACC_GETBALANCE Closing balance of G/L account for chosen year
BAPI_GL_ACC_GETCURRENTBALANCE Closing balance of G/L acc for curr year
BAPI_GL_ACC_GETPERIODBALANCES Posting period balances for each G/L account
but they show current opening balance, and i want for perticulaer Date..
How to find Opening Balance for Cash Book
please Help me out
Thanks
Gaurav TripathiHi Maruthi,
Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem -
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 -
Hi Expert,
How to enter opening balance for last year to closing balance to this year opening balance explain deeply helpful for me Thanks in advance.
Example
All Bank A/C, Cash Book, Vendors, Customers, like that how to enter closing to opening balance.
With Warm regards,
SelvaDear,
As per SAP standard there is no need to carry forward the balances as the system will do a virtual carry forward into next year opening without creating any FI documents.
If your business scenario demands then you can use the transaction code F-02 for posting a carry forward balances, this will not effect any of your balances but only creates a FI document.
If your R3 version is SAP ECC5 or 6 then use the transaction code FAGLGVTR -
How to calculate Average balance for an account
Hi,
How to calculate average balance for an account for a particular period say for JAN-12 period and after the end of that period for another two days 01-feb-12 and 01-feb-12 ?
I'm using the following query :
SELECT cc.segment1||'-'||cc.segment2||'-'||cc.segment3||'-'||cc.segment4||'-'||cc.segment5||'-'||cc.segment6 "Account_XX",
nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
FROM gl_code_combinations cc,
gl_je_lines l
WHERE cc.code_combination_id = l.code_combination_id
AND l.set_of_books_id ='XX'
and code_combination_id = replace it with code combination_id for account_xx
AND l.effective_date <= '31-Jan-12' (january period end ??)
GROUP BY cc.segment1||'-'||cc.segment2||'-'||cc.segment3||'-'||cc.segment4||'-'||cc.segment5||'-'||cc.segment6
There are some discrepancies in "average balance" after end of month (Jan-12)?
How to calculate average balances for a particular account (Account_XX above)from end of month of Jan to first two days of february?
Thanks,
KiranKiran,
Please let me know first, is Average Balancing feature enabled in your GL Ledger?
Regards
Muhammad Ayaz -
How to calculate Opening Balance / How to Enhance 0FI_AR_6 DS
Hi FI Experts,
I need Opening Balance in my BI report,
I am using 0FI_AR_6 DS , I have loaded data to CUBE, loaded Successfully.
In this Data Source I need G/L Account Number and Terms of Payment (Payment Terms)
I wrote the User Exit for this , then I check in RSA3, data is populating for those two fields.
When I Try to load the data in to BI, it is not loading , it is showing Request is still Running , records it is showing zero 0.
If I remove the user exit , data is loading fine.
My requirement is to calculate Opening Balance,
First I used 0FI_AR_4 DS , but I am not getting Accumulated Balance here, then I use the DS 0FI_AR_6 it have Accumulated Balance field but in this DS I dont have G/L Account Number and Terms of Payment (Payment Terms)
Its very urgent , we are in UAT stage
Need some inputs to resolve this..
Thanks & Regards,
SHAIK
Edited by: shaik on Jan 16, 2008 10:55 AMHey Shaik,
Why you are using AR extractors to get the G/L account opening balance ? As i understand the AR accounts post to a limited G/L account (known as the recon accounts) and it will not extract all the G/L accounts in the first place. So even if you manage to get the opening balance, AR extractors will not give you all the G/L accounts opening balance. If you need to get the opening balance for the G/L accounts then you need to look at G/L extractors.
For the AR extractors what is your extraction period range ? Have you included period '000' for your extraction ?
Hope it helps.
Thanks,
Soumya -
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 calculate Opening Stock for a particular date.
Hi Experts,
I have a sitution to calculate Opening stock for a particular date.
please help me with the necessary Fields & Tables required.
Appriciate If any Sample coding available.
Thanks & regards,
Venkat.Hi Venkat,
To Calculate Opening Stock & Closing stock there are different procedures.
It just depends of\n the client requirements & usage of the material.
For example, we have different types of stocks, like, Through Pipeline, Special, Unristricted, quality, safety,
and many types of stocks.... so all these types are indicated in MSEG tabe in SOBTZ field,...
Now Comimg to your Query, You need to calculate OPENING & CLOSING STOCK.
We have a similiar standard report in MB5B Tcode..
to get the same results in your report do like this...
For valuated stock go to the MARDH, MBEWH, MCHBH tables But I Prefer MBEWH.
here in MBEWH give the month & year and you get the result in LBKUM field...
For Special stock, You need to go to another table like MKOLH,,(I forgot still 2 more) and
give the month & year inputs and you will get the result in SLABS field.
and remaining MB5B refers to its deetails lists with different Movement types,
whcih you can get clearly from MSEG Table...
Hope you can write the select Queries accordingly.
Thanks & Regards,
Dileep .C -
How to enter opening balances for business partners
pls let me know end to end process to enter opening balances for business partners.
thank
reemaHi Reema....
There are two processes you can enter OB for BP.
1. Bill waise
2. Total
If you want to go for Bill wise then its better to upload the AP and AR invoice under service category via DTW.
If you want to go for Total BP balance then go to Administration> System Initialization> Opening Balance--> Opening Balance Business Partner.
Regards,
Rahul -
How to calculate open balance Vendor Line Item Display(FBL1N)..?
hi,
is there any way to fetch data for open balnce in vendor report display(FI).
As I have to calculate Credit , Debit and Open balace , also Balance as on date. in Zreport with reff of FBL1N.
Vendor item data has been calculated from BSIk table. also open balance has to be fetched from with reference of Clearing doct and posting doct. i have
so if any FI technical or non techincal person has gone thru these things, those who have clear picture on these plese let me know.
Thnks in advance.Please note that most vendor line items wont have a PC assigned to them.
I am not sure if you are refering to classic view or new GL data.
Anyway you can use the sum button, and sub total for your levels.
If you want to get the information sub totalled by PC, then I guess you are using the new GL and document splitting.
If that is the case you cannot use FBL1N for this.
There is however a set of reports in Accounts Payable, called new Gl reports and they will provide you the general ledger view and not the entry level view, and you can use the sum and sub total option.
Please award points if this is useful.
Come back if you need further help. -
Daily opening balance for GL /Customer / Vendor
Hi,
I need to pull the data for GL / Customer / vendor daily opening balance in a z report.
Kindly let me know any table thru which I can pick up these values.
Regards,
Ajay GupteIf you want just Customer and Vendor G/L Accounts - You can check the Tables BSIK and BSID. However if you want it for all accounts, check GLT0
Maybe you are looking for
-
Saving Filter Values in BI Workspace
Hello Experts, We have created a muti-tab Workspace on BI Launch pad which have dashboards(Webi reports and xcelsius dashboards) in each tab (and some tabs have sub-tabs.) This Workspace can be accessed by our clients from their personal inbox.
-
More that four decimals in Order quantity in VA01
In sales order i want to add four digits after the decimals. For example the order quantity is 23.2345 Kgs i should be able to enter, but system at present is allowing 23.456 Kg. If i enter 23.2345 KG the system is giving error that iput data format
-
I am looking to put together a HTPC and have a few questions about what i want to do. First this is the set up I am looking at buying. Mac Mini connected DVI to HDMI to a 46" Samsung TV. Mac Mini ethernet connection to TC. 2TB external HD connected t
-
Legacy asset deletion after AS91
Hi All, How to delete few assets after loading thru AS91. ( As 60 records are duplicated Input file issue- Basically I dont want to delete all 9000 records ) Tcode AS06 does not allow me to delete with a message values are there. The SAP message is c
-
OCCI Only for MS Visual C++ 6.0 ?
I found that the oraocci9.dll is linked with MSVCPR60.DLL. So that when I use MS Visual Studio .NET (7.0), it conflic with MSVCPR70.DLL because there are some differents between two version of that library. Have you have any version of OCCI that inde