47: fnd_file.put_line(fnd_file.log, '**************************************************************');
48: fnd_file.put_line(fnd_file.log, '******************* START - PLAN COPY IMPORT *****************');
49: fnd_file.put_line(fnd_file.log, '**************************************************************');
50:
51: -- Standard Start of API savepoint
52: SAVEPOINT Import_PlanCopy;
53: retcode := 0;
54:
55: -- Get Prefix and Date Information
323: AND r.org_id = p_org_id;
324:
325: BEGIN
326: /**********************************************************************/
327: /* Standard API Checks */
328: /**********************************************************************/
329: -- Standard Start of API savepoint
330: -- SAVEPOINT Parse_XML;
331: -- Standard call to check for call compatibility.
325: BEGIN
326: /**********************************************************************/
327: /* Standard API Checks */
328: /**********************************************************************/
329: -- Standard Start of API savepoint
330: -- SAVEPOINT Parse_XML;
331: -- Standard call to check for call compatibility.
332: IF NOT fnd_api.Compatible_API_Call(l_api_version,p_api_version,l_api_name,G_PKG_NAME )THEN
333: RAISE fnd_api.g_exc_unexpected_error;
327: /* Standard API Checks */
328: /**********************************************************************/
329: -- Standard Start of API savepoint
330: -- SAVEPOINT Parse_XML;
331: -- Standard call to check for call compatibility.
332: IF NOT fnd_api.Compatible_API_Call(l_api_version,p_api_version,l_api_name,G_PKG_NAME )THEN
333: RAISE fnd_api.g_exc_unexpected_error;
334: END IF;
335:
1649: FROM cn_lookups
1650: WHERE lookup_type = 'PAYMENT_GROUP_CODE'
1651: AND lookup_code = v_plan_element_rec.payment_group_code;
1652:
1653: -- If Payment Group does not exists, Set it to 'STANDARD'
1654: IF l_pmt_group_code = 0 THEN
1655: fnd_message.set_name ('CN' , 'CN_COPY_PE_PMT_GRP_DFLT');
1656: fnd_message.set_token('PLAN_ELEMENT_NAME',v_name_node_value_new);
1657: fnd_message.set_token('PAYMENT_GROUP_CODE_NAME',v_plan_element_rec.payment_group_code);
1655: fnd_message.set_name ('CN' , 'CN_COPY_PE_PMT_GRP_DFLT');
1656: fnd_message.set_token('PLAN_ELEMENT_NAME',v_name_node_value_new);
1657: fnd_message.set_token('PAYMENT_GROUP_CODE_NAME',v_plan_element_rec.payment_group_code);
1658: fnd_file.put_line(fnd_file.log, fnd_message.get);
1659: v_plan_element_rec.payment_group_code := 'STANDARD';
1660: END IF;
1661:
1662: -- Check if Start Date and End Date values are passed for change.
1663: IF p_start_date IS NULL THEN
2574: ELSE
2575: x_import_status := 'FAILED';
2576: END IF;
2577: END IF;
2578: -- Standard call to get message count
2579: FND_MSG_PUB.Count_And_Get(
2580: p_count => x_msg_count,
2581: p_data => x_msg_data,
2582: p_encoded => FND_API.G_FALSE);