Applies to:
Oracle Inventory Management - Version 11.5.9 to 12.1.3 [Release 11.5 to 12.1]
Information in this document applies to any platform.
What tables / queries are used to display the counts in the Inventory Account Periods form (INVTTGPM.fmb)?
R11i Pending Transactions screen:
Note: The "Uncosted Material" and "Pending WIP Costing" fields from R11i were merged into one count : "Uncosted Material/WSM". A new "Pending LCM Interface" count was added for Landed Cost Management (LCM).
R12 Pending transactions screen:
Steps
1. Goto Inventory > Accounting Close Cycle > Inventory Accounting Periods
2. Choose an inventory organization
3. The inventory accounting periods form opens
4. Press the "Pending..." button
5. The Pending Transactions Appear
6. See the following:
0 Unprocessed Material
3 Uncosted Material
0 Pending Transactions
... etc...
The following SQL mimicks the counts found in the Inventory Accounting Period close form.
1. The following parameters are used:
OrgID -- The Organization id.
StartPeriodDate -- The start period date for the period in question.
EndPeriodDate -- The end period date for the period in question.
2. The following SQL can be used to find the organization id:
select a.organization_id, b.organization_code, a.name
from HR_ALL_ORGANIZATION_UNITS_TL a, mtl_parameters_view b
where a.organization_id = b.organization_id
order by organization_id, organization_code;
INDIVIDUAL SQL
Here are the SQL scripts:
SELECT COUNT(*)
FROM MTL_MATERIAL_TRANSACTIONS_TEMP
WHERE ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate'
AND NVL(TRANSACTION_STATUS,0) <> 2;
SELECT COUNT(*)
FROM MTL_MATERIAL_TRANSACTIONS
WHERE ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate'
AND COSTED_FLAG IS NOT NULL;
SELECT COUNT(*)
FROM WIP_COST_TXN_INTERFACE
WHERE ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate';
4 Uncosted WSM (Separate Prior to R12)
SELECT COUNT(*)
FROM WSM_SPLIT_MERGE_TRANSACTIONS
WHERE ORGANIZATION_ID = &OrgID
AND COSTED <> 4
AND TRANSACTION_DATE <= '&EndPeriodDate';
SELECT COUNT(*)
FROM WSM_SPLIT_MERGE_TXN_INTERFACE
WHERE ORGANIZATION_ID = &OrgID
AND PROCESS_STATUS <> 4
AND TRANSACTION_DATE <= '&EndPeriodDate';
X Pending LCM Interface (New in R12)
SELECT COUNT(*)
FROM CST_LC_ADJ_INTERFACE
WHERE ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate';
SELECT COUNT(*)
FROM RCV_TRANSACTIONS_INTERFACE
WHERE TO_ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate'
AND DESTINATION_TYPE_CODE = 'INVENTORY';
SELECT COUNT(*)
FROM MTL_TRANSACTIONS_INTERFACE
WHERE ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate'
AND PROCESS_FLAG <> 9;
SELECT COUNT(*) FROM WIP_MOVE_TXN_INTERFACE
WHERE ORGANIZATION_ID = &OrgID
AND TRANSACTION_DATE <= '&EndPeriodDate';
C. Resolution Required / Recommended
9 Unprocessed Shipping Transactions (Pending Transactions)
SELECT COUNT(*)
FROM WSH_DELIVERY_DETAILS WDD, WSH_DELIVERY_ASSIGNMENTS WDA, WSH_NEW_DELIVERIES WND, WSH_DELIVERY_LEGS WDL, WSH_TRIP_STOPS WTS
WHERE WDD.SOURCE_CODE = 'OE'
AND WDD.RELEASED_STATUS = 'C'
AND WDD.INV_INTERFACED_FLAG IN ('N' ,'P')
AND WDD.ORGANIZATION_ID = &OrgID
AND WDA.DELIVERY_DETAIL_ID = WDD.DELIVERY_DETAIL_ID
AND WND.DELIVERY_ID = WDA.DELIVERY_ID
AND WND.STATUS_CODE IN ('CL','IT')
AND WDL.DELIVERY_ID = WND.DELIVERY_ID
AND WTS.PENDING_INTERFACE_FLAG = 'Y'
AND TRUNC(WTS.ACTUAL_DEPARTURE_DATE)
BETWEEN '&StartPeriodDate' AND '&EndPeriodDate'
AND WDL.PICK_UP_STOP_ID = WTS.STOP_ID;
Here is an example Script using these counts:
spool PeriodCloseCount.lst
PROMPT This attempts to provide similar counts as provided in the Period Close form.
prompt
accept OrgID DEFAULT '207' prompt 'Please enter an Organization ID: (Default is 207)'
prompt
prompt
accept StartPeriodDate DEFAULT '01-APR-2006 00:00:00' prompt 'Please enter the start of your period: (Default is 01-APR-2006 0:0:0)'
prompt
prompt
accept EndPeriodDate DEFAULT '30-APR-2006 23:59:59' prompt 'Please enter the end of your period: (Default is 30-APR-2006 23:59:59)'
prompt
PROMPT A. Resolution Required
PROMPT 1 Unprocessed Material
SELECT COUNT(*)
FROM MTL_MATERIAL_TRANSACTIONS_TEMP
WHERE ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS') AND NVL(TRANSACTION_STATUS,0) <> 2;
PROMPT 2 Uncosted Material
SELECT COUNT(*)
FROM MTL_MATERIAL_TRANSACTIONS
WHERE ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS') AND COSTED_FLAG IS NOT NULL;
PROMPT 3 Pending WIP Transactions
SELECT COUNT(*) FROM WIP_COST_TXN_INTERFACE WHERE ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS');
PROMPT 4 Uncosted WSM
SELECT COUNT(*)
FROM WSM_SPLIT_MERGE_TRANSACTIONS
WHERE ORGANIZATION_ID = &OrgID AND COSTED <> 4 AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS');
PROMPT 5 Pending WSM Interface
SELECT COUNT(*)
FROM WSM_SPLIT_MERGE_TXN_INTERFACE
WHERE ORGANIZATION_ID = &OrgID AND PROCESS_STATUS <> 4 AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS');
PROMPT X Pending LCM Interface
SELECT COUNT(*)
FROM CST_LC_ADJ_INTERFACE
WHERE ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS');
PROMPT B. Resolution Recommended
PROMPT 6 Pending Receiving
SELECT COUNT(*)
FROM RCV_TRANSACTIONS_INTERFACE
WHERE TO_ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS') AND DESTINATION_TYPE_CODE = 'INVENTORY';
PROMPT 7 Pending Material
SELECT COUNT(*)
FROM MTL_TRANSACTIONS_INTERFACE
WHERE ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS') AND PROCESS_FLAG <> 9;
PROMPT 8 Pending Shop Floor Move
SELECT COUNT(*) FROM WIP_MOVE_TXN_INTERFACE WHERE ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS');
PROMPT C. Resolution Required / Recommended
PROMPT 9 Unprocessed Shipping Transactions (Pending Transactions)
SELECT COUNT(*)
FROM WSH_DELIVERY_DETAILS WDD, WSH_DELIVERY_ASSIGNMENTS WDA, WSH_NEW_DELIVERIES WND,
WSH_DELIVERY_LEGS WDL, WSH_TRIP_STOPS WTS
WHERE WDD.SOURCE_CODE = 'OE' AND WDD.RELEASED_STATUS = 'C'
AND WDD.INV_INTERFACED_FLAG IN ('N' ,'P') AND WDD.ORGANIZATION_ID = &OrgID
AND WDA.DELIVERY_DETAIL_ID = WDD.DELIVERY_DETAIL_ID AND WND.DELIVERY_ID = WDA.DELIVERY_ID
AND WND.STATUS_CODE IN ('CL','IT') AND WDL.DELIVERY_ID = WND.DELIVERY_ID
AND WTS.PENDING_INTERFACE_FLAG = 'Y' AND TRUNC(WTS.ACTUAL_DEPARTURE_DATE) BETWEEN to_date('&StartPeriodDate','DD-MON-YYYY HH24:MI:SS') AND to_date('&EndPeriodDate','DD-MON-YYYY HH24:MI:SS')
AND WDL.PICK_UP_STOP_ID = WTS.STOP_ID;
NOTE:105647.1 - WIP and COST Frequently Used Troubleshooting Scripts
NOTE:238700.1 - Unprocessed Shipping Transactions Stop Period Close
NOTE:262979.1 - Unprocessed Shipping Transactions Troubleshooting Techniques