Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Document id. :
ORA2007004
Author(s):
Authorized by:
Srinivas
Version no:
Creation Date:
Last Updated:
1.0
07/11/2007
Copy No
DOCUMENT CONTROL
1.1
PREPARED BY
S.
No.
1
Name
Position
Srinivas
Consultant
Signature
Date
07-Nov-2007
1.2
REVIEWED BY
S.
No.
1
Name
Position
Signature
Sunil M
Date
2
3
1.3
DISTRIBUTION
No.
Name
Remarks
1
2
3
1.4
CHANGE RECORD
S.
No.
Date
Author
Version
Change Reference
1
2
3
TABLE OF CONTENTS
1 Document Control...............................................................................................................................................................2
1.1 Prepared by............................................................................................................................................................2
1.2 Reviewed by...........................................................................................................................................................2
1.3 Distribution............................................................................................................................................................2
1.4 Change Record.......................................................................................................................................................2
2 Table of Contents................................................................................................................................................................3
3 Report Design Overview....................................................................................................................................................4
4 Technical Overview............................................................................................................................................................4
5 List of Files...........................................................................................................................................................................4
6 AOL Components...............................................................................................................................................................4
7 Data Base Objects...............................................................................................................................................................5
8 Report Parameters..............................................................................................................................................................5
9 Data accessing details.........................................................................................................................................................5
10 Data Summary Columns..................................................................................................................................................5
11 Descriptive Flexfields ......................................................................................................................................................6
12 Report Queries..................................................................................................................................................................6
13 Program Units Pseudo Code..........................................................................................................................................10
14 Validation Logic .............................................................................................................................................................10
15 Performance Considerations.........................................................................................................................................10
16 Other Considerations ....................................................................................................................................................10
TECHNICAL OVERVIEW
This report gives all the sales orders which are shipped on
Specified Date ranges in TPI, TET Organizations only.
LIST OF FILES
Name
Type
Added/Mod
ified
ORA2007004.rtf
ORA2007004.rdf
ORA2007004.ldtp
ORA2007004.ldtg
ORA2007004.ldtb
Location
Purpose/Remarks/Comme
nts
A
A
A
A
A
AOL COMPONENTS
Name
Type
Added/Mo
dified
Purpose/Remarks/Comments
ORA2007004
Executable
Concurrent
Program
A
A
Executable name
Concurrent program name
Value set
Value set
A
A
Value set
TTC: OM Orders
Shipped
TPI
FND_STANDARD_DATE
XXAHC_SALESORDER_T
YPE
OM: Yes or No
7
Name
Type
Added/M
odified
Schema
Purpose/Remarks/Comme
nts
xxahc_ont_comm
on
Package
Apps
REPORT PARAMETERS
Argument
Prompt
Value Set
P_BEG_DTE
Start Date(DDMON-YYYY)
Start Date(DDMON-YYYY)
Sales
Organization
Project
Accounts Only
FND_STANDARD_DATE
P_END_DTE
P_ORGN
P_PROJE_ACCT
Default Value
FND_STANDARD_DATE
XXAHC_SALESORDER_
TYPE
OM: Yes or No
OE_TRANSACTION_TYPES_TL
Name
Order Type
RA_CUSTOMERS
OE_ORDER_HEADERS_ALL
OE_ORDER_LINES_ALL
OE_ORDER_HEADERS_ALL
OE_TRANSACTION_TYPES_TL
HZ_PARTIES
Attribute14
Attribute2
Schedule_ship_date
Order_number
Name
Party_name
Country
Address1
Market
HZ_LOCATIONS
Ship Date
Sales Ord
Customer Name State
Ship To Name State
Country
OE_ORDER_LINES_ALL
10
UNIT_SELLING_PRICE
Sales $
Column
Summary Formula
CS_Mkt_Qty
SUM(Shipped_quantity)
set at Market
CS_Mkt_Sales
CS_Report_Qty
CS_Report_Sales
SUM(sales)
set at Market
SUM(Shipped_quantity)
SUM(sales)
set at Report
set at Report
DESCRIPTIVE FLEXFIELDS
11
Note: The following descriptive flexfields are used in the report for getting the
customer po number
Application:
Form Name:
Base Table:
Segment
Name
12
Prompt
Size
Value
Set
Default
Value
REPORT QUERIES
Query 1 :
SELECT
,
,
dte
,
,
,
,
FROM
,
,
,
,
,
ottt.name orgncd
decode(hca.attribute14, 'USA',hca.attribute14,
hca.attribute14||'-'||ooha.attribute2) market_class
to_char(nvl(wnd.initial_pickup_date,oola.schedule_ship_date),'mm/dd/yyyy')
substr(ottt.name,instr(ottt.name,'-',1)+1)
||'-'||ltrim(ooha.order_number,'0') ord_no
substr(hp.party_name,1,30)||','||
decode(hp.country,
'United States', substr(hp.state,1,2),
'Canada', substr(hp.province,1,2),
hp.country) cust_nme_st
substr(hl.address1,1,30)||','||
decode(hl.country,
'United States', substr(hl.state,1,2),
'Canada', substr(hl.province,1,2),
hl.country) shpto_nme_st
sum(xxahc_ont_common.ship_qty1(oola.line_id))
sum(oola.unit_selling_price * oola.ordered_quantity)
qty
sales
oe_order_headers_all ooha
oe_order_lines_all
oola
--- For Custome Address
hz_cust_accounts hca
hz_cust_site_uses_all hcsua1
hz_cust_acct_sites_all hcasa1
hz_party_sites
hps1
Apfel Array Solutions
,
,
,
,
--,
,
,
,
,
,
WHERE
substr(ottt.name,instr(ottt.name,'-',1)+1)='TET'
AND
trunc(nvl(wnd.initial_pickup_date,oola.schedule_ship_date)) >=
:P_BEG_DTE
AND
trunc(nvl(wnd.initial_pickup_date,oola.schedule_ship_date)) <=
:P_END_DTE
AND
oola.flow_status_code <> 'CANCELLED'
AND
xxahc_ont_common.ship_status(oola.line_id) = 20
AND
ooha.sold_to_org_id=hca.cust_account_id
AND
hcasa1.cust_account_id =hca.cust_account_id
AND
ooha.ship_to_org_id=hcsua.site_use_id
AND
hcsua.site_use_code = 'SHIP_TO'
AND
hcsua.cust_acct_site_id=hcasa.cust_acct_site_id
AND
hps.party_site_id=hcasa.party_site_id
AND
hps.location_id=hl.location_id
AND
hcasa.cust_account_id =hca.cust_account_id
AND
ooha.invoice_to_org_id=hcsua1.site_use_id
AND
hcsua1.site_use_code = 'BILL_TO'
AND
hcsua1.cust_acct_site_id=hcasa1.cust_acct_site_id
AND
hps1.party_site_id=hcasa1.party_site_id
AND
hp.party_id=hps1.party_id
AND
ooha.header_id=oola.header_id
AND
ooha.order_type_id=ottt.transaction_type_id
AND
ottt.language='US'
AND
ooha.header_id=wdd.source_header_id
AND
oola.line_id=wdd.source_line_id
AND
wda.delivery_detail_id=wdd.delivery_detail_id
AND
wnd.delivery_id=wda.delivery_id
AND
wdd.released_status in ('I','C')
AND
ottt.name >= nvl(:P_orgn,'0')
AND
ottt.name <= nvl(:P_orgn,'ZZZZZ')
AND
ooha.flow_status_code not in ('CLOSED','CANCELLED')
&lp_project
GROUP BY
ottt.name
,
to_char(nvl(wnd.initial_pickup_date,oola.schedule_ship_date),'mm/dd/yyyy')
,
decode(hca.attribute14, 'USA',hca.attribute14,
hca.attribute14||'-'||ooha.attribute2)
,
substr(ottt.name,instr(ottt.name,'-',1)+1)
Apfel Array Solutions
||'-'||ltrim(ooha.order_number,'0')
substr(hp.party_name,1,30)||','||
decode(hp.country,
'United States', substr(hp.state,1,2),
'Canada', substr(hp.province,1,2),
hp.country)
substr(hl.address1,1,30)||','||
decode(hl.country,
'United States', substr(hl.state,1,2),
'Canada', substr(hl.province,1,2),
hl.country)
UNION
SELECT
,
,
dte
,
ord_no
,
,
,
FROM
,
--,
,
,
,
--,
,
,
,
---,
,
,
,
,
,
ottt.name orgncd
hca.attribute14
market_class
to_char(nvl(wnd.initial_pickup_date,oola.schedule_ship_date),'mm/dd/yyyy')
substr(ottt.name,instr(ottt.name,'-',1)+1)||'-'||ltrim(ooha.order_number,'0')
substr(hp.party_name,1,30)||','||
decode(hp.country,
'United States', substr(hp.state,1,2),
'Canada', substr(hp.province,1,2),
hp.country) cust_nme_st
substr(hl.address1,1,30)||','||
decode(hl.country,
'United States', substr(hl.state,1,2),
'Canada', substr(hl.province,1,2),
hl.country) shpto_nme_st
sum(xxahc_ont_common.ship_qty1(oola.line_id))
sum(oola.unit_selling_price*oola.ordered_quantity)
qty
sales
oe_order_headers_all ooha
oe_order_lines_all
oola
For Custome Address
hz_cust_accounts hca
hz_cust_site_uses_all hcsua1
hz_cust_acct_sites_all hcasa1
hz_party_sites
hps1
For Ship To Address
hz_cust_site_uses_all hcsua
hz_cust_acct_sites_all hcasa
hz_party_sites
hps
hz_locations
hl
ic_whse_mst
iwm
hz_parties
hp
oe_transaction_types_tl ottt
wsh_delivery_assignments wda
wsh_new_deliveries wnd
wsh_delivery_details wdd
Apfel Array Solutions
13
Program Name
Before Report
ORA2007004.rdf
srw.user_exit('FND SRWINIT');
Program Name
After Report
ORA2007004.rdf
srw.user_exit('FND SRWEXIT');
14
VALIDATION LOGIC
Error Condition:
Warning
Conditions:
15
PERFORMANCE CONSIDERATIONS
NA
16
Other Considerations
10