943: RAISE fnd_api.g_exc_error;
944: END IF;
945:
946: -- swai: 12.1.1 bug 7176940 - check service bulletins after RO creation
947: IF (nvl(fnd_profile.value('CSD_AUTO_CHECK_BULLETINS'),'N') = 'Y') THEN
948: CSD_RO_BULLETINS_PVT.LINK_BULLETINS_TO_RO(
949: p_api_version_number => 1.0,
950: p_init_msg_list => Fnd_Api.G_FALSE,
951: p_commit => Fnd_Api.G_FALSE,
2273: l_txn_rec.split_reason_code := '';
2274:
2275:
2276: --bug#13713291
2277: l_org_units_tbl(1).operating_unit_id := nvl(FND_PROFILE.VALUE('ORG_ID'), FND_PROFILE.VALUE('DEFAULT_ORG_ID'));
2278:
2279: --That would take MO: Operating Unit. If that is blank (possible in MOAC setup) then it would take MO: Default Operating Unit
2280: l_org_units_tbl(1).relationship_type_code := 'SOLD_FROM';
2281: l_org_units_tbl(1).active_start_date := sysdate ;