Display Balances
Hi All,
In T.code FAGLB03 display GL Balances
if we want to see the cumulative balance which are posted in special periods as open items.
The line items can be in seen in cumulative balance or not, if no?
Why.
From which table system picks the values of cumulative balance.
Thanks,
Raj
Hi
Cumulative balance field is picked up from the table "FDBL_BALANCE_LINE".
Regards
Srini
Similar Messages
-
Subtract sum of two columns in two different tables and display balance for each row
Hello Friends,
I have the below 5 tables
1. STUDENT (STUDENT_ID, NAME)
2. DEPARTMENT (DEPT_ID, NAME, CONTACT_PERSON, PHONE)
3. SECTION (SECTION_ID,SNAME,DEPT_ID,Acad_LEVEL,SHIFT,TIME,ROOM)
4. TUITION_BILL (Seq_No, STUDENT_ID, DEPT_ID, Acad_Level, SECTION_ID, SEMESTER, Acad_Year, BILL_DATE, GROSS_AMT_DUE)
5. TUITION_PAYMENT (Seq_No,RECEIPT_NO,STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,SCHOLARSHIP,PAYMENT_DATE,PAYMENT_AMT,REFERENCE,REMARKS)
I wrote the following query
SELECT T.Seq_No,T.STUDENT_ID,S.NAME As STUDENT_NAME,d.name As DEPT,T.Acad_Level,c.SNAME As SECTION,
T.SEMESTER,T.[Acad_Year],BILL_DATE,GROSS_AMT_DUE,
COALESCE(SUM(T.GROSS_AMT_DUE),0)-COALESCE(SUM(PAY.PAYMENT_AMT),0)- COALESCE(SUM(PAY.SCHOLARSHIP),0) As BALANCE
FROM TUITION_BILL T JOIN STUDENT S ON S.STUDENT_ID=T.STUDENT_ID join DEPARTMENT d on d.DEPT_ID=T.DEPT_ID
join SECTION c on c.SECTION_ID=T.SECTION_ID LEFT JOIN (SELECT DISTINCT STUDENT_ID,COALESCE(SUM(p.PAYMENT_AMT),0) As PAYMENT_AMT,
COALESCE(SUM(P.SCHOLARSHIP),0) As SCHOLARSHIP FROM TUITION_PAYMENT p GROUP BY p.STUDENT_ID) As PAY ON PAY.STUDENT_ID=T.STUDENT_ID
WHERE s.STUDENT_ID='138218' GROUP BY T.Seq_No,T.STUDENT_ID,S.NAME,d.NAME,T.[Acad_Level],c.SNAME,T.SEMESTER,
T.[Acad_Year],BILL_DATE,GROSS_AMT_DUE,PAYMENT_AMT,SCHOLARSHIP
The above query shows the below output
Seq_No
STUDENT_ID
STUDENT_NAME
DEPT
Acad_Level
SECTION
SEMESTER
Acad_Year
BILL_DATE
GROSS_AMT_DUE
BALANCE
1
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
One
2014-2015
1/10/2014
200
0
5638
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
Two
2014-2015
3/20/2015
200
0
There are two records in the TUITION_BILL table with different Semesters and bill dates for the specified student_id and there is only one record in the TUITION_PAYMENT table which is the semester one payment record. Semester two payment record
is not recorded yet and I want to display the balance like the following output instead of the above output.
Seq_No
STUDENT_ID
STUDENT_NAME
DEPT
Acad_Level
SECTION
SEMESTER
Acad_Year
BILL_DATE
GROSS_AMT_DUE
BALANCE
1
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
One
2014-2015
1/10/2014
200
0
5638
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
Two
2014-2015
3/20/2015
200
200
The above query is working fine but I'm facing only one problem with it which its showing 0 balance for both records instead of different balances like the above desired output.
Please help me in getting the desired result.
Any help would be appreciated.
Thanks in advance,
MohamoudThanks a lot Pituach for your reply; below I posted the script for the database and table creation and inserting sample data into the tables.
CREATE
DATABASE TESTdb
GO
USE TESTdb
CREATE
TABLE [dbo].[STUDENT](
[STUDENT_ID] [int]
NOT NULL,
[NAME] [varchar](40)
NULL,
PRIMARY
KEY CLUSTERED
[STUDENT_ID]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[DEPARTMENT](
[DEPT_ID] [int]
IDENTITY(1,1)
NOT NULL,
[NAME] [varchar](30)
NULL,
[CONTACT_PERSON] [varchar](40)
NULL,
[PHONE] [int]
NULL,
CONSTRAINT [PK__DEPARTME__512A59AC03317E3D]
PRIMARY KEY
CLUSTERED
[DEPT_ID]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[SECTION](
[SECTION_ID] [int]
IDENTITY(1,1)
NOT NULL,
[SNAME] [varchar](40)
NOT NULL,
[DEPT_ID] [int]
NOT NULL,
[Acad_Level] [varchar](30)
NULL,
[SHIFT] [varchar](20)
NULL,
[TIME] [varchar](20)
NULL,
[ROOM] [varchar](20)
NULL,
CONSTRAINT [PK__SECTION__92F8069507020F21]
PRIMARY KEY
CLUSTERED
[SECTION_ID]
ASC,
[DEPT_ID]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[TUITION_BILL](
[Seq_No] [int]
IDENTITY(1,1)
NOT NULL,
[STUDENT_ID] [int]
NOT NULL,
[DEPT_ID] [int]
NOT NULL,
[Acad_Level] [varchar](50)
NOT NULL,
[SECTION_ID] [int]
NOT NULL,
[SEMESTER] [varchar](50)
NOT NULL,
[Acad_Year] [varchar](50)
NOT NULL,
[BILL_DATE] [date]
NULL,
[GROSS_AMT_DUE] [decimal](18, 2)
NULL,
CONSTRAINT [PK_TUITION_BILL]
PRIMARY KEY
CLUSTERED
[STUDENT_ID]
ASC,
[DEPT_ID]
ASC,
[Acad_Level]
ASC,
[SEMESTER]
ASC,
[Acad_Year]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[TUITION_PAYMENT](
[Seq_No] [int]
IDENTITY(1,1)
NOT NULL,
[RECEIPT_NO] [int]
NOT NULL,
[STUDENT_ID] [int]
NOT NULL,
[DEPT_ID] [int]
NOT NULL,
[Acad_Level] [varchar](50)
NOT NULL,
[SECTION_ID] [int]
NOT NULL,
[SEMESTER] [varchar](50)
NOT NULL,
[Acad_Year] [varchar](50)
NOT NULL,
[SCHOLARSHIP] [decimal](18, 2)
NULL,
[PAYMENT_DATE] [date]
NULL,
[PAYMENT_AMT] [decimal](18, 2)
NULL,
[REFERENCE] [varchar](50)
NULL,
[REMARKS] [varchar](max)
NULL,
CONSTRAINT [PK_TUITION_PAYMENT]
PRIMARY KEY
CLUSTERED
[Seq_No]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
USE TESTdb
INSERT
INTO STUDENT(STUDENT_ID,NAME)VALUES(138218,'Abdirahman
Dhuh Gamadid')
INSERT
INTO DEPARTMENT(NAME,CONTACT_PERSON,PHONE)VALUES('Agriculture
and Veterinary','Mohamoud Abdilahi','065')
INSERT
INTO SECTION(SNAME,DEPT_ID,Acad_Level,SHIFT,[TIME],ROOM)VALUES('2A',1,'Year
2','Morning','8:00-10:00','Room 1')
INSERT
INTO TUITION_BILL(STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,BILL_DATE,GROSS_AMT_DUE)
VALUES(138218,1,'Year
2',1,'One','2014-2015','2014-09-10',200.00)
INSERT
INTO TUITION_BILL(STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,BILL_DATE,GROSS_AMT_DUE)
VALUES(138218,1,'Year
2',1,'Two','2014-2015','2015-01-10',200.00)
INSERT
INTO TUITION_PAYMENT(RECEIPT_NO,STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,SCHOLARSHIP,
PAYMENT_DATE,PAYMENT_AMT,REFERENCE,REMARKS)VALUES(1,138218,1,'Year
2',1,'One','2014-2015',0.00,'2014-10-10',200.00,'N','N') -
Block GL from display balances
Dear All:
I want to block some GL balances. so that all the users, except some users, can not see the balances of that GL using any report.
Thanks!
Farahnaz.Hi:
Please ask basis guy to maintain GL authorization group against auth object F_SKA1_BES for user profiles. Activity 03 will help him in doing so. This object is for GL display and it can be restricted by putting GL authorization group for certain activities.
Regards -
How to display balance days for annual leave in payslip report
hi all,
cn sm1 let me know how i can display the leave balance days of each employee on their payslip.
please let me know the tables where i can find the info of the employee annual leave days balance.
The leave defined is decreasing.
Plz i need your assistance gurus.
All comments are welcomed!No one out there to response buddies?
-
Balance sheet report display month wise - F.01
Hi Experts,
We have requirement to display balance sheet report output monthwise, is any SAP Standard T.code is available.
Do we need to create new customized report, if yes from which table i can pick the values.
Please let me know the tables for F.01
Regards,
Raj.Hi Karthik,
Thanks for reply.
The output should be period wise, when user execute the report it should display period wise in the output.
We are on 4.7 EE, so i have to go with GLT0 Table. Any other suggestions.
Thanks.
Regards,
Raj -
Balance Display are different for the same GL account in FS10N & FAGLB03
Hi,
It was noted that the GL account Balance Display are different for the same GL account in FS10N & FAGLB03.
Please advice what would have cause the matter.
Thank you,
Regards,Hi Vani,
Think you are using version 6.0.
I had observed that TCode FAGLB03, displayes balances for particular Ledger (0L) leading by default.
While in FS10N there is no option for selecting ledger.
Try FAGLB03 with all ledgers one by one.
Add the total and then try to matc wiht FS10N.
Assign points of Good.
thanks -
I have created a crystal report with credit and debit column. Balance column created on the report. Report running with cummulative balance. THis report contain an option for date range. If i filtered this report its not showing the actual balance. I need
a first row to indicate previous balance as opening balance in this report. And following is the formula for balance column.
Whileprintingrecords;
Shared Numbervar balance;
Shared Numbervar display;
balance:={@debit}-{@credit};
display:=display+balance;
displayAs this question is out of the T-SQL queue, thus I would suggest you consult Crystal Report questions to the correct forums.
C#
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
VB
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
people there have more knowledge on Crystal Report. -
Hello Friends,
I want to see only closing balance of last year transactions and transaction figures of this year if i run report for this year.
e.g.GL.NO.11000010 has balance in the year 2009 and 2010. if i execute the report for 2010, report should display balance for last year transactions and line item transactions for this year.
Anyone please help on this.
is it possible through layout changes or any additional configurations needed.
Rgds
SwapnaHi,
You will need to do a deelopment.
You can use the following BAPIs for extracting the balaces.
BAPI_GL_GETGLACCBALANCE Closing balance of G/L account for chosen year
BAPI_GL_GETGLACCCURRENTBALANCE Closing balance of G/L account for current year
BAPI_GL_GETGLACCPERIODBALANCES Posting period balances for each G/L account
Regards,
Amit -
FS10N g/l Balance not show
Dear Guru ,
Issue is , When i Check GR/IR Clearing /ac in FS10N , the for period 1, 2 and 3 Period toal dr and cr Balance does not display.
balancy disply only for 4 and 5 Balance .
I already check in GLT0 Table , thr also sys does not show G/L Bal.
When i check for period 1,2, 3 line item showing in the fs10n , but only total DR/CRbal does not show in FS1ON .
How to resolve this issue .
Wear using 4.7 Version .
Thanks in Advance .
MilindDear ,
Yes thr already balance carrie forward process done at the time of year end process .
an i aleady check every thing in perticulre g/l entris and g/l all tables.
Please suggest what I can do ..
Regards ,
MILIND -
Showing wrong Balance in TB and Ledger Report
Dear Experts,
I am facing a problem in Trial Balance & Ledger report, In 4-5 accounts the debit balance and credit balance is same still showing balance of 0.01 or -0.01
for example
Account Head Debit Credit Balance
ED1051 184.31 184.31 -0.01
to nullify the effect if I debit this account with 0.01 then its displaying balance 0.01.
what may be the reason?
Thanks
KamleshHi Kamlesh,
It sounds like there might be transactions in the db with more decimals than the current setting.
You can check this in SQL (B1 will only display 2 decimals)
If this is the case let us know the version you are using.
Jesper -
Difference between cumulative balance and line items total in FS10N
hi,
when I am executing FS10n, I observed that the cumulative balance amount is not equal to line items total . This is due to some amounts in previous years are varying from the line ltem totals in those periods of previous years.
This is not happening with QA server only Prdn server is facing this problem. Can anybody provide me a way to solve this..!?
Regards,
AJo
I have checked the master data for the GL and the check box for line item display is selected. It has not been changed for years.
Edited by: Anil Jonnalagadda on Oct 22, 2008 10:57 AMHi Anil,
The reason for the differences that you are viewing can be various. As the differences are found in the cummulative balance then it means that the differences might have occurred in previous fiscal years. The first stetp is to find when these differences were originated: You can run report SAPF190 (in se38) for previous fiscal years, and company code in question- This report should show the differences with message "Errors" in the log. If differences are found then you have to creeate a message and send it to SAP for further analysis and corrections.(only SAP experts can do this kind of corrections - component FI-GL-GL-X)
Also bear in mind that if you did archiving in previous fiscal years then this would not be an error:
If you already did archiving and secondary index deletion on this accounts with SAPF048I. So this explains why line items balance and GL summary balance differ ! There is no programm error.
See consulting note 81489 which describes this issue:
The balance of an account results from the balance of the open items. In
connection with an archiving that has been carried out, the line item
display - used with cleared items - must not therefore be interpreted as
a balance display. For the balance display, there are separate
correspond to the display balance of the open items from the line item
display.
Having archived and deleted secondary indexes ( with SAPF048I )
for an account you can not use line item drill down as a balance
display any more for a line item managed account.
( as not all line items are existing any more in table BSIS ! )
The transactions meant to display the binding balances are FS10N,
FK10N and FD10N.
They also give you the line items details, but only of those line
items not yet deleted ( by SAPF048I ).
kind regards,
Oscar Diaz -
GL Balance difference in FS10N and FAGLB03
Hi,
I have an issue, GL account balance for an inventory account is not same when compared bettween FS10N and FAGLB03
I checked the totals table GLT0 and FAGLFLEXT and both have different balances.
I have performed Balance carry forward using
FAGLGVTR
F.07
F.16
Please advice, how can we rectify the difference.
Thankshi
FBL3N transaction is used for GL account line item display for Open items , clered items or all items and the total balance of the all items should be equal to the balance of the same GL through transaction FS10n which is using to display balance of GL.
FAGLB03 is used for balance display of GL if you have new GL activated. Blance of the same is as same as FBL3N through all items total for the GL. But, FS10N (tableGLT0) can still be updated - if you have Classic GL activated.
regards
yps -
FS10N - Not displaying line items for Archiving document
Hi Experts,
When we are double clicking on the FS10N accont display balance report to get line item reprot, it is not displaying archived document data. We have also deleted secondary indexes for those archived document.
We are able to get same report while using FBL3N with Archive info structure loaded with data.
Please suggest how to do FS10N archive enabled?
Thanks,
SamirV.Hi Samir,
You should look at the following SAP notes and implement the corrections:
792515
776164
and 831568 (if you use business areas)
Regards,
Eli -
T.code to see the daily balance for 3 bank accounts at a time
HI
There are 3 banks ie. Andhra bank, SBI and CITI
The client want to see the todays balance in all accouns at a time
So which T.code is available to see the present balance
Regards,
VenkatHi
You can use the T Code FAGLB03 in ECC 6.0. However, this can be used specifically with your purpose only if all the three bank accounts are in continuation else the system will display balance of intermediary accounts also.
Assign points if the information is usefu;
Regards
Sanil Bhandari -
Only balance in local currency
Hi
our base currency is UDS. One of the GL ( bank account in Germany ) is set up as document currency ( euro ) and " only in local currency " check box is unchecked ( FS00 , control tab ). Now when I try to load the plan data into system, all the values goes well except this GL. I used manual entry to load the value (Gp12 ) into this GL (plan ).It did not work.
Now I tried to change the check box ( FS00 ) but it does not allow as there is balance into that. First I am not clear why this one account was set up like that.Can anybody suggest me how to fix this "only local currency" issue.
Thanks
SatyaHi Satya,
Since you have created the g/l account with account currency EUR and which is different from your company code currency (USD) it will only accept the postings in EUR. If an account is set up in company code currency then it will accept postings in all currencies. Usually bank accounts are maintained in currencies other than company code currency and in this case I am not sure why you have created a P&L account in currency other than Company code currency.
The indicator "Only balances in local currency" controls the display of balances via FS10N transaction and if you have unchecked that indicator then system should supposedly display the balances by transaction currency but in your case since, your account currency is EUR and the g/l account can only accept postings in EUR it doesnt really matter because it will only display balances in EUR since all the postings going to the above account will be only EUR.
As far as ur problem is concerned; looks like u r loading numbers in currency other than EUR and that is why it is bombing out. You have to zero out the balance in the account first and then have to change the account currency to USD if you want to plan in diff currencies on that account.
Plz assign points if useful
Thanks
Kumar
Maybe you are looking for
-
HI All, I have a issue with the budget. When ever i have gone thorugh for debugg the issue, i came to know there was a down payment exist for the PO. Is it down payment effect the committment? I have gone through the sdn search also. i got input
-
INSTALLMENT PAYMENT FROM CUSTOMERS
hi, can any body help me in the following scnario. 1)the customer has to pay 25%(as down payment) of total invoice amount with in 15 days from the date of purchase order 2) 15% of amount with in 30 days(1st insatallment) 3)30% of amount with in 45 da
-
How to deinstall Oracle database
I installed Oracle database 11g twice on my machine, I have dbhome_1 and dbhome_2, but I want to uninstalled dbhome_2. I have started to uninstall it but where i hanged is where in the command prompt to : Specify all Single Instance listeners that ar
-
No Administrative Rights in v6.0 for Level 10?
2 questions: 1) I have delivered my first upgrade of Lookout to v6.0.1 for a customer. Two days later I go to add another person to level 10 and find I do not have administrative rights to do this. I get a pop-up window that tells me this. Bad news,
-
User Certificate based Authentication Using Anyconnect (DTLS)
Hello, I believe it is possible to set up an ASA to enforce the need for anyconnect users to have a USER certficate installed on their machine before the VPN grants them access. However, I`ve been trying to get this to work but I`m always allowed to