Inventory Onhand Quantities
Hello everyone! I am having some difficulty getting the correct results from this query. This query generates on hand quantity. I started getting the issue when I added the last three fields to this query, VENDOR, PO and UNIT_PRICE. I think that I am missing other parameters aside from just joining the tables
CREATE OR REPLACE FORCE VIEW "APPS"."XXGVN_INVENTORY_ONHAND_VIEW2" ("ORG", "ITEM_TYPE", "ITEM", "DESCRIPTION", "LOT_NUMBER", "SUBINVENTORY", "LOCATOR", "UOM", "QTY", "SEC_UOM", "SEC_QTY", "COST", "AMOUNT", "PO_VENDOR", "VENDOR", "PO", "UNIT_PRICE") AS
SELECT MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1 ITEM, M.DESCRIPTION, Q.LOT_NUMBER, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS LOCATOR
, M.PRIMARY_UOM_CODE UOM, SUM(Q.TRANSACTION_QUANTITY) QTY, Q.SECONDARY_UOM_CODE SEC_UOM, SUM(Q.SECONDARY_TRANSACTION_QUANTITY) SEC_QTY
, NVL(C.ITEM_COST,0) COST, SUM(Q.TRANSACTION_QUANTITY)*NVL(C.ITEM_COST,0) AMOUNT
, M.ATTRIBUTE16 PO_VENDOR, PV.VENDOR_NAME VENDOR, POH.SEGMENT1 PO, PLA.UNIT_PRICE PRICE
FROM MTL_ONHAND_QUANTITIES Q, MTL_SYSTEM_ITEMS_B M,MTL_ITEM_LOCATIONS_KFV L, CST_ITEM_COSTS C, MTL_PARAMETERS MP, PO_VENDORS PV, PO_LINES_ALL PLA, PO_HEADERS_ALL POH
WHERE 83 = M.ORGANIZATION_ID
AND poh.po_header_id = pla.po_header_id
AND pla.item_id = M.inventory_item_id
AND poh.vendor_id = pv.vendor_id
AND Q.INVENTORY_ITEM_ID = M.INVENTORY_ITEM_ID
AND Q.LOCATOR_ID = L.INVENTORY_LOCATION_ID(+)
AND Q.ORGANIZATION_ID = C.ORGANIZATION_ID(+)
AND Q.INVENTORY_ITEM_ID = C.INVENTORY_ITEM_ID(+)
AND C.COST_TYPE_ID(+) = 2
AND Q.ORGANIZATION_ID = 86
AND MP.ORGANIZATION_ID = Q.ORGANIZATION_ID
GROUP BY MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1 , M.DESCRIPTION, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS, C.ITEM_COST, Q.LOT_NUMBER
, M.PRIMARY_UOM_CODE, Q.SECONDARY_UOM_CODE, M.ATTRIBUTE16, PV.VENDOR_NAME, POH.SEGMENT1, PLA.UNIT_PRICE
UNION
SELECT MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1 ITEM, M.DESCRIPTION, Q.LOT_NUMBER, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS LOCATOR
, M.PRIMARY_UOM_CODE UOM, SUM(Q.TRANSACTION_QUANTITY) QTY, Q.SECONDARY_UOM_CODE SEC_UOM, SUM(Q.SECONDARY_TRANSACTION_QUANTITY) SEC_QTY
, (SELECT NVL(SUM(C.CMPNT_COST),0) FROM CM_CMPT_DTL_VW C, GMF_PERIOD_STATUSES C1
WHERE Q.INVENTORY_ITEM_ID = C.INVENTORY_ITEM_ID
AND C.COST_TYPE_ID = 1001
AND C.ORGANIZATION_ID = 84
AND C.PERIOD_ID = C1.PERIOD_ID
AND (SYSDATE-3) BETWEEN C1.START_DATE AND C1.END_DATE
AND C1.CALENDAR_CODE = 'COST_CAL'
AND C.COST_ANALYSIS_CODE = 'VAL') COST
, SUM(Q.TRANSACTION_QUANTITY)*(SELECT NVL(SUM(C.CMPNT_COST),0) FROM CM_CMPT_DTL_VW C, GMF_PERIOD_STATUSES C1
WHERE Q.INVENTORY_ITEM_ID = C.INVENTORY_ITEM_ID
AND C.COST_TYPE_ID = 1001
AND C.ORGANIZATION_ID = 84
AND C.PERIOD_ID = C1.PERIOD_ID
AND (SYSDATE-3) BETWEEN C1.START_DATE AND C1.END_DATE
AND C1.CALENDAR_CODE = 'COST_CAL'
AND C.COST_ANALYSIS_CODE = 'VAL') AMOUNT
, M.ATTRIBUTE16 PO_VENDOR, PV.VENDOR_NAME VENDOR, POH.SEGMENT1, PLA.UNIT_PRICE
FROM MTL_ONHAND_QUANTITIES Q, MTL_SYSTEM_ITEMS_B M,MTL_ITEM_LOCATIONS_KFV L, MTL_PARAMETERS MP, PO_VENDORS PV, PO_LINES_ALL PLA, PO_HEADERS_ALL POH
WHERE 83 = M.ORGANIZATION_ID
AND poh.po_header_id = pla.po_header_id
AND pla.item_id = M.inventory_item_id
AND poh.vendor_id = pv.vendor_id
AND Q.INVENTORY_ITEM_ID = M.INVENTORY_ITEM_ID
AND Q.LOCATOR_ID = L.INVENTORY_LOCATION_ID(+)
AND Q.ORGANIZATION_ID != 86
AND MP.ORGANIZATION_ID = Q.ORGANIZATION_ID
GROUP BY MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1, M.DESCRIPTION, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS, Q.LOT_NUMBER,
M.PRIMARY_UOM_CODE, Q.SECONDARY_UOM_CODE, Q.INVENTORY_ITEM_ID, M.ATTRIBUTE16, PV.VENDOR_NAME, POH.SEGMENT1, PLA.UNIT_PRICE
ORDER BY 1,2,3 ;
Any help would be greatly appreciated.
Thanks!
Edited by: user8741170 on Aug 2, 2011 8:40 AM
You have posted a very long and hard to understand query. You haven't had teh good manners to format it using the forum's markup to make it easier to read.
You say you are getting "issues" without describing them in detail. With questions like this the details really matter. Please provide enough data for us to reproduce or at least understand the results you are getting. This means, sample data together with the expected and actual results.
Help us to help you.
Cheers, APC
Similar Messages
-
Inventory onhand quantities Report.
Hi Everyone,
I have a requirement regarding Inventory, a report needs to show the details of inventory like
Unusable_Quantity,
Available_Quantity,
Onhold_Quantity,
Total
Can any one help me in this.
Regards
Vamsi
Edited by: 965678 on May 6, 2013 2:13 AM
Edited by: 965678 on May 6, 2013 2:45 AMHi;
I suggest to review:
http://docs.oracle.com/cd/A60725_05/html/comnls/us/inv/invirilc.htm
http://docs.oracle.com/cd/A60725_05/html/comnls/us/inv/invirsiq.htm
Regard
Helios -
Inventory onhand quantities check from third party OM system - EBS R12
We need to build a custom program in EBS which will give the onhand quantity availability of an item being ordered (in third party system), when being called from the third party ordering system. How do i start building such a custom program in EBS (tables, some logic ideas). Any inputs?
First of all, find out if you need to get Onhand Quantity in Oracle or the Available quantity in Oracle.
Getting Onhand quantity is a matter of simply looking up one table.
Getting availability is a little bit more complicated.
Then you need to find out the architecture. Is the 3rd party app going to have a real time connection to EBS? Can it connect to EBS using dblink? Does that app need a file on daily basis?
You need to define your requirements further.
Sandeep Gandhi -
I am new to oracle applications and I need to import some inventory information from an existing database. Can somebody tell me how can I select the inventory onhand for every item defined in the system?
Hi,
Verify that your application contains OUI2.1 or OUI 2.2. or apply the patch which available in metalink, and run the perl script which inside the oui folder. It will update your inventory based on your database.
thanks
pandian -
Onhand Quantities Conversion API
Hi all
Can any one suggest me the API to Convert Onhand quantities from a legacy to Apps 11.5.10?
Thank you
Regards,
SuhasiniHi Suhasini
I didn't get you convert onhand quantities means what.
To load the Onhand quantities into Oracle you should use the Transactions Open Interface process, Misc. Receipts transactions types.
Regards/Prasanth -
Hi Gurus,
the Business requirement for us is to give the users a Onhand report on a monthly basis, my question to you guys is
Instead of building a Onhand cube at month level can I build a cube at the daily level and build an aggregate on top of the cube at monthly level and have a report on it? Just thinking about the future if they ask inventory onhand report at the daily level.
I know it is little different in case of inventory cube and how it works because of the validity table and the performance issues
if we have at daily level? Is it possible please through some input on this.
Thanks
Jay.Hi,
Use 2LIS_03_BX, 2LIS_03_BF, 2LIS_03_UM to 0IC_C03 Cube and design the report.
You can do it by using 0IC_C03 InfoCube, see the report design steps and keyfigures used.
Use :
0VALSTCKVAL " for Value
0VALSTCKQTY " for Qty
0CALMONTH " for Month
Use the above combinations in New Selections in columns and go it.
For Qty Opening:
New Selection bad drag abd drop following things
0VALSTCKQTY " for Qty
0CALMONTH " for Month and restrict with less then or equalto option variable (single value, user input) and set the offeset
value = -1 bcoz if user will give 12.2009 , so it will display 11.2009 closing stock, this is opening for 12.2009.
For Qty Closing:
New Selection bad drag abd drop following things
0VALSTCKQTY " for Qty
0CALMONTH " for Month and restrict with less then or equalto option variable (single value, user input) .
In the same way build for Value and other Keyfigures on 0IC_C03.
And
Drag & drop
0MATERAIL
0PLANT " Give some Input Variable.
See the steps.
Treatment of historical full loads with Inventory cube
Setting up material movement/inventory with limit locking time
If it is BI 7 then for BX in in DTP in Extraction Tab you need to select Extacrion mode = NON-Cumulative option.
Thanks
Reddy -
Synch plugin for inventory OnHand
On the forum there are several threads about the synchronisation of the Inventory. To only display the inventory OnHand (so not the calculated one OnHand-IsCommitted+OnOrder) you will have to use a synch plugin.
Is someone using such a synch plugin. We would be much appreciated if someone would share it with us or could give us some more information.
In a thread of May 11 2007 'More Inventory questions' there was a solution given by Bryce which could help us further with this issue.
Personally I would do it in a synch plugin and disable the inventory synch in the synchmanager. There is a synch plugin I wrote that will read SQL from an XML file and execute it against whichever db/table. I've used this in the past when it was necessary to set the default shipping address for a user for instance. Let me see if I can locate the SAP note number for you that has the synch plugin as an attachment. It's also available for download on our old support forums at www.boug.us
Can't locate the note. Here is the link to the synchplugin
http://boug.us/files/10/plugins/entry403.aspx
You need to have a login to download, and it's free to sign up.
You might find other interesting information about Netpoint there too, as it was an old "braindump" site for dev support when we were with Praxis.
So if this plugin is still available it would be very helpfull for us. Thanks in advance!
(For Webtools 6 - SP01)
Best regards,
Tim
Edited by: T. Verholt on Jan 22, 2009 9:17 AMHello Bryce,
Can i have this old plugin.
The link you gave on boug.us doesn't work anymore.
Thank You !
Martijn -
Hello All;
Has anyone followed up on creating a plugin to show just OnHand inventory without what is OnOrder? Or better yet, show what is OnHand or if the product is on Backorder based on Ordered - Committed from SAP?
I found this old post: SAP Business One Application and was wondering if anybody has followed up on it or written anything new?
Thoughts on solutions?
Thanks,
Adam Hairston
Sitka Inc.Thanks for the heads up Gordon. Link to original thread:
https://forums.sdn.sap.com/click.jspa?searchID=27382961&messageID=6810764
Adam -
Hi,
What is the Join condition between mtl_system_items_b and mtl_onhand_quantities_detail?
Thanks & Regards,
Hari BabuPlease see the query in (Consolidate Onhand Quantity /Sum Quantity Zero in MTL_ONHAND_QUANTITIES_DETAIL (MOQD) / Concurrent Program Consolidate Inventory Onhand Quantities / Datafix for 0 Quantity Displayed For Finished Goods (Doc ID 353345.1)), is shows how to join those 2 tables.
http://etrm.oracle.com
Thanks,
Hussein -
Onhand and available quantities for an item?
Hi ALL,
I have an item number with me..... how can I find available and onhand quantities for this item?
Can someone please share the queries if you have or guide me how to get available and onhand quantities?
and
Can anyone let me know how available and onhand quantities are populated in SubInventory Transfer form?Dear Friend
In OPM Inventory, go to Adjust immediate with this Item number, where you can see the available On hand quantity or You can use Item Inquiry form wherein you can also view the available on hand qty.
(N): OPM Inventory-->Adjust immediate
or
OPM Inventory--> Set up--> Item Inquiry
Regards
Raj
Sierra -
ONHAND QUANTITY SETUP을 확인하는 방법
제품: Applications
작성날짜 : 2006-05-30
ONHAND QUANTITY SETUP을 확인하는 방법
==============================
PURPOSE
Onhand quantity setup을 확인하는 방법
Explanation
script을 통해, 여러 setup사항들 및 onhand수량을 check할 수 있다.
1. Check Organization controls
2. Check Subinventory controls
3. Check item attributes and controls for lot, locator, serial and
revision.
4. Check onhand quantity stock records a) non lot control
b) lot controlled
5. Check that stock records agree with attribute settings including
the following:
- Check that stock has a lot number if under lot control.
- Check expiration date, lots which have expired still show in
transaction screen
- LPN containerized items
6. Show reservations for the item
7. Show overall quantities (from an internal routine called qtytree)
8. Check that cost groups are correct.
9. Check that quantities agree.
아래의 script을 onhand.sql로 생성하여 수행하시기 바랍니다.
$Header: onhand.sql 115.9 2005/05/25 $
FILE
onhand.sql
DESCRIPTION
Gives information regarding quantity values for an item within an organization,
subinventory, revision and lot to determine why the system does not find
available stock.
Quantity on hand
Reservable quantity on hand
Quantity reserved
Quantity suggested
Quantity available to transact
Quantity available to reserve
The retrieved information will be written to an O/S file called: onhand.lst
This script should be used for Release 11.5 only.
BASE
Bug 3089073, 4349223
ARGUMENTS
Organization_id
Inventory_item_id
lot_number => return over this if item is not lot controlled
revision => return over this if item is not revision controlled
subinventory_code
/*WHENEVER SQLERROR EXIT FAILURE;*/
spool onhand.lst
set linesize 125;
set pagesize 200;
set verify off;
set serveroutput on
PROMPT 1/ To check Organization controls
SELECT organization_id ORG_ID,
primary_cost_method CST_TYP,
cost_organization_id CST_ORG,
master_organization_id MAST_ORG,
default_cost_group_id DEF_CST_GRP,
project_reference_enabled PROJ_FLG,
wms_enabled_flag WMS
FROM mtl_parameters
WHERE organization_id = &&org_id;
PROMPT 2/ To check Subinventory controls
SELECT secondary_inventory_name, organization_id org_id, default_cost_group_id DEF_CST_GRP,
locator_type LOC, asset_inventory ASSET_INV
FROM mtl_secondary_inventories
where organization_id = &&org_id;
PROMPT 3/ To check item attributes
select LOT_CONTROL_CODE LOT, REVISION_QTY_CONTROL_CODE REV, LOCATION_CONTROL_CODE LOC,
SERIAL_NUMBER_CONTROL_CODE SER
from mtl_system_items_b
where organization_id= &&org_id
and inventory_item_id = &&item_id;
prompt control = 2 for on
prompt serial_number_control 1-No serial number, 2-Predefined serial number, 5-Dynamic entry at inventory receipt
prompt 6-Dynamic entry at sales order issue
PROMPT 4/ To check onhand quantity stock records a) non lot control b) lot controlled
select moqd.inventory_item_id ITEM_ID, moqd.organization_id ORG_ID,
moqd.primary_transaction_quantity PRIM_QTY, moqd.subinventory_code, moqd.revision REV,
moqd.locator_id, moqd.lot_number,
moqd.cost_group_id CST_GRP_ID, moqd.project_id, moqd.task_id, moqd.lpn_id,
moqd.CONTAINERIZED_FLAG CONT_FLG
from mtl_onhand_quantities_detail moqd
where moqd.organization_id = &&org_id
and moqd.inventory_item_id = &&item_id;
select moqd.inventory_item_id ITEM_ID, moqd.organization_id ORG_ID,
moqd.primary_transaction_quantity PRIM_QTY, moqd.subinventory_code,moqd.revision REV,
moqd.locator_id, moqd.lot_number, mln.expiration_date EXPIRE_DATE,
moqd.cost_group_id CST_GRP_ID, moqd.project_id, moqd.task_id, moqd.lpn_id,
moqd.CONTAINERIZED_FLAG CONT_FLG
from mtl_onhand_quantities_detail moqd, mtl_lot_numbers mln
where moqd.organization_id = &&org_id
and moqd.inventory_item_id = &&item_id
and moqd.inventory_item_id = mln.inventory_item_id
and moqd.organization_id = mln.organization_id
and moqd.lot_number = mln.lot_number;
PROMPT Check that stock records agree with attribute settings ie. stock has a lot
PROMPT number if under lot control. Also check expiration date, lots which have expired
PROMPT still show in transaction screen but cannot be reserved (bug 3818166) and for
PROMPT negative balances, if found apply patch 3747966.
PROMPT Also check for LPN containerised items will not show as available on forms need
PROMPT unpack the material and then try to issue out from desktop or Perform the Misc
PROMPT issue of the LPN from the Mobile (bug 4349223).
PROMPT
PROMPT 5/ Show reservations for item
select organization_id, inventory_item_id, demand_source_name, demand_source_header_id,
demand_source_line_id, primary_reservation_quantity, revision, subinventory_code,
locator_id, lot_number
from mtl_reservations
where organization_id = &&org_id
and inventory_item_id = &&item_id;
PROMPT 6/ Show overall quantities from qtytree
SELECT
x.organization_id organization_id
, x.inventory_item_id inventory_item_id
, x.revision revision
, x.lot_number lot_number
, To_date(NULL) lot_expiration_date
, x.subinventory_code subinventory_code
, sub.reservable_type reservable_type
, x.locator_id locator_id
, x.primary_quantity primary_quantity
, x.date_received date_received
, x.quantity_type quantity_type
, x.cost_group_id cost_group_id
, x.containerized containerized
FROM (
SELECT
x.organization_id organization_id
, x.inventory_item_id inventory_item_id
, NULL revision
, NULL lot_number
, x.subinventory_code subinventory_code
, x.locator_id locator_id
, SUM(x.primary_quantity) primary_quantity
, MIN(x.date_received) date_received
, x.quantity_type quantity_type
, x.cost_group_id cost_group_id
, x.containerized containerized
FROM (
-- reservations
SELECT
mr.organization_id organization_id
, mr.inventory_item_id inventory_item_id
, mr.revision revision
, mr.lot_number lot_number
, mr.subinventory_code subinventory_code
, mr.locator_id locator_id
, mr.primary_reservation_quantity
- Nvl(mr.detailed_quantity,0) primary_quantity
, To_date(NULL) date_received
, 3 quantity_type
, to_number(NULL) cost_group_id
, 0 containerized
FROM mtl_reservations mr
WHERE
Nvl(mr.supply_source_type_id, 13) = 13
AND mr.primary_reservation_quantity > Nvl(mr.detailed_quantity,0)
UNION ALL
-- onhand quantities
SELECT
moq.organization_id organization_id
, moq.inventory_item_id inventory_item_id
, moq.revision revision
, moq.lot_number lot_number
, moq.subinventory_code subinventory_code
, moq.locator_id locator_id
, decode(NULL, NULL, moq.transaction_quantity, nvl(pjm_ueff_onhand.onhand_quantity
(NULL,moq.inventory_item_id,moq.organization_id
,moq.revision,moq.subinventory_code,moq.locator_id,moq.lot_number)
,moq.transaction_quantity))
, nvl(moq.orig_date_received,
moq.date_received) date_received
, 1 quantity_type
, moq.cost_group_id cost_group_id
, decode(moq.containerized_flag,
1, 1, 0) containerized
FROM
mtl_onhand_quantities_detail moq
UNION ALL
-- pending transactions in mmtt
--changed by jcearley on 12/8/99
--added 1 to decode statement so that we make sure the
--issue qtys in mmtt are seen as negative.
--This problem arose because create_suggestions stores
--the suggested transactions in mmtt as a positive number.
-- added 5/23/00
-- if quantity is in an lpn, then it is containerized
SELECT
mmtt.organization_id organization_id
, mmtt.inventory_item_id inventory_item_id
, mmtt.revision revision
, NULL lot_number
, mmtt.subinventory_code subinventory_code
, mmtt.locator_id locator_id
, Decode(mmtt.transaction_status, 2, 1
, Decode(mmtt.transaction_action_id
, 1, -1, 2, -1, 28, -1, 3, -1, Sign(mmtt.primary_quantity))
* Abs( decode(NULL, NULL, mmtt.primary_quantity, Nvl(apps.pjm_ueff_onhand.txn_quantity(NULL,mmtt.transaction_temp_id,mmtt.lot_number,
'N',mmtt.inventory_item_id, mmtt.organization_id, mmtt.transaction_source_type_id,
mmtt.transaction_source_id, mmtt.rcv_transaction_id,
sign(mmtt.primary_quantity)
),mmtt.primary_quantity)) )
, Decode(mmtt.transaction_action_id
, 1, To_date(NULL)
, 2, To_date(NULL)
, 28, To_date(NULL)
, 3, To_date(NULL)
, Decode(Sign(mmtt.primary_quantity)
, -1, To_date(NULL)
, mmtt.transaction_date)) date_received
, Decode(mmtt.transaction_status, 2, 5, 1) quantity_type
, mmtt.cost_group_id cost_group_id
, decode(mmtt.lpn_id, NULL, 0, 1) containerized
FROM
mtl_material_transactions_temp mmtt
WHERE
mmtt.posting_flag = 'Y'
AND mmtt.subinventory_code IS NOT NULL
AND (Nvl(mmtt.transaction_status,0) <> 2 OR -- pending txns
-- only picking side of the suggested transactions are used
Nvl(mmtt.transaction_status,0) = 2 AND
mmtt.transaction_action_id IN (1,2,28,3,21,29,32,34)
-- dont look at scrap and costing txns
AND mmtt.transaction_action_id NOT IN (24,30)
UNION ALL
-- receiving side of transfers
-- added 5/23/00
-- if quantity is in an lpn, then it is containerized
SELECT
Decode(mmtt.transaction_action_id
, 3, mmtt.transfer_organization
, mmtt.organization_id) organization_id
, mmtt.inventory_item_id inventory_item_id
, mmtt.revision revision
, NULL lot_number
, mmtt.transfer_subinventory subinventory_code
, mmtt.transfer_to_location locator_id
, Abs( decode(NULL, NULL, mmtt.primary_quantity, Nvl(apps.pjm_ueff_onhand.txn_quantity(NULL,mmtt.transaction_temp_id,mmtt.lot_number,
'N',mmtt.inventory_item_id, mmtt.organization_id, mmtt.transaction_source_type_id,
mmtt.transaction_source_id, mmtt.rcv_transaction_id,
sign(mmtt.primary_quantity)
),mmtt.primary_quantity)) )
, mmtt.transaction_date date_received
, 1 quantity_type
, mmtt.transfer_cost_group_id cost_group_id
, decode(mmtt.transfer_lpn_id, NULL, 0, 1) containerized
FROM
mtl_material_transactions_temp mmtt
WHERE
mmtt.posting_flag = 'Y'
AND Nvl(mmtt.transaction_status,0) <> 2 -- pending txns only
AND mmtt.transaction_action_id IN (2,28,3)
) x
WHERE x.organization_id = &&org_id
AND x.inventory_item_id = &&item_id
GROUP BY
x.organization_id, x.inventory_item_id, x.revision
, x.subinventory_code, x.locator_id
, x.quantity_type, x.cost_group_id, x.containerized
) x
, mtl_secondary_inventories sub
WHERE
x.organization_id = sub.organization_id (+)
--AND Nvl(sub.availability_type, 1) = 1
AND x.subinventory_code = sub.secondary_inventory_name (+) ;
PROMPT Check that cost groups are correct see Bug 4222079
PROMPT 7/ To find stock values from system nb.<cr> over lot and revision if item
PROMPT is not under lot or revision control, <cr> over subinventory for all subinvs
DECLARE
L_api_return_status VARCHAR2(1);
l_qty_oh NUMBER;
l_qty_res_oh NUMBER;
l_qty_res NUMBER;
l_qty_sug NUMBER;
l_qty_att NUMBER;
l_qty_atr NUMBER;
l_msg_count NUMBER;
l_msg_data VARCHAR2(1000);
l_rev varchar2(100):=NULL;
l_lot VARCHAR2(100):=NULL;
l_loc VARCHAR2(100):=NULL;
l_lot_control BOOLEAN :=false;
l_revision_control BOOLEAN :=false;
l_lot_control_code NUMBER;
l_revision_qty_control_code NUMBER;
l_location_control_code NUMBER;
l_org_id NUMBER;
l_item_id NUMBER;
l_subinv VARCHAR2(10);
BEGIN
select LOT_CONTROL_CODE ,REVISION_QTY_CONTROL_CODE, LOCATION_CONTROL_CODE
into l_lot_control_code, l_revision_qty_control_code, l_location_control_code
from mtl_system_items_b
where organization_id= &&org_id
and inventory_item_id = &&item_id;
if l_lot_control_code = 2 then
l_lot_control :=true;
l_lot:='&lotnumber';
end if;
if l_revision_qty_control_code =2 then
l_revision_control:=true;
l_rev:='&revision';
end if;
inv_quantity_tree_grp.clear_quantity_cache;
dbms_output.put_line('Transaction Mode');
apps.INV_Quantity_Tree_PUB.Query_Quantities (
p_api_version_number => 1.0
, p_init_msg_lst => apps.fnd_api.g_false
, x_return_status => L_api_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
, p_organization_id => &&org_id
, p_inventory_item_id => &&item_id
, p_tree_mode => apps.INV_Quantity_Tree_PUB.g_transaction_mode
, p_onhand_source => NULL
, p_is_revision_control=> l_revision_control
, p_is_lot_control => l_lot_control
, p_is_serial_control => NULL
, p_revision => l_rev
, p_lot_number => l_lot
, p_subinventory_code => '&&subinv_code'
, p_locator_id => NULL
, x_qoh => l_qty_oh
, x_rqoh => l_qty_res_oh
, x_qr => l_qty_res
, x_qs => l_qty_sug
, x_att => l_qty_att
, x_atr => l_qty_atr );
dbms_output.put_line('Quantity on hand --> '||to_char(l_qty_oh));
dbms_output.put_line('Reservable quantity on hand --> '||to_char(l_qty_res_oh));
dbms_output.put_line('Quantity reserved --> '||to_char(l_qty_res));
dbms_output.put_line('Quantity suggested --> '||to_char(l_qty_sug));
dbms_output.put_line('Quantity available to transact --> '||to_char(l_qty_att));
dbms_output.put_line('Quantity available to reserve --> '||to_char(l_qty_atr));
end;
PROMPT Check that quantities agree with script 4 and 5.
Spool off;
PROMPT *** Print file onhand.lst created ***
exit
Reference Documents
Bug 4529874 -
How Oracle ASCP and Inventory are integrated ,what are the Integration poin
Hi All Gurus,
Can any one tell me..
How Oracle ASCP and Inventory are integrated ,what are the Integration point of these modules ...?
Thanks,
SatyamHere is a simplistic explanation on the the integration.
When you launch data collection from the ASCP side, Oracle launches a Refresh Snapshot process that gathers the latest inventory (and other modules) information into Snapshots. Snapshots are like materialized views. Then the Planning Data Pull is launched. That process pulls information from these snapshots into the ASCP side.
The following inventory information comes over to ASCP
Item master data (such as order modifiers, planning exception sets etc. )
item categories
Onhand quantities (including consigned invetory quantities) in nettable locations
subinventories
reservations
safety stocks
forecasts
item planners
Quantity in receiving or in transit
Hope this answers your question
Sandeep Gandhi
Independent Consultant
513-325-9026 -
Transaction Type 'WIP assembly scrap' in Onhand, Availability/Available to Reserve/Available to Transact
Dear All,
Version: 12.1.3
Problem Description/Question: A Item shows different quantity in Inventory > Onhand, Availability/Available to Transact/Available to Transact
total quantity = 1000
available to reserve = 800
available to transact = 800
Find quantity = 200 exists with Transaction Type = WIP assembly scrap
***Question: For Transaction Type = WIP assembly scrap, whether it is availble for Reserve and Transact?
Any response could be appreciated.
Regards,
JoyHi,
Your finding is correct.
As "WIP assembly scrap" transaction for 200 qty. system will not allow to reserve the same stock qty again.
200 qty Stock is reserved.
Available to Reserve: The available quantity of an item you can reserve across an organization.
Available to Transact: The available quantity of an item you can transact across an organization
Thanks
NS -
Inventory Management - transactions
I have carried out a test extract of Inventory/Materials Movement to SAP BW. For the moment I have used standard Business Content which comes with a list of predefined queries which are below.
I want to reconcile with R3 and was looking for appropriate transactions to use for the query or group of queries. I am aware of MMBE, MB51 and MB52. Thanks
Blocked Stock
Consignment Stock at Customer
Inventory Turnover
Quantities of Valuated Project Stock (as of 3.1 Content)
Quantities of Valuated Sales Order Stock (as of 2.1 Cont.)
Receipt and Issue Customer Consignment Stock
Receipt and Issue of Blocked Stock
Receipt and Issue Quality Inspection Stock
Receipt and Issue Stock in Transit
Receipt and Issue Vendor Consignment Stock
Scrap
Stock in Quality Inspection
Stock in Transit
Stock Overview
Stock Overview (as of 3.1 Content)
Stock Range of Coverage
Valuated Stock
Valuated Stock (as of 3.1 Content)
Vendor Consignment StockHi,
In addition, here are some more transactions.
Reservations
01 Reservation list MB25
Periodic Processing
02 List of Stock Values MB5L
Goods Receipts, Goods Issues
03 Material Documents MB51
04 Accounting Document for Material MR51
05 Cancelled Material Documents MBSM
06 Reason for Movement MBGR
Stock
07 Stock Overview MMBE
08 Plant Stock Availability MB53
09 Stock for Posting Date MB5B
10 Valuated Special Stock MBBS
11 Stock with Subcontractor MBLB
Balances Display
12 List of GR/IR Balances MB5S
Consignment MC$2
13 Stock MB54
Inventory Controlling
14 Inventory controlling MCB1
Inventory Information System - Material
15 Stock MC.9
16 Receipts/issues MC.A
17 Inventory turnover MC.B
18 Range of coverage MC.C
ABC analysis
19 Total analysis MC40
20 Ranking list MC41
Stock Value
21 Current stock MC48
22 Average stock MC49
23 Dead stock MC50
24 Slow-moving items MC46
25 Inventory turnover MC44
Range of coverage
26 By usage MC42
27 By requirement MC43
28 Usage values MC45
29 Requirement values MC47
Physical inventory
30 PhyInvDoc - material MI22
31 PhyInvData -material MI23
32 Phys. inv. overview MIDO
33 For Purchase Order ML84
Plant
34 Stock MC.1
35 Receipts/issues MC.2
36 Inventory turnover MC.3
37 Range of coverage MC.4
Storage location
38 Stock MC.5
39 Receipts/issues MC.6
40 Inventory turnover MC.7
41 Range of coverage MC.8
Hope this helps.
Thanks,
Viswanath -
Inventory Management (0IC_C03) Business Content queries
I have the following queries which are delivered when I activate 0IC_C03. The queries below have also been activated as part of the model.
Is there any additional queries which should/can be activated against this InfoProvider and of the list below are any redundant? Thanks
Blocked Stock
Consignment Stock at Customer
Inventory Turnover
Quantities of Valuated Project Stock (as of 3.1 Content)
Quantities of Valuated Sales Order Stock (as of 2.1 Cont.)
Receipt and Issue Customer Consignment Stock
Receipt and Issue of Blocked Stock
Receipt and Issue Quality Inspection Stock
Receipt and Issue Stock in Transit
Receipt and Issue Vendor Consignment Stock
Scrap
Stock in Quality Inspection
Stock in Transit
Stock Overview
Stock Overview (as of 3.1 Content)
Stock Range of Coverage
Valuated Stock
Valuated Stock (as of 3.1 Content)
Vendor Consignment Stockhi Niten,
by choosing that 0IC_C03 and using grouping 'in dataflow afterward' in business content activation, you should get all the queries.
you can cross check in rsa1->metadata repository->local object (business content).
in sap help
http://help.sap.com/saphelp_nw2004s/helpdata/en/77/65073c52619459e10000000a114084/frameset.htm
(expand left node)
hope this helps.
Maybe you are looking for
-
Strange problems on Macbook Pro over past year...
I'm about to do an erase and install after having numerous strange problems on my mid 2009 17" Macbook Pro (Leopard) over the past year, some of which I have opened threads for on these forums. They are listed bellow to see if anyone wants to give th
-
Hi, I'm attempting to learn about Identity Manager, but I can't get the application installed. The error I'm seeing when running RCU with the Identity Manager repository selected is: RCU-6130/RCU-6136: Error while trying to execute SQLPlus action. Fr
-
How to use dll's(Functions) in java ?
Hi I want to use the windows : shell32.dll. The declaration is as follows: Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ( _ ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ By
-
Unable to set tabbing order for a typedef
Attached is a .CTL file that is for a typedef in my project. I'd like to set the tabbing order. I'm using the "Array to Cluster" VI (is it a VI?) to fill it with data, however because the controls are not in the correct order, the data is no being pu
-
Hi All, I have the tape of online backup and that I have restored to the system. But it is asking about the more archive file i.e. I do not have. How can I restore these archive from this online backup tape. Can you guide me. Is it possible or not. I