Customer Recievables Ageing by Sales Employee showing No Sales Employee
Dear Sir(s),
We are on SAP Business One 8.81 PL04.
The customer recievables Ageing by Sales Employee report shows "No Sales Employee". when we group by sales employee on the selection criteria.
We have setup all our Customers with sales employees in the Business Partner Master Data.
Please advise on what could be the cause of this.
Kind Regards,
Asif M.
Hi Rahul,
Yes, the sales employee details are captured on the invoice.
Infact, on the "No sales employee" Group, only the Incoming Payments (Type : RC) show for the diferent customers and yet these incoming payments were paid based on the invoices which have the sales employees captured.
The customers appear both on the "No Sales Employee" Group as negative balances as well as its correct "Sales Employee' group as positve balance. The report shows correctly when we select the group by as "customer" in the selection criteria.
Regards,
Asif
Similar Messages
-
Can I email the Customer Recievables Aging Reports to the customer?
Running SAP Business One 2007 A (8.00.178) SP:00 PL:42
In the Business Partner Module --> Business Partners Reports --> Aging --> Customer Recievables Aging
It has been requested to me that the results from running this report needs to be emailed to the customer if the email address exists for the customer on the Business Partner Master record.
Is this possible?
ErinHi Erin......
Plase check this thread.......
Auto send Email through SAP B1
This may give you an idea......
Regards,
Rahul -
hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part which corresponds to value dates of customer like their lapses in payments for the previous months....anyone who could help me?thanks
hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part which corresponds to value dates of customer like their lapses in payments for the previous months....anyone who could help me?thanks
-
Customer Receivables Aging Report doesn't show correct data
Hi Experts,
I have some problem when executing Customer Receivables Aging Report.
I'm using 8.8 PL14.
(It should be bug this is very strange ...)
I can't get same result even if I run it continuosly when I selected option "group by Customer" .
Total amount of balance due is change each time because of BP shown in the report is change.
I also got the message " Data is not available, modify selection criteria and re-enter" even though I never change selection.
During executing this report, no Invoice and JE and banking data were input.
Please advice if you know about this error or having something information.
Thanks,
Kaori ShirasunaHi,
The latest patch level available for B1 8.8 is PL16. it will be released on week Oct 25-29, 2010. You may directly upgrade to this latest patch level to solve the issue. If you want to try using query SQL to generate the aging report, there are some threads discussion about the query. You may search it in the SBO reporting and printing forum.
JimM -
Showing Monthly Sales Analysis for Sales Employees (including credit notes)
Hi Experts,
I want to show a report for my director so we can accurately decide upon sales targets for each sales employee for 2012.
The Monthly Report > Invoices by posting date in the Sales Analysis module is not ideal because it does not appear to include credit notes so the totals are incorrect.
How could I create a query which gave me a total for each month of 2011 for every sales employee which includes invoice minus credit notes.
Unfortunately my SQL is not great but I started something which might help - this is only for first 2 months of the year. I presume I would need a select statement for each month if I wanted to have the sales employee name followed by a total for each month. Maybe this is too intensive a query to run anyway.
SELECT T1.[SlpName],
(select(sum(t2.doctotal)-(t3.doctotal)) where (Month(t2.docdate)=1 and t3.docdate=1) FROM OCRD T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode INNER JOIN OINV T2 ON T0.CardCode = T2.CardCode INNER JOIN ORIN T3 ON T0.CardCode = T3.CardCode)
(select(sum(t2.doctotal)-(t3.doctotal)) where (Month(t2.docdate)=2 and t3.docdate=1) FROM OCRD T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode INNER JOIN OINV T2 ON T0.CardCode = T2.CardCode INNER JOIN ORIN T3 ON T0.CardCode = T3.CardCode)Hi,
I have moved your posting here because it belongs here.
You may check this first: Re: Top Customers report
Thanks,
Gordon -
Customer Receivables Aging showing negative $ amounts
My Customer Receivables Aging is showing negative dollar amounts as the balances, however if you drill down to the invoices they show as positive, as does the GL balance. any ideas why?
Hi,
Can you check the whether the following tickbox is checked or unchecked under :
Administration > System Initialization > Company Details > Basic initialization tab > Display Credit Balance with Negative Sign
The box "Display Credit Balance with Negative Sign" will be unchecked.
Also, check the following link :
https://websmp207.sap-ag.de/~sapidb/011000358700000456302007E.zip
Hope it helps.
Regards,
Jitin -
Customer / Vendor Aging Report
Hi,
It´s important to consider the next filter or selection criteria for the reports:
-. Customer and Vendor Aging Reports
Filters:
-. by Sales Employee (Customer Aging)
-. by Buyer (Vendor Aging)
regardsHello Humberto,
New selection criteria of Sales Employee/Buyer is part of enhancements of Aging Reports in SAP Business One 8.8 release.
When you generate the aging report in v8.8:
u2022 You can group the report by customer or sales employee in the customer receivables aging report, and by vendor or buyer in the vendor liabilities aging report.
u2022 You can specify more flexible time interval. For the time interval Days, 4 new fields are added for you to specify the duration.
u2022 You can hide the Future Remit column on the report by choosing Ignore Future Remit.
u2022 When the aging report has been generated, you can view multicustomer/multivendor detailed information in the aging report window. There is no need to double-click each customer/vendor row to view the details.
Peter Dominik
B1 Solution Management -
Customer Receivables Ageing Report
Hi experts,
Our SAP version is 2005B PL 43.
The Customer receivable Ageing Report has two tabs- By Journal entries tab and By sales Documents tab.
1. We find that all Payments, Credit notes and Invoices appear in the Customer Ageing Report By Journal Postings.
This happens in case where an invoice has been partly paid alongwith few other invoices which have been fully paid which we are unable to knock off, limitation in this version of SAP.As a result the Incoming payment and The Invoices both are seen as open in the Ageing Report - By jounal Postings whereas the Ageing Report by Sales Documents shows the net values.
There are cases where if an incoming payment is cancelled, the cancelled entry is not knocked off,again a limitation in this version,as a result the Ageing Report by Jounal postings shows both the wrong payment received as well as the cancelled entry.This does not appear in the Ageing Report by Sales documents.
2. The customer Statement Report if printed from the Customer Receivable Ageing Report - By Jounal Postings displays the payment entries alongwith the Credit notes and Invoices, which is very difficult for the customer to understand.
Instead can we use the Ageing Report by Sales Documents to print the Customer Statement Report?
3. Lastly The Ageing Report by Journal Postings can match the Ageing Report by Sales documents only if partly paid invoices, advance payments and cancelled payments are knocked off.
We are currently not planning to upgrade to 2007B as we are waiting for the 8.8 version which will be rolled out in end of Dec, as informed to us by the SAP regional office.
Our question is which settings will give us the correct Ageing for a customer?
Regards,Hi Vishal,
SAP always recommends to go with the ageing report by journal postings in the old versions. What happens there is that there are 2 separate reconciliation engines at work, one at document level which supports partial reconciliation & one at journal entry level, which only supports full reconciliation. Please have a look at this YEC presentation:
https://psd.sap-ag.de/PEC/calendar/html/recording.php?hck=ee2c7bfa07c3f6523f8846e14428985172efeb4545d14ed4757dfc29be3732557a8abf7a1e89fc7e357cd90b6c39b9123e5cf0f6c4b1ab283171b31ede9ba278
One of the most significant changes in version 2007 & 8.8 is that these reconciliation engines are now unified in that partial reconciliation is also fully supported on journal entry level.
You will find a lot of info on this landing page:
English: http://service.sap.com/~sapidb/011000358700000380562007E
I would highly recommend you upgrade to 2007, it is much, much more advanced than 2005.
All the best,
Kerstin -
Our customers system is local (CDN), but most of their sales are done in US, they must present their Customer receivables aging to the bank in US dollars.
now here is the situation, you must balance with something of course.
as per November 5/08
LC FC
chart of accounts
1 account in particular 4951517.88 4239890.36
Trial balance
same account only 4997820.16 4355640.22
General ledger
same account 4997820.16 4355640.22
Customer aging
for that 1 account 4997820.16 4373724.81
what is different between the chart of accounts and the GL, should they not be the same ??
and as for the aging we see the LC is ok, but the US (FC) is off how is the FC calculated for the agingHi Jill,
To add to the previous 2 posts, indeed, the ageing will be recalculated with the current exchange rate.
It is worth noting that the behaviour would be different in case they would have been using single foreign currency BPs that are using only USD. This also shows the difference between Multi Currency and Local Currency.
When there is a single foreign currency the balance is kept in the single foreign currency and will not be recalculated. However, for the Multi Currency BP, the balance is kept in Local Currency and is then recalculated to the foreign currency when the statement is done. (the reason is that Local Currency is the common currency for the different currencies that the Multi Currency BP might use)
I realize this might be too late for this customer but for future reference I hope it will help, specially in Canada where this is quite common.
Jesper -
Free Goods - Not showing in sales order as subsequent item
Dear Gurus,
I have created a Free Goods procedure determination and maintained it at Customer/ Material level in VBN01.
The procedure is inclusive as follow:
For every 100 units purchased, the customer gets 10 units free
However at sales order level there is no indication at all that the Free Goods are being triggered.
When I check the pricing procedure, the condition record NA00 that I have used doesn't show-up.
There is no subsequent item in the sales order under the main item showing the Free-Goods discount.
Could you please help me go through the customizing process to correct the error?
Many thanks for your help
ChrisHi,
FYI
Free goods can be configured in SAP by following two methods.
(1) Manually
(2) Automatically
Manually: By specifying higher level item category for a line item we can determine free goods as a free of charge
items during sales order processing.
Automatically: System proposes free of goods automatically in the sales order. In automatic free goods
configuration system follows two methods.
(1) Exclusive
(2) Inclusive
Exclusive: System configures free goods in exclusive option like free goods quantity is going to be excluded in
order quantity. Ex: For 10 items 1 item is free. Then system configures free goods as 10 + 1.
Inclusive: System configures free goods in inclusive option like free goods quantity is going to be included in order
quantity. Ex: For 10 items 1 item is free. Then system configures free goods as 9 + 1.
NOTE: In exclusive method other items also can be given as a free of charge items for order item.
Configuration steps: INCLUSIVE
SAP follows condition technique to configure free goods automatically.
Maintain pricing procedure
Path:
IMG
Sales and distribution
Basic functions
Free goods
Condition technique for free goods
Maintain pricing procedures
Choose free goods procedure NA0001 and select it
Click on copy icon on application tool bar and rename it Ex: SRI001
Condition type is NA00 and Access sequence also NA00
Save it and Exit
Activate free goods determination
Path:
IMG
Sales and distribution
Basic functions
Free goods
Condition technique for free goods
Activate free goods determination
Go to new entries
Specify our sales area, document pricing procedure, customer pricing procedure and specify our free goods
procedure Ex: SRI001
Save and Exit
Control free goods pricing
Path:
IMG
Sales and distribution
Basic functions
Free goods
Control free goods pricing
Control pricing for free goods item category
Choose item category TAN from position button
Specify the pricing as X = Pricing standard
Choose item category TANN from position button
Specify pricing as B = Pricing for free goods (100% discount)
Save and Exit
Maintain condition type for 100% discount
Path:
IMG
Sales and distribution
Basic functions
Free goods
Control free goods pricing
Maintain condition type for 100% discount
Check whether condition type R100 is available or not (R100 = is 100% discount)
Exit
Maintain pricing procedure for pricing
Path:
IMG
Sales and distribution
Basic functions
Free goods
Control free goods pricing
Maintain pricing procedure for pricing
Choose our pricing procedure form position button and select it
Click on control data icon under dialog structure
Include condition type R100 between the steps of discounts.
Specify requirement = 55 and Routine No: 28 (100% discount) in Alt. CBV.
Save and Exit
Requirement 55: The Routine No. 55 is assigned to condition type R100. If the user wants to look both revenues
and sales deductions for the free items since the product that we are going to give as a free of charge item can be
sold separately in the same sales order. Then the item category of free goods TANN has the pricing value as B.
Then the system calculates value of the free goods as 100% discount as we discussed above the same material [that
is going to be given as a free of charge item]. Some times the same item is going to be given as a normal item.
Then system calculates price for normal item and system should not calculate price for same item [free of charge
item]. So as to perform this calculation we have to assign Requirement/Routine 55 is to assign condition type
R100.
Alt CBV = 28: [100% Discount] Condition type R100 should be taken as a ZERO value. The formula 28
calculates condition type R100 value as a ZERO.
Set Transfer of cost to Main item: [Copy control]: Transaction code: VTFL
Copy control is a concept by which the system copies the data from source document to target document.
Path:
IMG
Sales and Distribution
Basic functions
Pricing
Free goods
Control free goods pricing
Set transfer of cost to main item [copy control]
Choose Billing type F2 Delivery document type LF from position button
Select it and click on itemicon under dialog structure
Choose item category Ex: TAN
Click on details icon
Click on display or change icon
Choose item category as TAN again
Select it and click on details icon
Check cumulative cost
Save and Exit
Cumulative cost controls whether the cost value (VPRS) is to be copied from relevant sub items into main items.
Sub items cost are not relevant for billing.
Maintain copying control: Transaction code: VTAA
Path:
IMG
Sales and Distribution
Basic functions
Free goods
Control free goods pricing
Maintain copying control
We maintain copy control at item level category for free goods. In this field we can control whether the
free goods should also be transferred when we copy from one document to another document.
Choose source document type as QT and target document type as OR from position button
Select it and click on item control button under dialog structure
Choose AGN item category from position button
Click on display or change button
Again click on AGN
Click on details icon
Check Re u2013 explode structure/Free goods
Save and Exit
This indicator controls whether the free goods are copied from source document to target document or redetermined
again.
Maintain condition records for Free goods [INCLUSIVE]: Transaction code: VBN1
Path:
Logistics
Sales and Distribution
Master data
Conditions
Free goods
VBN1 u2013 Create
Specify condition type NA00
Click on key combination
Specify all the data
Choose inclusive by clicking the INCLUSIVE/EXCLUSIVE push button
Specify the Material No., Minimum order quantity (Ex: 10), Specify [from] the free goods quantity (Ex:
10), Unit of measure u201CEAu201D (Each), Free goods (are free goods) as u201C1u201D.
Calculation procedure: We can specify the Routines for calculation procedure as 1 or 2 or 3
1 = Pro u2013 Rata (Proportionate): Ex: If the customer places order for 100 cases of material u201CXu201D, then customer
receives 20 cases of same material as free. That means, the business can say that buy 100 and get 20. If the
customer orders for 162 cases, then system automatically grants 32 cases as a free of cost (162x20/100 = 32 Cases).
2 = Unit of reference: When customer orders for 100 cases of material u201CXu201D, then the customer receives an
additional 20 cases as a free of goods. That means business can say that buy 100 get 20 free by granting 200 free
for every full of 100 cases. The customer places order for 162, then system automatically grants only 20 cases
(100x20/100=20).
3 = Whole unit: When a customer places order for 100 cases of material u201CXu201D, then the customer receives additional
20 cases of material u201CXu201D as a free of goods item. The business can say that buy 100 and get 20 free of charge items.
If the customer orders for increment of 100 that means 200 (100 + 100) items, then he gets 40. If he placed the
order for 101 u2013 199 items he gets only ZERO.
Save and Exit
Condition record for EXCLUSIVE: Transaction code: VBN1
Path:
Logistics
Sales and Distribution
Master data
Conditions free goods
Specify the discount type u201CNA00u201D
Click on key combination
Click on Choose inclusive by clicking the INCLUSIVE/EXCLUSIVE push button
Specify the sales organization, distribution channel
Specify customer number and validity periods, material, minimum quantity, order quantity, unit of
measure, calculation procedure, free goods (3)
Specify additional material free goods (if other goods is going to be given as a free of charge item.
Save and Exit
Go to VA01 and raise the sales order for INCLUSIVE and EXCLUSIVE.
See the Free Goods effect.
Condition type NRAB = Free goods: Requirement = 59, Alt CBV = 29: [only for INCLUSIVE purpose]
Requirement 59: We have to assign requirement 59 to the condition type NRAB. If the customer buys 100 cases
of product u201CXu201D, then he receives 10 cases of the product free. If the user would not like the additional line item in
the sales order for free goods rather than the discount of the 10 cases is represent in the same line item as other 90
cases. If the free goods discount should not apply on credit for returns that do not make reference in the previous
document.
Alt CBV 29: The condition type NRAB is to be assigned with 29 formula to support inclusive free goods
agreement where the user would have to apply the discount to the order item rather than having a sub item
generated for the free quantity.
Ex: The customer orders for 100 cases of product u201CXu201D, 10 cases are free instead of having a free sub item generated
b the system to represent the free 10 cases, the user would like to have a discount applied to the 100 cases line item
equal to the value of the 10 cases.
NOTE: Free goods can only be configured on document category type u201CCu201D (OR). That means we cannot configure
free goods on Inquiry and Quotation.
Header Conditions
SAP has delivered two kinds of condition types: (1) Header conditions
(2) Item conditions
Header conditions: The value of the header condition applies to the whole items in the sales document.
Header conditions do not have any access sequence.
So that, value of the header conditions should be maintained manually.
Ex: HA00, HB00
Configuration settings:
Include condition types HA00, HB00 in V/08 in between the discount condition types.
Go to VA01 and raise the sales order
Select line item and go to Go to button
Header Conditions
Include condition type HA00 HB00 with values [HA00 is percentage discount and HB00 is absolute
discount]
If HA00 = 1%, then system applies 1% on base value on all items in the sales order.
If HB00 = 100/- Rupees, then system applies 100/- Rupees proportionately to all items in the sales order. If sales
order has two items, then system applies 50/- Rupees to each item.
Click on activate button
Go to item condition screen
Check how system applied header conditions for line items
NOTE: Make sure that sales order contains more than one item.
Condition Scales
We can maintain scales for each and every condition type. So that we can determine pricing conditions values
depending upon the range of the order quantity.
Ex: If you maintain condition record for PR00 for material one as a 100/- Rs. For 1 material, then we can maintain
scales for this material like below:
From Quantity Price
1 u2013 10 1000
11 u2013 20 999
21 u2013 30 998
31 u2013 40 997
Configuration settings:
Go to VK11
Maintain condition record for PR00
Select line item and click on scales icon on the application tool bar
Maintain scales and scale rates accordingly
Save and Exit
Go to VA01 and raise the sales order
Enter the order quantity according to the scale and see the scale effect
Regards,
Siva -
hello All
I want to show a report of all sales orders that has been converted to invoices. (the sales order and invoice document numbers)
Also, if they have been partially converted to invoices(so still open), it must show these sales orders as well.
All Sales Orders that has been converted to Invoices(so closed status) as well as Sales Orders that are still open but has been partially converted to invoices.
This is my query thus far :
with openorders as
SELECT DISTINCT T0.DocNum as 'Sales Order #', T0.DocDate as 'Order Date',
T0.CardName as 'Customer Name',
T0.DocTotal -T0.VatSum as 'Excl. VAT', T0.VatSum as 'VAT',
T0.DocTotal as 'Total',
t0.docdate as 'Inv Date', T0.DocNum as 'Inv #','NULL' as 'Numatcard', T0.DocTotal -T0.VatSum 'Total Ex VAT',
T0.VatSum as 'Inv VAT', T0.DocTotal as 'INV TOT', 'NO INVOICE' as 'Slpname',t0.Comments as 'Comments'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.[TrgetEntry] is null
OrdersInv as
SELECT DISTINCT T0.DocNum as 'Sales Order #', T0.DocDate as 'Order Date',
T0.CardName as 'Customer Name',
T0.DocTotal -T0.VatSum as 'Excl. VAT',
T0.VatSum as 'VAT', T0.DocTotal as 'Total',
T2.DocDate as 'Inv Date',
T2.DocNum as 'Inv #',
T2.NumAtCard,
T2.DocTotal -T2.VatSum as 'Inv Excl. VAT',
T2.VatSum as 'Inv VAT',
T2.DocTotal as 'Inv Total',
T4.SlpName,
T2.Comments
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OINV T2 ON T2.DocEntry = T1.TrgetEntry
INNER JOIN OSLP T4 ON T2.SlpCode = T4.SlpCode
select *
from OrdersInv union all
select * from openordersTrgetEntry will not always work, sometimes it is null even if an order has been copied to an invoice.
This is a simple version of the query, you will need to expand it for your needs:
SELECT DocEntry FROM ORDR WHERE DocEntry in (SELECT Distinct BaseEntry FROM INV1 WHERE BaseType = 17) -
Report showing Contract, sales order and invoices created
Hii All,
Is there any standard report showing the sales contract, sales orders created with reference to contract and the invoices with some relevant details such as customer, material, invoice value etc.
If i go to VF05 and then select the a line and see the document flow, i get the contract number, sales order number.Hi,
You need to create a report of this requirement only through development.
Rgds,
Sivarajesh. J -
Hi,
How will i get the data regarding <b>customer wise recievable report</b> (any table for it).
Ex: If the sale is of 100000 and i have recived an interim payment of 40000, now i would like to know the table that gives me the value 0f 60000 which is recievables.Any table where i can either extract the values of 100000 and 40000 or 60000.
Thanks in advance.
Regards,
SaiCheck With below transactions :
Sales summary - VC/2
Display Customer Hierarchy - VDH2
Display Condition record report - V/I6
Pricing Report - V/LD
Create Net Price List - V_NL
List customer material info - VD59
List of sales order - VA05
List of Billing documents - VF05
Inquiries list - VA15
Quotation List - VA25
Incomplete Sales orders - V.02
Backorders - V.15
<b>Outbound Delivery Monitor - VL06o
Incomplete delivery - V_UC</b>Customer
<b>Returns-Analysis - MC+A
Customer Analysis- Sales - MC+E
Customer Analysis- Cr. Memo - MC+I</b>Deliveries-Due list - VL04
Billing due list - VF04
Incomplete Billing documents - MCV9
Customer Analysis-Basic List - MCTA
Material Analysis(SIS) - MCTC
Sales org analysis - MCTE
Sales org analysis-Invoiced sales - MC+2
Material Analysis-Incoming orders - MC(E
General- List
Thanks
Seshu -
SAP B1 crystal report: Customer Receivable Aging report
Hi All, I want to write a Customer Receivable Aging report in crystal report. I was using query to union open AR crdit memo and AR invoice. but, I foggot to add incomming payment ORCT. I really have trouble to get Customer Receivable Aging report . Can anyone help me? thanks Is that I did in wrong direction?
SELECT OINV.DocEntry,OINV.DocNum,OINV.ObjType,OINV.CardCode,OCRD.CntctPrsn,OCRD.fax,OINV.NumAtCard,OINV.Address,OCTG.PymntGroup
,OINV.CardName,OINV.DocDate,OINV.DocDueDate,OINV.DocCur,OINV.DocTotalFC,
OINV.DocTotal, (OINV.DocTotal-OINV.PaidToDate) as AmountAUD
FROM SAPLIVE.dbo.OINV OINV join SAPLIVE.dbo.OCTG OCTG
On OINV.GroupNum=OCTG.GroupNum
join SAPLIVE.dbo.OCRD OCRD
On OINV.CardCode=OCRD.CardCode
WHERE OINV.CANCELED='N' AND OINV.DocStatus='O' AND (OINV.DocTotal-OINV.PaidToDate)>0
union
SELECT ORIN.DocEntry,ORIN.DocNum,ORIN.ObjType,ORIN.CardCode,OCRD.CntctPrsn,OCRD.fax,ORIN.NumAtCard,ORIN.Address,OCTG.PymntGroup
,ORIN.CardName,ORIN.DocDate,ORIN.DocDueDate,ORIN.DocCur,ORIN.DocTotalFC,
ORIN.DocTotal,(ORIN.DocTotal-ORIN.PaidToDate)as AmountAUD
FROM SAPLIVE.dbo.ORIN ORIN join SAPLIVE.dbo.OCTG OCTG
On ORIN.GroupNum=OCTG.GroupNum
join SAPLIVE.dbo.OCRD OCRD
On ORIN.CardCode=OCRD.CardCode
WHERE ORIN.CANCELED='N' AND ORIN.DocStatus='O' AND (ORIN.DocTotal-ORIN.PaidToDate)Hello Julian - maybe you can start with the JDT1 table which contains all of the General Ledger Journal Entries...
Hope this helps...
Regards - Zal
--F-BP AR Aging Report Detail Ver 1 ZP 2011 04 16
--DESCRIPTION: SQL uses General Ledger Detail to create an Aging Report which shows
actual invoices, credit memos, and payments by reference date in the JDT1 table.
--AUTHOR(s):
--Version 1 Zal Parchem 16 April 2011
SELECT
T1.CardCode AS 'Cust Num',
T1.CardName AS 'Cust Name',
T0.SysDeb AS 'Debit Amt',
T0.SysCred * -1 AS 'Credit Amt',
CASE
WHEN T0.TransType = 13 THEN 'AR Invoice'
WHEN T0.TransType = 14 THEN 'AR Cred Memo'
WHEN T0.TransType = 24 THEN 'Payment'
ELSE 'Other'
END AS 'Trans Type',
T0.Ref1 AS 'Reference',
FcCurrency AS 'Currency',
CONVERT(VARCHAR(10), RefDate, 103) 'Posting Date',
CONVERT(VARCHAR(10), DueDate, 103) 'Due Date',
CONVERT(VARCHAR(10), TaxDate, 103) 'Doc Date' ,
CASE
WHEN (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 < 31 THEN
CASE
WHEN SysCred < > 0 THEN SysCred * -1
ELSE SysDeb
END
END AS '0-30 Days',
CASE
WHEN (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 > 30
AND (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 < 61 THEN
CASE
WHEN SysCred < > 0 THEN SysCred * -1
ELSE SysDeb
END
END AS '31 to 60 Days',
CASE
WHEN (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 > 60
AND (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 < 91 THEN
CASE
WHEN SysCred < > 0 THEN SysCred * -1
ELSE SysDeb
END
END AS '61 to 90 days',
CASE
WHEN (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 > 90
AND (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 < 121 THEN
CASE
WHEN SysCred < > 0 THEN SysCred * -1
ELSE SysDeb
END
END AS '90 to 120 Days',
CASE
WHEN (DATEDIFF(DD,RefDate,Current_Timestamp)) +1 > 120
THEN
CASE
WHEN SysCred != 0 THEN SysCred * -1
ELSE SysDeb
END
END AS '120 Plus Days'
FROM JDT1 T0
INNER JOIN OCRD T1
ON T0.ShortName = T1.CardCode
AND T1.CardType = 'C'
WHERE
T0.IntrnMatch = '0'
AND T0.BalDueDeb != T0.BalDueCred
ORDER BY
T1.CardCode,
T0.TaxDate
FOR BROWSE -
Aged Debtors Report by Account Manager (Sales person)
Hi experts
I've created the following SQL Query to identify the ageing of balance outstanding on Open Sales Invoices. I'd like to include Credit Notes but do not have the expertise. Hope someone can help?
Thanks in advance
Derek
SELECT T1.[CardCode] AS 'Cust Code', T1.[CardName] AS 'Customer', T1.[DocNum] AS 'Inv No', T1.[TaxDate] AS 'Doc Date', T1.[DocDueDate] AS 'Doc Due Date', T1.[DocCur] AS 'FX', T1.[DocTotalFC] AS 'Doc Total FX', T1.[DocTotal] AS 'Doc Total u20AC',T1.[DocTotal] - T1.[PaidSum] AS 'Bal Due u20AC', T0.[SlpName] AS 'AC Mgr',DATEDIFF(day,T1.DocDueDate,getdate()) AS 'Days Overdue' FROM OSLP T0 INNER JOIN OINV T1 ON T0.SlpCode = T1.SlpCode WHERE T1.[DocStatus] ='O'If you are on 8.8, this is a standard report?
Maybe you are looking for
-
New WIFI card will NOT connect correctly.
Hi, I just purchased a Gigafast WF748-CUI wireless card for my iMac G3 running Mac OS X Tiger (10.4.10) and I followed the instructions exactly and did everything right but it will NOT connect. It keeps generating these weird IP addresses beginning w
-
Cable to connect Z3 tablet to TV through HDMI?
Hi guys, Just bought one of these Z3 tablets, just wondering if there are any MHL cable adapters available so I can view my tablet on an external display though HDMI. Are there any of these cables that simultaneously charge the device whilst in use?
-
Forms Builder - Want to use Clipboard
Form builder - developer 2000 I am writing a program which should check weather there is something in clipboard . as soon as something comes to clipboard the trigger should be fired . Is there any trigger which will get fired as soon as something add
-
Paying termination fee and upgrading phone
My wife has an old nondata phone with a contract expiring in a few months and is willing to pay the termination fee and enter into a new 2-year contract on an IPhone 5s. Two questions. 1. The manager of the Verizon store looked on his computer and
-
Can't find tnsnames.ora
Hi, I install Instant Client on Linux using rpm. I need to edit the tnsnames.ora, but I can't find it. Can I copy one instance of tnsnames.ora and set TNS_ADMIN=<the path of tnsname.ora directory> as and enviornment variable on your client machine? T