Opening + Debit - Credit where vdate :Date_from in report
Hi All
I have 2 Table one is COA 2nd is CB
In COA i have two acc_id,Opening and in CB i have 4 Column
Cb_acc_id,
Debit
Credit
vdate
When i Run this query in report
Select acc_id,Opening_balance,cb.C,Cb.D from COA,+
*(Select cb_acc_id,sum(nvl(dabit,0)) D ,sum(nvl(credit,0)) C from cb where*
cb_acc_id=:p_1 and+
vdate < :Date_from+
Group by cb_acc_id)CB+
Where acc_id=:P_1+
Its working but if My Debit and Credit = 0 its not showing my Opening Balance
My opening balance is 15000
i need when my debit and credit remain 0 its show me opening balance
I hope you guys understand
Regards
Shahzaib ismail
Developer 6I Database 10g
Hello Shahzaib,
Try Following,
Select acc_id,Opening_balance, DECODE(cb.C, 0, Opening_balance, cb.C), DECODE(Cb.D, 0, Opening_balance,Cb.D)
from COA,
(Select cb_acc_id,sum(nvl(dabit,0)) D ,sum(nvl(credit,0)) C from cb where
cb_acc_id=:p_1 and
vdate < :Date_from
Group by cb_acc_id)CB
Where acc_id=:P_1
Please mark if it help you or correct
Regards,
Danish
Similar Messages
-
Customer opening debit credit balance table
Dear Gurus,
I want to develop zreport customer Vendor ledger in the format Opening Debit Credit balance Is there any table contains Profit Centre , Balance ,Monthly DebitCredit ? There is table which I know but profit centre are not maintained in that table
For Customer KNC1 and
for vendor LFC1
Please help
Regard's
Sai_abapHello Shahzaib,
Try Following,
Select acc_id,Opening_balance, DECODE(cb.C, 0, Opening_balance, cb.C), DECODE(Cb.D, 0, Opening_balance,Cb.D)
from COA,
(Select cb_acc_id,sum(nvl(dabit,0)) D ,sum(nvl(credit,0)) C from cb where
cb_acc_id=:p_1 and
vdate < :Date_from
Group by cb_acc_id)CB
Where acc_id=:P_1
Please mark if it help you or correct
Regards,
Danish -
Debit/Credit Shift not working with report painter
Dears,
We have defined debit/credit shift while defining financial
statement version. This functionality working well with F.01 however its not
working with report painter results. any help will be highly appreciated
Regards,
FRHi Dave,
I have gone back to the books (JP Terry's "Creating Dynamic Forms with Adobe LiveCycle Designer") and think we can improve on things...
var oFields = xfa.resolveNodes("ViolationsText[*].DebitVal"); // looks to resolve the repeating rows (I think)
var nNodesLength = oFields.length; // assigns the number of rows to a variable
var sumTotal = 0; // this is a temporary holding variable for the total, during the loop
for (var i = 0; i < nNodesLength; i++) // this loops through as previous example
if (oFields.ViolationsText[i].resolveNode("DebitVal").rawValue == "C")
sumTotal = "";
i = nNodesLength; // stops the loop
else
sumTotal += oFields.ViolationsText[i].resolveNode("DebitVal").rawValue;
this.rawValue = sumTotal;
This would go in the calculate event of your Total Debit Points field. I would be amazed if it worked first time. I haven't run through LC. Give it a lash!! (a try!!)
Good luck,
Niall -
Sum Debit and Credit where code between 1001001001 and 1001001999 in Report
Hi all
I Create a Simple Report
Which is
SELECT initcap(Acc_name),to_char(acc_id),to_char(acc_id),control_detail,+
Opening_balance, NVL(cb.C,0) as Credit, NVL(Cb.D,0) as Debit,+
Opening_balance+NVL(cb.D,0)-NVL(Cb.C,0) Closing_balance,+
Cb1.dr,cb1.cr,+
Opening_balance+NVL(cb.D,0)-NVL(Cb.C,0)+nvl(cb1.Dr,0)-nvl(cb1.Cr,0)Ending+
from COA,+
*(Select cb_acc_id,sum(nvl(dabit,0)) D ,sum(nvl(credit,0)) C from cb*
where vdate < :Date_from+
Group by cb_acc_id)CB,+
*(Select cb_acc_id,sum(nvl(dabit,0))Dr ,sum(nvl(credit,0))Cr from Cb*
Where vdate between nvl(:Date_from,vdate) and nvl(:date_to ,vdate)+
Group by cb_acc_id)CB1+
Where acc_id = cb.cb_acc_id (+) and+
acc_id =cb1.cb_acc_id (+)+
CONNECT BY PRIOR acc_id = CATAGORY_id+
START WITH acc_id between 01 and 1000+
ORDER SIBLINGS BY acc_id+
Now i need To sum Debit and Credit where code between 1001001001 and 1001001999
Need Help
Regard
Shahzaib ismailHi,
Usually it can be determined using the field shkzg. If it contain 'S' its debit and if it contains 'H' then its credit.
Before showing the amount you need to do like;
IF wa_gl-shkzg = 'H'.
wa_gl-dmbtr = wa_gl-dmbtr * (-1). " dbmtr - amount
ENDIF.
This will solve your problem.
Regards
Karthik D
Edited by: Karthik D on Jun 3, 2009 12:29 PM -
Debit,credit ,opening balance,closing balance..doubt.
Dear friends,
I am working in FI report (vendor balance for date ranges) .Its a ALV report. I want to fetch the datas for debit ,
credit,opening balance,closing balance,for the paticular vendor or all vendors for date ranges.the table for this iam using is BSIK AND LFC1.
all the datas stored in the table is for month wise,but my programe (my user needs even for day wise) how to calculate this,
or is there any function modules avaliable or can u konw any other table storing day wise balances...this report is urgent ..
any one pls suggest me .advance thanks..
regards
veeraif user wants day wise then make use of BSAK+BSIK, here u will get all line items daywise , i mean to say Posting daywise.
BUDAT 31.03.2003---->posting date
BLDAT 31.03.2003
CPUDT 31.03.2003
WAERS INR
XBLNR T&E-29-30.3-PNPT
BLART PA
MONAT 3
BSCHL 31
ZUMSK
SHKZG H------------>D/C
GSBER--------------------->Business Area
MWSKZ-------------------->tax Code.
DMBTR 1,507.00
WRBTR 1,507.00
regards
Prabhu -
Report for G/L line items with both debit & credit posting accounts
Hi,
My client requires a G/L line items report. It can be possible thru fs10n or fbl3n etc. But he wants to see both the credit and debit accounts in the same line.
for ex: if I open a expense account and show the report of individual documents, he wants to see the corresponding credit item to which bank/cash account it got credited to.
we showed them to double click on that document and goto document overview. but they dont want in that way.
they want to see all the line items with both postings in the same sheet for all line items.
valuable replies will be fairly rewarded.
thanks,
chaitanyaHi,
U can use the following TCodes...
- S_ALR_87012287
- S_ALR_87012289
- S_ALR_87012291
But i am not sure if your client will be happy...
This is a very common req and the only solution possible is to have a customized report for the client..
Hope its clear..
Cheers
Raghu -
TO remove lines from itab where debit = credit
hi experts,
pls have look to the following code.
*& Report YTEST *
REPORT ytest NO STANDARD PAGE HEADING.
DATA: BEGIN OF itab OCCURS 0,
ref(3) type c, " reference number
po(10) TYPE C, " purchase order number
ic TYPE c, " debit/credit indicator s= debit h = credit
amount TYPE p DECIMALS 2, " cuurency
END OF itab.
itab-ref = '100'.
itab-po = '4000'.
itab-ic = 'S'.
itab-amount = '200'.
APPEND itab.
CLEAR itab.
itab-ref = '101'.
itab-po = '4000'.
itab-ic = 'H'.
itab-amount = '200'.
APPEND itab.
CLEAR itab.
itab-ref = '102'.
itab-po = '4000'.
itab-ic = 'S'.
itab-amount = '600'.
APPEND itab.
CLEAR itab.
itab-ref = '103'.
itab-po = '4001'.
itab-ic = 'S'.
itab-amount = '300'.
APPEND itab.
CLEAR itab.
itab-ref = '104'.
itab-po = '4002'.
itab-ic = 'S'.
itab-amount = '400.50'.
APPEND itab.
CLEAR itab.
LOOP AT itab.
WRITE:/3 itab-ref , 10 itab-po , 25 itab-amount LEFT-JUSTIFIED.
IF ITAB-IC = 'S'.
WRITE: 37 'DEBIT'.
ELSE.
WRITE: 37 'CREDIT'.
ENDIF.
ENDLOOP.
the o/p is as follows
100 4000 200.00 DEBIT
101 4000 200.00 CREDIT
102 4000 600.00 DEBIT
103 4001 300.00 DEBIT
104 4002 400.00 DEBIT
OK now since purchase order no. (po) is debited as well
as credited by amount 200.00 , the balance becomes 0
so in the output po: 4000 should not appear when debited and credited so the o/p SHOULD BE:
102 4000 600.00 DEBIT
103 4001 300.00 DEBIT
104 4002 400.00 DEBIT
WHAT ADDITIONAL LOGIC SHOULD I APPLY TO GET ABOVE O/P
pls give me lines of code that should be use
BEST REGARDS
PANKAJhi madam
i have used ur logic in my code but with this the
ref no 100 is not deleted and the o/p is
100 4000 200.00
102 4000 600.00
103 4001 300.00
104 4002 400.00
here the code is:
*& Report YTEST *
REPORT ytest NO STANDARD PAGE HEADING.
DATA: BEGIN OF itab OCCURS 0,
ref(3) type c, " reference number
po(10) TYPE C, " purchase order number
ic TYPE c, " debit/credit indicator s= debit h = credit
amount TYPE p DECIMALS 2, " cuurency
END OF itab,
fs_tab like itab.
itab-ref = '100'.
itab-po = '4000'.
itab-ic = 'S'.
itab-amount = '200'.
APPEND itab.
CLEAR itab.
itab-ref = '101'.
itab-po = '4000'.
itab-ic = 'H'.
itab-amount = '200'.
APPEND itab.
CLEAR itab.
itab-ref = '102'.
itab-po = '4000'.
itab-ic = 'S'.
itab-amount = '600'.
APPEND itab.
CLEAR itab.
itab-ref = '103'.
itab-po = '4001'.
itab-ic = 'S'.
itab-amount = '300'.
APPEND itab.
CLEAR itab.
itab-ref = '104'.
itab-po = '4002'.
itab-ic = 'S'.
itab-amount = '400.50'.
APPEND itab.
CLEAR itab.
LOOP AT itab.
IF ITAB-IC = 'S'.
read table itab into fs_tab with key ic = 'H'.
if sy-subrc eq 0.
if fs_tab-amount eq itab-amount.
delete itab index sy-tabix.
endif.
endif.
else.
read table itab into fs_tab with key ic = 'S'.
if sy-subrc eq 0.
if fs_tab-amount eq itab-amount.
delete itab index sy-tabix.
endif.
endif.
endif.
endloop.
loop at itab.
WRITE:/3 itab-ref , 10 itab-po , 25 itab-amount LEFT-JUSTIFIED.
IF ITAB-IC = 'S'.
WRITE: 37 'DEBIT'.
ELSE.
WRITE: 37 'CREDIT'.
*ENDIF.
ENDLOOP.
pls tell me where lies the mistake.
regards
pankaj -
Which table where I can find diff between Invoice and subseq deb/ cred
Dears,
Is ther any table from where I can check whether Invoices is created based on
1, Invoice
2. Subsequent debit/Credit.
I could not find the difference in rbkp table. Pls suggest
Regards
KameshHi,
Invoice Header table: RBKP
Invoice item table: RSEG
and check following link also
[How to identify an invoice/credit memo/ subs credit / subs debit in tables;
Regards
Kailas Ugale -
Profit Center wise Debit Credit report for Customers
Hi
I want to develop Customer Debit , Credit balance report based on Profit Center in the company. In KNC1 Table I got the required data except Profit Center.In S_ALR_87012169 Standard report profit Center is taken. I wanted to make output format of my report in the same format of output of mentioned transaction. Please Suggest from which table I have to take Profit Center and all data of KNC1 table.
Already Searched in Forum
Thanks in Advance
Regard's
Sai
Edited by: sai_abap on Aug 24, 2009 5:11 PMHi
If your requirement is to add the field in report no need to copy the program and change. As per as my knowledge after executing the S_ALR_87012078, select the call up report, and double click on line item report.
From menu select- settings-special fields then it leads to OBVU(It is cross client Customizition)
You can add the Table:BSEG, field name:PRCTR -save
after that you can Run the program RFPOSXEXTEND through SE38
and please follow the SAP note 984305 for further process
I saw the thread .I didnt get it.
will u explain me in detail.
Thanks in Advance
Sai -
Report painter: Financial statement debit credit indicator taken into account?
Hi,
When I create a report with report painter (FGI0) It does not take into account the debit / credit indicator of the FS statement.
Is this standard SAP or do I miss a setting?
kr,
KlundertHi Wolfgang,
Please refer to OSS note 663945. This will give you the transfer rule mapping for 0GLACCEXT.
Hope this helps.
Thanks,
Vivek -
Accu. Debit and Accu. Credit in Standard Trial Balance Report
Hi experts,
I would like to ask for help about the definition of the column Accu. Debit and Accu. Credit in the standard trial balance report.
Previously, I thought it were columns to display the total debit and total credit start from the system go-live to the end period I selected in the report selection criteria. However, in my testing, it seems only included the transaction of the fiscal year of the end of period I selected in the report selection criteria. e.g. If I selected 01.Jan.2009 - 31.Dec.2010, Accu. Debit and Accu. Credit will only display the sum of transaction made in 2010.
In the selection criteria, I selected "Account Balance" and "Annual Report", and unchecked all other selection criteria.
Environment: 8.81 PL06
Please help. Thanks so much.
James
Edited by: JaWang on Jan 10, 2012 3:47 AM
Edited by: JaWang on Jan 10, 2012 4:07 AMHi James,
The Accu. Debit and Accu. Credit in Standard Trial Balance Report can only be calculated through the current report. They have no relation with your initial balance in previous period.
Thanks,
Gordon -
Opening debit and credit in trial balance
Hi experts
My client wants to see the trial balance as below.
Account Head Opening Debit Opening Credit Period Debit Period Credit Closing Debit Closing Credit
i have searched but i could not get the above format. Can I get the above format to see the trial balance in sap.
or if i need to develop the same then what would be the table and field so that i can make the functional spec.
As I am new in sap , I need your help.
Regards
DebS_PL0_86000030 - G/L Account Balances (New)
-
I am not sure if this is where I go to report this, but I can't figure out where else to go. Ever since I downloaded the last App update for facebook, facebook crashes within 30 sec of opening - EVERY TIME!
See:
iOS: Troubleshooting applications purchased from the App Store
Contact the developer/go to their support site if only one app.
Restore from backup. See:
iOS: How to back up
Restore to factory settings/new iPod -
Debit & credit line item clearing in F-53
Dear All,
Am in the process of developing payment advice for my client, one of his requirement is while making payment against vendor in F-53, he selecting debit (KG) and credit (KR) line items against the vendor and he paying for the remaining amount. But when am checking the entries in table against clearing document, invoice document does not appears there, but showing debit & credit line items which we cleared. But he wants credit line item to appear in payment advice and in deduction he needs debit line item.
Kindly suggest me is there any way out for capturing invoice number for these two line items to appear in payment advice.
Regards,
Balaji.cHi IMK,
Am not using SAP std payment advice have developed Y report where the input field is payment document number and against that system will pick the invoice document, for KR & RE, its working fine but for KG where my vendor clearing in F-53 along with KR and for remaining amount he paying to vendor, for this scenario system not showing KG document number against payment document number in table entries.
My issue how to show cleared debit line item in payment advice after doing F-53.
Regards,
Balaji.c -
Debit/Credit Indicator in VA05 Transaction
Hi,
We have a requirement where in a new program designed in lines of VA05 for open sales orders & customer needs to differentiate Debits & Credits separetely for all the open sales orders.
When checked in VA05 there is a field named as Debit/Credit Indicator which is used for capturing this functionality.
Could someone provide me with more details on this field & advice steps to acheive the above functionality.
Thanks
Ramai hope you already know this
in Va05 further selection criteria check thes sales document type is there or not
if not
SPRO-SD-Sales-list-define selection criteria prgram SAPMV75A Display variant "k" enter the sales document type field and save
in Va05 create a variant for a required sales document type excluding Debit and credit document types.
this is only my observation likes points...
Maybe you are looking for
-
Unable to download an app. Error in app store
Trying to upgrade my IMAC software. Keep getting error message in the app. store. Message reads "Error in App. store" How do I correct?
-
Cannot printout the invoice bulk files.
Hello. We have using PDF on R3 through Adobe Document Service on JAVA stack. The PDF is invoice file. We can printout the file. but cannot printout multiple invoice files at one time. To do, We have input output device. Then developer changed the sou
-
HT201210 network connection time out
I am attempting to update the software on my ipod touch and get this message every time. Unfortuntly we forgot the password on the ipod so thus we are attempting to restore it but it appears this download has to take place first. HELP???
-
Hi Experts, for testing purposes I would like to export the entire message that is exchanged between the Adapter Engine and the Integration Server. This should not only include the SOAP Envelope, SOAP Header and the payload but also the Http Header i
-
Best option for upgrading from 3g to 4g. Amazon yes or no?
I currently have 2 smartphones on a 3g unlimited plan, a Samsung Fascinate and a Droid X. I want to get a Galaxy S3 and Droid DNA to replace them. I've seen both phones on Amazon for 30 and 50 bucks respectively when upgrading. What's my best optio