SELECT MP.ORGANIZATION_CODE CODIGO_ALMACEN,
HOU.NAME NOMBRE_ALMACEN,
MSINV.SECONDARY_INVENTORY_NAME,
MSINV.DESCRIPTION
FROM ORG_ORGANIZATION_DEFINITIONS OOD,
MTL_PARAMETERS MP,
HR_ORGANIZATION_UNITS_V HOU,
MTL_SECONDARY_INVENTORIES MSINV
WHERE OOD.ORGANIZATION_ID = MP.ORGANIZATION_ID
AND HOU.ORGANIZATION_ID = MP.ORGANIZATION_ID
AND MSINV.ORGANIZATION_ID = MP.ORGANIZATION_ID
AND OOD.OPERATING_UNIT = &P_ORG_ID
AND MSINV.DISABLE_DATE IS NULL
AND OOD.INVENTORY_ENABLED_FLAG = 'Y'
No hay comentarios:
Publicar un comentario