Cumulative balance - which table?
Hi there, I am writing a fairly simple query from JDT1, but i can't find the cumulative balance column in either ODJT or JDT1. is it in a different table or is there a formula i should write?
thanks, my example query is below:
SELECT T1.[TransId], T1.[Account], T1.[CreatedBy], T1.[ContraAct], T1.[LineMemo], T1.[Credit], T1.[Debit], T1.[DebCred], FROM [dbo].[JDT1] T1 INNER JOIN OJDT T2 ON T1.TransId = T2.TransId WHERE T1.[Account] = '[%0]' and T1.[RefDate] between '[%1]' and '[%2]'
Hello Groovy,
You can use the word SUM to sum the different values.
E.g. this sums the values of both credit and debit side and it was used in the query generator:
SELECT sum(T0.[Debit]) + sum(T0.[Credit]) FROM JDT1 T0 INNER JOIN OJDT T1 ON T0.TransId = T1.TransId WHERE T1.[TransId] = '95' group by t1.transid
or if you want the total of the column you can use:
select SUM (debit) from jdt1 where transid = 'XXX'
and it will sum the total of debit for that transid.
Please, let me know if the information helped you. If not, can you please give us more information about what you need?
Thank you.
Marcella Rivi
SAP Business One Forums Team
Similar Messages
-
In which table the initial balances will be stored when loading via api
Hi all,
I am doing initial balances migration...
In which table the initial balances will be stored when loading though an api.. (pay_balance_upload.process).
First I have loaded data in to pay_balance_batch_headers and pay_balance_batch_lines tables..
Then called the api pay_balance_upload.process. and the data was reflecting correctly in front end.
But we need to reconcile the loaded data.. for that, can anyone please tell me in which the loaded balances would be stored..
I have identified two tables, pay_assignment_latest_balances
and pay_latest_balances
when I try to create a balance from frontend I can see the data in pay_latest_balances table..
But when I load via api I am not able to find it in any of these tables..
In addition to that can anyone please tell me when the data will be populated in pay_assignment_latest_balances and pay_latest_balances tables.
Awaiting for your help and quick response..
Thanks and Regards
KishoreYou have followed the correct process..As Vignesh said, you can use pay_balance_pkg.get_value to make sure you have the correct values uploaded but otherwise if you are able to see the values in the front end I wouldn't worry about the latest balances tables. These tables, as the name indicate, hold only the latest values and if a payroll (ran post the initial balance upload) has been rolled back, these are deleted since they are no longer available.
You can refer the below Metalink notes for a detailed explanation:
The Secret Life of Initial Balance Upload with Screenshots Example [ID 60057.1] -
Which table has quantity balance (outstanding) on STO.
Hello Friends,
I have to modify a report. The report has a list of plant + material + batch, and I need to find out whether any STO is open for that material and/or material-batch. What is the easiest way, and from which tables/fields, to get this info ?
Thanks,
- Chetandepends a bit on the STO process you use.
Are you doing deliveries, or just MM postings? is it intercompany or intracompany?
What movement types do you use for goods issue? -
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 -
Different Balance Due and Cumulative Balance
Hi Experts,
My Client, SBO 8.8 PL17, are experiencing an issue where the balances differ from the balance due screen and the cumulative balance.
There are 2 closed invoice showing in the cumulative balance window as well as on Ageing report. These 2 invoices was closed with Credit Notes, both are linked to the target credit, on the actual invoice it shows as closed, the applied transactions clearly states that the doc is closed. In the DB, the INV1 lines for the invoice is also closed.
For some reason it just doesn't want to pick up that the invoice is linked to the credit.. The credit is not displaying though.
I have have read through notes but none of them have the same issue as this, they are all related to partial payments, which is not the case here.
If anyone have any suggestions, please let me know.
Kind Regards,
Wynand.Hi,
Kindly check the following query whether the same gives any result :
select * from OINV t0 inner join JDT1 t1 on t0.transid=t1.transid and t1.account<>t1.shortname
where t0.docstatus='C' and (t1.BalDueDeb+t1.BalDueCred)<>0
Also, check the INV6 table and the values displayed therein for the paidtodate and paid fields.
Kind Regards,
Jitin
SAP Business One Forum Team -
FAGLB03 cumulative balance fieldname??
Experts!!
I need your help please..
I need to know which table they store the figures of cumulative balance field.
Im using transaction FAGLB03.
then there is cumulative balance field which im going to used in my program for computation.
Problem I cant find the table and its fields..
I tried to used ST05 .but I failed to find it.Please help me...Hi,
In my opinion the Cumulative Balance should display the sum of the "Balance Due" from each transaction.
In Version 2007 A ..."the Cumulative Balance field sums up the total transaction (invoice/payment) amounts. This field takes the amounts from the 'C/D (LC)' field and not the Balance Due field. Therefore, the total of the 'Balance Due' is not the same as the 'Cumulative Balance (LC)' "...
The Cumulative Balance field, only shows the cumulative balance of the transactions displayed on the screen. The Cumulative Balance differs when the option " Display Unreconciled Transactions Only " is ticked or unticked.(if there is partial payments or reconciliation...)...
regards,
Sanju M S -
Opening and Cumulated Balances of PCA
Dear BI Gurus,
I am using two standard (PCA) Data Sources
<b>1. 0EC_PCA_3 and
2. 0EC_PCA_4</b> to Load data into my Custom Cube.I need Cumulated balance and Opening Balance of Actual Line Items for my reporting purpose.
There is an object 0BALANCE which is not getting populated from the 0EC_PCA_3 Data Source.
We are able to get only the Cumulated Balances of Periodic Transfer, but unable to get the Balances of all the other Accounts.
So, can anyone please help me out in getting the Cumulated Balances and Opening Balances of the Account Numbers.
With regardsFor Delta update
The extract structure does not contain the BALANCE field. To get the inventory for balance sheet account, 0BALANCE can be filled in BW in den updating rules. For further information, see note 577644.
Or you can do full load
http://help.sap.com/saphelp_nw04/helpdata/en/5d/ac7d8082a27b438b026495593821b1/content.htm
Hope it Helps
Chetan
@CP.. -
FI Partially cleared document which table get saved
Hi,
I want to know in which table partially cleared documents regarding G/L , vendor and customer is saved?
Thanks
ParagHi,
Initially the original document posted will be in the table BSIS ( eg for 12000). When a partial payment made against the original document , eg here (7000) also will be posted in BSIS, since it is only partially cleared. Now when we pay the balance ( here 5000) , for the same document , all the 3 documents wiill be moved to the table BSAS eg, the 12000, 7000, 5000, since it is fully cleared.
Regards,
Smart -
Wrong Cumulative Balance in SBO 2007
Dear Experts,
I open up BP Account Balance, and notice the Cumulative Balance was accumulated with the C/D column (which is the document total for that transaction), instead of accumulating it from the Balance Due column which shows unreconciled balance due.
I have found SAP Note describing this problem as a definition. But logically, I will think that the term BP Account Balance is suppose to mean the balance due for that BP, instead of total of every transactions related to this BP (Which the system defines it currently). Can anyone explain to me the idea between this system definition.
And if nothing can be changed in SAP now, is there a work around to find out the "REAL" cumulative balance due for a BP, that is how much "unreconciled" due balance do they have?
Please help and advice. Much Thanks!
Warmest Regards,
ChinhoHi,
As you are aware that the version 2007 had the option of partial reconciliation which was earlier not available in the 2005 version. Therefore, in 2005 Version, the cumulative balance was displayed as balance due field accumulation.
However, in version 2007A, due to partial reconciliations being available, the balance due does not display the correct balance, hence the cumulative balance displays the total of the C\D fields.
The same is the logic and the working which is explained in note no. : 1128828 as well.
Hope it clarifies.
Kind Regards,
Jitin
SAP Business One Product Support -
Difference in Cumulative balance amount of ERP and BW query report
Hi all,
We have a report to display the Cumulative balance amount based on G/L account.
The issue we are facing here is, when we check a May month's cumulative balance in ERP side ( using Transaction code FAGLB03 by giving G/L account number, Company code and Year as 2010) we are getting 1000 EUR, and the May month's Balance is 300 EUR.
When we run our Qury report in BW side for the same conditions( same G/L account, Key due date as 31.05.2010 and same Company code) we are getting the Cumulative Balance as only 900 EUR. we are missing some 100 EUR in our report for our Cumulative balance. But,When I check the Cube on which our Query report runs, I could get the May month's balance as 300 EUR.
Kindly help me to rectify this issue.
Thanks.
Regards,
Jayaprakash JHi,
Check is there any restrictions are there . the data must be displayes if the data is there in infocube.
Regards
sivaraju -
Difference in Cumulative balance of ERP and BW
Hi Experts,
We have a report to display the Cumulative balance amount based on G/L account.
The issue we are facing here is, when we check a May month's cumulative balance in ERP side ( using Transaction code FAGLB03 by giving G/L account number, Company code and Year as 2010) we are getting 1000 EUR, and the May month's Balance is 300 EUR.
When we run our Query report in BW side for the same conditions( same G/L account, Key due date as 31.05.2010 and same Company code) we are getting the Cumulative Balance as only 900 EUR. we are missing some 100 EUR in our report for our Cumulative balance. But,When I check the Cube on which our Query report runs, I could get the May month's balance as 300 EUR.
Kindly help me to rectify this issue.
Thanks.
Regards,
Jayaprakash JThe cumulative balance for the GL should be stored in the key figure 0BALANCE in BW
What is the amount when you do a list cube on this KF ?
If you don't have the same as in FI-GL, there are several possibilities :
1) there's a mistake in the extraction flow (transformation)
2) you didn't update the BW infocube with the latest data -
In which table scripts and smartforms are stored
in which tables scripts and smartforms are stored
eg scripts in tadir.Hi this may be of some help.
SD
SALES ORDER/ENQUIRY/QUOTATION
Output type : BA00
ScriptForm Name : RVORDER01
Driver Program Name : RVADOR01
smartform name
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
MM
PUCHASE ORDER/RFQ/CONTRACT
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
smartform driver program: /SMB40/FM06P
GOODS RECEIPT
Output type : WE01
ScriptForm Name : WESCHEINVERS1
smartform name : /SMB40/MMGR1_A
smartform driver program: /SMB40/M07DR
GOODS ISSUE
Output type : WA01
ScriptForm Name : WA_SCHEINVERS1
smartform name : /SMB40/MMGI1_A
smartform driver program: /SMB40/M07DR
FI Forms
Account Statement : F140_ACC_STAT_01
Cheque Printing : F110_PRENUM_CHEK
Balance Confirmation: F130_confirm_01
Dunning Form: F150_DUNN_01
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
SMARTFORMS -Driver Program
PO: /SMB40/FM06P
SO: /SMB40/RVADOR01
GR: /SMB40/M07DR
with regards,
Hema Sundara.
pls give points if u find this helpful. -
The cumulative balance displayed in FS10N does not match the sum of the det
Hello,
The cumulative balance displayed in FS10N does not match the sum of the details. For example, we have a GL disbursement account that has a ***. Balance of 8 million. The debit is 2 million and the credit is 10 million. But, when you drill down on the ***. Bal. for the current period, the sum of the details is 9 million. According to our users, the 2 balances should equal. I did a search in this forum and found 1 post stating they had the same issue and the answer was to run f.16. Has anyone experienced this and if so, how did you handle it? I'm not sure how f.16 functions. Do we have to run it for each consecutive year? I'm not a FI specialist. I'm responsible for data archiving and the users think it's related to archiving. However, we have a test system that was resynced with production prior to when archiving was done and it shows that this issue is pre-existing.
Thank you very much in advance,
LourdesHello,
There is a possibility that you have activate line item display for some of the accounts at a later stage. Meaning that earlier postings were not be shown for the earlier postings but only totals will be made available. Therefore, obviously there is bound to be difference between line item report and totals report.
You need to identify which accounts are being changed with line item display at a later stage.
In case if you forget to keep GL Line item display for an account, but the posting are already made the following steps you would required to get the line item display retrospectively.
1. Note that you are NOT required to make the balance of that GL account to ZERO. Please do not confuse with Open Item Management.
2. Put the check box line item display for the account in FS00. Make sure you are entering right company code.
3. Block the account for posting in COA Segment and Company Code Segment in FS00
4. Go to SA38 and run program RFSEPA01 (Give correct GL Account and Company Code)
5. Now, remove the block you kept on the GL Account in FS00.
This will reset the line item display retrospectively.
Hope this will solve your problem.
Regards,
Ravi -
Cumulative Balance Running Total
Hello community,
i am doing a business partner Account balance report, i have already successfully fetch my data in to crystal reports as well as the running total for the cumulative balance, my problem is i have a duplicated rows in debit side, now how will i say to crystal reports (in Formula expression) that the 1st line if duplicated will the only one to be evaluated. for more detail please see image below
http://i264.photobucket.com/albums/ii184/abing430/CRDuplicatedRows.png
http://i264.photobucket.com/albums/ii184/abing430/CRDuplicatedRows-1.png
please help.
best regards,
Fidelhello sharonamt,
thanks for the response.
//Head
Shared NumberVar OB := {Command.Open Balance}
//Line
shared numbervar OB;
OB := OB + {BP_AccountBalance;1.Credit} - {BP_AccountBalance;1.Debit}
//Footer
Shared numbervar OB
i have this ff. formula the header is put in the page header, the line is put ing Group Footer section and the footer is put in report footer section. my group is grouped by Ref field w/c is unique in this report.
the duplicated rows is eliminated since i put my line formula in the group footer. but using the ff. formula's the report is ok, the results is fine on the first page only, because in the second page it will get the OB balance which is in the page header of the report., i dont needt to reset my running total.
thanks.
please help
best regards.
EDIT:
i have manage to figure out my problem... i just use this formula and it works.
whileprintingrecords;
if pagenumber = 1 then Shared NumberVar OB := {OpeningBalance.Open Balance}
else
0
since im having problem with reseting of the openingbalance, i had trap the page numvber and never reset the running total. this formula works for me as of now.
Fidel
Edited by: Avelino Fidel on Jan 24, 2011 2:46 PM -
we have made a zprogram for updating business area field in bsis & bseg table for particular g/l but it is not getting updated in balance sheet if we see the balance sheet business area wise & the g/l are p/l items in F.01.my question is from which table the data of balance sheet gets updated.
Hi Deepak
The Balance Sheet and Trial Balance data is retrived fromthe Total tables like GLT0 or FAGLFLEXA tables. So when u are adding a fields to BSEG and BSIS it should also add to these tables.
Regards
Surya
Maybe you are looking for
-
How do I remove Mountain Lion and reinstate the original server OS
I have upgraded to Mountain Lion on my MacBook Air, the problem was that my Mac mini showed it available on the apps store, which I then (Stupidly) downloaded. Can anyone tell me know how to turn back time and remove Mountain Lion from my Mac mini an
-
Flex Scrolling Bug in Tree control
<mx:Tree id="tree" labelField="@label" minHeight="400"> <mx:XMLListCollection id="xmlList"> <fx:XMLList id="root" xmlns=www.ns.com> <node label="aaaa"> <node label="aaaDe
-
Screen Exit for Notification Header
Hie Experts. I would like to implement the BADI BADI_EAM_SINGLELEVEL_LIST but when i search for it under t-code SE18 it doesn't exist. Is the BADI BADI_EAM_SINGLELEVEL_LIST found in SAP ECC 6.0 version? Regards, Joseph.
-
Vat reports available in sap for india
Hi, Any one please tell me about the VAT reports available in standard sap system for INDIA.
-
hi expects, in this program in screen 100, i have provided select-options for material no,maximum qty,no. of kanban,no of unit per kanban in tabstrip and i am having 3 pushbuttons (create (screen110),change(screen 120),display(screen 130).but i am