130: -- Copy the Record values into l_create_rec and call private
131:
132: l_create_rec.org_id := p_PmtPlan_rec.org_id;
133: mo_global.validate_orgid_pub_api(org_id => l_create_rec.org_id,status =>l_status);
134: if (FND_LOG.LEVEL_STATEMENT >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
135: FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT,'cn.plsql.cn_pmtplan_pub.Create_PmtPlan.org_validate',
136: 'Validated org_id = ' || l_create_rec.org_id || ' status ='||l_status);
137: end if;
138:
131:
132: l_create_rec.org_id := p_PmtPlan_rec.org_id;
133: mo_global.validate_orgid_pub_api(org_id => l_create_rec.org_id,status =>l_status);
134: if (FND_LOG.LEVEL_STATEMENT >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
135: FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT,'cn.plsql.cn_pmtplan_pub.Create_PmtPlan.org_validate',
136: 'Validated org_id = ' || l_create_rec.org_id || ' status ='||l_status);
137: end if;
138:
139: l_create_rec.name := p_PmtPlan_rec.name;
310: -- Copy the new Record values into l_update_rec and call private
311:
312: l_update_rec.org_id := p_PmtPlan_rec.org_id;
313: mo_global.validate_orgid_pub_api(org_id => l_update_rec.org_id,status =>l_status);
314: if (FND_LOG.LEVEL_STATEMENT >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
315: FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT,'cn.plsql.cn_pmtplan_pub.Update_PmtPlan.org_validate',
316: 'Validated org_id = ' || l_update_rec.org_id || ' status ='||l_status);
317: end if;
318:
311:
312: l_update_rec.org_id := p_PmtPlan_rec.org_id;
313: mo_global.validate_orgid_pub_api(org_id => l_update_rec.org_id,status =>l_status);
314: if (FND_LOG.LEVEL_STATEMENT >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
315: FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT,'cn.plsql.cn_pmtplan_pub.Update_PmtPlan.org_validate',
316: 'Validated org_id = ' || l_update_rec.org_id || ' status ='||l_status);
317: end if;
318:
319: if (l_update_rec.org_id <> l_update_old_rec.org_id ) then
317: end if;
318:
319: if (l_update_rec.org_id <> l_update_old_rec.org_id ) then
320: FND_MESSAGE.SET_NAME ('FND' , 'FND_MO_OU_CANNOT_UPDATE');
321: if (FND_LOG.LEVEL_ERROR >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
322: FND_LOG.MESSAGE(FND_LOG.LEVEL_ERROR,
323: 'cn.plsql.cn_paygroup_pub.update_PmtPlan.error',
324: true);
325: end if;
318:
319: if (l_update_rec.org_id <> l_update_old_rec.org_id ) then
320: FND_MESSAGE.SET_NAME ('FND' , 'FND_MO_OU_CANNOT_UPDATE');
321: if (FND_LOG.LEVEL_ERROR >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
322: FND_LOG.MESSAGE(FND_LOG.LEVEL_ERROR,
323: 'cn.plsql.cn_paygroup_pub.update_PmtPlan.error',
324: true);
325: end if;
326:
452:
453: -- Get the start date for payment plan using the payment plan name and org id
454: l_create_rec.org_id := p_PmtPlan_rec.org_id;
455: mo_global.validate_orgid_pub_api(org_id => l_create_rec.org_id,status =>l_status);
456: if (FND_LOG.LEVEL_STATEMENT >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
457: FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT,'cn.plsql.cn_pmtplan_pub.delete_PmtPlan.org_validate',
458: 'Validated org_id = ' || l_create_rec.org_id || ' status ='||l_status);
459: end if;
460: l_create_rec.name := p_PmtPlan_rec.name;
453: -- Get the start date for payment plan using the payment plan name and org id
454: l_create_rec.org_id := p_PmtPlan_rec.org_id;
455: mo_global.validate_orgid_pub_api(org_id => l_create_rec.org_id,status =>l_status);
456: if (FND_LOG.LEVEL_STATEMENT >= FND_LOG.G_CURRENT_RUNTIME_LEVEL ) then
457: FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT,'cn.plsql.cn_pmtplan_pub.delete_PmtPlan.org_validate',
458: 'Validated org_id = ' || l_create_rec.org_id || ' status ='||l_status);
459: end if;
460: l_create_rec.name := p_PmtPlan_rec.name;
461: l_create_rec.start_date := p_PmtPlan_rec.start_date;