FD10N Customer ledger balance use which FI tables
Dear All
I want to make a query for Customer Ledger Balance. For the same I just want to know what tables
they use for the same with information about Cheque no for the receipt of cheque from the customer.
THNX
VG
Hi,
PAYR is the Table for Cheque Details
Similar Messages
-
Vendor + Customer Ledger Balance
Hello Experts,
I am end user in Fico
We are created some Vendor as a Customer through customer master because we are creating some scrap sales billing to the same vendor means customer.
We have seen thier ledger balance as Vendor Bal. in Vendor Ledger and Customer Bal.in Customer Ledger.
But need that the ledger will displayed in only Vendor Ledger alongwith customer line items and balance.
Please give the guideline to solve this problem
Thanks
PrashantThanks Smruti,
For your reply
But i need that the ledger will displayed in only Vendor Ledger alongwith customer line items and balance and not in customer ledger i.e. tran.code
S_ALR_87012172 - Customer Balances -> Customer Balances in Local Currency
Please give the guideline to solve this problem
Thanks
Prashant -
SAP table for customer account balances by document currency
Hi experts,
We have a requirement to produce a monthly customer statement by customer currency or customer's document currency. Example is that the company code local currency is USD and the customer currency is EUR. The customer will be allowed to carry over a balance to next period under a certain threshold so there will be a carry over beginning balance from the previous period which needs to appear on the statement. Transaction FD10N only displays customers balances in the local or company code currency which is USD in this example.
Question: Does anyone know if there is an SAP table that stores period beginning balances by customer account currency or customer's document currency?
We have not been able to find one and want to get additional input prior to building our own custom table.
Many thanks in advance for your assistance.
Regards,
NormaFHi:
Make use of BAPI_AR_ACC_GETKEYDATEBALANCE to calculate customer opening balance. You need to develop Z report using table BSID and BSAD other SD related tables . There is not SAP standard report that shows the customer opening balance as carried forward from previous month.. You can make alteration for for showing balances in document currency.
Regards -
How to fetch the customer debit balances form the KNC1 database table
Hi Experts,
I am creating a ABAP report which would dispaly the customer credit balances for the currenct fiscal year.
I am fetching the values form KNC1 database table.....But in this table values are stored year wise.
But I want to display for the current fiscal year that means if teh user selects the 07/2011 as the month on the sleection screen then the debit balances from 072010 to 062011 should be dispalyed.
Could anyone please help me out to fetch this the debit balaces form KNC1 database table in the above format.
Or is there any other way to solve this problem?
Awating your urgent reply.
Many Thanks,
Komal.Hi Komal,
First, you have to compute the initial period and the final period.
Next, you must read table KNC1 for the years comprised between these two periods.
Last, you must read the fields of table KNC1. For that, you should compose dynamically the name of the field, and then ASSIGN it to a FIELD-SYMBOL.
Now, just add up the values!
Please try the following code:
FIELD-SYMBOLS: <fs>.
DATA: t_knc1 TYPE TABLE OF knc1 WITH HEADER LINE.
DATA: d_debits LIKE knc1-um01s.
PARAMETERS: p_kunnr LIKE knc1-kunnr,
p_bukrs LIKE knc1-bukrs,
p_spmon TYPE spmon.
DATA: l_fieldname(20) TYPE c.
DATA: l_date LIKE sy-datum,
l_date_from LIKE sy-datum,
l_date_to LIKE sy-datum.
DATA: l_period(2) TYPE n.
DATA: l_num_times TYPE i.
START-OF-SELECTION.
"Compute the initial and final periods
CONCATENATE p_spmon '01' INTO l_date.
CALL FUNCTION 'RE_ADD_MONTH_TO_DATE'
EXPORTING
months = '-1'
olddate = l_date
IMPORTING
newdate = l_date_to.
CALL FUNCTION 'RE_ADD_MONTH_TO_DATE'
EXPORTING
months = '-12'
olddate = l_date
IMPORTING
newdate = l_date_from.
"Read table KNC1
SELECT *
INTO CORRESPONDING FIELDS OF TABLE t_knc1
FROM knc1
WHERE kunnr = p_kunnr
AND bukrs = p_bukrs
AND gjahr BETWEEN l_date_from(4) AND l_date_to(4).
"this will yield at most 2 records, one for present year, and another one for the previous year.
"but if you select i.e. period '01.2012', initial_date = '01.01.2011' and final_date = '31.12.2011'
" --> thus only one year --> one record
CLEAR: d_debits.
LOOP AT t_knc1.
" If there's no year change
IF l_date_from(4) = l_date_to(4).
DO 16 TIMES.
l_period = sy-index.
CONCATENATE 'UM' "compute dynamically the field name
l_period
'S'
INTO l_fieldname.
ASSIGN COMPONENT l_fieldname OF STRUCTURE t_knc1 TO <fs>. "assign
ADD <fs> TO d_debits. "and add up
ENDDO.
ELSE.
" If there IS a year change
IF t_knc1-gjahr = l_date_from+0(4).
l_num_times = 16 - l_date_from+4(2) + 1. "you must loop 16 - initial_period + 1 times for the first year
DO l_num_times TIMES.
l_period = sy-index + l_date_from+4(2) - 1.
CONCATENATE 'UM' "compute dynamically the field name
l_period
'S'
INTO l_fieldname.
ASSIGN COMPONENT l_fieldname OF STRUCTURE t_knc1 TO <fs>. "assign
ADD <fs> TO d_debits. "and add up
ENDDO.
ELSE.
l_num_times = l_date_to+4(2). "you must loop final_period times for the second year
DO l_num_times TIMES.
l_period = sy-index.
CONCATENATE 'UM' "compute dynamically the field name
l_period
'S'
INTO l_fieldname.
ASSIGN COMPONENT l_fieldname OF STRUCTURE t_knc1 TO <fs>. "assign
ADD <fs> TO d_debits. "and add up
ENDDO.
ENDIF.
ENDIF.
ENDLOOP.
You'll have the result on variable 'd_debits'.
I hope this helps. Kind regards,
Alvaro -
Invoice amount which is reflecting in our customer ledger
Hi gurus
In few cases Invoice amount which is reflecting in our customer ledger is basic value insted of " net selling value" ( basic price + Tax Price ). Due to which in my customer ledger receivables are showing less as per Invoice value.
Can you solve this problem. and tell me the solution.
Thank you
AnilHi
May be the report you are looking is CO-PA report ....if it is the case goto the report form and goto the column of net selling value...and change the formula used over there....if it is a customised (Z report) ...take the ABAPer help....if it is standard report, please let me know the TCODE..so that it will be easy to check the logic
VVR -
Which SQL table holds opening balance?
Dear all,
I want to use crystal report to draw financial information directly from SQL database.
However, I don't know which SQL table stores the open/ending balance of account item
of a given period.
Any one can help?
Norman.Dear Gordon,
So how is the calculation? Below is my guess. Please comment.
For example, opening balance of account 1234 is $100DB.
If I want to find opening balance of account 1234 as at period 2.
Summing up all journal entries in period 1 to find the total debit/credit.(for example : $150DB)
And add up the two ($100DB + $150DB) to get $250DB.
This is the opening balance of account 1234 as at period 2.
For opening balance as at period 3, sum up all journal entries in period 1 and 2.
Add the result to opening balance.
Please comment.
I wonder if SDK DI has any COM object to get the result directly.
Thanks.
Norman. -
Can we transfer balances of customer ledger
I created new customer master record for existing cutomer by making small modifications and changing New Recon account. Now I want to tranfer balances of existing customer ledger to new customer ledger. so that old recon account will get cleared and balances will be transfered to new recon account. whether it is possibe to do so?
Hi,
You can do it thru F-02..
Thats the manual pass you need to do...
Beware of the posting keys you use because the keys you use must be 01 and 11 to debit and credit the customer respectively.
POINTS PLEASE
Cheers
Raghu -
Getting Opening & Closing Balance in Customer Ledger Report
Hi Guys.
I am developing a report of Customer Ledger. There I have to display the Opening Balance & Closing balance of individual customers on m onthly basis.
I have date related objects
1. Fiscal Year/Period,
2. Fiscal Year Variant,
3. Posting Date,
4. Clearing Date and
5. Entry Date.I am sorry for the above posting...
Hi Guys.
I am developing a report of Customer Ledger. There I have to display the Opening Balance & Closing balance of individual customers on m onthly basis from debit amout and .credit amount.
I have date related objects
1. Fiscal Year/Period,
2. Fiscal Year Variant,
3. Posting Date,
4. Clearing Date and
5. Entry Date.
I have created a variable on posting date with "interval".
Please let me know how to restict the keyfigures to get my report to display Opening & Closing Balance.
ThanX in advance
Peter -
You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?
Forced me to do a little research.
DBCC SQLPERF(logspace)
See also
http://stackoverflow.com/questions/198343/how-can-i-get-the-size-of-the-transaction-log-in-sql-2005-programmatically
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
Which views/tables to use for retrieving item information
Hi All,
I need to write a PL/SQL procedure for retrieving detailed information for a specified item (given inventory item ID and organization ID). I'm not quite sure which views/tables to us for this.
I found out that view MTL_SYSTEM_ITEMS_FVL is the underlying view for the Master Item Form (via help / record history menu option). But when looking up in eTRM following warning is described:
Warning: Oracle does not recommend you query or alter data using this view. It may change dramatically in subsequent minor or major releases.
The second view I found is MTL_SYSTEM_ITEMS_VL. But when quering for data in this view, it turned out that the view is empty.
Can anybody tell me for what purposes this view is used?
Is it the correct way to use one of these views (or any other?) for retrieving detailed item information or should I better define a new query within the procedure using tables such as MTL_SYSTEM_ITEMS_B, MTL_SYSTEM_ITEMS_TL and MTL_PARAMETERS (any others) ?
Any ideas for that?
Best Regards,
CarolinHi Carolin,
It's usually more efficient to use base tables instead of views. The tables you will actually need will depend on your requirements. Regarding your question about MTL_SYSTEM_ITEMS_VL, it's usually ok to use the _VL views. These typically contain the same information as the base tables plus some logic to get the appropriate translations for fields that can be shown in different languages (for instance, DESCRIPTION). Typical table names you will need could be:
Item Master: MTL_SYSTEM_ITEMS_B
Organizations: MTL_PARAMETERS
Subinventories: MTL_SECONDARY_INVENTORIES
Units of Measure: MTL_UNITS_OF_MEASURE
Onhand Quantity: MTL_ONHAND_QUANTITIES_DETAIL
Material Transactions: MTL_MATERIAL_TRANSACTIONS
Categories: MTL_CATEGORIES_B, MTL_CATEGORY_SETS_B, MTL_ITEM_CATEGORIES
If your query didn't return any data, it's probably because the language was not properly setup in your session (check USERENV ('LANG') so see what's the language in your session).
Hope it helps. -
Which all tables are used in easy cost planning
hello all,
can anybody tell me that which all functions are used in easy cost planning.
if i use transactions cj20 and ckcm then which all tables will be reflacted. if possible plz tell which all the function modules are used....
Thanx,
hetal.......Hi Hetal,
PRPS: master data of the WBS, espeically, field kalnr, which link to ECP
KEKO: BZOBJ = 6 for ECP with project system
CKHS: Header
CKHS: Item
For MECP (ECP mit multiple CO version using Addon), there are other tables relevant: PRECP1, PRECP2,
Kind regards!
Zhenbo -
In few cases Invoice amount which is reflecting in our customer ledger
Hi
gurus
in few cases Invoice amount which is reflecting in our customer ledger is basic value insted of " net selling value" ( basic price + Tax Price ). Due to which in my customer ledger receivables are showing less as per Invoice value.
what i would like take futher steps to solve this problem.
Thank you for immmedeatly.
AnilAnil,
You have to look to the pricing in your SD invoice for these situation. I thing there is somthing wrong there.
Paul -
Find out the SQLs which are using a full table scan
Hello all , how can i to find out the queries which are using a full table scan ? Any idea ?
In general, though, why would you want to tune SQL statements that aren't causing problems? Statspack will tell you what the most resource-intensive SQL statements on your system are. A SQL*Net trace of sessions that are performing poorly will indicate which statements are the most resource-intensive for that session. If a statement is incorrectly doing a full-table scan, but it is not causing a problem, why spend time tuning it? If you're not focusing your tuning attention on identifying statements that are causing problems, you'll also miss out on 90% of tuning opportunities which involve rewriting (or eliminating) code to make it more efficient. I can simulate a join on two tables with nested cursor loops, which won't generate a single full table scan, but replacing that code with a real join, while it will cause at least one full table scan, will be orders of magnitude faster.
As an aside, full table scans aren't necessarily a bad thing. If a statement needs to retrieve more than a couple percent of the rows of a table, full table scans are the most efficient way to go.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Table/BAPI to get the customer overdueand balance amounts
Hi Gurus,,
Can some one help me in finding the Table/BAPI to get the customer overdueand balance amounts in a period of time.
Thanks And Regards,
Abhi....Hi Eli,
Thanks for the answer, but my problem is actually related to Credit Control Management, where we define the Credit Limits and Risk Catagories.
Again, I wanted to know the table/BAPI where I can get the information about the Overdue Amonut (the pending amount that was supposed to be paid by Customer in a fixed period) and the total amount : Outstanding Amount
Thanks In Advance..
Abhi... -
How to find which sequence name is used in a table
Hi..
I have a table.. it uses some sequence name..
But how can we find that the table is using so and so sequence...
From which USER_* table is used for that
thanksuser5451445 wrote:
I know this is an old thread but I was in the position of the original author and I use this, based on responses here I make this query that can be useful when the sequence is attached to the table using triggers (the most common scenario). I would agree that the most common use of a sequence is probably to generate a PK for a table.
I would agree that, when using a sequence to generate a PK, using a trigger is best practice.
But those two agreements do NOT add up to validating you assumption that "attaching" a sequence to a table using a trigger is the most common scenario.. Many shops feel that triggers are inherently evil and forbid there use. Even without that, many developers refuse to use the facilities of the database and insist on putting everything in their app code. Thus, even when using a sequence, they embed it in their app, thus allowing the use of the sequence to be bypassed by other code.
And in the case of someone trying to locate the use of the trigger, they must keep in mind that not all application code is in PL/SQL modules - it may very well exist completely outside of the database and thus be invisible to any query you could run on the database.
Let's say we have a table tblproceso and a sequence proceso_id_seq, we wrote a trigger that put the next value from the sequence on every INSERT. With this query we can see in what table we use sequences like 'proceso_id_seq':
select trigger_body, table_name
from user_triggers
where triggering_event = 'INSERT'
and UPPER(dbms_metadata.get_ddl ('TRIGGER', trigger_name)) LIKE '%PROCESO_ID_SEQ%'
This will show the trigger body and the name of the table where it's used
Hope this can help other users with this scenario
Maybe you are looking for
-
please help URGENT : Chinese handwriting doesn't seem to work on Lion OSX. the handwriting trackpad appears but anything i write in Chinese doesn't appear in word, chrome,..... HELP PLEASE And in system prefs/language and text/input languages, simpli
-
Select Query and Recordset on same page
I have been workig with Coldfusion for a while now. Where I work there is a need for web pages to extract data from data sources. I have been successful at doing this. Typically I use a form that selects multiple criteria, which when submitted loa
-
If createConnection hit "connection lost contact" then "invalid OCI handle"
I am facing a peculiar error with OCCI API : The c++ application make use of OCCI API to interact with 10 different oracle DBs sequentially in loop, but the moment pConn = pEnv->createConnection(a_usr, a_pass, a_connection) for 1 slow db is hit with
-
IPhoto crashed while importing photos
While importing photos, iPhoto crashed. Now the pictures are damaged. Is there a possibility to regain them or salvage them?
-
Plan Revenue from Billing plan..Report
Hi Expert, If i have plan the revenue hierarchically and after that I am planning the revenue from Billing Plan ..in SLR531 Report ..which values will be come... Is there any report where I can see all [lan values for revenue from billing plan.... Re