Академический Документы
Профессиональный Документы
Культура Документы
Author:
PTIAN (tianpan@gmail.com)
Creation Date:
16/04/2012
Last Updated:
Version:
1.0
Status:
Date
Author
Version
Change Reference
16-Apr- 12
Pan Tian
Draft
No previous document
Contents
ii
NOTE: Once an organization is activated as onhand status tracked it cannot be reverted back. If
you have accidentally Run Activate On-Hand Material Status, Please refer to Note 1198443.1, The
following Enhancement Request was logged suggesting that users should be allowed to deactivate
the status: Bug 8626159 - ER to allow de-activate: Allow user to deactivate / de-activate 12.1
Feature: On-hand Status Tracking
Whats the relationship between Onhand Status and Sub/Loc/Lot Status Level
For onhand status tracked organization, status at subinventory, locator and lot level would ONLY
be used to default onhand status.
Once you enabled your organization as onhand status tracking then you should need to look for
material status at onhand level and not at the individual level. All the status validations will
happen considering status at onhand level.
Which level status(Org/Sub/Loc/Lot Level) will be picked as default onhand status(In case doesnt existing onhand)
The default status comes from the lowest available default at the organization, subinventory,
locator, lot (as determined by a PL/SQL call to
INV_MATERIAL_STATUS_GRP.get_default_status)
If Org is onhand tracking, and Org level default status is Org_Status,
Sub level status is Sub_Status,
Locator level status is Locator_Status,
Item level status is Item_Status,
Perform misc receipt for the item, you will see onhand status will pick item level status as default
onhand status.
Similarly, for lot controlled item, onhand status will pick default lot status as onhand status.
If user does not set a default status at Item level or Lot level, onhand status will pick locator level
status as default onhand status.
There is priority order for onhand status picking, and like following
Item Status/Lot status > Locator Status > Sub status > Org status
For lot controlled item, it can only set Default Lot Status, can NOT set Default Material Status.
For plain item, it can only set Default Material Status, can NOT set Default Lot Status. So for a
item, its impossible that item has item level status as well as has lot level status.
Which function is used to get default status id(Code Level)
Function: INV_MATERIAL_STATUS_GRP.get_default_status
This function returns the default material status for an onhand record in the table MOQD
Pseudo-Code:
1.
For Lot controlled item, we can check onhand status update history via
Lot Number Form > View Genealogy > Material Transaction Tab > Grade/Status
2.
3.
MSIB.INVENTORY_ITEM_ID = MMSH.INVENTORY_ITEM_ID
Intransit/Direct: Default
Status from the
organization item setup.
(See Bug 11688000)
Intransit/Direct: Default
Status from the organization
item setup.
If org is tracking status at onhand level, Whenever perform a transaction for a lot controlled
item, we need to stamp status_id into the lot history
table(MTL_TRANSACTION_LOT_NUMBERS), And this status_id in
MTL_TRANSACTION_LOT_NUMBERS is populated with the value of status_id from
MTL_ONHAND_QUANTITIES_DETAIL.
2.
If org is not tracking status at onhand level, we will stamp status_id from mtl_lot_numbers
into MTLN
In Material Status Form, The specific transaction type is not in the Allowed/Disallowed txn type list, How can I make my
transaction type into Allowed/Disallowed txn type list?
You need enable Status Control for the transaction type in Transaction Types Form.
10
11
:MTL_TRX_HEADER.TRX_STATUS_ENABLED
DECODE(:MTL_TRX_HEADER.TRANSACTION_TYPE_ID,-99,
:MTL_TRX_LINE.TRANSACTION_TYPE_ID,:MTL_TRX_HEADER.TRANSACTION_TYPE_ID)
,
NULL
NULL
:PARAMETER.ORG_ID
:MTL_TRX_LINE.INVENTORY_ITEM_ID
SECONDARY_INVENTORY_NAME
NULL
NULL
NULL
NVL(:MTL_TRX_HEADER.MATERIAL_STATUS_OBJECT_TYPE,'Z') ) = 'Y'
ORDER BY SECONDARY_INVENTORY_NAME
12