357: /* Log the parameters */
358: msd_dem_common_utilities.log_debug (' Instance ID - ' || to_char(p_sr_instance_id));
359:
360: /* The procedure should only execute if profile MSD_DEM: Include Dependent Demand is set to yes. */
361: IF (fnd_profile.value('MSD_DEM_INCLUDE_DEPENDENT_DEMAND') = 2)
362: THEN
363: msd_dem_common_utilities.log_message ('In msd_dem_collect_bom_data.collect_bom_data - '
364: || 'Profile MSD_DEM: Include Dependent Demand is set to No. '
365: || 'Hence no action taken. Exiting Normally.');
368: END IF;
369:
370: /* The procedure should only execute if profile MSD_DEM: Calculate Planning Percentage
371: * is set to Collect Consume and Derive Options Only. */
372: IF (fnd_profile.value('MSD_DEM_PLANNING_PERCENTAGE') <> 2)
373: THEN
374: msd_dem_common_utilities.log_message ('In msd_dem_collect_bom_data.collect_bom_data - '
375: || 'Profile MSD_DEM: Calculate Planning Percentage is not set to Collect Options Only. '
376: || 'Hence no action taken. Exiting Normally.');
392: msd_dem_common_utilities.log_message(errbuf);
393: RETURN;
394: END IF;
395:
396: IF (to_number(fnd_profile.value('MSD_DEM_EXPLODE_DEMAND_METHOD')) = 2)
397: THEN
398: x_master_org := msd_dem_common_utilities.get_parameter_value (p_sr_instance_id, 'MSD_DEM_MASTER_ORG');
399: END IF;
400: