Query to identify Open AP invoices
HI
How do you identify open AP invoices?
I've gone through the discussions and noted two answers marked as correct that are yielding different results.
1. You should use the invoice_amount and amount_paid columns in ap_invoices_all
2. Use the payment_status_flag in ('N','P') and cancelled_date in not NULL
Which of the two gives an accurate representation of open AP_invoices and where do Invoices with Amount = 0 fall? should I exclude them from the query?
I dont see any using in using below approach :
1. You should use the invoice_amount and amount_paid columns in ap_invoices_all
This would highlight all open/unpaid invoices
Similar Messages
-
Need a query to run Open AP Invoices by "As Of" Date
Need the "As Of" Date criteria for the query. I would like to run a list of Open AP Invoices by a specific date:
AP Invoices that were OPEN as of the inputted date. (ex. Open invoices as of March 31, 2015 - may have been paid after March 31, 2015 but were open as of March 31, 2015.
Thank you!HI
i used bellow Query
SELECT T0.[DocNum],T0.[DocDate] "Posting Date",T0.[DocDueDate] "Due Date", T0.[TaxDate] "Document Date",T0.[CardName],(T0.[DocTotal]-T0.[PaidToDate]) "Balance",T0.[Project] FROM OPCH T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode INNER JOIN OCRG T2 ON T1.GroupCode = T2.GroupCode WHERE T0.[TaxDate] > =[%0] and T0.[TaxDate] <=[%1] and T2.[GroupName] =[%2] and T0.[DocStatus] ='O'
please update the status after checked
Thanks& regards
AndakondaRamudu -
Query to determine which customer invoices are subjected to apply payment
Hi you all experts.
I have two tables (OINV and a custom made named DEPOSITS) the first one as you know keeps the record of all customer invoices. The second one keeps record of last payment from customers (this table is filled before applying payments and it consists in only two fields: ClientID and Amount.
I will upload incoming payments through DTW, but since I only have the amount of the payment and not the invoices to where this money will be posted; I come to you for advice.
For instance, my Customer1 just pay 5,000USD and has following invoices (in order of DueDate):
- InvoiceA: 1,000
- InvoiceB: 700
- InvoiceF: 3,000
- InvoiceD: 5,000
- InvoiceC: 10,000
I need to create a query that gaves me wich Invoice (with the higher due date) can be cover with the amount given, and if cannot be covered completely, to apply the remaining balance of the Deposit and keep the invoice open as partial paid.
The expected result from this would be:
- Invoice A: 1,000 PAYED. Remaining balance of payment 4,000USD.
- Invoice B: 700 PAYED. Remaining balance of payment 3,300USD (4000-700)
- InvoiceF: 3,000 PAYED. Remaining balance of payment 300USD (3300-3000)
- InvoiceD: 300 PARTIALLY PAYED. Remaining balance of payment 0USD (300-300)
Thanks a lot,
Israel.Hi Israel,
Query may only do calculation column wise easily. How about just create left part. The calculation between lines can be done by Excel formula after export the query result.
Thanks,
Gordon -
"Open Interface Invoices" Form takes time to open!
Hi Guys,
In our production system, it takes 3 minutes to open "Open Interface Invoices" form (AP Manager>Invoices>Entry>Open Interface Invoices). So what should we do so as to avoid this.
I was thinking to delete data from two tables (AP_INVOICES_INTERFACE & AP_INVOICE_LINES_INTERFACE) based on certain crieterions. Like all the records which have been successfully imported i.e. with status='PROCESSED' can be deleted. So, I can achieve this using two methods:
1. Manually using SQL Delete statement. i.e.
DELETE FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED';
DELETE FROM AP_INVOICE_LINES_INTERFACE
WHERE invoice_id IN (SELECT invoice_id FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED');
2. Or I can use "Payables Open Interface Purge" Program.
I ran this program for my specific source, and checked the count from tables but the result is the same. This means this program has not deleted any of the processed records from these two tables for the particular source.
What can be the reason for this? Please suggest me on this.
Thanks a lot!
Regards,
Sumir ChawlaSo I tested it out on Windows Pro Reader X 3GB and it opened right away. Then I put it down to 1GB and it took over a minute! Best bet is to get a faster machine! (or at least a memory upgrade)
In the mean time, I had a look at your form and there were a lot of objects and subforms that didn't need to be there, so I cleaned it up and made one repeatable subform. It works a lot faster now even on a 1GB.
You can edit the title of each entry in the scripting object myLists.
Here you go:
http://www.fieldeffecttechnologies.com/AdobeForums/PAR_v3.pdf
Kyle -
How to create a query to see Opening stock and closing stock as on particul
Hi All,
How to create a query to see Opening stock and closing stock as on particul.
Regards
AlbaikHi,
In BI 0IC_C03 will provide u the required information and also having standard queries provided by the SAP.
Plz find the list of Queries provided by the SAP.
=======================================================================================================
Inventory turnover 0IC_C01_Q0001
Range of coverage - quantity 0IC_C01_Q0002
Range of Coverage - Value 0IC_C01_Q0003
Range of coverage of finished goods - quantity 0IC_C01_Q0004
Range of Coverage of Finished Goods - Value 0IC_C01_Q0005
Range of coverage of raw materials - quantity 0IC_C01_Q0006
Range of Coverage of Raw Materials - Value 0IC_C01_Q0007
Obsolete Stock on Hand 0IC_C01_Q0008
Period-dependent requirement coverage 0IC_C01_Q0009
Value of stock on hand 0IC_C01_Q0010
Quantity of stock on hand 0IC_C01_Q0011
Material consumption 0IC_C01_Q0012
Material Movements 0IC_C01_Q0013
Consignment stock: receipts and issues 0IC_C01_Q0014
Valuated stock: receipts and issues 0IC_C01_Q0015
Material stock and movements 0IC_C01_Q0016
Material Movements (Healthcare) 0IC_C01_Q0020
Material Consumption (Healthcare) 0IC_C01_Q0021
Material Availability 0IC_C01_Q0022
Inventory Turnover Frequency (Value) 0IC_C01_Q0023
Consignment Stock Received and Issued per Unit 0IC_C01_Q0024
Material Consumption (Quantity) 0IC_C02_Q0001
Valuated Stock Receipts and Issues (Quantity) 0IC_C02_Q0002
Range of Valuated Stock (Quantity) 0IC_C02_Q0003
Inventory Turnover 0IC_C02_Q0004
Receipt and Issue Consignment Stock at Customer 0IC_C03_Q0001
Receipt and Issue Quality Inspection Stock 0IC_C03_Q0002
Vendor Consignment Stock Receipt and Issue 0IC_C03_Q0003
Receipt and Issue Stock in Transit 0IC_C03_Q0004
Receipt and Issue of Blocked Stock 0IC_C03_Q0005
Valuated Stock 0IC_C03_Q0006
Stock in Quality Inspection 0IC_C03_Q0007
Stock in Transit 0IC_C03_Q0008
Blocked Stock 0IC_C03_Q0009
Vendor Consignment Stock 0IC_C03_Q0010
Consignment Stock at Customer 0IC_C03_Q0011
Stock Overview 0IC_C03_Q0012
Stock Overview (as of 3.1 Content) 0IC_C03_Q0013
Quantities of Valuated Project Stock (as of 3.1 Content) 0IC_C03_Q0014
Valuated Stock (as of 3.1 Content) 0IC_C03_Q0015
Quantities of Valuated Sales Order Stock (as of 2.1 Cont.) 0IC_C03_Q0016
Inventory Turnover 0IC_C03_Q0017
Days' Supply 0IC_C03_Q0018
SUS: Vendor Consignment Stock 0IC_C03_Q0019
Scrap 0IC_C03_Q0020
Inventory Aging 0IC_C03_Q0021
Stock Overview - extended 0IC_C03_Q0022
Demand Supply Match 0IC_C03_Q0023
Warehouse Stock Analytics Inventory Turnover 0IC_C03_Q0024
Warehouse Analytics - Obsolescence and Variance 0IC_C03_Q0025
Stock Overview: Materials 0IC_C03_Q0030
Average Stock Value Over Time 0IC_C03_Q0031
Stock Overview Over Time 0IC_C03_Q0032
Range of Coverage Over Time 0IC_C03_Q0033
==================================================================================================
Regards
Ram.
Edited by: Ramakanth Deepak Gandepalli on Jan 18, 2010 8:06 AM -
PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보
제품 : FIN_AP
작성날짜 : 2005-05-10
PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보
==========================================================
PURPOSE
AP Open Interface Invoice Import 를 통해 Invoice 를 생성 코자 할 경우 반드시 필요한 Field 에 대한 정보이다.
Explanation
1. PO 나 Project 과 Match 하지 않는 Invoice Case
Table : AP_INVOICE_INTERFACE
==============================
Required Columns
================
-INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
-INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
-VENDOR_ID/VENDOR_NUM/VENDOR_NAME : Active 하여야 하며 PO_VENDORS과 Mapping
-VENDOR_SITE_ID/VENDOR_SITE_CODE : Active 한 Site 여야 하며 PO_VENDOR_SITES table과 mapping
-INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
-ORG_ID : AP_SYSTEM_PARAMETERS.ORG_ID
-SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE' 중 하나
Table : AP_INVOICE_LINES_INTERFACE
==================================
Required Columns for LINE_TYPE_LOOKUP_CODE = 'ITEM'
===================================================
-INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
-INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
-LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
-LINE_TYPE_LOOKUP_CODE :'ITEM'
-AMOUNT
-ACCOUNTING_DATE: Optional. Defaulted from INVOICE_DATE or SYSDATE
- DIST_CODE_CONCATENATED / DIST_CODE_COMBINATION_ID
: select code_combination_id from gl_code_combinations
where account_type = 'E' and enabled_flag = 'Y'
and summary_flag = 'N'
and sysdate between nvl(start_date_active, sysdate-1)
and nvl(end_date_active, sysdate+1))
Required Columns for LINE_TYPE_LOOKUP_CODE = 'TAX'
===================================================
-INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
-INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
-LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
-LINE_TYPE_LOOKUP_CODE : 'TAX'
-TAX_CODE / TAX_CODE_ID : AP_TAX_CODES_ALL table에서 mapping
-AMOUNT
-ACCOUNTING_DATE : Optional. Defaulted from INVOICE_DATE or SYSDATE
-DIST_CODE_CONCATENATED or DIST_CODE_COMBINATION_ID
: select code_combination_id from gl_code_combinations
where account_type = 'E' and enabled_flag = 'Y'
and summary_flag = 'N'
and sysdate between nvl(start_date_active, sysdate-1)
and nvl(end_date_active, sysdate+1))
2. PO Matched Invoice 의 경우 Table: AP_INVOICE_INTERFACE
============================
Required Columns
================
-INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
-INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
-PO_NUMBER : approved 된 PO 여야 하며 cancelled, closed 혹은 final closed 된 PO NUMBER 는 안됨. PO_HEADERS Table 과 mapping
-INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
-SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE'
-ORG_ID : AP_SYSTEM_PARAMETERS_ALL.ORG_ID
Table: AP_INVOICE_LINES_INTERFACE
=================================
Required Columns for PO Matched Lines
=====================================
-INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
-INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
-LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
-LINE_TYPE_LOOKUP_CODE : 'ITEM'
-AMOUNT : QUANTITY_INVOICED * UNIT_PRICE
If MATCH_OPTION is 'P', then populate:
-RELEASE_NUM or PO_RELEASE_ID : Blanket Release only, validated against PO_RELEASES_ALL
-PO_NUMBER or PO_HEADER_ID : Validated against PO_HEADER_ALL
-PO_LINE_NUMBER or PO_LINE_ID : Validated against PO_LINES_ALL
-PO_SHIPMENT_NUM or PO_LINE_LOCATION_ID : Validated against PO_LINE_LOCATIONS_ALL
If MATCH_OPTION is 'R', then populate:
-RECEIPT_NUMBER : RCV_SHIPMENT_HEADERS.RECEIPT_NUM
-RCV_TRANSACTION_ID or PO_LINE_LOCATION_ID : RCV_TRANSACTIONS과 Mapping
Example
Reference Documents
Note 205331.1Chandrasekar,
as i know, the main thing you should consider is, that starting from R12 you will
be able to import invoices only through the Payables Open Interface.
basically, Invoice Import is used by OA to create invoice (from expense reports or from Oracle Projects). for standard invoice import, i've ever used Payables Open Interface.
Milan
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandrasekara Kayamboo ([email protected]):
I would like to know which is the best way to import invoice and what are the advantages and disadvange in each.
Regards
Chandrasekar<HR></BLOCKQUOTE>
null -
Hi,
This is my question.....
Some items from AP Open Interface Invoice Lines table in Prd were deleted that would be normally imported to AP.
This is the Invoice dated in March for Feb activity. We will need this information reprocessed and put in the interface table as soon as possible.
Also, it appears that a step is missing in our normal process to remove processed invoices from this Open Interface Invoice table, would it be possible to review that and have it added in the automatic process?
Any Help is very much appreciated ....Thx in advance
Thanks & Regards
JDevIf I understand your requirement correctly, you want to purge the PROCESSED invoices from the interface tables. May be you can create a Request Set for the:
1.Invoice Open Interface Import and
2. Purge Program for the interface tables.
Thanks -
Query for report to show Invoices, Payments and Discounts
Hi All
I am hoping someone can help me with this query.
What the customer needs is the invoices for a specific date range, the payments applied to the invoices and the discount amount
Eg...
Invoice payment discount
100 90 10
This would be easy to get from the ORCT and RCT2 tables.
However, sometime the users add the payment on account and reconciles the invoices and a manual journal for the discounts.
So it would be best to look at the OITR and ITR1 tables?
This is what I have so far and it almost balances...
I am using this query to create the report in crystal,
To create the discount amount from the incoming payment window i said (T0.ReconSum - T3.TrsfrSum)
I also took out the vat amount within that formula.
With the amounts from the manual journal, i just took the amount as is.
select T2.CardCode, T2.CardName, T0.SrcObjTyp, T0.SrcObjAbs, T0.ReconSum, T3.TrsfrSum, T4.ReconDate, T2.U_FundedNonFunded, (T5.Debit - T5.Credit), T6.PymntGroup
from ITR1 T0
inner join OCRD T2 on T0.Shortname = T2.CardCode
left outer join ORCT T3 on T3.DocEntry = T0.SrcObjAbs and T3.CardCode = T0.ShortName
inner join OITR T4 on T4.ReconNum = T0.ReconNum
left outer join JDT1 T5 on T5.TransId = T0.TransId and T5.ObjType = T0.SrcObjAbs and T0.ShortName = T5.ShortName
inner join OCTG T6 on T6.GroupNum = T2.GroupNum
where T3.DocDate <= getdate() or T5.ContraAct = '1127331'
the account 1127331 is the Discount GL account.
Based on the example the Payment + discount = Invoices
however not all the customers are balancing..
any ideas? it looks like my query is getting only the invoices where a payment has been done. The amounts just dont seem to match.
Thank you
Jerushahi
I think your join with OJDT is wrong in this part : T5.ObjType = T0.SrcObjAbs
you should write
T5.ObjType = T0.SrcObjTyp
(I think you don't need this part at all )
try this:
select T2.CardCode, T2.CardName, T0.SrcObjTyp, T0.SrcObjAbs, T0.ReconSum, T3.TrsfrSum, T4.ReconDate, T2.U_FundedNonFunded, (T5.Debit - T5.Credit), T6.PymntGroup
from
ITR1 T0
inner
join OITR T4 on T4.ReconNum = T0.ReconNum
inner
join OCRD T2 on T0.Shortname = T2.CardCode
left
outer join ORCT T3 on T3.DocEntry = T0.SrcObjAbs and T3.CardCode = T0.ShortName
left
outer join JDT1 T5 on T5.TransId = T0.TransId and T5.ObjType = T0.SrcObjTyp and T0.ShortName = T5.ShortName
inner
join OCTG T6 on T6.GroupNum = T2.GroupNum
where
T3.DocDate <= getdate() or T5.ContraAct =
'1127331'
please let me know if it works now
shachar -
How to identify open schedule line item?
Hi,
I have a requirement for identifying open schedule line items. I want to identify any indicator or any field in any table which will tell me that the schedule line item is complete. Can anyone tell me how can I know that?
Ex. Sales Order 1 has 3 materials (line items) in it A, B & C.
For A the quantity is 10 and for which 3 schedule line have been created.
Out of the 3 schedule lines, 1 schedule line item is complete that is the delivery has been done and the rest 2 are open.
For B and C there are 4 & 5 schedule lines created and all are open.
How can i identify that total 12 schedule line 1 is completed and 11 are open.
Please suggest tables, field names / indicators.
Regards,
VishalHi Vishal,
You can not identify the open line items directly, rather you have to calculate the delivered quantity and copmare it with the ordered qty for each line item. The ordered qty can be idenitfy from the table VBEP and the deliverd qty can be found out by calling the function RV_SCHEDULE_CHECK_DELIVERIES.
Follow the link for more details to calculate the delvierd qty.
http://scn.sap.com/thread/279862
Rgards,
Rutvik. -
Purchase register query based on down payment invoice
Hai All,
I am creating an invoice based on purchase order.The vat tax is being calculated in the downpayment. I want the vat to be displayed in the downpayment invoice as well as the a/p invoice but i m not getting it in the a/p invoice. Pls guide me with the linking of tables to get the query working. I have formatted the fields req but could not link the tables...Pls guide me with that...
Thanks & Regards,
NeelaHi Neela,
Check the thread.
Re: Purchase register query based on down payment invoice
FROM PCH1 T0
INNER JOIN OPCH T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
LEFT OUTER JOIN PCH12 T3 ON T1.DocEntry = T3.DocEntry
LEFT JOIN ODPI T4 ON T1.CardCode = T4.CardCode
INNER JOIN DPO1 T5 ON T0.ItemCode = T5.ItemCode
Close the thread, if issue solved.
Regards,
Madhan. -
How to create ABAP Query for vendor open items
HI,
My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.Hello,
Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
For Query you can use SQ01.
USE BSID & BSAD for AR open/clear items...
LFA1, LFB1 are vendor master data tables
This is FYI
Hope this helps.
Rgds
Rajendra -
Payment Wizard not selecting open AP invoices
Hi,
I am having a problem with the payment wizard outgoing check run picking up open AP invoices. I am using the OEC Computers test company and input an AP invoice for Far East Imports and one for Acme Associates. Both invoices have docdates of 2/2/09 and due dates of 3/4/09.
When running the payment wizard I selected payment type of outgoing and payment means of check. Selected due date of 3/1/09 and posting date of 1/1/09 thru 3/5/09. At the next window I marked the "Outgoing Checks" option. However, on step 6 (Recommendation Report) the grid is empty showing neither of my 2 AP invoices.
I checked and both vendors have the outgoing payment method of "Outgoing Checks" assigned to them.
Why aren't my open AP invoices showing up for selection in the payment wizard process?Hi,
Check the Tolerance days in the payment run defaults. Take the days as zero and run the payment wizard.
In 2005 version available under following path :
Banking Module > Payment Wizard > Payment Run Default > Tolerance days.
In 2007 version :
Administration > Setup > Banking > Payment Run Defaults.
Regards,
Jitin
SAP Business One Forum Team -
How can i import Customer/Vendor Opening Balances - Invoice wise
I am going on a parallel run from next week onwards and the Client want to import all Customer/Vendor Opening Balances invoice wise , so that they can get the Aging Analysis report the no of days Outstanding as well as they can enter payment invoice wise.
Sanjay,
To import BP Opening Invoices or Credit Memo's,
Use the template inside DTW folder
\Templates\oInvoices for AR Invoices
\Templates\oPurchaseInvoices for AP Invoices
and so on
I presume you would want to import them as Service Invoice so
In the Document template
Set
DocNum....................................DocType......................HandWritten
original Invoice number...............dDocument_Service..............tYes
Document_lines
AccountCode
Opening Balance Account Code (Opening Balance Account is generally created in the Equity drawer and is used purely for all Opening trasactions and will balance out to zero (0) once all opening data from legacy system has been brought over)
Let me know if you need further direction
Suda -
Open AR Invoice-Drafts via UI-Api
Hy All!
Im loocking for a way to open the window of a AR Invoice-DRAFT using the UI.
I need to open a specific Draft that i added bevore via DI, so i know the DocEntry aso. of my Drafts.
I can't open the invoice-form, set it to "Search" mode and search for the Draft that i added bevore.
Does somebody knows a way to do this ?
Thanks!
Regards AndreasAdd an edittext and a link arrow object to a form.
The link arrow should be linked to the edittext, and have a linkedobject of type lf_Drafts (112)
You can then use UI code to put the DocEntry into the edittext, and then call the click method of the link arrow. This will result in the Draft Invoice window (or other window depending on the type of draft document) opening with your record displayed.
If you don't want to see the link arrow and editext, simply position them off the visible part of the screen.
John. -
API for PO freeze/unfreeze, hold/release hold, open, open for invoice
I know there is PO_ACTIONS.CLOSE_PO API which allow us to close the PO. We need to Freeze, Unfreeze, HOLD, release hold, open, open for invoice and open for receiving standard purchase orders. Does anyone know the Oracle API which can do this jobs. Thanks in Advance.
Currently they are not available as public APIs. Is there are specific reason you are looking for them?
Edited by: Shivaraj on May 29, 2012 4:10 PM
Maybe you are looking for
-
Client Flash Player, older version problem!
Hi folks I made a project with Flash Builder 4 with default SDK... It can be run in Flash Player version 10.0.45.2 But there is a problem: If client Flash Player is older than it (like 10.0.2 or 9 or less), there is no message and just client can see
-
D70 manual settings with studio flash
I have a D70 and wish to use it with Bowen flash units with a remote wireless trigger. This is not the problem as I have two triggers both of which work fine. The problem is with the camera, I only ever use manual settings and keep losing the LCD dis
-
Safari crashes EVERY time I add a bookmark. What gives?
I just installed Safari on my Win XP machine. It's gorgeous and fast, but every time I add a bookmark it crashes--hard. It's faster than Firefox, I think. Dell Dimension Windows XP
-
Hello, I want to give users ability to broadcast web reports . In the web template , I can turn on the option to broadcast via Context menu. However, I just want only selected users to be able to do broadcasting of the reports. Can thie be controlled
-
Using AirPort Extreme hub to connect to stereo
Is it possible to use a second Airport Extreme hub to connect to stereo speakers? If it is, what kind of cable might one use to do this? Thanks Charles iBook G4 Mac OS X (10.4)