DBA Data[Home] [Help]

APPS.GMF_ORGANIZATIONS_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 52

       SELECT  start_date, end_date INTO
        l_period_start_date, l_period_end_date
        FROM gmf_period_statuses WHERE period_id = l_period_id ;
Line: 127

      INSERT
        INTO GMF_PROCESS_ORGANIZATIONS_GT
        (
           organization_id,
           organization_code,
           base_currency_code,
           std_uom,
           legal_entity_id,
           operating_unit_id
        )
        SELECT  mp.organization_id,
                mp.organization_code,
                gfp.base_currency_code,
                NULL,
                p_legal_entity_id,
                ood.operating_unit
          FROM  mtl_parameters mp,
                gmf_fiscal_policies gfp,
                org_organization_definitions ood
        WHERE mp.organization_id = l_inv_orgs(j)
           AND mp.process_enabled_flag = 'Y'
           AND mp.organization_code >= NVL(l_from_orgn_code,mp.organization_code)
           AND mp.organization_code <= NVL(l_to_orgn_code,mp.organization_code)
           AND gfp.legal_entity_id = p_legal_entity_id
           AND ood.organization_id = l_inv_orgs(j)
	   AND ( ( ood.disable_date IS NOT NULL AND l_period_end_date IS NOT NULL
                   AND ood.disable_date > l_period_end_date )
		 OR
                ( ood.disable_date IS NULL  )
                 OR
                ( l_period_end_date IS NULL )   -- B8757676
               )
    ;
Line: 170

    UPDATE gmf_process_organizations_gt gpo
     SET std_uom = (SELECT u.uom_code
                      FROM mtl_units_of_measure u,
                           gmd_parameters_hdr h,
                           gmd_parameters_dtl d
                    WHERE u.base_uom_flag = 'Y'
                    AND gpo.organization_id = h.organization_id
                    AND h.parameter_id = d.parameter_id
                    AND d.parameter_name = 'FM_YIELD_TYPE'
                    AND d.parameter_value = u.uom_class)
    WHERE gpo.std_uom IS NULL;
Line: 182

    UPDATE gmf_process_organizations_gt gpo
     SET std_uom = (SELECT u.uom_code
                      FROM mtl_units_of_measure u,
                           gmd_parameters_hdr h,
                           gmd_parameters_dtl d
                    WHERE u.base_uom_flag = 'Y'
                    AND  h.organization_id IS NULL
                    AND h.parameter_id = d.parameter_id
                    AND d.parameter_name = 'FM_YIELD_TYPE'
                    AND d.parameter_value = u.uom_class)
    WHERE gpo.std_uom IS NULL;