Professional Documents
Culture Documents
Brown Bag
Presented by
Toni Davidson, Mike McMillan, Rod Emenaker
Steps to reproduce
----------------------------
Switch to Order Management Responsibility
1. Create Sales Order
2. Release Sales Order
3. Ship confirm Sales Order
4. Processed through Inventory Transactions Interface
5. Cost manager runs to cost the transactions in MMT
6. SQL Developer script to find eligible INV transactions for IC invoicing
See Appendix A - How to find the eligible INV transactions for IC invoicing
Common errors:
APP-INV-05706: Warning: Cannot retrieve transfer price for the item
APP-INV-05700: Warning: Mandatory Intercompany Relation or Transaction Flow not defined
between these two operating units
Reference Notes
784679.1 - Create a Intercompany invoice AR and AP overviews
458731.1 - Intercompany Invoices SR Template
Profile Options used by Intercompany
INV: Always suffix inter-Company AP Invoice number
INV: Intercompany Currency Conversion
INV: Intercompany Transfer Price Date
INV: Use Intercompany AR Tax for inter-Company AP
INV:Advanced Pricing for Intercompany Invoice
INV:Intercompany Invoice for Internal Orders
INV: Use Model & Options for Configuration Pricing
TAX: Inventory Item for Freight
TAX: Invoice Freight as Revenue
TAX: Allow Override of Tax Code
QP: Item Validation Organization
QP: Pricing Transaction Entity
QP: Source System Code
CST: Transfer Pricing Option
Questions
2. On the Shipping Tab - can the Shipping organization be from the same Operating Unit as
the Sale Order?
No
3. Can the item be on more than the one Price List at the same precedence?
No
6. Can Intercompany AP create an Accounts Payable invoice with Purchase Order Receipt?
Yes
7. In the Accounts Payable Invoice interface screen can you see the Transaction_ID
from MTL_MATERIAL_TRANSACTIONS ?
Yes
Provide &orgId
For values
Select TRANSACTION_TYPE_ID,TRANSACTION_ACTION_ID,TRANSACTION_SOURCE_TYPE_ID, DESCRIPTION from
mtL_transaction_types
where TRANSACTION_SOURCE_TYPE_ID in (2,8, 12, 13)
AND TRANSACTION_ACTION_ID in (1,9, 13,14, 21,27)
order by 3,2,1,4;
Appendix B - RA_INTERFACE_LINES_ALL
TABLE:
RA_INTERFACE_LINES_ALL
interface_line_attribute11 NA
interface_line_attribute12 NA
interface_line_attribute13 NA
interface_line_attribute14 NA
Null => Intercompany AP invoice inserted in AP interface tables,
interface_line_attribute15 “Y” => Create Intercompany AP invoice program yet to be run
To find the Price list being used and if the Item is on the price list
.
a) select transaction_id,organization_id,inventory_item_id,
nvl(picking_line_id,0),nvl(movement_id,0),transaction_uom,
invoiced_flag,costed_flag,transaction_source_type_id,
transaction_action_id,trx_source_line_id
from mtl_material_transactions
where transaction_id = &txn_id
.
When prompted provide the transaction id from the INCIAR Log file which will be as follows
............
Processing shipment transaction, ID = <txn_id>
.
b) SELECT nvl(base_item_id,0)
FROM mtl_system_items
WHERE organization_id = &org_id
AND inventory_item_id = &item_id
.
Provide the organization_id and inventory_item_id obtained from Sql (a)
.
c) SELECT nvl(RSU.payment_term_id, nvl(RC.payment_term_id, -1))
, nvl(RSU.price_list_id, nvl(RC.price_list_id, -1))
FROM mtl_intercompany_parameters MIP
, ra_site_uses_all RSU
, ra_customers RC
WHERE MIP.sell_organization_id = &sell_org_id
AND MIP.ship_organization_id = &ship_org_id
AND RSU.site_use_id = MIP.customer_site_id
AND RSU.org_id = MIP.ship_organization_id
AND RC.customer_id = MIP.customer_id;
.
Provide the Selling Organization ID and Shipping Organization Id from the request Log file
.
d) select to_char(SPLL.operand) ,SPL.currency_code, qpa.product_uom_code,
SPLL.start_date_active,SPLL.end_date_active
from qp_pricing_attributes qpa, qp_list_lines spll,qp_list_headers_b spl
where qpa.list_header_id=&priceListId
and qpa.product_attribute_context= 'ITEM'
and qpa.product_attribute='PRICING_ATTRIBUTE1'
and qpa.product_attr_value= to_char(&itemId)
and qpa.qualification_ind = 4
and qpa.excluder_flag = 'N'
and qpa.pricing_phase_id=1
and spll.list_line_id=qpa.list_line_id
and spl.list_header_id = qpa.list_header_id
and sysdate between nvl(SPLL.start_date_active,(sysdate -1))
and nvl(SPLL.end_date_active+0.99999,(sysdate +1))
and rownum=1
.
Provide the Pricelist Id from Sql (c) and Provide Item Id from Sql (b).
APP-INV-05700: Warning: Mandatory Intercompany Relation or Transaction Flow not defined
between these two operating units
To find if the Transaction flow is setup and that its setup before the transaction is created
1) SELECT *
FROM mtl_parameters
WHERE organization_id IN (&shiporg, &sellorg); -- &shiporg, &sellorg
.
2) SELECT *
FROM mtl_transaction_flow_headers mfh
WHERE mfh.start_org_id = &shiporg -- &shiporg
AND mfh.end_org_id = &sellorg; -- &sellorg
.
3) SELECT mip.*
FROM mtl_intercompany_parameters mip
WHERE mip.ship_organization_id = &shiporg -- &shiporg
AND mip.sell_organization_id = &sellorg; -- &sellorg
.
4) SELECT *
FROM ic_tran_pnd pnd
WHERE pnd.trans_id IN (&trans_id); -- &trans_id from concurrent request log
5) SELECT mmt.CREATION_DATE
FROM mtl_material_transactions mmt
WHERE mmt.TRANSACTION_ID = &tran_id -- &trans_id from concurrent request log
6) SELECT *
FROM mtl_material_transactions mmt
WHERE mmt.TRANSACTION_ID = &tran_id -- &trans_id from concurrent request log
This creation date should be earlier than the Transaction Flow start date.