FAGL Table to fetch closing balances period wise
Dear Experts,
I want to fetch GL Closing balances period wise. I have checked GLT0, where no entry is recorded.
Further i have checked FAGLFLEXT, which does not support period wise closing balances.
I require GL closing balance, period wise, as shown in FS10N in FI.
My requirement is to display period wise closing balance, on GL, in the report.
Please suggest and advise.
Thanks in advance......Alok
Hi,
Debug the program RFGLBALANCE , the code and the logic used is easily understandable
Similar Messages
-
Consignment opening and closing Stock Period wise details
My requirement to get the opening and closing stock of particular customer with particular
material period wise. If there is no transaction for a period for particular customer
and particular material , ( which table store the entry without transaction for that particular customer
and particular material ) then how to get the openning and closing of that customer
for that particular material. I have checked MSKU and MSKUH tables for this, but this is not fulfillg my requirement
Thanks.I need to develop a report based on consignment stock.....
MSKU AND MSKUH TABLES STORE THE ENTRY OF CUSTOMER AND MATERIAL WITH PERIOD WISE. I want opening and closing stock of customer with particular material for particular period.The
problem is if there is no activity of a particular material with that particular customer for particular period then how to get value . I have to get the value based on selling price thats why not using MB51.....
Thanks...... -
TABLE for Opening & closing Balance of G/L
Hi all,
I would like to know the name of the TABLE from where i can get the closing balance of previous fiscal and the opening balance of this fiscal year.(As there is a mismatch between the c/f balance.)
Thanks for your Patience & Time
Regards
SAP4MEPankaj
Thanks for the reply.
But i am not able to get the closing balance in GLT0 table.
We have the opening balance only.
My issue is that the C/F balance has not been moved properly to the new fiscal year for a particular G/L code.
Now i want to check what made the discrepancy.
If you have any other inputs,kindly provide.
Thanks for you time
Regards
SAP4ME -
SAP Finance Trail balance Period wise
Dear All,
I am looking for a report similar like F.01 where i can see the period wise or from particular period to a particular period balances.
Please suggest.
Thanks in advance
PMHi
please find the t-codes
S_ALR_87012284 - Financial Statements
S_PL0_86000028 - Fin. Statement: Actual/Actual Comparison
S_ALR_87012332 - G/L Account Statements
There is no standard T -code for trial balance date wise.
Regards
Damu -
GL account opening balance day wise
HI,
I am working on FI report, where i need to calculate the G/L account closing balance on a daily basis, which will be used as the opening balance for the next day, please help me out with some sample report or logic to claculate the closing balance day wise.
u can mail me to :[email protected]
Regards
Soyunee.Hi,
You have to make use of many tables for this purpose.
1. You have to claculate the previuos period and finscal year for the given date..
2. You have to calculate the G/L balances for this period for the given G/L account from table GLT0.(You can use some of the standard function modules for the same)
3. You have get the line items from the various tables like BSIS,BSAS,BSIK, BASK, BSID and BSAD for the dates from the begining of the month to the given date-1. sum upthis amount with the amount retrieved from step 2 .This will be the opening balance for the given date.
4.retrieve the data from he same tables like step 3 for the given date. This will the transactions of the given date.
5. sum up the amounts from step 4 with step 3. this will be the closing balance for that date.
let me know id you want any further info..
Reward the points if i answered your question.. -
About inventory opening balance & closing balance
hi all,
i want to opening balace and closing balance date wise in my query.
how to do it?
regards,
chetan.Hi jeyakanthan,
System generated report has diff format.
Client want diff format thats why i m designing new query in which i want to add this item opening balance and item closing balance along with other details.
Regards,
Chetan. -
Cutomer balance date wise Time wise
Dear all,
Can we get customer balance date wise and time wise. Like if i want to my customer balance on 01.01.2011 before 11:00 am.
Can i get this.
Please revert.
Thanx
PuneetHi,
In Standard report S_ALR_87012172 you can get the customer balances period wise.
we need to customize the report to get date and time wise balances.
Regards,
Nivas -
Batch Wise Closing Balances Table
Hi,
We can get period wise closing balance for Plant-Storage Location-materials in MARDH.
But i didnt find any table which can provide Plant - S.Loc - Year - Period (or Month) - Batch wise closing Balances.
Can any body please suggest a table on the above criteria.
Thanks
Pardha Saradhi Bandaru.Hi,
Check table MCHB
Regards,
Ratish -
Period Wise Inventory Opening balance,Receipts ,Issues and Closing Balance
Hi Guys I need Period Wise Details,but the above query is giving date wise can any one give me a solution plz.
the Below is the table structure and the select statement that i am working on.
CREATE TABLE INV_TRACK( TRANS_ID NUMBER,
ITEM_ID VARCHAR2(10), QTY NUMBER,
COST NUMBER, TRANS_TYPE VARCHAR2(2 ),
TRANS_DATE DATE )
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 1, 'a1', 100, 50, 'r', TO_DATE( '10/01/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 2, 'a1', 105, 50, 'r', TO_DATE( '10/01/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 3, 'a2', 100, 100, 'r', TO_DATE( '10/01/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 4, 'a1', 90, 50, 'i', TO_DATE( '10/02/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 5, 'a2', 90, 100, 'i', TO_DATE( '10/02/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 6, 'a2', 200, 100, 'r', TO_DATE( '10/02/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 7, 'a3', 2500, 10, 'r', TO_DATE( '10/03/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 8, 'a3', 100, 10, 'r', TO_DATE( '10/03/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
INSERT INTO INV_TRACK ( TRANS_ID, ITEM_ID, QTY, COST, TRANS_TYPE,
TRANS_DATE ) VALUES ( 9, 'a3', 1500, 10, 'i', TO_DATE( '10/03/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'))
SELECT *
FROM(SELECT TRANS_ID,item_id,trans_type,trans_date,
lag(qty)
over(PARTITION BY item_id ORDER BY trans_id ASC) "Opening Balance",
DECODE(SIGN(qty-lag(qty)over(PARTITION BY item_id ORDER BY trans_id ASC)),1,(qty-lag(qty)over(PARTITION BY item_id ORDER BY trans_id ASC))) "Receipts",
ABS(DECODE(SIGN(qty-lag(qty)over(PARTITION BY item_id ORDER BY trans_id ASC)),-1,(qty-lag(qty)over(PARTITION BY item_id ORDER BY trans_id ASC)))) "issues",
qty "Closing Balance"
FROM inv_track)
WHERE trans_date BETWEEN :date1 AND :date2You have the right idea for the issues/receipts, but the KEEP function will get you your opening/closing quantities.
SQL> SELECT item_id,
2 period,
3 MIN(qty) KEEP (DENSE_RANK FIRST ORDER BY trans_id) AS opening_qty,
4 SUM(CASE WHEN qty_delta>0 THEN qty_delta END) AS receipts,
5 SUM(CASE WHEN qty_delta<0 THEN qty_delta END) AS issues,
6 MAX(qty) KEEP (DENSE_RANK LAST ORDER BY trans_id) AS closing_qty
7 FROM (
8 SELECT trans_id,
9 item_id,
10 trunc(trans_date,'mm') AS period,
11 qty,
12 qty-LAG(qty) OVER (PARTITION BY item_id ORDER BY trans_id) AS qty_delta
13 FROM inv_track
14 )
15 GROUP BY
16 item_id,
17 period
18 /
ITEM_ID PERIOD OPENING_QTY RECEIPTS ISSUES CLOSING_QTY
a1 01-OCT-05 100 5 -15 90
a2 01-OCT-05 100 110 -10 200
a3 01-OCT-05 2500 1400 -2400 1500
SQL> -
Cash Journal table to find out day wise closing balance
Can I have the table name to find the day wise closing balance of cash journal
tried with CJAMOUNT, but not ........Please refer below link:
Cash journal
Br,Vivek -
Month wise Closing balance of Material Wise and Batch Wise
Hi,
We can get period wise closing balance for Plant-Storage Location-materials in MARDH.
But i didnt find any table which can provide Plant - S.Loc - Year - Period (or Month) - Batch wise closing Balances.
Can any body please suggest a table on the above criteria.
Thanks
Pardha Saradhi Bandaru.Hi,
The required batch information can be taken from the table S034
Regards
Merwyn -
How to calculate opening and closing balance for period
Hi all,
i have to find out opening and closing balance.
the table structure of temporary table is
select * from hwcn_xn_fa_report_temp1 where asset_id=10029400
PERIOD_COUNTER CST_OP_BAL CST_ADDITION CST_TRANSFER CST_DISPOSAL COST_CLOSING_BALANCE
24108 0 0 0
24109 12000
24110 0 0 0
24111 0 0 0
in this table cst_op_balnce and cost_closing_balace is null
i have display cost_op_bal and cost_closing_balnce
cost_closing_balance=cst_op_bal+cst_addition+cst_transfer+cst_disposal
for period 2408 op_balnce=0 closing_bal=0
for period 2409 op_balnce=0 closing_balce=1200
for period 2410 op_bal=1200 closing_bal=1200
closing balance of dec will be opening bal of jan
thanks and regards
Edited by: user10664276 on Apr 19, 2009 11:08 PM
Edited by: user10664276 on Apr 19, 2009 11:13 PMHi,
user11118871 wrote:
Can you explain what that is? Thank you if you have one example.
ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING
When you use the analytic SUM (c) function, then, on each row, it returns the values of column (or expression) c from several rows in the result set added together.
Which rows? That depends.
If the analytic clause (the part in parentheses after OVER) does not include ORDER BY, then it is all rows.
If the analytic clause has an ORDER BY clause, but no windowing clause (that is, ROWS BETWEEN ... or RANGE BETWEEN ...), then the rows included in the sum are all rows up to and including the row where the function is being called (as sorted by the analytic ORDER BY).
If the analytic cluase has both ORDER BY and a windowing clause "ROWS BETWEEN x PRECEDING AND y PRECEDING", then the rows included in the sum are the rows from x to y rows before the one where the function is called.
Do some experiments with different values of x and y.
First, create a table like the one in the problem above, but simplified a little.
CREATE TABLE test_sum
( period NUMBER
, new_amt NUMBER
INSERT INTO test_sum (period, new_amt) VALUES (24108, 1);
INSERT INTO test_sum (period, new_amt) VALUES (24109, 4);
INSERT INTO test_sum (period, new_amt) VALUES (24110, 2);
INSERT INTO test_sum (period, new_amt) VALUES (24111, 8);
INSERT INTO test_sum (period, new_amt) VALUES (25001, 32);
INSERT INTO test_sum (period, new_amt) VALUES (25002, 16);
COMMIT;The original problem above used names that were meaningful for its application, and columns that have nothing to do with the SUM function. Let's simplify the former and lose the latter.
That problem involved the SUM of three columns added together. Since we just want to understand how the windowing clause works, let's simplify that to one column.
With these simplifications, my original query is:
SELECT period
, new_amt
, SUM (new_amt) OVER ( ORDER BY period
ROWS BETWEEN UNBOUNDED PRECEDING
AND 1 PRECEDING
) AS opening_balance
, SUM (new_amt) OVER ( ORDER BY period
) AS closing_balance
FROM test_sum
ORDER BY period;Given the data above, it produces these results:
. PERIOD NEW_AMT OPENING_BALANCE CLOSING_BALANCE
24108 1 1
24109 4 1 5
24110 2 5 7
24111 8 7 15
25001 32 15 47
25002 16 47 63So, for example, on the row where period=24110,
opening_balance=5, which is the total of new_amt from all rows up to but not including that row: 5=1+4, and
closing_balance=7, which is the total of new_amt from all rows up to and including that row: 7=1+4+2.
To really understand how the windowing clause works, do some experiments. Change the definition of opening_balance to include " BETWEEN x PRECEDING AND y PRECEDING". You'll find that:
(a) "UNBOUNDED PRECEDING" means the same as "n PRECEDING", where n is greater than the number of rows in your result set.
(b) "CURRENT ROW" means the same as "0 PRECEDING"
(c) x must be greater than or equal to y
(d) neither x nor y can be negative (but you can use "FOLLOWING" instead of "PRECEDING" to get the same effect).
For more, see the introduction to "Analytic Functions" in the [SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions001.htm#sthref972]
When you're finished, don't forget to
DROP TABLE test_sum; -
Balance sheet in two diff. period wise view
Dear Experts,
Good Morning !
MY company is in India but the mother company situated in France. We have implemented SAP in India as Indian localisation and fiscal year set as April to March. Now in France Database I wanted to see balance sheet in two different period wise, first January to Dec. and secondly April To March.
So how should I close my Period End closing so that I can see Balance sheet in both diff. periods.
Any suggestion on this matter will b highly appreciated.
Regards,
RaviHi,
Check this thread:
http://scn.sap.com/thread/1713294
Thanks & Regards,
Nagarajan -
Material type wise closing balance
hi experts,
can u help me out to get the material type wise closing balance of all plants, we can get this using mbew but it will be a performnace problem ,hence can u help me out to find a function module or bapi which does this, or tell me a way to acieve thisFilter the material from mara table (mara-MTART).
and obtain the data from mard table for those material in mara table and plant
you can also use the standard txn: MB52
Thanks
Ganesh -
GL_DAILY_BALANCES table for daily opening/closing balance
Hi All,
I need to know something about the GL_Daily_Balances table. In eTRM, it says that the table gives the balances for a particular day. My requirement is to show the opening and closing balances on daily basis. But, I found that all the END_OF_DAY columns (END_OF_DAY1...END_OF_DAY35) are NULL.
Can anyone tell me why these columns are NULL ? Under what conditions, they are null ? How can I get the opening /closing balance then?
Thanks!
YoginiHi Yogini,
This table is populated when balance processing is enabled in the definition of each set of books, do you have it?
You can read about in the metalink note # 1072012.6
Bye
Maybe you are looking for
-
Hello, I have a problem with a program in java. when I compile the program (no problem), but when I try to run it I get the message: javaLang:NoClassDefFound I use the sdk 1.4.2 for linux. the path is set and it works, and for this program I use an e
-
PHP files showing white screen
I use Bluehost as my hosting service and this problem has never occurred before using them as a test server. I run Mac OS X and recently followed the tutorial on setting up a PHP5 environment on my Mac. Problem is after doing everything as told and t
-
Hope some one can help. Have had caller display for some time, bought a new phone and it will not work. Reverted to old phone and caller display worked for a while and then stopped working. We have taken both phones to friends who have caller disp
-
HTML5 Audio Playback issue from firefox 33 and above.
I have created an application which was working just fine till firefox 32. It is still working fine in firefox 32. But from firefox 33 and above, the audio playback does not start intermittently. I tried to debug and find the problem further. What I
-
???????????????