MD 060 Technical Specifications Confidential
LUCAS
Technical Specifications to
Report to show all the cleared
Invoices sorted by Invoice
Groups
Author : Mr.Jagannadh Varma
Creation Date : 05-jul-2005
Last Updated :
Last Updated By :
Version :
Approvals
Name Title Date
Overview ……………………….….3
MD 060 Name: -1-
MD 060 Technical Specifications Confidential
Assumptions ……………………….….4
High level program information …………………….…….6
Report Program Components …………………….…….8
User Procedures ………………….………9
Open/Closed Issues ……..……………………16
MD 060 Name: -2-
MD 060 Technical Specifications Confidential
Overview
The purpose of this deliverable is to document the Techanical
requirements for Report to show all the Payables Cleared Invoices to be
sorted by Invoice Groups.Below is an overview of how the Cleared Invoices
Report has to be done.
Using Oracle Report Bulider Tool a Custom report is generated for
Payables Cleared Invoices to be sorted by Invoice Groups.
The Payables Cleared Invoices to be sorted by Invoice Groups Report
(Custom Report) generates the report for all the Invoices which are in the
paid status.The parameter should be passed as Organisation Name, From
Date,To Date .
Using the Concurrent Request, run this report ,Invoice details in the
Base tables which in turn is reflected and the total Information is given in the
Report. This Report program runs periodically as per the requierments.
MD 060 Name: -3-
MD 060 Technical Specifications Confidential
Assumptions
This specification document assumes that the following statements are true:
Reports Builder is installed.
The query to retrieve the data is thoroughly tested so that it
fetches only the correct data.
o Oracle Report Builder Tool is compatible with Oracle applications to
Generate any new custom Reports.
The follwing Tables and Columns are the pre-requisites to generate
Stock Status Report
Tables:
1. AP_INVOICES_ALL
2. AP_INVOICE_PAYMENTS_ALL
3. FND_USER
4. AP_TERMS_TL
5. PO_VENDORS
6. PO_VENDOR_SITES_ALL
7. HR_OPERATING_UNITS
8. PER_PEOPLE_F
Column
AP_INVOICES_ALL
Invoice Number
Invoice Type
Invoice Number
Invoice Currency
Payment Status Flag
Pay Group Lookup Code
Invoice Type Lookup Code
MD 060 Name: -4-
MD 060 Technical Specifications Confidential
. AP_INVOICE_PAYMENTS_ALL
Check ID
Bank Account Number
Accounting Date
FND_USER
Created_by
AP_TERMS_TL
Name (Payment Terms).
Payment Description
PO_VENDORS
Vendor Name
PO_VENDOR_SITES_ALL
Ship-to-Location
Bill-to-Location
HR_OPERATING_UNITS
Organization Name
PER_PEOPLE_F
Employee
MD 060 Name: -5-
MD 060 Technical Specifications Confidential
High level program information
The following list summarize the Open backlog order Report Concurrent
Executable information:
AP Cleared Invoices Report Concurrent Executable:
Property Value
Executable Name Lu_paidinv
Short Name pinv
Application lucas
Description Cleared AP Invoices Report
Execution Method Oracle Reports
Execution File Name lupaidinv
Subroutine Name
Execution File Path
MD 060 Name: -6-
MD 060 Technical Specifications Confidential
The following list summarize the Open backlog order Report
Concurrent Program information.
Open backlog order Report Concurrent Program information.
Property Value
Concurrent program name LucasInvoice
Concurrent Short name Lu_inv
Concurrent Executable Lu_paidinv
Name
Application LUCAS
Description Cleared AP Invoices Report
Program Output Format HTML
Data range <Full>
Incompatibility <No>
Parameters
Value Sets Token
Org Name
Org Name Org Name
From Date
Date Date
To Date
Date Date
MD 060 Name: -7-
MD 060 Technical Specifications Confidential
Cleared AP Invoices Report program components
The following list contains all components required to completelyAP Invoices
Report Report .
Concurrent programs
Name :
Type : Oracle Reports
PL/SQL packages
Package name : None
Filenames :
Loader scripts
Filename : None
Profile options
Profile option name : None
Indexes
Index name :
Filename :
Running User : None
Oracle Reports:
File Name : lupaidinv.rdf
MD 060 Name: -8-
MD 060 Technical Specifications Confidential
User Procedures
AP Invoices Report Report Creation Program
This program is based on SQL statements which is used by oracle
reports to perform the following step:
1. Cleared AP Invoices Report generation
SQL Statements used in Oracle Reports to generate the Report
Select SYSDATE REPORT_DATE,
aps.INVOICE_TYPE_LOOKUP_CODE invoice_type,
aps.invoice_num,aps.INVOICE_AMOUNT,
DECODE(aps.PAYMENT_STATUS_FLAG,'N','UNPAID','Y','PAID')
PAYMENT_STATUS,
aps.INVOICE_CURRENCY_CODE INVOICE_CURRENCY,
aps.PAYMENT_CURRENCY_CODE PAYMENT_CURRENCY,
aps.ORG_ID,
aps.invoice_date ,
AIP.CHECK_ID CHECK_NUM,
AIP.BANK_ACCOUNT_NUM,
AIP.ACCOUNTING_DATE,
TRS.NAME PAYMENT_TERMS,
TRS.DESCRIPTION PAYMENT_DESCRIPTION,
pos.vendor_name supplier_name,
HRS.NAME ORG_NAME,
replace(POV.ADDRESS_LINE1||' '||POV.ADDRESS_LINE2||' '||
POV.ADDRESS_LINE3||' '||POV.CITY||' '||POV.STATE||' '||
POV.COUNTRY||' '||POV.ZIP,'ADDRESS') ADDRESS
MD 060 Name: -9-
MD 060 Technical Specifications Confidential
from ap.ap_invoices_all aps,AP.AP_INVOICE_PAYMENTS_ALL
AIP,AP_TERMS_TL TRS,po.po_vendors
pos,APPS.HR_OPERATING_UNITS HRS,
PO.PO_VENDOR_SITES_ALL POV
where AIP.INVOICE_ID=APS.INVOICE_ID
and APS.TERMS_ID=TRS.TERM_ID
and pos.vendor_id=aps.vendor_id
AND APS.ORG_ID=HRS.ORGANIZATION_ID
and pov.VENDOR_SITE_ID=aps.VENDOR_SITE_ID
and PAYMENT_STATUS_FLAG='Y'
AND aps.org_id=:ORG_ID
MD 060 Name: - 10 -
MD 060 Technical Specifications Confidential
Oracle Reports Components:
1. Data Model :
MD 060 Name: - 11 -
MD 060 Technical Specifications Confidential
MD 060 Name: - 12 -
MD 060 Technical Specifications Confidential
Layout Model :
MD 060 Name: - 13 -
MD 060 Technical Specifications Confidential
Modifications & Validations
The following are the Additional Columns added in the report
1.Total Invoice Amount(Summary Column ‘TOTAMT’).
2.No.of Records (Summary Column ‘RECS’).
This columns are added to generate the Total amount for the
Invoice amount
And the Number of Records in the Report.
MD 060 Name: - 14 -
MD 060 Technical Specifications Confidential
This is the Output of the Report.
MD 060 Name: - 15 -
MD 060 Technical Specifications Confidential
Open/Closed Issues
Open issues
Num Issue description Resolution Owner
Closed issues
Num Issue description Resolution Owner
1 Sorting by the Invoice Groups Adjusting the
(Data was repeated) frame
MD 060 Name: - 16 -