Reconciled invoices are coming in the report
Before changes
SELECT 'FINANCE' detdepartment, 'FINANCE' detsub_dept, 'FINANCE' detuser_name,
ai.unique_remittance_identifier, ai.invoice_num, ai.invoice_date,
ai.description, ai.invoice_amount, av.vendor_name, av.vendor_type_disp,
ai.invoice_received_date, TRUNC (aipa.creation_date) last_forward_date,
TRUNC (xvd.creation_date + NVL (atl.due_days, 0)) due_date,
trunc(sysdate)-(TRUNC(xvd.CREATION_DATE)+NVL(atl.DUE_DAYS,0))due_days,
'Validated - Oracle Paid: Unclear' status, ai.invoice_id,
(SELECT RTRIM
(XMLAGG (XMLELEMENT (e, pha.segment1 || '|')).EXTRACT
('//text()'),
'|'
FROM po_headers_all pha, ap_invoice_lines_all aila
WHERE pha.po_header_id = aila.po_header_id
AND aila.invoice_id = ai.invoice_id) po_number,
(SELECT RTRIM
(XMLAGG (XMLELEMENT (e, pha.type_lookup_code || '|')).EXTRACT
('//text()'),
'|'
FROM po_headers_all pha, ap_invoice_lines_all aila
WHERE pha.po_header_id = aila.po_header_id
AND aila.invoice_id = ai.invoice_id) po_type,
(SELECT RTRIM
(XMLAGG (XMLELEMENT (e, pra.release_num || '|')).EXTRACT
('//text()'),
'|'
FROM po_releases_all pra, ap_invoice_lines_all aila
WHERE pra.po_release_id = aila.po_release_id
AND aila.invoice_id = ai.invoice_id) release_number
FROM apps.ap_terms apt,
ap_invoices_all ai,
ap_terms_lines atl,
org_organization_definitions ood,
fnd_user fu,
xxindus_vhd_dynamic_h xvdh,
xxindus_vhd_dynamic xvd,
ap_lookup_codes alc,
ap_invoice_payments_all aipa,
ap_payment_history_all apha,
ap_vendors_v av
WHERE xvd.invoice_id = ai.invoice_id
AND apt.term_id = ai.terms_id
AND apt.term_id = atl.term_id
AND atl.sequence_num = 1
AND ai.terms_id = apt.term_id
AND ai.org_id = ood.organization_id
AND ai.created_by = fu.user_id
AND ai.invoice_id = xvdh.invoice_id
AND ai.invoice_id = xvd.invoice_id
AND alc.lookup_code = ai.invoice_type_lookup_code
AND ai.invoice_id = aipa.invoice_id
AND aipa.check_id = apha.check_id
AND aipa.invoice_payment_id = (SELECT MAX (invoice_payment_id)
FROM ap_invoice_payments_all a
WHERE a.invoice_id = ai.invoice_id)
AND apha.accounting_event_id = (SELECT MAX (accounting_event_id)
FROM ap_payment_history_all aph1
WHERE aph1.check_id = apha.check_id)
AND ai.vendor_id = av.vendor_id
AND apha.transaction_type IN ('PAYMENT CREATED', 'PAYMENT UNCLEARING')
AND ai.invoice_type_lookup_code = 'STANDARD'
AND alc.lookup_type = 'INVOICE TYPE'
AND alc.enabled_flag = 'Y'
AND ai.wfapproval_status IN ('WFAPPROVED', 'MANUALLY APPROVED')
AND xvdh.checked = 'Y'
AND xvd.status = 'Sent to Finance'
AND ai.cancelled_date IS NULL
--- AND SYSDATE BETWEEN fu.start_date AND NVL(fu.end_date,SYSDATE)
AND ai.invoice_amount =
NVL ((ai.amount_paid + NVL (ai.discount_amount_taken, 0)), 0)
-- AND ood.organization_name = :p_org_name
AND ood.organization_id = :p_org_id
AND ai.invoice_received_date
BETWEEN NVL (TRUNC (TO_DATE (:p_from_date, 'RRRR/MM/DD HH24:MI:SS')),
ai.invoice_received_date
AND NVL (TRUNC (TO_DATE (:p_to_date, 'RRRR/MM/DD HH24:MI:SS')),
SYSDATE
AND (fu.user_name LIKE '%VHD%' OR fu.description = 'VHD')
after changes
SELECT 'FINANCE' detdepartment, 'FINANCE' detsub_dept, 'FINANCE' detuser_name,
ai.unique_remittance_identifier, ai.invoice_num, ai.invoice_date,
ai.description, ai.invoice_amount, av.vendor_name, av.vendor_type_disp,
ai.invoice_received_date, TRUNC (aipa.creation_date) last_forward_date,
TRUNC (xvd.creation_date + NVL (atl.due_days, 0)) due_date,
trunc(sysdate)-(TRUNC(xvd.CREATION_DATE)+NVL(atl.DUE_DAYS,0))due_days,
'Validated - Oracle Paid: Unclear' status, ai.invoice_id,
(SELECT RTRIM
(XMLAGG (XMLELEMENT (e, pha.segment1 || '|')).EXTRACT
('//text()'),
'|'
FROM po_headers_all pha, ap_invoice_lines_all aila
WHERE pha.po_header_id = aila.po_header_id
AND aila.invoice_id = ai.invoice_id) po_number,
(SELECT RTRIM
(XMLAGG (XMLELEMENT (e, pha.type_lookup_code || '|')).EXTRACT
('//text()'),
'|'
FROM po_headers_all pha, ap_invoice_lines_all aila
WHERE pha.po_header_id = aila.po_header_id
AND aila.invoice_id = ai.invoice_id) po_type,
(SELECT RTRIM
(XMLAGG (XMLELEMENT (e, pra.release_num || '|')).EXTRACT
('//text()'),
'|'
FROM po_releases_all pra, ap_invoice_lines_all aila
WHERE pra.po_release_id = aila.po_release_id
AND aila.invoice_id = ai.invoice_id) release_number
FROM apps.ap_terms apt,
ap_invoices_all ai,
ap_terms_lines atl,
org_organization_definitions ood,
fnd_user fu,
xxindus_vhd_dynamic_h xvdh,
xxindus_vhd_dynamic xvd,
ap_lookup_codes alc,
ap_invoice_payments_all aipa,
ap_payment_history_all apha,
ap_vendors_v av
WHERE xvd.invoice_id = ai.invoice_id
AND apt.term_id = ai.terms_id
AND apt.term_id = atl.term_id
AND atl.sequence_num = 1
AND ai.terms_id = apt.term_id
AND ai.org_id = ood.organization_id
AND ai.created_by = fu.user_id
AND ai.invoice_id = xvdh.invoice_id
AND ai.invoice_id = xvd.invoice_id
AND alc.lookup_code = ai.invoice_type_lookup_code
AND ai.invoice_id = aipa.invoice_id
AND aipa.check_id = apha.check_id
AND aipa.invoice_payment_id = (SELECT MAX (invoice_payment_id)
FROM ap_invoice_payments_all a
WHERE a.invoice_id = ai.invoice_id)
group by a.transaction_type)
AND apha.accounting_event_id = (SELECT MAX (accounting_event_id)
FROM ap_payment_history_all aph1
WHERE aph1.check_id = apha.check_id)
AND ai.vendor_id = av.vendor_id
AND apha.transaction_type IN ('PAYMENT CREATED', 'PAYMENT UNCLEARIN\G')
and not exists ( select 1
from apps.ap_payment_history_all apha
,apps.ap_invoice_payments_all aipa
,apps.ap_invoices_all ai1
where aipa.check_id = apha.check_id
and ai1.invoice_id = aipa.invoice_id
and ai1.INVOICE_ID=ai.invoice_id
and apha.transaction_type IN ('PAYMENT CLEARING')
and apha.CREATION_DATE = ( select max(apha.CREATION_DATE)
from apps.ap_payment_history_all apha
,apps.ap_invoice_payments_all aipa
,apps.ap_invoices_all ai2
where aipa.check_id = apha.check_id
and ai2.invoice_id = aipa.invoice_id
and ai2.INVOICE_ID=ai.INVOICE_ID
) ---- newly added
AND ai.invoice_type_lookup_code = 'STANDARD'
AND alc.lookup_type = 'INVOICE TYPE'
AND alc.enabled_flag = 'Y'
AND ai.wfapproval_status IN ('WFAPPROVED', 'MANUALLY APPROVED')
AND xvdh.checked = 'Y'
AND xvd.status = 'Sent to Finance'
AND ai.cancelled_date IS NULL
--- AND SYSDATE BETWEEN fu.start_date AND NVL(fu.end_date,SYSDATE)
AND ai.invoice_amount =
NVL ((ai.amount_paid + NVL (ai.discount_amount_taken, 0)), 0)
-- AND ood.organization_name = :p_org_name
AND ood.organization_id = :p_org_id
- AND AI.INVOICE_NUM='A302689/EXM/OSR/03-2012'
AND ai.invoice_received_date
BETWEEN NVL (TRUNC (TO_DATE (:p_from_date, 'RRRR/MM/DD HH24:MI:SS')),
ai.invoice_received_date
AND NVL (TRUNC (TO_DATE (:p_to_date, 'RRRR/MM/DD HH24:MI:SS')),
SYSDATE
AND (fu.user_name LIKE '%VHD%' OR fu.description = 'VHD')
Hi karthick,
Reconciled invoices are coming in the Report , some invoice are coming in the repot if i use the following condition the invoice are not comming in the report please advice wheather i can use this condition are not
and not exists ( select 1
from apps.ap_payment_history_all apha
,apps.ap_invoice_payments_all aipa
,apps.ap_invoices_all ai1
where aipa.check_id = apha.check_id
and ai1.invoice_id = aipa.invoice_id
and ai1.INVOICE_ID=ai.invoice_id
and apha.transaction_type IN ('PAYMENT CLEARING')
and apha.CREATION_DATE = ( select max(apha.CREATION_DATE)
from apps.ap_payment_history_all apha
,apps.ap_invoice_payments_all aipa
,apps.ap_invoices_all ai2
where aipa.check_id = apha.check_id
and ai2.invoice_id = aipa.invoice_id
and ai2.INVOICE_ID=ai.INVOICE_ID
Thanks,
Naresh
Similar Messages
-
How to remove the buttons which are coming from a report?
Hi All,
I need to remove the buttons from an iview which is a sap transaction. when i execute the report program which uses a ldb (PCH) shows a selection screen having all the buttons.
We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
Lakshmi.Hi,
I think u r mentioning about the addition buttons that appear in the selection screen when using a logical database. for removing these buttons u can use a function module RS_SET_SELSCREEN_STATUS for setting ur own pf-status
do this in "at selection screen output" of the program..
in the tables parameter, u have the option for giving the ok-codes that u want to remove. append all the ok-codes into this table.
for getting the ok-codes u can use "tab" and go the button.. press F1. it will give the ok-code.
Regards,
Anoop -
Sp L records are coming to the PSA and not updating in the data target
Special Ledger records are coming to the PSA and not updating in the data target in the month end and the info package is failing - because of that we are doing manual updating from PSA to the data target -
Can so one can tell the reasons why this is happening? And give the solutions to it?Hi Sankar,
If your Infopackage uses Only PSA and Update subsequently in Data Target on the Processing tab, then you will need to add a process for Read PSA and Update Data Target in your process chain, after the Infopackage load process. Then it will take data from the PSA and load to the data target.
Hope this helps... -
#'s are coming in the place of space in the PO Print preview
Hi All ,
#'s are coming in the place of space in the PO print preview .I am creating the PO from SRM system . When I type item text manullay in SRM system # 's are coming in the place of space and When I copy & paste #'s are not coming in the po line item text . I am printing in the smartform from the field ekp0-txz01 . Could any one know how to solve the issue . Please let me know .
I have searched the post in SDN and I have asked our basis team .Finally I am posting the issue in SDN .
Original : TEST DEFECT 6667777 KK
Current : TEST#DEFECT#6667777#KK
Regards
SrihariHi,
is a placeholder for non printable signs such as horizontal tabs and many others.
Please check the hex content of the text in debug mode. There should be no spaces there.
Regards,
Klaus -
MENU's are coming with the scroll bar
Hi,
I have a problem like this, I am migrating one menu file from a forms6i to 10G after that i tried to put that menu in the form then i found that the menus are coming with the scroll bar is there any parameter so that i can set that to false so i can see all the menus at one time.
Thanks in advance.
Saravanan.Kbelow is my code.
Display will have some graphics, the mouse click on the part of the graphics will produce different values in the table. class DatabaseDataDisplay has the JTable who display the values.
Display.addMouseListener(new MouseAdapter()
{ public void mousePressed(MouseEvent evt)
//get the location of the mouse
int x = evt.getX();
int y = evt.getY();
current = find(x, y);
if(current!=-1)
DatabaseDataDisplay D_Display=new DatabaseDataDisplay(Table_Name, current);
//remove the old panel
WholePanel.remove(scrollPane5);
//add the new DataPanel
JScrollPane scrollPane5 = new JScrollPane(D_Display,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
WholePanel.add(scrollPane5, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 2, 0, 2), 659, 5));
/*if I put a repaint() here, the value on the table will always the values of the first time values when I click the mouse*/
WholePanel.validate(); -
Sales orders that have been invoiced are still in the Billing due list
Friends :
We have sales orders that have been invoiced are still in the Billing due list. When i look at sales orders it has 0.00 price.
The error message is
Billing not possible because repair is not yet completed
The item is not relevant for billing
The item has been fully invoiced already
Full pints will be given.
Van billsHello,
I believe these are repair orders, and invoices through order related billing. Check the incompletion log in the order, check whether the repair is complete. Go to the order VA02 --> Order ---> Environment --> Status. You may know the over all status of the document. Check for the billing status, if the billing status is not invoiced, then you need to generate invoice or Reject the line item.
Prase -
When does Photoshop cc supports the raw files wich are coming from the Nikon D5500 ?
Hello,
When does Photoshop cc supports the raw files wich are coming from the Nikon D5500 ?
Iam a very happy user of Photoshop, specially for my raw files... i find it frustrated that i can't work on my files for now..
Greatings DannyThe D5500 was just released and Adobe is working on support. Cannot say how long for sure, but it should be within a month or two. Meanwhile, you could shoot in NEF+JPEG and set Camera Raw to open your JPEGs as well. Not as much data, but will be better than nothing..
Benjamin -
Pl sql Code To count how max checkboxes are checked In the Report Region
I am developing a APEX report where I put check boxes to row row of the report result . So I checked Some of this check box. Now I need a code to count how many checkboxes are checked during the runtime
there is a forum for APEX: Oracle Application Express (APEX)
-
Is it ok to query tables/views that are not in the reporting database?
I have a requirement to show when a resource submitted/modified each of the items in their time sheet I found that we can get in this information by going directly to the publishing table MSP_Assignment_Transactions but it is well documented that accessing
the publishing tables directly is not supported by Microsoft.
What other options are there to get the data from this table or for that matter any table other than the reporting tables that Microsoft would support?
Just as an FYI we do not want to write to them we just want to select the data we need.Even though accessing published DB is not supported for several reason, depending upon query you may start experiencing performance problems, if a later CU/SP alters the DB schema your reports may fail, but personally haven't experienced it in long
time,
Also in my personal experience if you are not acquiring lock on the table while querying, it doesn't harms but then there are downside of it
However as an alternate as Rod suggested use PSI to get the data and stage it in staging table or something and then use it for reporting or you can replicate the publish DB and use that for reporting purpose
Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com -
Documents not coming in the report taken for reversal reason code
Hi,
We have defined the various reason codes for document reversal.
When we try to take the report based on the reason code in FB03 or FAGLL03, the reversal doucment is not coming up.
Is there any setting for it? or how to get that report? We need that report to authorize the reversals.
Thanks,
PratapHi,
Please note that In standard SAP, the reversal reason code gets stored in the original document which is reversed. It does not get stored in the reversal document.
You can get the report based on the field STBLG (Reverse Document Number) and STJAH (Reverse document fiscal year).
This will be filled up for both original document and reversal document. And the clearing document number will be same for both the documents, so you can easily link the two documents in FAGLL03 output layout using sorting based on clearing document and filtering based on the two fields given.
Regards,
Gaurav -
Changes in the RDF are not affecting the report
Hi All,
Greetings.
I have D2K which is working fine from a couple of years. we had encountered an error recently and we have found the cause of it in the formula column of the RDF and made changes accordingly. We are sure that the changes we made in the formula column will resolve the issue.But, the changes are affecting the output.What could be the cause for it?
The report is called from the form and the RDF is in the report server which is being called on pressing the button. We are sure with the location of the RDF file in the sever path.
We encountered the same problem with other report which is having the layout problem.
Do we need to restart the report server every time we made changes to the RDF ?
Thanks in Advance.
Regards,
BhaskarHi,
do you seen the changes if you try to build a new report based on th emodified universe?
Regards,
Stratos -
Can DrillFilters() show "None" when no filters are applied to the report?
Hi everyone,
On top of my report I've got a pre-defined Drill Filter cell (in case the report is printed and the filter bar and the filters applied are not visible anymore). I modified the cell a bit and it looks liek this now: ="Applied filters: " + DrillFilters()
Can I somehow make it show "Applied filters: None" if the report is now filtered?
Using latest Webi with all patches.
Thanks,
GalinPerfect! Thank you very much, Thangaraj!
I modified it a bit so I don't have to enter every single Drill Object (=Dimension)
=If Length(DrillFilters())=0 Then "Applied Filters: None" Else "Applied Filters: " + DrillFilters() -
New Features are coming to the Linksys Forums!
New Features!
The Linksys Community Forums will be making changes in the coming days.
New rating system
o The current rating system will be upgraded to a new system based on Kudos.
o Your existing user ratings will be translated into Kudos.
o You can easily grant other members Kudos to promote content that will improve the Community experience for all users
Accepted Solutions
o Solved issues are easily identified by the community
o Search results will be more accurate
Keep your eyes open for these changes in the very near future.
Posted on behalf of LinksysHummmm, you might not be missing anything... From what I understand, really the only new visible add-on apps type programs are Newstand and Reminders. The Notification Center seems to be about how your info and alerts are pushed to your screen and you control that thru the phone settings>General>Notifications, the panel is accessed by swiping downward from the top of your screen. Weird I know, should be more obvious. Enjoy!
Don't forget, you can now use the volume button on the side of your phone to take photos. I really like this!
Here's the User Guide:
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf -
Junk Characters are coming in the Print Preview of True Type Font
Hi
I am facing one issue. Here I have installed on one of the True type font of Gujarati (one of Regional language for India) language.When I see Print preview using LP01 Output device (which has SWIN Device Type) these true type font coming as Junk characters. But when I take print it is coming perfectly Ok. I want to know is there any setting required to maintain for Output device to see Print Preview in Gujarati also ?
I feel that when System is generating output for Preview it is ignoring true type font..
If there is any solution kindly let me know
Regards
Bhavin ShahHi,
Try creating the spool using the unicode device type SWINCF(see note #812821) and check the result.
regards,
Aidan -
A few of my contacts are recieving FaceTime or FaceTime audio requests generating from my iCloud email address. Additionally some of my contacts, including my husband are recieving texts that say they are generated from me (as their contact) but I am not texting nor do I have access to that particular thread and I am not recieving all of my iMessages from another one of my contacts, but she shows that they are sent. This all seems to be related to a single issue and Im starting to freak out that my apple account or a portion of it was hacked.
A few months ago my husband, out of town, initiated a FaceTime session and someone else answered it, and hung up. He then initiated it again and this time it came through and I answered it. At that time I changed my apple ID password. But now it seems like I am having similar if not escalating issues with this. What do I do?Contact the Apple account security team: http://support.apple.com/kb/HT5699.
Maybe you are looking for
-
Multiple queries with 1 connection
Can I execute multiple queries with one connection? //Example - <% String firstconn; Class.forName("org.gjt.mm.mysql.Driver"); // create connection string firstconn = "jdbc:mysql://localhost/profile?user=mark&password=mstringham"; // pass database pa
-
I have CS5.5 on my computer and am looking to add it to my laptop that I just purchased. I have my AdobeID and serial number, but need to find a legit link to CS5.5, while everything on Adobe immediately points to CS6. Is there a CS5.5 link somewhere
-
Hello all. I have following situation. I have a Employee table(w1_employee1_d1) Salary table(w_salary_f) in Database. every thing is fine when I import it in OBIEE Administration tool and use the answers. Then I created a synonym as (w1_synonym_emplo
-
Final Cut Pro 7 to X Export Problem
Hello, I'm using the Final Cut Pro 7 to X app to try and get XML files from 7 to X. However I keep getting this error message. >final cut pro 7 to x error this item is not on an edit frame boundary< I did some research on this but there doesn't seem
-
hi i want to unlock my iphone 4s to use it in jordan , i have bought it from cousin and the phone is only work on verizon please help me to unlock it