Monday, February 2, 2015

Inventory Issues -Pending Transaction Issues

Issues 1 - Transaction Struck as pending for a perticular Period ( NOV - 14 ) and because of this we are unable to close NOV-14 Period.

Reason 1 - These are few interorg transfer orders From M1 to M2 org and initially we missed out standard cost of item in price and corresponding transactions got failed, So now we added Items to the price list, but the destination org M2 is closed for Nov-14 Period, so they failed again.

Solution - Change the transaction date to Dec 1 to push the transactions.

Issue 2 -  We have few uncosted transactions with following error in material transaction form.

CST_INVALID_ACCT_ALIAS  - The Account Alias Is Not Defined For This Org

Reason - Few account alias issue transactions having transaction_source_id as NULL in mtl_material_transactions Tables. To find the transaction details which are having transaction_source_id as NULL please user below Query.



SELECT TRANSACTION_ID, TRANSACTION_SOURCE_ID
FROM   MTL_MATERIAL_TRANSACTIONS
WHERE TRANSACTION_SOURCE_TYPE_ID = 6  --  Source Type = Account alias
AND ((TRANSACTION_SOURCE_ID IS NULL) OR (TRANSACTION_SOURCE_ID is not null
AND NOT EXISTS
(SELECT 1 FROM MTL_GENERIC_DISPOSITIONS
WHERE DISPOSITION_ID = TRANSACTION_SOURCE_ID)));

NOTE - The table MTL_GENERIC_DISPOSITIONS holds the list of account aliases

Solution - First test the solution in TEST Instance

1st Run the below script to to take back up.

CREATE TABLE TESTTABLE123 AS ( SELECT * FROM MTL_MATERIAL_TRANSACTIONS MMT
WHERE COSTED_FLAG IN ('N','E')
AND TRANSACTION_SOURCE_TYPE_ID = 6 
AND ORGANIZATION_ID =  999  -- Your Inventory Org ID
AND TRANSACTION_SOURCE_ID IS NULL);

2. Run the below update script.

UPDATE mtl_material_transactions mmt
SET transaction_source_id = (SELECT DISPOSITION_ID FROM MTL_GENERIC_DISPOSITIONS
                             WHERE organization_id = mmt.organization_id
                             AND   description = '&&alias_desc'),
costed_flag = 'N',
error_code = NULL,
error_explanation = NULL,
transaction_group_id = NULL,
last_updated_by  = -6352950
WHERE costed_flag in ('N','E')
AND transaction_source_type_id = 6  
AND organization_id =  &org_id  --  -- Your Inventory Org ID
AND transaction_source_id IS NULL
AND exists (SELECT DISPOSITION_ID FROM MTL_GENERIC_DISPOSITIONS
             WHERE organization_id = mmt.organization_id
               AND description = '&alias_desc');

***************************************************************
For Online And Classroom Training on 
R12 SCM Functional
Fusion Procurement
Fusion SCM
Fusion Procure To Pay
Please Contact -
Gmail # rishitechnologies9@gmail.com
Cell # 9071883639

No comments:

Post a Comment