Assign Item Class For New Item

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 4

Assign Item class for New Item

1. Item is created with its class and template not assigned.


2. Use below query to find list of items and its class to be assigned in Template.
3. This Process should be checked every month beginning.

---------- NEWLY CREATED ITEM------------------------

SELECT A.LOCATION_CODE, B.SEGMENT1, B.ATTRIBUTE3 CLASS


FROM HR_LOCATIONS A, MTL_SYSTEM_ITEMS_B B
WHERE NVL(A.INVENTORY_ORGANIZATION_ID,0) != 0
AND SUBSTR(A.LOCATION_CODE,1,4) IN ('EIL ','ERCL','TDL ','TTPL')
AND A.INVENTORY_ORGANIZATION_ID LIKE :ORGID
AND A.INVENTORY_ORGANIZATION_ID = B.ORGANIZATION_ID
AND UPPER(B.INVENTORY_ITEM_STATUS_CODE) = 'ACTIVE'
AND B.INVENTORY_ITEM_ID IN (
SELECT DISTINCT INVENTORY_ITEM_ID
FROM MTL_SYSTEM_ITEMS_B
WHERE ORGANIZATION_ID LIKE :ORGID
AND UPPER(INVENTORY_ITEM_STATUS_CODE) =
'ACTIVE'
MINUS
SELECT DISTINCT INVENTORY_ITEM_ID
FROM (
SELECT (SELECT ORGANIZATION_ID FROM
JAI_TEMPL_ORG_REGNS WHERE TEMPL_ORG_REGNS_ID = JTIR.TEMPL_ORG_REGNS_ID) ORG_ID,
JTIR.INVENTORY_ITEM_ID
FROM JAI_TEMPL_ITM_REGNS JTIR
)
WHERE ORG_ID LIKE :ORGID
)
ORDER BY b.attribute3

3. Execute this query in both ERCL & TDL with location id as its parameter.
4. To assign template, open Item/Template/Assignment form, choose Regime and required Organization.
5. Click Find button to assign Item Template.
6. Select the required class in which the item to be assigned.
7. Assign item and save the form.
8. Run the concurrent program India - Receiving Transaction Processor in Indial Local Purchasing.
9. Select the organization, From Date should be the start date of previous month and To Date should the last date of
previous month.

You might also like