[Home] [Help]
4944: p_order_line_rec IN order_line_rec,
4945: p_config_wip_id OUT NOCOPY NUMBER
4946: )
4947: IS
4948: l_config_rec csi_order_fulfill_pub.config_rec;
4949: BEGIN
4950: api_log('get_config_wip_id');
4951: BEGIN
4952: SELECT oel.line_id,
4992: FROM mtl_system_items
4993: WHERE inventory_item_id = l_config_rec.item_id
4994: AND organization_id = l_config_rec.ship_organization_id;
4995:
4996: csi_order_fulfill_pub.get_job_for_config_line(
4997: p_config_rec => l_config_rec,
4998: x_wip_entity_id => l_config_rec.config_wip_job_id,
4999: x_wip_organization_id => l_config_rec.config_wip_org_id,
5000: x_request_id => l_config_rec.request_id);
5000: x_request_id => l_config_rec.request_id);
5001:
5002: IF l_config_rec.config_wip_job_id is null THEN
5003: IF l_config_rec.serial_code in (2, 5) THEN
5004: csi_order_fulfill_pub.get_wip_info_from_txn(
5005: px_config_rec => l_config_rec);
5006: END IF;
5007: END IF;
5008:
5035: -- Config Item. Eligible WIP issuesed instance part of config WIP job
5036: -- will come under phantom option item (as per BOM structure)
5037: -- The behaviour will be similar to Option class
5038: -- If l_option_flag - N then Phantom Option Item BOM explosion for internally manufactured item will happen
5039: csi_order_fulfill_pub.get_phantom_option_expl_flag
5040: (p_option_expl_flag => l_option_flag);
5041:
5042: -- Get Config WIP Job Id
5043: get_config_wip_id (
5334: -- Config Item. Eligible WIP issuesed instance part of config WIP job
5335: -- will come under phantom option item (as per BOM structure)
5336: -- The behaviour will be similar to Option class
5337: -- If l_option_flag - N then Phantom Option Item BOM explosion for internally manufactured item will happen
5338: csi_order_fulfill_pub.get_phantom_option_expl_flag
5339: (p_option_expl_flag => l_option_flag);
5340:
5341: debug(' txn_line_detail_tbl.count :'||p_txn_line_detail_tbl.count );
5342: debug(' txn_party_detail_tbl.count :'||p_txn_party_detail_tbl.count );