MD070 Technical Design Document - Delivery Note Report-REP - TRU.009
MD070 Technical Design Document - Delivery Note Report-REP - TRU.009
Approvals:
<Approver 1>
<Approver 2>
MD.070 Application Extension Technical Design Doc Ref MD70. Delivery Note Report
Version 1.0
Document Control
Change Record
1
Reviewers
Name Position
Distribution
Note To Holders:
If you receive an electronic copy of this document and print it out, please write your
name on the equivalent of the cover page, for document control purposes.
If you receive a hard copy of this document, please write your name on the front
cover, for document control purposes.
File Ref: MD70. Delivery Note Report (v. DRAFT 1 ) Open and Closed Issues for this Deliverable 13 of 17
MD.070 Application Extension Technical Design Doc Ref MD70. Delivery Note Report
Version 1.0
Contents
Document Control...................................................................................................................ii
Technical Overview.................................................................................................................1
Approach............................................................................................................................1
Related Documents..........................................................................................................1
Module List........................................................................................................................2
Concurrent Program Details...........................................................................................2
Report Logic..............................................................................................................................3
Concurrent Program Parameters...................................................................................3
Log Output........................................................................................................................3
Output – Load Mode........................................................................................................3
Table and View Usage.....................................................................................................3
Program Logic (pseudo code)........................................................................................4
SQL Statements.................................................................................................................4
Default Data Sources........................................................................................................4
Validation Logic................................................................................................................4
Incompatibility..................................................................................................................5
Performance Considerations...........................................................................................5
Other Considerations.......................................................................................................5
Integration Issues.....................................................................................................................6
Changes Required.............................................................................................................6
Shared Components.........................................................................................................6
Alert conditions................................................................................................................6
Incompatibilities................................................................................................................6
Performance Issues...........................................................................................................6
Database Design.......................................................................................................................7
Desired Table Changes....................................................................................................7
New/Updated Seed Data................................................................................................7
Descriptive Flexfields.......................................................................................................7
Value Sets...........................................................................................................................7
Grants/Synonyms............................................................................................................7
Archiving...........................................................................................................................7
Database Diagram............................................................................................................7
Tables, Indexes, Sequences.............................................................................................7
Installation Requirements.......................................................................................................8
Implementation Notes.............................................................................................................9
Installation.........................................................................................................................9
Open and Closed Issues for this Deliverable....................................................................10
File Ref: MD70. Delivery Note Report (v. DRAFT 1 ) Open and Closed Issues for this Deliverable 13 of 17
MD.070 Application Extension Technical Design Doc Ref MD70. Delivery Note Report
Version 1.0
Open Issues......................................................................................................................10
Closed Issues...................................................................................................................10
File Ref: MD70. Delivery Note Report (v. DRAFT 1 ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Technical Overview
This document defines the technical components required for custom report ‘BNA
Delivery Note Report. This Application Extension Technical Design document complements
the Application Extension Functional Design document for MD050 Functional Specification
Document-Delivery Note Report and you should consider the set to be the complete detailed
design.
Report Names:
Approach
Note: If the Functional Design included a Technical Overview section, duplicate that i n formation here and add
additional details.
The ‘BNA Delivery Note Report ' concurrent program is to be developed using XML publisher and oracle reports
to achieve the desired print output requested by the business.
- The concurrent program definition for the report should take the “Warehouse, Delivery Name, Print Customer
Item, Item Display Option, Print Mode, Sort Option, Delivery Date (Low), Delivery Date (High), Freight Carrier,
Quantity Precision, Display Unshipped Items and Debug Flag” as parameters for filtering the output result.
Related Documents
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Module List
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Report Logic
Concurrent Programs “Delivery Note Report” will generate the required Output in PDF format.
Required data will get fetched using SQL Query.
Sample OutPut
The report output should get printed with the below layout provided from business.
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Log Output
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
OE_ORDER_HEADERS_ALL X
OE_ORDER_LINES_ALL X
WSH_DELIVERY_DETAILS X
WSH_DELIVERY_ASSIGNMENTS X
MTL_SYSTEM_ITEMS X
MTL_TXN_REQUEST_LINES X
RA_SALESREPS_ALL X
HR_OPERATING_UNITS X
OE_TRANSACTION_TYPES_TL X
ORG_ORGANIZATION_DEFINITIONS X
SQL Statements
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
WHERE rsa.salesrep_id = oeh.salesrep_id
) salesrep_name,
oeh.transactional_curr_code trx_curr,
oeh.ship_to_contact_id, -- contact_id in ra_contacts, ship to contact
oeh.sold_to_contact_id, -- contact_id in ra_contacts, customer level contact
oeh.ship_to_org_id, -- site_use_id in hz_cust_site_uses_all
oeh.sold_to_org_id, -- cust_account_id in hz_cust_accounts
oel.creation_date line_creation_date,
oel.last_update_date line_upd_date,
(SELECT user_name FROM apps.fnd_user WHERE user_id = oel.last_updated_by
) line_upd_by,
oel.line_id,
RTRIM ( oel.line_number
|| '.'
|| oel.shipment_number
|| '.'
|| oel.option_number
|| '.'
|| oel.component_number, '.') line_number,
oel.org_id line_org_id,
(SELECT hou.name
FROM hr_operating_units hou
WHERE hou.organization_id = oel.org_id
) line_ou,
(SELECT ROUND (SUM (cic.item_cost), 2)
FROM apps.cst_item_costs cic
WHERE cic.inventory_item_id = MSI.inventory_item_id
AND cic.organization_id = MSI.organization_id
AND cic.cost_type_id = 1
) cogs,
oel.unit_selling_price usp,
oel.tax_code,
oel.tax_value,
oel.ordered_quantity ord_qty,
(SELECT ott.name
FROM apps.oe_transaction_types_tl ott
WHERE ott.transaction_type_id = oel.line_type_id
) line_type,
oel.schedule_ship_date,
oel.promise_date,
oel.latest_acceptable_date latest_acc_date,
oel.request_date,
oel.request_id,
(SELECT a.order_number
FROM apps.oe_order_headers_all a,
apps.oe_order_lines_all b
WHERE a.header_id = b.header_id
AND b.line_id = oel.attribute17
) icso_number,
oel.attribute17 icso_line_id,
(SELECT RTRIM ( oola.line_number
|| '.'
|| oola.shipment_number
|| '.'
|| oola.option_number
|| '.'
|| oola.component_number, '.')
FROM apps.oe_order_lines_all oola
WHERE oola.line_id = oel.attribute17
) icso_line_num,
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
NVL (oel.attribute18, 'EXTERNAL SO') attribute18,
oel.attribute19 pto_model,
oel.global_attribute1 flag_3A4,
oeh.Global_Attribute3 hdr_attr3,
oel.Global_Attribute3 line_attr3,
oeh.Global_Attribute4 hdr_attr4,
oel.Global_Attribute4 line_attr4,
oel.booked_flag,
oel.open_flag,
oeh.booked_date,
(SELECT set_name FROM apps.oe_sets WHERE set_id = oel.ship_set_id
) ship_set_name,
oel.subinventory,
oel.top_model_line_id,
msi.item_type,
msi.inventory_item_id item_id,
msi.segment1 item_num,
msi.shippable_item_flag,
(SELECT ood.organization_name
FROM apps.org_organization_definitions ood
WHERE ood.organization_id = msi.default_shipping_org
) default_shipping_org,
oel.ship_from_org_id,
(SELECT ood.organization_name
FROM apps.org_organization_definitions ood
WHERE ood.organization_id = oel.ship_from_org_id
) ship_from_org,
wdd.last_update_date del_upd_date,
(SELECT user_name FROM apps.fnd_user WHERE user_id = wdd.last_updated_by
) del_upd_by,
wda.delivery_id,
wdd.delivery_detail_id,
wdd.move_order_line_id,
wdd.request_id del_request_id,
mtrl.from_subinventory_code from_subinv,
mtrl.to_subinventory_code to_subinv,
mtrl.quantity_delivered qty_delivered,
mtrl.pick_slip_number,
mtrl.pick_slip_date,
oel.actual_shipment_date
FROM apps.oe_order_headers_all oeh,
apps.oe_order_lines_all oel,
wsh.wsh_delivery_details wdd,
apps.wsh_delivery_assignments wda,
apps.mtl_system_items msi,
apps.mtl_txn_request_lines mtrl
WHERE oeh.header_id = oel.header_id
AND oel.line_id = wdd.source_line_id(+)
AND wdd.delivery_detail_id = wda.delivery_detail_id(+)
AND msi.inventory_item_id = oel.inventory_item_id
AND oel.ship_from_org_id = msi.organization_id
AND mtrl.line_id(+) = wdd.move_order_line_id
AND oeh.order_number IN (':p_order_number')
ORDER BY line_number,
line_id,
delivery_id
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Performance Considerations
Other Considerations
Restart Strategy
Crash Recovery
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Integration Issues
Changes Required
Within Product
No changes required
Other Products
No changes required
Shared Components
INV
None
BOM
None
ENG
None
MPS/MRP
None
WIP
None
Alert conditions
None.
Incompatibilities
None.
Performance Issues
None.
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Database Design
This section summarized new and changed database objects and data required to
support. However, the complete database design is documented in the Database
Extensions Design document.
None
None
Descriptive Flexfields
None.
Value Sets
Grants/Synonyms
Archiving
No need to archive.
Database Diagram
No new tables
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Installation Requirements
Installation scripts must be prepared to perform the following actions in an automated
way:
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Implementation Notes
Development was done to work with Oracle Release 12 Vesion.
Installation
All modules are installed as if part of a separate product. A UNIX directory structure is created under $APPL_TOP
as shown in the following example:
$APPL_TOP
|
FA
|
1.0.0
___________________________|___________________________________
| | | | | | | | |
forms bin src sql log out srw install sql
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17
Doc Ref MD70. Delivery Note Report
Version 1.0
Open Issues
Closed Issues
File Ref: MD70. Delivery Note Report (v. ) Open and Closed Issues for this Deliverable 13 of 17