DBA Data[Home] [Help]

APPS.PA_TASK_PUB1 dependencies on FND_API

Line 13: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

9: -- Pre-reqs : None
10: -- Return Value : N/A
11: -- Prameters
12: -- p_api_version IN NUMBER N Not Null 1.0
13: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
16: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
17: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 14: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

10: -- Return Value : N/A
11: -- Prameters
12: -- p_api_version IN NUMBER N Not Null 1.0
13: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
16: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
17: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
18: -- p_debug_mode IN VARCHAR2 N Null N

Line 15: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

11: -- Prameters
12: -- p_api_version IN NUMBER N Not Null 1.0
13: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
16: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
17: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
18: -- p_debug_mode IN VARCHAR2 N Null N
19: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 16: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

12: -- p_api_version IN NUMBER N Not Null 1.0
13: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
16: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
17: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
18: -- p_debug_mode IN VARCHAR2 N Null N
19: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
20: -- p_object_type IN VARCHAR2 N Not Null

Line 74: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

70: --
71:
72: PROCEDURE Create_Task(
73: p_api_version IN NUMBER :=1.0,
74: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
75: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
76: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
77: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
78: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 75: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

71:
72: PROCEDURE Create_Task(
73: p_api_version IN NUMBER :=1.0,
74: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
75: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
76: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
77: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
78: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
79: p_debug_mode IN VARCHAR2 :='N',

Line 76: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

72: PROCEDURE Create_Task(
73: p_api_version IN NUMBER :=1.0,
74: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
75: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
76: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
77: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
78: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
79: p_debug_mode IN VARCHAR2 :='N',
80: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 77: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

73: p_api_version IN NUMBER :=1.0,
74: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
75: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
76: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
77: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
78: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
79: p_debug_mode IN VARCHAR2 :='N',
80: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
81: p_object_type IN VARCHAR2,

Line 222: IF (p_commit = FND_API.G_TRUE) THEN

218: IF (p_debug_mode = 'Y') THEN
219: pa_debug.debug('PA_TASK_PUB1.CREATE_TASK begin');
220: END IF;
221:
222: IF (p_commit = FND_API.G_TRUE) THEN
223: savepoint create_Task;
224: END IF;
225:
226: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 226: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

222: IF (p_commit = FND_API.G_TRUE) THEN
223: savepoint create_Task;
224: END IF;
225:
226: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
228: END IF;
229:
230:

Line 227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

223: savepoint create_Task;
224: END IF;
225:
226: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
228: END IF;
229:
230:
231: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 231: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
228: END IF;
229:
230:
231: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
232: FND_MSG_PUB.initialize;
233: END IF;
234:
235: --Bug 2168170

Line 244: raise FND_API.G_EXC_ERROR;

240: IF p_task_number IS NULL
241: THEN
242: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
243: p_msg_name => 'PA_PS_TASK_NUMBER_NULL');
244: raise FND_API.G_EXC_ERROR;
245: END IF;
246:
247: --dbms_output.put_line('task name');
248: IF p_task_name IS NULL

Line 252: raise FND_API.G_EXC_ERROR;

248: IF p_task_name IS NULL
249: THEN
250: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
251: p_msg_name => 'PA_PS_TASK_NAME_NULL');
252: raise FND_API.G_EXC_ERROR;
253: END IF;
254:
255: --Bug 2168170
256:

Line 268: raise FND_API.G_EXC_ERROR;

264: ) = 'N'
265: THEN
266: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
267: p_msg_name => 'PA_PS_TASK_NOT_NUM_UNIQ');
268: raise FND_API.G_EXC_ERROR;
269:
270: END IF;
271: */
272: --end bug 2669388

Line 312: raise FND_API.G_EXC_ERROR;

308: END IF;
309: IF l_add_task_allowed = 'N' THEN
310: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
311: p_msg_name => 'PA_PR_PM_CANNOT_ADDTASK');
312: raise FND_API.G_EXC_ERROR;
313: END IF;
314: END IF;
315: END IF;
316:

Line 342: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

338: p_check_id_flag => 'Y',
339: x_task_mgr_id => l_task_manager_id,
340: x_return_status => l_return_status,
341: x_error_msg_code => l_error_msg_code);
342: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
343: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
344: p_msg_name => l_error_msg_code);
345: END IF;
346: END IF; --End Name-Id Conversion

Line 368: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

364: x_task_mgr_id => l_task_manager_id,
365: x_return_status => l_return_status,
366: x_error_msg_code => l_error_msg_code);
367: --dbms_output.put_line( 'l_error_msg_code '||l_error_msg_code );
368: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
369: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
370: p_msg_name => l_error_msg_code);
371: END IF;
372: --dbms_output.put_line( 'Task manager id '||l_task_manager_id||'flag '||PA_STARTUP.G_Check_ID_Flag );

Line 386: l_carrying_out_org_id := FND_API.G_MISS_NUM;

382: --dbms_output.put_line( 'Before Check_OrgName_Or_Id' );
383:
384: IF p_carrying_out_org_id = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
385: THEN
386: l_carrying_out_org_id := FND_API.G_MISS_NUM;
387: ELSE
388: l_carrying_out_org_id := p_carrying_out_org_id;
389: END IF;
390:

Line 401: IF l_return_status = FND_API.G_RET_STS_SUCCESS THEN

397: ,x_return_status => l_return_status
398: ,x_error_msg_code => l_error_msg_code);
399:
400: -- added for Bug: 4537865
401: IF l_return_status = FND_API.G_RET_STS_SUCCESS THEN
402: l_carrying_out_org_id := l_new_carrying_out_org_id;
403: END IF;
404: -- added for Bug: 4537865
405:

Line 406: IF l_return_status = FND_API.G_RET_STS_ERROR THEN

402: l_carrying_out_org_id := l_new_carrying_out_org_id;
403: END IF;
404: -- added for Bug: 4537865
405:
406: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
407: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
408: p_msg_name => l_error_msg_code);
409: END IF;
410: END IF; --End Name-Id Conversion

Line 416: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

412: l_task_manager_id := p_task_manager_id;
413: l_carrying_out_org_id := p_carrying_out_org_id;
414: END IF;
415:
416: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
417: x_msg_count := FND_MSG_PUB.count_msg;
418: IF x_msg_count = 1 then
419: pa_interface_utils_pub.get_messages
420: (p_encoded => FND_API.G_TRUE,

Line 420: (p_encoded => FND_API.G_TRUE,

416: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
417: x_msg_count := FND_MSG_PUB.count_msg;
418: IF x_msg_count = 1 then
419: pa_interface_utils_pub.get_messages
420: (p_encoded => FND_API.G_TRUE,
421: p_msg_index => 1,
422: p_msg_count => l_msg_count,
423: p_msg_data => l_msg_data,
424: p_data => l_data,

Line 428: raise FND_API.G_EXC_ERROR;

424: p_data => l_data,
425: p_msg_index_out => l_msg_index_out);
426: x_msg_data := l_data;
427: END IF;
428: raise FND_API.G_EXC_ERROR;
429: END IF;
430:
431: IF ((p_task_progress_entry_page <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR) AND
432: (p_task_progress_entry_page IS NOT NULL)) OR

Line 437: l_task_progress_entry_page_id := FND_API.G_MISS_NUM;

433: ((p_task_progress_entry_page_id <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) AND
434: (p_task_progress_entry_page_id IS NOT NULL)) THEN
435:
436: IF (p_task_progress_entry_page_ID = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) THEN
437: l_task_progress_entry_page_id := FND_API.G_MISS_NUM;
438: ELSE
439: l_task_progress_entry_page_id := p_task_progress_entry_page_id;
440: END IF;
441:

Line 450: IF l_return_status = FND_API.G_RET_STS_ERROR THEN

446: ,x_return_status => l_return_status
447: ,x_error_message_code => l_error_msg_code
448: );
449:
450: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
451: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
452: p_msg_name => l_error_msg_code);
453: END IF;
454: END IF;

Line 463: l_return_status := FND_API.G_RET_STS_ERROR;

459:
460: IF ( p_TYPE_ID IS NOT NULL AND p_TYPE_ID <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM ) THEN
461: IF ('N' = PA_TASK_TYPE_UTILS.check_tk_type_effective(p_TYPE_ID)) THEN
462: PA_UTILS.ADD_MESSAGE('PA', 'PA_PS_EFF_TASK_TYPE_ERR');
463: l_return_status := FND_API.G_RET_STS_ERROR;
464: END IF;
465: END IF;
466:
467: -- 3944597 end

Line 469: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

465: END IF;
466:
467: -- 3944597 end
468:
469: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
470: x_msg_count := FND_MSG_PUB.count_msg;
471: IF x_msg_count = 1 then
472: pa_interface_utils_pub.get_messages
473: (p_encoded => FND_API.G_TRUE,

Line 473: (p_encoded => FND_API.G_TRUE,

469: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
470: x_msg_count := FND_MSG_PUB.count_msg;
471: IF x_msg_count = 1 then
472: pa_interface_utils_pub.get_messages
473: (p_encoded => FND_API.G_TRUE,
474: p_msg_index => 1,
475: p_msg_count => l_msg_count,
476: p_msg_data => l_msg_data,
477: p_data => l_data,

Line 481: raise FND_API.G_EXC_ERROR;

477: p_data => l_data,
478: p_msg_index_out => l_msg_index_out);
479: x_msg_data := l_data;
480: END IF;
481: raise FND_API.G_EXC_ERROR;
482: END IF;
483:
484: --dbms_output.put_line( 'Inside CREATE_TASK API '||p_project_id );
485:

Line 583: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

579: );
580: -- end xxlu changes
581: --dbms_output.put_line( 'After CREATE_TASK API ' );
582:
583: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
584: x_msg_count := FND_MSG_PUB.count_msg;
585: IF x_msg_count = 1 then
586: pa_interface_utils_pub.get_messages
587: (p_encoded => FND_API.G_TRUE,

Line 587: (p_encoded => FND_API.G_TRUE,

583: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
584: x_msg_count := FND_MSG_PUB.count_msg;
585: IF x_msg_count = 1 then
586: pa_interface_utils_pub.get_messages
587: (p_encoded => FND_API.G_TRUE,
588: p_msg_index => 1,
589: p_msg_count => l_msg_count,
590: p_msg_data => l_msg_data,
591: p_data => l_data,

Line 595: raise FND_API.G_EXC_ERROR;

591: p_data => l_data,
592: p_msg_index_out => l_msg_index_out);
593: x_msg_data := l_data;
594: END IF;
595: raise FND_API.G_EXC_ERROR;
596: END IF;
597:
598: --x_task_id := l_task_id;
599: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 599: x_return_status := FND_API.G_RET_STS_SUCCESS;

595: raise FND_API.G_EXC_ERROR;
596: END IF;
597:
598: --x_task_id := l_task_id;
599: x_return_status := FND_API.G_RET_STS_SUCCESS;
600:
601: IF (p_commit = FND_API.G_TRUE) THEN
602: COMMIT;
603: END IF;

Line 601: IF (p_commit = FND_API.G_TRUE) THEN

597:
598: --x_task_id := l_task_id;
599: x_return_status := FND_API.G_RET_STS_SUCCESS;
600:
601: IF (p_commit = FND_API.G_TRUE) THEN
602: COMMIT;
603: END IF;
604:
605: IF (p_debug_mode = 'Y') THEN

Line 609: when FND_API.G_EXC_ERROR then

605: IF (p_debug_mode = 'Y') THEN
606: pa_debug.debug('PA_TASK_PUB1.CREATE_TASK END');
607: END IF;
608: EXCEPTION
609: when FND_API.G_EXC_ERROR then
610: if p_commit = FND_API.G_TRUE then
611: rollback to create_task;
612: end if;
613: x_return_status := FND_API.G_RET_STS_ERROR;

Line 610: if p_commit = FND_API.G_TRUE then

606: pa_debug.debug('PA_TASK_PUB1.CREATE_TASK END');
607: END IF;
608: EXCEPTION
609: when FND_API.G_EXC_ERROR then
610: if p_commit = FND_API.G_TRUE then
611: rollback to create_task;
612: end if;
613: x_return_status := FND_API.G_RET_STS_ERROR;
614: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 613: x_return_status := FND_API.G_RET_STS_ERROR;

609: when FND_API.G_EXC_ERROR then
610: if p_commit = FND_API.G_TRUE then
611: rollback to create_task;
612: end if;
613: x_return_status := FND_API.G_RET_STS_ERROR;
614: when FND_API.G_EXC_UNEXPECTED_ERROR then
615: if p_commit = FND_API.G_TRUE then
616: rollback to create_task;
617: end if;

Line 614: when FND_API.G_EXC_UNEXPECTED_ERROR then

610: if p_commit = FND_API.G_TRUE then
611: rollback to create_task;
612: end if;
613: x_return_status := FND_API.G_RET_STS_ERROR;
614: when FND_API.G_EXC_UNEXPECTED_ERROR then
615: if p_commit = FND_API.G_TRUE then
616: rollback to create_task;
617: end if;
618: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 615: if p_commit = FND_API.G_TRUE then

611: rollback to create_task;
612: end if;
613: x_return_status := FND_API.G_RET_STS_ERROR;
614: when FND_API.G_EXC_UNEXPECTED_ERROR then
615: if p_commit = FND_API.G_TRUE then
616: rollback to create_task;
617: end if;
618: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
619: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 618: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

614: when FND_API.G_EXC_UNEXPECTED_ERROR then
615: if p_commit = FND_API.G_TRUE then
616: rollback to create_task;
617: end if;
618: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
619: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
620: p_procedure_name => 'CREATE_TASK',
621: p_error_text => SUBSTRB(SQLERRM,1,240));
622: when OTHERS then

Line 623: if p_commit = FND_API.G_TRUE then

619: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
620: p_procedure_name => 'CREATE_TASK',
621: p_error_text => SUBSTRB(SQLERRM,1,240));
622: when OTHERS then
623: if p_commit = FND_API.G_TRUE then
624: rollback to create_task;
625: end if;
626: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
627: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 626: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

622: when OTHERS then
623: if p_commit = FND_API.G_TRUE then
624: rollback to create_task;
625: end if;
626: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
627: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
628: p_procedure_name => 'CREATE_TASK',
629: p_error_text => SUBSTRB(SQLERRM,1,240));
630: raise;

Line 639: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

635: -- Pre-reqs : None
636: -- Return Value : N/A
637: -- Prameters
638: -- p_api_version IN NUMBER N Not Null 1.0
639: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
640: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
641: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
642: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
643: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 640: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

636: -- Return Value : N/A
637: -- Prameters
638: -- p_api_version IN NUMBER N Not Null 1.0
639: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
640: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
641: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
642: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
643: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
644: -- p_debug_mode IN VARCHAR2 N Null N

Line 641: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

637: -- Prameters
638: -- p_api_version IN NUMBER N Not Null 1.0
639: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
640: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
641: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
642: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
643: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
644: -- p_debug_mode IN VARCHAR2 N Null N
645: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 642: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

638: -- p_api_version IN NUMBER N Not Null 1.0
639: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
640: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
641: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
642: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
643: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
644: -- p_debug_mode IN VARCHAR2 N Null N
645: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
646: -- p_task_id IN NUMBER N Not Null

Line 697: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

693: --
694:
695: PROCEDURE Update_Task(
696: p_api_version IN NUMBER :=1.0,
697: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
698: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
699: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
700: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
701: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 698: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

694:
695: PROCEDURE Update_Task(
696: p_api_version IN NUMBER :=1.0,
697: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
698: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
699: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
700: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
701: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
702: p_debug_mode IN VARCHAR2 :='N',

Line 699: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

695: PROCEDURE Update_Task(
696: p_api_version IN NUMBER :=1.0,
697: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
698: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
699: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
700: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
701: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
702: p_debug_mode IN VARCHAR2 :='N',
703: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 700: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

696: p_api_version IN NUMBER :=1.0,
697: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
698: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
699: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
700: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
701: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
702: p_debug_mode IN VARCHAR2 :='N',
703: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
704: p_ref_task_id IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 896: IF (p_commit = FND_API.G_TRUE) THEN

892: IF (p_debug_mode = 'Y') THEN
893: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK begin');
894: END IF;
895:
896: IF (p_commit = FND_API.G_TRUE) THEN
897: savepoint update_Task;
898: END IF;
899:
900: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 900: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

896: IF (p_commit = FND_API.G_TRUE) THEN
897: savepoint update_Task;
898: END IF;
899:
900: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
901: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
902: END IF;
903:
904:

Line 901: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

897: savepoint update_Task;
898: END IF;
899:
900: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
901: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
902: END IF;
903:
904:
905: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 905: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

901: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
902: END IF;
903:
904:
905: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
906: FND_MSG_PUB.initialize;
907: END IF;
908:
909: --Bug 3940203 avaithia <>

Line 958: RAISE FND_API.G_EXC_ERROR ;

954: p_token2 => 'TASK_NUMBER',
955: p_value2 => p_task_number,
956: p_token3 => 'MESSAGE',
957: p_value3 => l_err_message);
958: RAISE FND_API.G_EXC_ERROR ;
959: END IF;
960:
961: ELSE -- This is case of Self Service
962: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 970: RAISE FND_API.G_EXC_ERROR ;

966: p_token2 => 'TASK_NUMBER',
967: p_value2 => p_task_number,
968: p_token3 => 'MESSAGE',
969: p_value3 => l_err_message);
970: RAISE FND_API.G_EXC_ERROR ;
971: END IF ; --End If AMG Context
972: END IF; --End If Org.Name is NULL
973: END IF; --End If Financial Task
974:

Line 1027: raise FND_API.G_EXC_ERROR;

1023: IF ( l_task_number <> p_task_number ) THEN
1024: IF l_update_task_num_allowed = 'N' THEN
1025: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1026: p_msg_name => 'PA_PR_PM_NO_CHG_TASK_NUM');
1027: raise FND_API.G_EXC_ERROR;
1028: END IF;
1029: END IF;
1030:
1031: -- Check Update Task Name

Line 1036: raise FND_API.G_EXC_ERROR;

1032: IF ( l_task_name <> p_task_name ) THEN
1033: IF l_update_task_name_allowed = 'N' THEN
1034: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1035: p_msg_name => 'PA_PR_PM_NO_CHG_TASK_NAME');
1036: raise FND_API.G_EXC_ERROR;
1037: END IF;
1038: END IF;
1039:
1040: -- If financial task exists, Check Update Task Date

Line 1059: raise FND_API.G_EXC_ERROR;

1055: ( l_trans_finish_date is not null and p_transaction_finish_date is null) THEN
1056: IF l_update_task_dates_allowed = 'N' THEN
1057: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1058: p_msg_name => 'PA_PR_PM_NO_CHG_TASK_DATES');
1059: raise FND_API.G_EXC_ERROR;
1060: END IF;
1061: END IF;
1062: END IF;
1063: END IF;

Line 1072: raise FND_API.G_EXC_ERROR;

1068: (l_task_description is not null and p_task_description is null) THEN
1069: IF l_update_task_desc_allowed = 'N' THEN
1070: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1071: p_msg_name => 'PA_PR_PM_NO_CHG_TASK_DESC');
1072: raise FND_API.G_EXC_ERROR;
1073: END IF;
1074: END IF;
1075:
1076: -- Check Update Task Organization

Line 1083: raise FND_API.G_EXC_ERROR;

1079: (l_organization_name is not null and p_carrying_out_org_name is null) THEN
1080: IF l_update_task_org_allowed = 'N' THEN
1081: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1082: p_msg_name => 'PA_PR_PM_NO_CHG_TASK_ORG');
1083: raise FND_API.G_EXC_ERROR;
1084: END IF;
1085: END IF;
1086:
1087: END IF;

Line 1098: IF( p_validate_only <> FND_API.G_TRUE) THEN

1094:
1095: IF (p_calling_module <> 'FORMS')
1096: THEN
1097: --Lock row
1098: IF( p_validate_only <> FND_API.G_TRUE) THEN
1099: BEGIN
1100: select 'x' into l_dummy
1101: from PA_PROJ_ELEMENTS
1102: where proj_element_id = p_task_id

Line 1147: RAISE FND_API.G_EXC_ERROR;

1143:
1144: IF l_msg_count > 0 THEN
1145: x_msg_count := l_msg_count;
1146: x_return_status := 'E';
1147: RAISE FND_API.G_EXC_ERROR;
1148: END IF;
1149: END IF;
1150:
1151: --Bug 2168170

Line 1156: raise FND_API.G_EXC_ERROR;

1152: IF p_task_number IS NULL
1153: THEN
1154: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1155: p_msg_name => 'PA_PS_TASK_NUMBER_NULL');
1156: raise FND_API.G_EXC_ERROR;
1157: END IF;
1158:
1159: IF p_task_name IS NULL
1160: THEN

Line 1163: raise FND_API.G_EXC_ERROR;

1159: IF p_task_name IS NULL
1160: THEN
1161: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1162: p_msg_name => 'PA_PS_TASK_NAME_NULL');
1163: raise FND_API.G_EXC_ERROR;
1164: END IF;
1165:
1166: --Bug 2168170
1167:

Line 1204: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

1200: p_check_id_flag => 'Y',
1201: x_task_mgr_id => l_task_manager_id,
1202: x_return_status => l_return_status,
1203: x_error_msg_code => l_error_msg_code);
1204: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1205: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1206: p_msg_name => l_error_msg_code);
1207: raise FND_API.G_EXC_ERROR; -- bug 4165509
1208: END IF;

Line 1207: raise FND_API.G_EXC_ERROR; -- bug 4165509

1203: x_error_msg_code => l_error_msg_code);
1204: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1205: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1206: p_msg_name => l_error_msg_code);
1207: raise FND_API.G_EXC_ERROR; -- bug 4165509
1208: END IF;
1209: ELSE
1210: l_task_manager_id := l_cur_task_mgr_person_id;
1211: END IF;

Line 1254: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

1250: x_task_mgr_id => l_task_manager_id,
1251: x_return_status => l_return_status,
1252: x_error_msg_code => l_error_msg_code);
1253:
1254: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1255: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1256: p_msg_name => l_error_msg_code);
1257: raise FND_API.G_EXC_ERROR; -- bug 4165509
1258: END IF;

Line 1257: raise FND_API.G_EXC_ERROR; -- bug 4165509

1253:
1254: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1255: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1256: p_msg_name => l_error_msg_code);
1257: raise FND_API.G_EXC_ERROR; -- bug 4165509
1258: END IF;
1259:
1260: --task manager changes
1261: --hsiu: added for bug 2688475

Line 1283: l_carrying_out_org_id := FND_API.G_MISS_NUM;

1279: --my_error_msg( 'p_carrying_out_org_name '||p_carrying_out_org_name );
1280:
1281: IF p_carrying_out_org_id = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1282: THEN
1283: l_carrying_out_org_id := FND_API.G_MISS_NUM;
1284: ELSE
1285: l_carrying_out_org_id := p_carrying_out_org_id;
1286: END IF;
1287:

Line 1298: IF l_return_status = FND_API.G_RET_STS_SUCCESS THEN

1294: ,x_return_status => l_return_status
1295: ,x_error_msg_code => l_error_msg_code);
1296:
1297: -- added for bug 4537865
1298: IF l_return_status = FND_API.G_RET_STS_SUCCESS THEN
1299: l_carrying_out_org_id := l_new_carrying_out_org_id;
1300: END IF;
1301: -- added for bug 4537865
1302: --dbms_output.put_line( 'After Id to name p_carrying_out_org_id '||p_carrying_out_org_id );

Line 1306: IF l_return_status = FND_API.G_RET_STS_ERROR THEN

1302: --dbms_output.put_line( 'After Id to name p_carrying_out_org_id '||p_carrying_out_org_id );
1303: --dbms_output.put_line( 'After Id to name l_carrying_out_org_id '||l_carrying_out_org_id );
1304:
1305:
1306: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
1307: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1308: p_msg_name => l_error_msg_code);
1309: END IF;
1310: END IF; --End Name-Id Conversion

Line 1316: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

1312: l_task_manager_id := p_task_manager_id;
1313: l_carrying_out_org_id := p_carrying_out_org_id;
1314: END IF;
1315: --dbms_output.put_line( 'After calling Name to Id conv : Check_OrgName_Or_Id' );
1316: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1317: x_msg_count := FND_MSG_PUB.count_msg;
1318: IF x_msg_count = 1 then
1319: pa_interface_utils_pub.get_messages
1320: (p_encoded => FND_API.G_TRUE,

Line 1320: (p_encoded => FND_API.G_TRUE,

1316: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1317: x_msg_count := FND_MSG_PUB.count_msg;
1318: IF x_msg_count = 1 then
1319: pa_interface_utils_pub.get_messages
1320: (p_encoded => FND_API.G_TRUE,
1321: p_msg_index => 1,
1322: p_msg_count => l_msg_count,
1323: p_msg_data => l_msg_data,
1324: p_data => l_data,

Line 1328: raise FND_API.G_EXC_ERROR;

1324: p_data => l_data,
1325: p_msg_index_out => l_msg_index_out);
1326: x_msg_data := l_data;
1327: END IF;
1328: raise FND_API.G_EXC_ERROR;
1329: END IF;
1330:
1331: IF ((p_task_progress_entry_page <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR) AND
1332: (p_task_progress_entry_page IS NOT NULL)) OR

Line 1337: l_task_progress_entry_page_id := FND_API.G_MISS_NUM;

1333: ((p_task_progress_entry_page_id <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) AND
1334: (p_task_progress_entry_page_id IS NOT NULL)) THEN
1335:
1336: IF (p_task_progress_entry_page_ID = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) THEN
1337: l_task_progress_entry_page_id := FND_API.G_MISS_NUM;
1338: ELSE
1339: l_task_progress_entry_page_id := p_task_progress_entry_page_id;
1340: END IF;
1341:

Line 1350: IF l_return_status = FND_API.G_RET_STS_ERROR THEN

1346: ,x_return_status => l_return_status
1347: ,x_error_message_code => l_error_msg_code
1348: );
1349:
1350: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
1351: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1352: p_msg_name => l_error_msg_code);
1353: END IF;
1354:

Line 1362: l_return_status := FND_API.G_RET_STS_ERROR;

1358: /*Bug 4089623 Lead Days Cannot be negative */
1359: IF ( nvl(p_wf_lead_days,0) < 0 )
1360: THEN
1361: PA_UTILS.add_message('PA','PA_INVALID_LEAD_DAYS');
1362: l_return_status := FND_API.G_RET_STS_ERROR;
1363: END IF;
1364:
1365: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1366: x_msg_count := FND_MSG_PUB.count_msg;

Line 1365: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

1361: PA_UTILS.add_message('PA','PA_INVALID_LEAD_DAYS');
1362: l_return_status := FND_API.G_RET_STS_ERROR;
1363: END IF;
1364:
1365: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1366: x_msg_count := FND_MSG_PUB.count_msg;
1367: IF x_msg_count = 1 then
1368: pa_interface_utils_pub.get_messages
1369: (p_encoded => FND_API.G_TRUE,

Line 1369: (p_encoded => FND_API.G_TRUE,

1365: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1366: x_msg_count := FND_MSG_PUB.count_msg;
1367: IF x_msg_count = 1 then
1368: pa_interface_utils_pub.get_messages
1369: (p_encoded => FND_API.G_TRUE,
1370: p_msg_index => 1,
1371: p_msg_count => l_msg_count,
1372: p_msg_data => l_msg_data,
1373: p_data => l_data,

Line 1377: raise FND_API.G_EXC_ERROR;

1373: p_data => l_data,
1374: p_msg_index_out => l_msg_index_out);
1375: x_msg_data := l_data;
1376: END IF;
1377: raise FND_API.G_EXC_ERROR;
1378: END IF;
1379:
1380: --my_error_msg( 'Before calling private API. ' );
1381:

Line 1475: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

1471: );
1472:
1473: --dbms_output.put_line( 'After calling private API.' );
1474:
1475: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1476: x_msg_count := FND_MSG_PUB.count_msg;
1477: IF x_msg_count = 1 then
1478: pa_interface_utils_pub.get_messages
1479: (p_encoded => FND_API.G_TRUE,

Line 1479: (p_encoded => FND_API.G_TRUE,

1475: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1476: x_msg_count := FND_MSG_PUB.count_msg;
1477: IF x_msg_count = 1 then
1478: pa_interface_utils_pub.get_messages
1479: (p_encoded => FND_API.G_TRUE,
1480: p_msg_index => 1,
1481: p_msg_count => l_msg_count,
1482: p_msg_data => l_msg_data,
1483: p_data => l_data,

Line 1487: raise FND_API.G_EXC_ERROR;

1483: p_data => l_data,
1484: p_msg_index_out => l_msg_index_out);
1485: x_msg_data := l_data;
1486: END IF;
1487: raise FND_API.G_EXC_ERROR;
1488: END IF;
1489:
1490: x_return_status := FND_API.G_RET_STS_SUCCESS;
1491:

Line 1490: x_return_status := FND_API.G_RET_STS_SUCCESS;

1486: END IF;
1487: raise FND_API.G_EXC_ERROR;
1488: END IF;
1489:
1490: x_return_status := FND_API.G_RET_STS_SUCCESS;
1491:
1492: IF (p_commit = FND_API.G_TRUE) THEN
1493: COMMIT;
1494: END IF;

Line 1492: IF (p_commit = FND_API.G_TRUE) THEN

1488: END IF;
1489:
1490: x_return_status := FND_API.G_RET_STS_SUCCESS;
1491:
1492: IF (p_commit = FND_API.G_TRUE) THEN
1493: COMMIT;
1494: END IF;
1495:
1496: IF (p_debug_mode = 'Y') THEN

Line 1500: when FND_API.G_EXC_ERROR then

1496: IF (p_debug_mode = 'Y') THEN
1497: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK END');
1498: END IF;
1499: EXCEPTION
1500: when FND_API.G_EXC_ERROR then
1501: if p_commit = FND_API.G_TRUE then
1502: rollback to update_task;
1503: end if;
1504: x_return_status := FND_API.G_RET_STS_ERROR;

Line 1501: if p_commit = FND_API.G_TRUE then

1497: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK END');
1498: END IF;
1499: EXCEPTION
1500: when FND_API.G_EXC_ERROR then
1501: if p_commit = FND_API.G_TRUE then
1502: rollback to update_task;
1503: end if;
1504: x_return_status := FND_API.G_RET_STS_ERROR;
1505: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 1504: x_return_status := FND_API.G_RET_STS_ERROR;

1500: when FND_API.G_EXC_ERROR then
1501: if p_commit = FND_API.G_TRUE then
1502: rollback to update_task;
1503: end if;
1504: x_return_status := FND_API.G_RET_STS_ERROR;
1505: when FND_API.G_EXC_UNEXPECTED_ERROR then
1506: if p_commit = FND_API.G_TRUE then
1507: rollback to update_task;
1508: end if;

Line 1505: when FND_API.G_EXC_UNEXPECTED_ERROR then

1501: if p_commit = FND_API.G_TRUE then
1502: rollback to update_task;
1503: end if;
1504: x_return_status := FND_API.G_RET_STS_ERROR;
1505: when FND_API.G_EXC_UNEXPECTED_ERROR then
1506: if p_commit = FND_API.G_TRUE then
1507: rollback to update_task;
1508: end if;
1509: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 1506: if p_commit = FND_API.G_TRUE then

1502: rollback to update_task;
1503: end if;
1504: x_return_status := FND_API.G_RET_STS_ERROR;
1505: when FND_API.G_EXC_UNEXPECTED_ERROR then
1506: if p_commit = FND_API.G_TRUE then
1507: rollback to update_task;
1508: end if;
1509: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1510: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 1509: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

1505: when FND_API.G_EXC_UNEXPECTED_ERROR then
1506: if p_commit = FND_API.G_TRUE then
1507: rollback to update_task;
1508: end if;
1509: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1510: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1511: p_procedure_name => 'UPDATE_TASK',
1512: p_error_text => SUBSTRB(SQLERRM,1,240));
1513: when OTHERS then

Line 1514: if p_commit = FND_API.G_TRUE then

1510: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1511: p_procedure_name => 'UPDATE_TASK',
1512: p_error_text => SUBSTRB(SQLERRM,1,240));
1513: when OTHERS then
1514: if p_commit = FND_API.G_TRUE then
1515: rollback to update_task;
1516: end if;
1517: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1518: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 1517: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

1513: when OTHERS then
1514: if p_commit = FND_API.G_TRUE then
1515: rollback to update_task;
1516: end if;
1517: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1518: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1519: p_procedure_name => 'UPDATE_TASK',
1520: p_error_text => SUBSTRB(SQLERRM,1,240));
1521: raise;

Line 1531: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

1527: -- Pre-reqs : None
1528: -- Return Value : N/A
1529: -- Prameters
1530: -- p_api_version IN NUMBER N Not Null 1.0
1531: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1532: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1533: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1534: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1535: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 1532: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

1528: -- Return Value : N/A
1529: -- Prameters
1530: -- p_api_version IN NUMBER N Not Null 1.0
1531: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1532: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1533: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1534: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1535: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
1536: -- p_debug_mode IN VARCHAR2 N Null N

Line 1533: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

1529: -- Prameters
1530: -- p_api_version IN NUMBER N Not Null 1.0
1531: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1532: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1533: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1534: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1535: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
1536: -- p_debug_mode IN VARCHAR2 N Null N
1537: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 1534: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

1530: -- p_api_version IN NUMBER N Not Null 1.0
1531: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1532: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1533: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1534: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1535: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
1536: -- p_debug_mode IN VARCHAR2 N Null N
1537: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1538: -- p_ref_task_version_id IN NUMBER N Not Null

Line 1569: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

1565: --
1566:
1567: PROCEDURE Create_Task_Version(
1568: p_api_version IN NUMBER :=1.0,
1569: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1570: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1571: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1572: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1573: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 1570: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

1566:
1567: PROCEDURE Create_Task_Version(
1568: p_api_version IN NUMBER :=1.0,
1569: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1570: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1571: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1572: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1573: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
1574: p_debug_mode IN VARCHAR2 :='N',

Line 1571: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

1567: PROCEDURE Create_Task_Version(
1568: p_api_version IN NUMBER :=1.0,
1569: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1570: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1571: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1572: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1573: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
1574: p_debug_mode IN VARCHAR2 :='N',
1575: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 1572: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

1568: p_api_version IN NUMBER :=1.0,
1569: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1570: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1571: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1572: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1573: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
1574: p_debug_mode IN VARCHAR2 :='N',
1575: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
1576: p_ref_task_version_id IN NUMBER,

Line 1627: IF (p_commit = FND_API.G_TRUE) THEN

1623: IF (p_debug_mode = 'Y') THEN
1624: pa_debug.debug('PA_TASK_PUB1.CREATE_TASK_VERSION begin');
1625: END IF;
1626:
1627: IF (p_commit = FND_API.G_TRUE) THEN
1628: savepoint create_Task_version;
1629: END IF;
1630:
1631: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 1631: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

1627: IF (p_commit = FND_API.G_TRUE) THEN
1628: savepoint create_Task_version;
1629: END IF;
1630:
1631: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
1632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1633: END IF;
1634:
1635:

Line 1632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

1628: savepoint create_Task_version;
1629: END IF;
1630:
1631: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
1632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1633: END IF;
1634:
1635:
1636: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 1636: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

1632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1633: END IF;
1634:
1635:
1636: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
1637: FND_MSG_PUB.initialize;
1638: END IF;
1639:
1640: --dbms_output.put_line( 'Before private API' );

Line 1680: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

1676: ,x_msg_data => x_msg_data
1677: );
1678:
1679: --dbms_output.put_line( 'Status after private call in public API '||x_return_status );
1680: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1681: --IF (x_return_status <> 'S' ) THEN
1682: x_msg_count := FND_MSG_PUB.count_msg;
1683: IF x_msg_count = 1 then
1684: pa_interface_utils_pub.get_messages

Line 1685: (p_encoded => FND_API.G_TRUE,

1681: --IF (x_return_status <> 'S' ) THEN
1682: x_msg_count := FND_MSG_PUB.count_msg;
1683: IF x_msg_count = 1 then
1684: pa_interface_utils_pub.get_messages
1685: (p_encoded => FND_API.G_TRUE,
1686: p_msg_index => 1,
1687: p_msg_count => l_msg_count,
1688: p_msg_data => l_msg_data,
1689: p_data => l_data,

Line 1695: raise FND_API.G_EXC_ERROR;

1691: x_msg_data := l_data;
1692: END IF;
1693: --dbms_output.put_line( 'raising exception '||x_return_status );
1694:
1695: raise FND_API.G_EXC_ERROR;
1696: END IF;
1697:
1698: --dbms_output.put_line( 'Final status '||x_return_status );
1699:

Line 1700: x_return_status := FND_API.G_RET_STS_SUCCESS;

1696: END IF;
1697:
1698: --dbms_output.put_line( 'Final status '||x_return_status );
1699:
1700: x_return_status := FND_API.G_RET_STS_SUCCESS;
1701:
1702: --dbms_output.put_line( 'Final status asasas'||x_return_status );
1703:
1704: IF (p_commit = FND_API.G_TRUE) THEN

Line 1704: IF (p_commit = FND_API.G_TRUE) THEN

1700: x_return_status := FND_API.G_RET_STS_SUCCESS;
1701:
1702: --dbms_output.put_line( 'Final status asasas'||x_return_status );
1703:
1704: IF (p_commit = FND_API.G_TRUE) THEN
1705: COMMIT;
1706: END IF;
1707:
1708: IF (p_debug_mode = 'Y') THEN

Line 1712: when FND_API.G_EXC_ERROR then

1708: IF (p_debug_mode = 'Y') THEN
1709: pa_debug.debug('PA_PROJECT_STRUCTURE_PUB1.CREATE_TASK_VERSION END');
1710: END IF;
1711: EXCEPTION
1712: when FND_API.G_EXC_ERROR then
1713: if p_commit = FND_API.G_TRUE then
1714: rollback to create_task_version;
1715: end if;
1716: x_return_status := FND_API.G_RET_STS_ERROR;

Line 1713: if p_commit = FND_API.G_TRUE then

1709: pa_debug.debug('PA_PROJECT_STRUCTURE_PUB1.CREATE_TASK_VERSION END');
1710: END IF;
1711: EXCEPTION
1712: when FND_API.G_EXC_ERROR then
1713: if p_commit = FND_API.G_TRUE then
1714: rollback to create_task_version;
1715: end if;
1716: x_return_status := FND_API.G_RET_STS_ERROR;
1717: --dbms_output.put_line( 'Status in public API exception '||x_return_status );

Line 1716: x_return_status := FND_API.G_RET_STS_ERROR;

1712: when FND_API.G_EXC_ERROR then
1713: if p_commit = FND_API.G_TRUE then
1714: rollback to create_task_version;
1715: end if;
1716: x_return_status := FND_API.G_RET_STS_ERROR;
1717: --dbms_output.put_line( 'Status in public API exception '||x_return_status );
1718:
1719: when FND_API.G_EXC_UNEXPECTED_ERROR then
1720: if p_commit = FND_API.G_TRUE then

Line 1719: when FND_API.G_EXC_UNEXPECTED_ERROR then

1715: end if;
1716: x_return_status := FND_API.G_RET_STS_ERROR;
1717: --dbms_output.put_line( 'Status in public API exception '||x_return_status );
1718:
1719: when FND_API.G_EXC_UNEXPECTED_ERROR then
1720: if p_commit = FND_API.G_TRUE then
1721: rollback to create_task_version;
1722: end if;
1723: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 1720: if p_commit = FND_API.G_TRUE then

1716: x_return_status := FND_API.G_RET_STS_ERROR;
1717: --dbms_output.put_line( 'Status in public API exception '||x_return_status );
1718:
1719: when FND_API.G_EXC_UNEXPECTED_ERROR then
1720: if p_commit = FND_API.G_TRUE then
1721: rollback to create_task_version;
1722: end if;
1723: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1724: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 1723: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

1719: when FND_API.G_EXC_UNEXPECTED_ERROR then
1720: if p_commit = FND_API.G_TRUE then
1721: rollback to create_task_version;
1722: end if;
1723: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1724: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1725: p_procedure_name => 'CREATE_TASK_VERSION',
1726: p_error_text => SUBSTRB(SQLERRM,1,240));
1727: when OTHERS then

Line 1728: if p_commit = FND_API.G_TRUE then

1724: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1725: p_procedure_name => 'CREATE_TASK_VERSION',
1726: p_error_text => SUBSTRB(SQLERRM,1,240));
1727: when OTHERS then
1728: if p_commit = FND_API.G_TRUE then
1729: rollback to create_task_version;
1730: end if;
1731: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1732: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 1731: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

1727: when OTHERS then
1728: if p_commit = FND_API.G_TRUE then
1729: rollback to create_task_version;
1730: end if;
1731: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1732: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1733: p_procedure_name => 'CREATE_TASK_VERSION',
1734: p_error_text => SUBSTRB(SQLERRM,1,240));
1735: raise;

Line 1744: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

1740: -- Pre-reqs : None
1741: -- Return Value : N/A
1742: -- Prameters
1743: -- p_api_version IN NUMBER N Not Null 1.0
1744: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1745: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1746: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1747: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1748: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 1745: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

1741: -- Return Value : N/A
1742: -- Prameters
1743: -- p_api_version IN NUMBER N Not Null 1.0
1744: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1745: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1746: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1747: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1748: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
1749: -- p_debug_mode IN VARCHAR2 N Null N

Line 1746: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

1742: -- Prameters
1743: -- p_api_version IN NUMBER N Not Null 1.0
1744: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1745: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1746: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1747: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1748: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
1749: -- p_debug_mode IN VARCHAR2 N Null N
1750: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 1747: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

1743: -- p_api_version IN NUMBER N Not Null 1.0
1744: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1745: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1746: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1747: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
1748: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
1749: -- p_debug_mode IN VARCHAR2 N Null N
1750: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
1751: -- p_task_version_id IN NUMBER N Null

Line 1781: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

1777: --
1778:
1779: PROCEDURE Update_Task_Version(
1780: p_api_version IN NUMBER :=1.0,
1781: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1782: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1783: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1784: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1785: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 1782: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

1778:
1779: PROCEDURE Update_Task_Version(
1780: p_api_version IN NUMBER :=1.0,
1781: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1782: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1783: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1784: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1785: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
1786: p_debug_mode IN VARCHAR2 :='N',

Line 1783: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

1779: PROCEDURE Update_Task_Version(
1780: p_api_version IN NUMBER :=1.0,
1781: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1782: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1783: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1784: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1785: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
1786: p_debug_mode IN VARCHAR2 :='N',
1787: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 1784: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

1780: p_api_version IN NUMBER :=1.0,
1781: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
1782: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
1783: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
1784: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
1785: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
1786: p_debug_mode IN VARCHAR2 :='N',
1787: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
1788: p_ref_task_version_id IN NUMBER,

Line 1839: IF (p_commit = FND_API.G_TRUE) THEN

1835: IF (p_debug_mode = 'Y') THEN
1836: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_VERSION begin');
1837: END IF;
1838:
1839: IF (p_commit = FND_API.G_TRUE) THEN
1840: savepoint update_Task_version;
1841: END IF;
1842:
1843: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 1843: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

1839: IF (p_commit = FND_API.G_TRUE) THEN
1840: savepoint update_Task_version;
1841: END IF;
1842:
1843: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
1844: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1845: END IF;
1846:
1847:

Line 1844: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

1840: savepoint update_Task_version;
1841: END IF;
1842:
1843: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
1844: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1845: END IF;
1846:
1847:
1848: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 1848: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

1844: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1845: END IF;
1846:
1847:
1848: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
1849: FND_MSG_PUB.initialize;
1850: END IF;
1851:
1852: --Lock row

Line 1853: IF( p_validate_only <> FND_API.G_TRUE) THEN

1849: FND_MSG_PUB.initialize;
1850: END IF;
1851:
1852: --Lock row
1853: IF( p_validate_only <> FND_API.G_TRUE) THEN
1854: BEGIN
1855: select 'x' into l_dummy
1856: from PA_PROJ_ELEMENT_VERSIONS
1857: where element_version_id = p_task_version_id

Line 1899: RAISE FND_API.G_EXC_ERROR;

1895: l_msg_count := FND_MSG_PUB.count_msg;
1896: IF l_msg_count > 0 THEN
1897: x_msg_count := l_msg_count;
1898: x_return_status := 'E';
1899: RAISE FND_API.G_EXC_ERROR;
1900: END IF;
1901:
1902:
1903: --dbms_output.put_line('call update task version pvt');

Line 1941: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

1937: ,x_msg_count => x_msg_count
1938: ,x_msg_data => x_msg_data
1939: );
1940:
1941: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1942: x_msg_count := FND_MSG_PUB.count_msg;
1943: IF x_msg_count = 1 then
1944: pa_interface_utils_pub.get_messages
1945: (p_encoded => FND_API.G_TRUE,

Line 1945: (p_encoded => FND_API.G_TRUE,

1941: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
1942: x_msg_count := FND_MSG_PUB.count_msg;
1943: IF x_msg_count = 1 then
1944: pa_interface_utils_pub.get_messages
1945: (p_encoded => FND_API.G_TRUE,
1946: p_msg_index => 1,
1947: p_msg_count => l_msg_count,
1948: p_msg_data => l_msg_data,
1949: p_data => l_data,

Line 1953: raise FND_API.G_EXC_ERROR;

1949: p_data => l_data,
1950: p_msg_index_out => l_msg_index_out);
1951: x_msg_data := l_data;
1952: END IF;
1953: raise FND_API.G_EXC_ERROR;
1954: END IF;
1955:
1956: x_return_status := FND_API.G_RET_STS_SUCCESS;
1957:

Line 1956: x_return_status := FND_API.G_RET_STS_SUCCESS;

1952: END IF;
1953: raise FND_API.G_EXC_ERROR;
1954: END IF;
1955:
1956: x_return_status := FND_API.G_RET_STS_SUCCESS;
1957:
1958: IF (p_commit = FND_API.G_TRUE) THEN
1959: COMMIT;
1960: END IF;

Line 1958: IF (p_commit = FND_API.G_TRUE) THEN

1954: END IF;
1955:
1956: x_return_status := FND_API.G_RET_STS_SUCCESS;
1957:
1958: IF (p_commit = FND_API.G_TRUE) THEN
1959: COMMIT;
1960: END IF;
1961:
1962: IF (p_debug_mode = 'Y') THEN

Line 1966: when FND_API.G_EXC_ERROR then

1962: IF (p_debug_mode = 'Y') THEN
1963: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_VERSION END');
1964: END IF;
1965: EXCEPTION
1966: when FND_API.G_EXC_ERROR then
1967: if p_commit = FND_API.G_TRUE then
1968: rollback to update_task_version;
1969: end if;
1970: x_return_status := FND_API.G_RET_STS_ERROR;

Line 1967: if p_commit = FND_API.G_TRUE then

1963: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_VERSION END');
1964: END IF;
1965: EXCEPTION
1966: when FND_API.G_EXC_ERROR then
1967: if p_commit = FND_API.G_TRUE then
1968: rollback to update_task_version;
1969: end if;
1970: x_return_status := FND_API.G_RET_STS_ERROR;
1971: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 1970: x_return_status := FND_API.G_RET_STS_ERROR;

1966: when FND_API.G_EXC_ERROR then
1967: if p_commit = FND_API.G_TRUE then
1968: rollback to update_task_version;
1969: end if;
1970: x_return_status := FND_API.G_RET_STS_ERROR;
1971: when FND_API.G_EXC_UNEXPECTED_ERROR then
1972: if p_commit = FND_API.G_TRUE then
1973: rollback to update_task_version;
1974: end if;

Line 1971: when FND_API.G_EXC_UNEXPECTED_ERROR then

1967: if p_commit = FND_API.G_TRUE then
1968: rollback to update_task_version;
1969: end if;
1970: x_return_status := FND_API.G_RET_STS_ERROR;
1971: when FND_API.G_EXC_UNEXPECTED_ERROR then
1972: if p_commit = FND_API.G_TRUE then
1973: rollback to update_task_version;
1974: end if;
1975: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 1972: if p_commit = FND_API.G_TRUE then

1968: rollback to update_task_version;
1969: end if;
1970: x_return_status := FND_API.G_RET_STS_ERROR;
1971: when FND_API.G_EXC_UNEXPECTED_ERROR then
1972: if p_commit = FND_API.G_TRUE then
1973: rollback to update_task_version;
1974: end if;
1975: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1976: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 1975: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

1971: when FND_API.G_EXC_UNEXPECTED_ERROR then
1972: if p_commit = FND_API.G_TRUE then
1973: rollback to update_task_version;
1974: end if;
1975: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1976: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1977: p_procedure_name => 'UPDATE_TASK_VERSION',
1978: p_error_text => SUBSTRB(SQLERRM,1,240));
1979: when OTHERS then

Line 1980: if p_commit = FND_API.G_TRUE then

1976: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1977: p_procedure_name => 'UPDATE_TASK_VERSION',
1978: p_error_text => SUBSTRB(SQLERRM,1,240));
1979: when OTHERS then
1980: if p_commit = FND_API.G_TRUE then
1981: rollback to update_task_version;
1982: end if;
1983: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1984: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 1983: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

1979: when OTHERS then
1980: if p_commit = FND_API.G_TRUE then
1981: rollback to update_task_version;
1982: end if;
1983: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1984: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
1985: p_procedure_name => 'UPDATE_TASK_VERSION',
1986: p_error_text => SUBSTRB(SQLERRM,1,240));
1987: raise;

Line 1996: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

1992: -- Pre-reqs : None
1993: -- Return Value : N/A
1994: -- Prameters
1995: -- p_api_version IN NUMBER N Not Null 1.0
1996: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1997: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1998: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1999: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2000: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 1997: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

1993: -- Return Value : N/A
1994: -- Prameters
1995: -- p_api_version IN NUMBER N Not Null 1.0
1996: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1997: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1998: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1999: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2000: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2001: -- p_debug_mode IN VARCHAR2 N Null N

Line 1998: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

1994: -- Prameters
1995: -- p_api_version IN NUMBER N Not Null 1.0
1996: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1997: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1998: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1999: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2000: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2001: -- p_debug_mode IN VARCHAR2 N Null N
2002: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 1999: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

1995: -- p_api_version IN NUMBER N Not Null 1.0
1996: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
1997: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
1998: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
1999: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2000: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2001: -- p_debug_mode IN VARCHAR2 N Null N
2002: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2003: -- p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 2018: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

2014: --
2015:
2016: PROCEDURE Delete_Task_Version(
2017: p_api_version IN NUMBER :=1.0,
2018: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2019: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2020: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2021: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2022: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 2019: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

2015:
2016: PROCEDURE Delete_Task_Version(
2017: p_api_version IN NUMBER :=1.0,
2018: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2019: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2020: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2021: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2022: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2023: p_debug_mode IN VARCHAR2 :='N',

Line 2020: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

2016: PROCEDURE Delete_Task_Version(
2017: p_api_version IN NUMBER :=1.0,
2018: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2019: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2020: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2021: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2022: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2023: p_debug_mode IN VARCHAR2 :='N',
2024: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 2021: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

2017: p_api_version IN NUMBER :=1.0,
2018: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2019: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2020: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2021: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2022: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2023: p_debug_mode IN VARCHAR2 :='N',
2024: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2025: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 2145: IF (p_commit = FND_API.G_TRUE) THEN

2141: IF (p_debug_mode = 'Y') THEN
2142: pa_debug.debug('PA_TASK_PUB1.DELETE_TASK_VERSION begin');
2143: END IF;
2144:
2145: IF (p_commit = FND_API.G_TRUE) THEN
2146: savepoint delete_Task_version;
2147: END IF;
2148:
2149: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 2149: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

2145: IF (p_commit = FND_API.G_TRUE) THEN
2146: savepoint delete_Task_version;
2147: END IF;
2148:
2149: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
2150: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2151: END IF;
2152:
2153:

Line 2150: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2146: savepoint delete_Task_version;
2147: END IF;
2148:
2149: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
2150: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2151: END IF;
2152:
2153:
2154: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 2154: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

2150: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2151: END IF;
2152:
2153:
2154: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2155: FND_MSG_PUB.initialize;
2156: END IF;
2157:
2158: IF p_calling_module <> 'FORMS'

Line 2161: IF( p_validate_only <> FND_API.G_TRUE) THEN

2157:
2158: IF p_calling_module <> 'FORMS'
2159: THEN
2160: --Lock row
2161: IF( p_validate_only <> FND_API.G_TRUE) THEN
2162: BEGIN
2163: select 'x' into l_dummy
2164: from PA_PROJ_ELEMENT_VERSIONS
2165: where element_version_id = p_task_version_id

Line 2212: RAISE FND_API.G_EXC_ERROR;

2208:
2209: IF l_msg_count > 0 AND l_error_occured = 'Y' THEN
2210: x_msg_count := l_msg_count;
2211: x_return_status := 'E';
2212: RAISE FND_API.G_EXC_ERROR;
2213: END IF;
2214: END IF; --<< p_calling module >>
2215:
2216: -- hyau Bug 2852753

Line 2257: raise FND_API.G_EXC_ERROR;

2253: END IF;
2254: IF l_delete_task_allowed = 'N' THEN
2255: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
2256: p_msg_name => 'PA_PR_PM_CANNOT_DELETE');
2257: raise FND_API.G_EXC_ERROR;
2258: END IF;
2259: END IF;
2260: END IF;
2261:

Line 2298: RAISE FND_API.G_EXC_ERROR;

2294: ,x_error_message_code => l_error_msg_code);
2295: IF (l_return_status <> 'S') THEN
2296: PA_UTILS.ADD_MESSAGE('PA', l_error_msg_code);
2297: l_msg_data := l_error_msg_code;
2298: RAISE FND_API.G_EXC_ERROR;
2299: END IF;
2300: END IF; -- 6023347
2301:
2302: -- Bug Fix 4576640.

Line 2312: RAISE FND_API.G_EXC_ERROR;

2308:
2309: IF l_linked_task = 'Y' THEN
2310: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
2311: p_msg_name => 'PA_PS_CANT_DEL_LINKED_TASK');
2312: RAISE FND_API.G_EXC_ERROR;
2313: END IF;
2314:
2315: -- End of Bug Fix 4576640.
2316:

Line 2346: IF x_return_status = FND_API.G_RET_STS_ERROR then

2342: ,x_msg_count => x_msg_count
2343: ,x_msg_data => x_msg_data
2344: );
2345:
2346: IF x_return_status = FND_API.G_RET_STS_ERROR then
2347: RAISE FND_API.G_EXC_ERROR;
2348: End If;
2349:
2350: -- 3955848 end

Line 2347: RAISE FND_API.G_EXC_ERROR;

2343: ,x_msg_data => x_msg_data
2344: );
2345:
2346: IF x_return_status = FND_API.G_RET_STS_ERROR then
2347: RAISE FND_API.G_EXC_ERROR;
2348: End If;
2349:
2350: -- 3955848 end
2351:

Line 2358: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

2354: ,x_return_status => l_return_status
2355: ,x_msg_count => x_msg_count
2356: ,x_msg_data => x_msg_data);
2357:
2358: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2359: x_msg_count := FND_MSG_PUB.count_msg;
2360: IF x_msg_count = 1 then
2361: pa_interface_utils_pub.get_messages
2362: (p_encoded => FND_API.G_TRUE,

Line 2362: (p_encoded => FND_API.G_TRUE,

2358: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2359: x_msg_count := FND_MSG_PUB.count_msg;
2360: IF x_msg_count = 1 then
2361: pa_interface_utils_pub.get_messages
2362: (p_encoded => FND_API.G_TRUE,
2363: p_msg_index => 1,
2364: p_msg_count => l_msg_count,
2365: p_msg_data => l_msg_data,
2366: p_data => l_data,

Line 2370: raise FND_API.G_EXC_ERROR;

2366: p_data => l_data,
2367: p_msg_index_out => l_msg_index_out);
2368: x_msg_data := l_data;
2369: END IF;
2370: raise FND_API.G_EXC_ERROR;
2371: END IF;
2372:
2373: return; --only set the version status
2374: ELSE --not published

Line 2407: IF x_return_status = FND_API.G_RET_STS_ERROR then

2403: ,x_msg_count => x_msg_count
2404: ,x_msg_data => x_msg_data
2405: );
2406:
2407: IF x_return_status = FND_API.G_RET_STS_ERROR then
2408: RAISE FND_API.G_EXC_ERROR;
2409: End If;
2410:
2411: -- 3955848 end

Line 2408: RAISE FND_API.G_EXC_ERROR;

2404: ,x_msg_data => x_msg_data
2405: );
2406:
2407: IF x_return_status = FND_API.G_RET_STS_ERROR then
2408: RAISE FND_API.G_EXC_ERROR;
2409: End If;
2410:
2411: -- 3955848 end
2412:

Line 2419: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

2415: ,x_return_status => l_return_status
2416: ,x_msg_count => x_msg_count
2417: ,x_msg_data => x_msg_data);
2418:
2419: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2420: x_msg_count := FND_MSG_PUB.count_msg;
2421: IF x_msg_count = 1 then
2422: pa_interface_utils_pub.get_messages
2423: (p_encoded => FND_API.G_TRUE,

Line 2423: (p_encoded => FND_API.G_TRUE,

2419: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2420: x_msg_count := FND_MSG_PUB.count_msg;
2421: IF x_msg_count = 1 then
2422: pa_interface_utils_pub.get_messages
2423: (p_encoded => FND_API.G_TRUE,
2424: p_msg_index => 1,
2425: p_msg_count => l_msg_count,
2426: p_msg_data => l_msg_data,
2427: p_data => l_data,

Line 2431: raise FND_API.G_EXC_ERROR;

2427: p_data => l_data,
2428: p_msg_index_out => l_msg_index_out);
2429: x_msg_data := l_data;
2430: END IF;
2431: raise FND_API.G_EXC_ERROR;
2432: END IF;
2433:
2434: return; --only set the status
2435: ELSE

Line 2468: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

2464: ,x_msg_count => x_msg_count
2465: ,x_msg_data => x_msg_data
2466: );
2467:
2468: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2469: x_msg_count := FND_MSG_PUB.count_msg;
2470: IF x_msg_count = 1 then
2471: pa_interface_utils_pub.get_messages
2472: (p_encoded => FND_API.G_TRUE,

Line 2472: (p_encoded => FND_API.G_TRUE,

2468: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2469: x_msg_count := FND_MSG_PUB.count_msg;
2470: IF x_msg_count = 1 then
2471: pa_interface_utils_pub.get_messages
2472: (p_encoded => FND_API.G_TRUE,
2473: p_msg_index => 1,
2474: p_msg_count => l_msg_count,
2475: p_msg_data => l_msg_data,
2476: p_data => l_data,

Line 2480: raise FND_API.G_EXC_ERROR;

2476: p_data => l_data,
2477: p_msg_index_out => l_msg_index_out);
2478: x_msg_data := l_data;
2479: END IF;
2480: raise FND_API.G_EXC_ERROR;
2481: END IF;
2482:
2483: x_return_status := FND_API.G_RET_STS_SUCCESS;
2484:

Line 2483: x_return_status := FND_API.G_RET_STS_SUCCESS;

2479: END IF;
2480: raise FND_API.G_EXC_ERROR;
2481: END IF;
2482:
2483: x_return_status := FND_API.G_RET_STS_SUCCESS;
2484:
2485: IF (p_commit = FND_API.G_TRUE) THEN
2486: COMMIT;
2487: END IF;

Line 2485: IF (p_commit = FND_API.G_TRUE) THEN

2481: END IF;
2482:
2483: x_return_status := FND_API.G_RET_STS_SUCCESS;
2484:
2485: IF (p_commit = FND_API.G_TRUE) THEN
2486: COMMIT;
2487: END IF;
2488:
2489: IF (p_debug_mode = 'Y') THEN

Line 2493: when FND_API.G_EXC_ERROR then

2489: IF (p_debug_mode = 'Y') THEN
2490: pa_debug.debug('PA_TASK_PUB1.DELETE_TASK_VERSION END');
2491: END IF;
2492: EXCEPTION
2493: when FND_API.G_EXC_ERROR then
2494: if p_commit = FND_API.G_TRUE then
2495: rollback to delete_task_version;
2496: end if;
2497: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2494: if p_commit = FND_API.G_TRUE then

2490: pa_debug.debug('PA_TASK_PUB1.DELETE_TASK_VERSION END');
2491: END IF;
2492: EXCEPTION
2493: when FND_API.G_EXC_ERROR then
2494: if p_commit = FND_API.G_TRUE then
2495: rollback to delete_task_version;
2496: end if;
2497: x_return_status := FND_API.G_RET_STS_ERROR;
2498: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 2497: x_return_status := FND_API.G_RET_STS_ERROR;

2493: when FND_API.G_EXC_ERROR then
2494: if p_commit = FND_API.G_TRUE then
2495: rollback to delete_task_version;
2496: end if;
2497: x_return_status := FND_API.G_RET_STS_ERROR;
2498: when FND_API.G_EXC_UNEXPECTED_ERROR then
2499: if p_commit = FND_API.G_TRUE then
2500: rollback to delete_task_version;
2501: end if;

Line 2498: when FND_API.G_EXC_UNEXPECTED_ERROR then

2494: if p_commit = FND_API.G_TRUE then
2495: rollback to delete_task_version;
2496: end if;
2497: x_return_status := FND_API.G_RET_STS_ERROR;
2498: when FND_API.G_EXC_UNEXPECTED_ERROR then
2499: if p_commit = FND_API.G_TRUE then
2500: rollback to delete_task_version;
2501: end if;
2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 2499: if p_commit = FND_API.G_TRUE then

2495: rollback to delete_task_version;
2496: end if;
2497: x_return_status := FND_API.G_RET_STS_ERROR;
2498: when FND_API.G_EXC_UNEXPECTED_ERROR then
2499: if p_commit = FND_API.G_TRUE then
2500: rollback to delete_task_version;
2501: end if;
2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2503: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

2498: when FND_API.G_EXC_UNEXPECTED_ERROR then
2499: if p_commit = FND_API.G_TRUE then
2500: rollback to delete_task_version;
2501: end if;
2502: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2503: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
2504: p_procedure_name => 'DELETE_TASK_VERSION',
2505: p_error_text => SUBSTRB(SQLERRM,1,240));
2506: when OTHERS then

Line 2507: if p_commit = FND_API.G_TRUE then

2503: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
2504: p_procedure_name => 'DELETE_TASK_VERSION',
2505: p_error_text => SUBSTRB(SQLERRM,1,240));
2506: when OTHERS then
2507: if p_commit = FND_API.G_TRUE then
2508: rollback to delete_task_version;
2509: end if;
2510: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2511: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 2510: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

2506: when OTHERS then
2507: if p_commit = FND_API.G_TRUE then
2508: rollback to delete_task_version;
2509: end if;
2510: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2511: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
2512: p_procedure_name => 'DELETE_TASK_VERSION',
2513: p_error_text => SUBSTRB(SQLERRM,1,240));
2514: raise;

Line 2523: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

2519: -- Pre-reqs : None
2520: -- Return Value : N/A
2521: -- Prameters
2522: -- p_api_version IN NUMBER N Not Null 1.0
2523: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2524: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2525: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2526: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2527: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 2524: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

2520: -- Return Value : N/A
2521: -- Prameters
2522: -- p_api_version IN NUMBER N Not Null 1.0
2523: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2524: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2525: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2526: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2527: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2528: -- p_debug_mode IN VARCHAR2 N Null N

Line 2525: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

2521: -- Prameters
2522: -- p_api_version IN NUMBER N Not Null 1.0
2523: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2524: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2525: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2526: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2527: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2528: -- p_debug_mode IN VARCHAR2 N Null N
2529: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 2526: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

2522: -- p_api_version IN NUMBER N Not Null 1.0
2523: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2524: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2525: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2526: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2527: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2528: -- p_debug_mode IN VARCHAR2 N Null N
2529: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2530: -- p_element_version_id IN NUMBER N Not Null

Line 2561: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

2557: --
2558:
2559: PROCEDURE Create_Schedule_Version(
2560: p_api_version IN NUMBER :=1.0,
2561: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2562: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2563: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2564: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2565: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 2562: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

2558:
2559: PROCEDURE Create_Schedule_Version(
2560: p_api_version IN NUMBER :=1.0,
2561: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2562: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2563: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2564: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2565: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2566: p_debug_mode IN VARCHAR2 :='N',

Line 2563: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

2559: PROCEDURE Create_Schedule_Version(
2560: p_api_version IN NUMBER :=1.0,
2561: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2562: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2563: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2564: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2565: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2566: p_debug_mode IN VARCHAR2 :='N',
2567: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 2564: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

2560: p_api_version IN NUMBER :=1.0,
2561: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2562: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2563: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2564: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2565: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2566: p_debug_mode IN VARCHAR2 :='N',
2567: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2568: p_element_version_id IN NUMBER,

Line 2641: IF (p_commit = FND_API.G_TRUE) THEN

2637: IF (p_debug_mode = 'Y') THEN
2638: pa_debug.debug('PA_TASK_PUB1.CREATE_SCHEDULE_VERSION begin');
2639: END IF;
2640:
2641: IF (p_commit = FND_API.G_TRUE) THEN
2642: savepoint create_schedule_version;
2643: END IF;
2644:
2645: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 2645: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

2641: IF (p_commit = FND_API.G_TRUE) THEN
2642: savepoint create_schedule_version;
2643: END IF;
2644:
2645: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
2646: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2647: END IF;
2648:
2649:

Line 2646: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2642: savepoint create_schedule_version;
2643: END IF;
2644:
2645: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
2646: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2647: END IF;
2648:
2649:
2650: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 2650: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

2646: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2647: END IF;
2648:
2649:
2650: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2651: FND_MSG_PUB.initialize;
2652: END IF;
2653:
2654: PA_TASK_PVT1.Create_Schedule_Version(

Line 2715: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

2711: ,x_msg_count => x_msg_count
2712: ,x_msg_data => x_msg_data
2713: );
2714:
2715: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2716: x_msg_count := FND_MSG_PUB.count_msg;
2717: IF x_msg_count = 1 then
2718: pa_interface_utils_pub.get_messages
2719: (p_encoded => FND_API.G_TRUE,

Line 2719: (p_encoded => FND_API.G_TRUE,

2715: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
2716: x_msg_count := FND_MSG_PUB.count_msg;
2717: IF x_msg_count = 1 then
2718: pa_interface_utils_pub.get_messages
2719: (p_encoded => FND_API.G_TRUE,
2720: p_msg_index => 1,
2721: p_msg_count => l_msg_count,
2722: p_msg_data => l_msg_data,
2723: p_data => l_data,

Line 2727: raise FND_API.G_EXC_ERROR;

2723: p_data => l_data,
2724: p_msg_index_out => l_msg_index_out);
2725: x_msg_data := l_data;
2726: END IF;
2727: raise FND_API.G_EXC_ERROR;
2728: END IF;
2729:
2730: x_return_status := FND_API.G_RET_STS_SUCCESS;
2731:

Line 2730: x_return_status := FND_API.G_RET_STS_SUCCESS;

2726: END IF;
2727: raise FND_API.G_EXC_ERROR;
2728: END IF;
2729:
2730: x_return_status := FND_API.G_RET_STS_SUCCESS;
2731:
2732: IF (p_commit = FND_API.G_TRUE) THEN
2733: COMMIT;
2734: END IF;

Line 2732: IF (p_commit = FND_API.G_TRUE) THEN

2728: END IF;
2729:
2730: x_return_status := FND_API.G_RET_STS_SUCCESS;
2731:
2732: IF (p_commit = FND_API.G_TRUE) THEN
2733: COMMIT;
2734: END IF;
2735:
2736: IF (p_debug_mode = 'Y') THEN

Line 2740: when FND_API.G_EXC_ERROR then

2736: IF (p_debug_mode = 'Y') THEN
2737: pa_debug.debug('PA_TASK_PUB1.CREATE_SCHEDULE_VERSION END');
2738: END IF;
2739: EXCEPTION
2740: when FND_API.G_EXC_ERROR then
2741: if p_commit = FND_API.G_TRUE then
2742: rollback to create_schedule_version;
2743: end if;
2744: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2741: if p_commit = FND_API.G_TRUE then

2737: pa_debug.debug('PA_TASK_PUB1.CREATE_SCHEDULE_VERSION END');
2738: END IF;
2739: EXCEPTION
2740: when FND_API.G_EXC_ERROR then
2741: if p_commit = FND_API.G_TRUE then
2742: rollback to create_schedule_version;
2743: end if;
2744: x_return_status := FND_API.G_RET_STS_ERROR;
2745: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 2744: x_return_status := FND_API.G_RET_STS_ERROR;

2740: when FND_API.G_EXC_ERROR then
2741: if p_commit = FND_API.G_TRUE then
2742: rollback to create_schedule_version;
2743: end if;
2744: x_return_status := FND_API.G_RET_STS_ERROR;
2745: when FND_API.G_EXC_UNEXPECTED_ERROR then
2746: if p_commit = FND_API.G_TRUE then
2747: rollback to create_schedule_version;
2748: end if;

Line 2745: when FND_API.G_EXC_UNEXPECTED_ERROR then

2741: if p_commit = FND_API.G_TRUE then
2742: rollback to create_schedule_version;
2743: end if;
2744: x_return_status := FND_API.G_RET_STS_ERROR;
2745: when FND_API.G_EXC_UNEXPECTED_ERROR then
2746: if p_commit = FND_API.G_TRUE then
2747: rollback to create_schedule_version;
2748: end if;
2749: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 2746: if p_commit = FND_API.G_TRUE then

2742: rollback to create_schedule_version;
2743: end if;
2744: x_return_status := FND_API.G_RET_STS_ERROR;
2745: when FND_API.G_EXC_UNEXPECTED_ERROR then
2746: if p_commit = FND_API.G_TRUE then
2747: rollback to create_schedule_version;
2748: end if;
2749: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2750: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 2749: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

2745: when FND_API.G_EXC_UNEXPECTED_ERROR then
2746: if p_commit = FND_API.G_TRUE then
2747: rollback to create_schedule_version;
2748: end if;
2749: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2750: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
2751: p_procedure_name => 'CREATE_SCHEDULE_VERSION',
2752: p_error_text => SUBSTRB(SQLERRM,1,240));
2753: when OTHERS then

Line 2754: if p_commit = FND_API.G_TRUE then

2750: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
2751: p_procedure_name => 'CREATE_SCHEDULE_VERSION',
2752: p_error_text => SUBSTRB(SQLERRM,1,240));
2753: when OTHERS then
2754: if p_commit = FND_API.G_TRUE then
2755: rollback to create_schedule_version;
2756: end if;
2757: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2758: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 2757: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

2753: when OTHERS then
2754: if p_commit = FND_API.G_TRUE then
2755: rollback to create_schedule_version;
2756: end if;
2757: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2758: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
2759: p_procedure_name => 'CREATE_SCHEDULE_VERSION',
2760: p_error_text => SUBSTRB(SQLERRM,1,240));
2761: raise;

Line 2772: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

2768: -- Pre-reqs : None
2769: -- Return Value : N/A
2770: -- Prameters
2771: -- p_api_version IN NUMBER N Not Null 1.0
2772: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2773: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2774: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2775: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2776: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 2773: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

2769: -- Return Value : N/A
2770: -- Prameters
2771: -- p_api_version IN NUMBER N Not Null 1.0
2772: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2773: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2774: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2775: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2776: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2777: -- p_debug_mode IN VARCHAR2 N Null N

Line 2774: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

2770: -- Prameters
2771: -- p_api_version IN NUMBER N Not Null 1.0
2772: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2773: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2774: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2775: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2776: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2777: -- p_debug_mode IN VARCHAR2 N Null N
2778: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 2775: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

2771: -- p_api_version IN NUMBER N Not Null 1.0
2772: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
2773: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
2774: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
2775: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
2776: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
2777: -- p_debug_mode IN VARCHAR2 N Null N
2778: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
2779: -- p_element_version_id IN NUMBER N Not Null

Line 2810: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

2806: --
2807:
2808: PROCEDURE Update_Schedule_Version(
2809: p_api_version IN NUMBER :=1.0,
2810: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2811: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2812: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2813: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2814: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 2811: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

2807:
2808: PROCEDURE Update_Schedule_Version(
2809: p_api_version IN NUMBER :=1.0,
2810: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2811: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2812: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2813: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2814: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2815: p_debug_mode IN VARCHAR2 :='N',

Line 2812: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

2808: PROCEDURE Update_Schedule_Version(
2809: p_api_version IN NUMBER :=1.0,
2810: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2811: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2812: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2813: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2814: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2815: p_debug_mode IN VARCHAR2 :='N',
2816: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 2813: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

2809: p_api_version IN NUMBER :=1.0,
2810: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
2811: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
2812: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
2813: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
2814: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
2815: p_debug_mode IN VARCHAR2 :='N',
2816: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
2817: p_pev_schedule_id IN NUMBER,

Line 2944: IF (p_commit = FND_API.G_TRUE) THEN

2940: IF (p_debug_mode = 'Y') THEN
2941: pa_debug.debug('PA_TASK_PUB1.update_SCHEDULE_VERSION begin');
2942: END IF;
2943:
2944: IF (p_commit = FND_API.G_TRUE) THEN
2945: savepoint update_schedule_version;
2946: END IF;
2947:
2948: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 2948: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

2944: IF (p_commit = FND_API.G_TRUE) THEN
2945: savepoint update_schedule_version;
2946: END IF;
2947:
2948: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
2949: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2950: END IF;
2951:
2952:

Line 2949: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2945: savepoint update_schedule_version;
2946: END IF;
2947:
2948: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
2949: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2950: END IF;
2951:
2952:
2953: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 2953: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

2949: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2950: END IF;
2951:
2952:
2953: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2954: FND_MSG_PUB.initialize;
2955: END IF;
2956:
2957: -- Added for FP_M changes 3305199

Line 2979: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then

2975: ,x_msg_count => x_msg_count
2976: ,x_msg_data => x_msg_data
2977: );
2978:
2979: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
2980: x_msg_count := FND_MSG_PUB.count_msg;
2981: If x_msg_count = 1 then
2982: pa_interface_utils_pub.get_messages
2983: (p_encoded => FND_API.G_TRUE,

Line 2983: (p_encoded => FND_API.G_TRUE,

2979: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
2980: x_msg_count := FND_MSG_PUB.count_msg;
2981: If x_msg_count = 1 then
2982: pa_interface_utils_pub.get_messages
2983: (p_encoded => FND_API.G_TRUE,
2984: p_msg_index => 1,
2985: p_msg_count => l_msg_count,
2986: p_msg_data => l_msg_data,
2987: p_data => l_data,

Line 2991: raise FND_API.G_EXC_ERROR;

2987: p_data => l_data,
2988: p_msg_index_out => l_msg_index_out);
2989: x_msg_data := l_data;
2990: End If;
2991: raise FND_API.G_EXC_ERROR;
2992: End If;
2993: End If;
2994: -- End of FP_M changes
2995:

Line 3052: raise FND_API.G_EXC_ERROR;

3048: END IF;
3049: IF l_update_task_dates_allowed = 'N' THEN
3050: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3051: p_msg_name => 'PA_PR_PM_NO_CHG_TASK_DATES');
3052: raise FND_API.G_EXC_ERROR;
3053: END IF;
3054: END IF;
3055: END IF;
3056: END IF;

Line 3062: IF( p_validate_only <> FND_API.G_TRUE) THEN

3058: -- end hyau Bug 2852753
3059:
3060:
3061: --Lock row
3062: IF( p_validate_only <> FND_API.G_TRUE) THEN
3063: BEGIN
3064: select 'x' into l_dummy
3065: from PA_PROJ_ELEM_VER_SCHEDULE
3066: where pev_schedule_id = p_pev_schedule_id

Line 3109: RAISE FND_API.G_EXC_ERROR;

3105:
3106: IF l_msg_count > 0 THEN
3107: x_msg_count := l_msg_count;
3108: x_return_status := 'E';
3109: RAISE FND_API.G_EXC_ERROR;
3110: END IF;
3111:
3112:
3113: PA_TASK_PVT1.Update_Schedule_Version(

Line 3174: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

3170: ,x_msg_count => x_msg_count
3171: ,x_msg_data => x_msg_data
3172: );
3173:
3174: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
3175: x_msg_count := FND_MSG_PUB.count_msg;
3176: IF x_msg_count = 1 then
3177: pa_interface_utils_pub.get_messages
3178: (p_encoded => FND_API.G_TRUE,

Line 3178: (p_encoded => FND_API.G_TRUE,

3174: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
3175: x_msg_count := FND_MSG_PUB.count_msg;
3176: IF x_msg_count = 1 then
3177: pa_interface_utils_pub.get_messages
3178: (p_encoded => FND_API.G_TRUE,
3179: p_msg_index => 1,
3180: p_msg_count => l_msg_count,
3181: p_msg_data => l_msg_data,
3182: p_data => l_data,

Line 3186: raise FND_API.G_EXC_ERROR;

3182: p_data => l_data,
3183: p_msg_index_out => l_msg_index_out);
3184: x_msg_data := l_data;
3185: END IF;
3186: raise FND_API.G_EXC_ERROR;
3187: END IF;
3188:
3189: x_return_status := FND_API.G_RET_STS_SUCCESS;
3190:

Line 3189: x_return_status := FND_API.G_RET_STS_SUCCESS;

3185: END IF;
3186: raise FND_API.G_EXC_ERROR;
3187: END IF;
3188:
3189: x_return_status := FND_API.G_RET_STS_SUCCESS;
3190:
3191: IF (p_commit = FND_API.G_TRUE) THEN
3192: COMMIT;
3193: END IF;

Line 3191: IF (p_commit = FND_API.G_TRUE) THEN

3187: END IF;
3188:
3189: x_return_status := FND_API.G_RET_STS_SUCCESS;
3190:
3191: IF (p_commit = FND_API.G_TRUE) THEN
3192: COMMIT;
3193: END IF;
3194:
3195: IF (p_debug_mode = 'Y') THEN

Line 3199: when FND_API.G_EXC_ERROR then

3195: IF (p_debug_mode = 'Y') THEN
3196: pa_debug.debug('PA_TASK_PUB1.UPDATE_SCHEDULE_VERSION END');
3197: END IF;
3198: EXCEPTION
3199: when FND_API.G_EXC_ERROR then
3200: if p_commit = FND_API.G_TRUE then
3201: rollback to update_schedule_version;
3202: end if;
3203: x_return_status := FND_API.G_RET_STS_ERROR;

Line 3200: if p_commit = FND_API.G_TRUE then

3196: pa_debug.debug('PA_TASK_PUB1.UPDATE_SCHEDULE_VERSION END');
3197: END IF;
3198: EXCEPTION
3199: when FND_API.G_EXC_ERROR then
3200: if p_commit = FND_API.G_TRUE then
3201: rollback to update_schedule_version;
3202: end if;
3203: x_return_status := FND_API.G_RET_STS_ERROR;
3204: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 3203: x_return_status := FND_API.G_RET_STS_ERROR;

3199: when FND_API.G_EXC_ERROR then
3200: if p_commit = FND_API.G_TRUE then
3201: rollback to update_schedule_version;
3202: end if;
3203: x_return_status := FND_API.G_RET_STS_ERROR;
3204: when FND_API.G_EXC_UNEXPECTED_ERROR then
3205: if p_commit = FND_API.G_TRUE then
3206: rollback to update_schedule_version;
3207: end if;

Line 3204: when FND_API.G_EXC_UNEXPECTED_ERROR then

3200: if p_commit = FND_API.G_TRUE then
3201: rollback to update_schedule_version;
3202: end if;
3203: x_return_status := FND_API.G_RET_STS_ERROR;
3204: when FND_API.G_EXC_UNEXPECTED_ERROR then
3205: if p_commit = FND_API.G_TRUE then
3206: rollback to update_schedule_version;
3207: end if;
3208: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 3205: if p_commit = FND_API.G_TRUE then

3201: rollback to update_schedule_version;
3202: end if;
3203: x_return_status := FND_API.G_RET_STS_ERROR;
3204: when FND_API.G_EXC_UNEXPECTED_ERROR then
3205: if p_commit = FND_API.G_TRUE then
3206: rollback to update_schedule_version;
3207: end if;
3208: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3209: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 3208: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

3204: when FND_API.G_EXC_UNEXPECTED_ERROR then
3205: if p_commit = FND_API.G_TRUE then
3206: rollback to update_schedule_version;
3207: end if;
3208: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3209: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
3210: p_procedure_name => 'UPDATE_SCHEDULE_VERSION',
3211: p_error_text => SUBSTRB(SQLERRM,1,240));
3212: when OTHERS then

Line 3213: if p_commit = FND_API.G_TRUE then

3209: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
3210: p_procedure_name => 'UPDATE_SCHEDULE_VERSION',
3211: p_error_text => SUBSTRB(SQLERRM,1,240));
3212: when OTHERS then
3213: if p_commit = FND_API.G_TRUE then
3214: rollback to update_schedule_version;
3215: end if;
3216: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3217: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 3216: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

3212: when OTHERS then
3213: if p_commit = FND_API.G_TRUE then
3214: rollback to update_schedule_version;
3215: end if;
3216: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3217: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
3218: p_procedure_name => 'UPDATE_SCHEDULE_VERSION',
3219: p_error_text => SUBSTRB(SQLERRM,1,240));
3220: raise;

Line 3229: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

3225: -- Pre-reqs : None
3226: -- Return Value : N/A
3227: -- Prameters
3228: -- p_api_version IN NUMBER N Not Null 1.0
3229: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
3230: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
3231: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
3232: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
3233: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 3230: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

3226: -- Return Value : N/A
3227: -- Prameters
3228: -- p_api_version IN NUMBER N Not Null 1.0
3229: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
3230: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
3231: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
3232: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
3233: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
3234: -- p_debug_mode IN VARCHAR2 N Null N

Line 3231: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

3227: -- Prameters
3228: -- p_api_version IN NUMBER N Not Null 1.0
3229: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
3230: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
3231: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
3232: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
3233: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
3234: -- p_debug_mode IN VARCHAR2 N Null N
3235: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 3232: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

3228: -- p_api_version IN NUMBER N Not Null 1.0
3229: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
3230: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
3231: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
3232: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
3233: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
3234: -- p_debug_mode IN VARCHAR2 N Null N
3235: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
3236: -- p_src_project_id IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 3266: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

3262: --
3263:
3264: PROCEDURE Copy_Task(
3265: p_api_version IN NUMBER :=1.0,
3266: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
3267: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
3268: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
3269: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
3270: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 3267: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

3263:
3264: PROCEDURE Copy_Task(
3265: p_api_version IN NUMBER :=1.0,
3266: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
3267: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
3268: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
3269: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
3270: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
3271: p_debug_mode IN VARCHAR2 :='N',

Line 3268: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

3264: PROCEDURE Copy_Task(
3265: p_api_version IN NUMBER :=1.0,
3266: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
3267: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
3268: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
3269: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
3270: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
3271: p_debug_mode IN VARCHAR2 :='N',
3272: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 3269: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

3265: p_api_version IN NUMBER :=1.0,
3266: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
3267: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
3268: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
3269: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
3270: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
3271: p_debug_mode IN VARCHAR2 :='N',
3272: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
3273: p_src_project_id IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 3765: IF (p_commit = FND_API.G_TRUE) THEN

3761: IF (p_debug_mode = 'Y') THEN
3762: pa_debug.debug('PA_TASK_PUB1.COPY_TASK begin');
3763: END IF;
3764:
3765: IF (p_commit = FND_API.G_TRUE) THEN
3766: savepoint copy_task;
3767: END IF;
3768:
3769: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 3769: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

3765: IF (p_commit = FND_API.G_TRUE) THEN
3766: savepoint copy_task;
3767: END IF;
3768:
3769: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
3770: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3771: END IF;
3772:
3773: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 3770: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

3766: savepoint copy_task;
3767: END IF;
3768:
3769: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
3770: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3771: END IF;
3772:
3773: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
3774: FND_MSG_PUB.initialize;

Line 3773: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

3769: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
3770: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3771: END IF;
3772:
3773: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
3774: FND_MSG_PUB.initialize;
3775: END IF;
3776:
3777: --bug 4075697 copy_task

Line 3812: raise FND_API.G_EXC_ERROR;

3808:
3809: IF (x_return_status <> 'Y') THEN
3810: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3811: p_msg_name => l_error_msg_code);
3812: raise FND_API.G_EXC_ERROR;
3813: End If;
3814: End If;
3815: */ --moved below
3816:

Line 3864: raise FND_API.G_EXC_ERROR;

3860: END IF;
3861: IF l_add_task_allowed = 'N' THEN
3862: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3863: p_msg_name => 'PA_PR_PM_CANNOT_COPY');
3864: raise FND_API.G_EXC_ERROR;
3865: END IF;
3866: END IF;
3867:
3868: End IF; -- End p_called_from_bulk_Api is N

Line 3897: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3893: x_project_id => l_src_project_id,
3894: x_return_status => l_return_status,
3895: x_error_msg_code => l_error_msg_code);
3896: --dbms_output.put_line('after proj name 2 id conv: '||l_src_project_id);
3897: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3898: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3899: p_msg_name => l_error_msg_code);
3900: END IF;
3901: END IF;

Line 3918: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3914: ,x_return_status => l_return_status
3915: ,x_error_message_code => l_error_msg_code
3916: );
3917: --dbms_output.put_line('after struct name 2 id conv: '||l_src_structure_id);
3918: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3919: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3920: p_msg_name => l_error_msg_code);
3921: END IF;
3922: END IF; --End Name-Id Conversion

Line 3941: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3937: ,x_return_status => l_return_status
3938: ,x_error_message_code => l_error_msg_code
3939: );
3940: --dbms_output.put_line('after struct ver name 2 id conv: '||l_src_structure_version_id);
3941: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3942: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3943: p_msg_name => l_error_msg_code);
3944: END IF;
3945:

Line 3966: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3962: ,x_task_version_id => l_src_task_version_id
3963: ,x_return_status => l_return_status
3964: ,x_error_msg_code => l_error_msg_code
3965: );
3966: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3967: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3968: p_msg_name => l_error_msg_code);
3969: END IF;
3970: END IF; --End Name-Id Conversion

Line 4084: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

4080:
4081: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4082: p_msg_name => 'PA_PS_NOT_ENOUGH_PARAMS' );
4083: x_msg_data := 'COPY TASK : PA_PS_NOT_ENOUGH_PARAMS';
4084: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4085: RAISE FND_API.G_EXC_ERROR;
4086: /*END IF; : 4201927 */
4087: END IF;
4088:

Line 4085: RAISE FND_API.G_EXC_ERROR;

4081: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4082: p_msg_name => 'PA_PS_NOT_ENOUGH_PARAMS' );
4083: x_msg_data := 'COPY TASK : PA_PS_NOT_ENOUGH_PARAMS';
4084: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4085: RAISE FND_API.G_EXC_ERROR;
4086: /*END IF; : 4201927 */
4087: END IF;
4088:
4089: /* 4201927 : Perf Fix : END IF; --move_task_version check. */

Line 4098: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4094: ELSE
4095: l_src_wp_type := l_wp_type;
4096: END IF;
4097:
4098: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4099: x_msg_count := FND_MSG_PUB.count_msg;
4100: IF x_msg_count = 1 then
4101: pa_interface_utils_pub.get_messages
4102: (p_encoded => FND_API.G_TRUE,

Line 4102: (p_encoded => FND_API.G_TRUE,

4098: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4099: x_msg_count := FND_MSG_PUB.count_msg;
4100: IF x_msg_count = 1 then
4101: pa_interface_utils_pub.get_messages
4102: (p_encoded => FND_API.G_TRUE,
4103: p_msg_index => 1,
4104: p_msg_count => l_msg_count,
4105: p_msg_data => l_msg_data,
4106: p_data => l_data,

Line 4110: raise FND_API.G_EXC_ERROR;

4106: p_data => l_data,
4107: p_msg_index_out => l_msg_index_out);
4108: x_msg_data := l_data;
4109: END IF;
4110: raise FND_API.G_EXC_ERROR;
4111: END IF;
4112: --If source task is empty and user not selected copy PA_ENTIRE_VERSION
4113: IF ( l_src_task_version_id IS NULL AND
4114: l_src_structure_version_id IS NOT NULL AND

Line 4121: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

4117: THEN
4118: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4119: p_msg_name => 'PA_PS_WRONG_COPY_OPTION' );
4120: x_msg_data := 'PA_PS_WRONG_COPY_OPTION';
4121: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4122: RAISE FND_API.G_EXC_ERROR;
4123: END IF;
4124:
4125: IF p_copy_option = 'PA_TASK_ONLY' OR p_copy_option = 'PA_TASK_SUBTASK'

Line 4122: RAISE FND_API.G_EXC_ERROR;

4118: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4119: p_msg_name => 'PA_PS_WRONG_COPY_OPTION' );
4120: x_msg_data := 'PA_PS_WRONG_COPY_OPTION';
4121: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4122: RAISE FND_API.G_EXC_ERROR;
4123: END IF;
4124:
4125: IF p_copy_option = 'PA_TASK_ONLY' OR p_copy_option = 'PA_TASK_SUBTASK'
4126: THEN

Line 4178: raise FND_API.G_EXC_ERROR;

4174:
4175: IF (l_return_status <> 'Y') THEN
4176: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4177: p_msg_name => l_error_msg_code);
4178: raise FND_API.G_EXC_ERROR;
4179: END IF;
4180: ELSE
4181: PA_PROJ_ELEMENTS_UTILS.Check_create_subtask_ok(
4182: p_parent_task_ver_id => l_ref_task_version_id

Line 4189: raise FND_API.G_EXC_ERROR;

4185: );
4186: IF (l_return_status <> 'Y') THEN
4187: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4188: p_msg_name => l_error_msg_code);
4189: raise FND_API.G_EXC_ERROR;
4190: END IF;
4191: END IF;
4192: --end task status changes
4193: /* not required in the context of copy_task bcoz when a task is copied, copied as financial if copied under Fin tab and

Line 4211: raise FND_API.G_EXC_ERROR;

4207:
4208: IF (x_return_status <> 'Y') THEN
4209: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4210: p_msg_name => l_error_msg_code);
4211: raise FND_API.G_EXC_ERROR;
4212: End If;
4213: END IF;
4214: End If;
4215: */

Line 4617: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4613: l_task_id := cur_obj_rel_rec.proj_element_id;
4614: END IF;
4615: 4201927*/
4616:
4617: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4618: x_msg_count := FND_MSG_PUB.count_msg;
4619: IF x_msg_count = 1 then
4620: pa_interface_utils_pub.get_messages
4621: (p_encoded => FND_API.G_TRUE,

Line 4621: (p_encoded => FND_API.G_TRUE,

4617: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4618: x_msg_count := FND_MSG_PUB.count_msg;
4619: IF x_msg_count = 1 then
4620: pa_interface_utils_pub.get_messages
4621: (p_encoded => FND_API.G_TRUE,
4622: p_msg_index => 1,
4623: p_msg_count => l_msg_count,
4624: p_msg_data => l_msg_data,
4625: p_data => l_data,

Line 4629: raise FND_API.G_EXC_ERROR;

4625: p_data => l_data,
4626: p_msg_index_out => l_msg_index_out);
4627: x_msg_data := l_data;
4628: END IF;
4629: raise FND_API.G_EXC_ERROR;
4630: END IF;
4631: --end bug 2846700
4632:
4633:

Line 4671: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4667: ,x_msg_count => l_msg_count
4668: ,x_msg_data => l_msg_data
4669: );
4670:
4671: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4672: x_msg_count := FND_MSG_PUB.count_msg;
4673: IF x_msg_count = 1 then
4674: pa_interface_utils_pub.get_messages
4675: (p_encoded => FND_API.G_TRUE,

Line 4675: (p_encoded => FND_API.G_TRUE,

4671: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4672: x_msg_count := FND_MSG_PUB.count_msg;
4673: IF x_msg_count = 1 then
4674: pa_interface_utils_pub.get_messages
4675: (p_encoded => FND_API.G_TRUE,
4676: p_msg_index => 1,
4677: p_msg_count => l_msg_count,
4678: p_msg_data => l_msg_data,
4679: p_data => l_data,

Line 4683: raise FND_API.G_EXC_ERROR;

4679: p_data => l_data,
4680: p_msg_index_out => l_msg_index_out);
4681: x_msg_data := l_data;
4682: END IF;
4683: raise FND_API.G_EXC_ERROR;
4684: END IF;
4685:
4686:
4687: --------------------------------------------- FP_M changes: Begin

Line 4794: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4790: );
4791: -- end xxlu changes
4792: /*END IF; 4201927 : This Copy API not called in Move Task Version Context. */
4793:
4794: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4795: x_msg_count := FND_MSG_PUB.count_msg;
4796: IF x_msg_count = 1 then
4797: pa_interface_utils_pub.get_messages
4798: (p_encoded => FND_API.G_TRUE,

Line 4798: (p_encoded => FND_API.G_TRUE,

4794: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4795: x_msg_count := FND_MSG_PUB.count_msg;
4796: IF x_msg_count = 1 then
4797: pa_interface_utils_pub.get_messages
4798: (p_encoded => FND_API.G_TRUE,
4799: p_msg_index => 1,
4800: p_msg_count => l_msg_count,
4801: p_msg_data => l_msg_data,
4802: p_data => l_data,

Line 4806: raise FND_API.G_EXC_ERROR;

4802: p_data => l_data,
4803: p_msg_index_out => l_msg_index_out);
4804: x_msg_data := l_data;
4805: END IF;
4806: raise FND_API.G_EXC_ERROR;
4807: END IF;
4808: END IF;
4809: CLOSE cur_struc_type;
4810:

Line 4825: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4821: X_Msg_Count => X_Msg_Count,
4822: X_Msg_Data => X_Msg_Data
4823: );
4824:
4825: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4826: RAISE FND_API.G_EXC_ERROR;
4827: END IF;
4828:
4829: PA_RELATIONSHIP_PVT.Copy_Inter_Project_Dependency (

Line 4826: RAISE FND_API.G_EXC_ERROR;

4822: X_Msg_Data => X_Msg_Data
4823: );
4824:
4825: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4826: RAISE FND_API.G_EXC_ERROR;
4827: END IF;
4828:
4829: PA_RELATIONSHIP_PVT.Copy_Inter_Project_Dependency (
4830: P_Source_Ver_Tbl => l_Old_Task_Versions_Tab,

Line 4836: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4832: X_Return_Status => X_Return_Status,
4833: X_Msg_Count => X_Msg_Count,
4834: X_Msg_Data => X_Msg_Data
4835: );
4836: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4837: RAISE FND_API.G_EXC_ERROR;
4838: END IF;
4839:
4840: End If;

Line 4837: RAISE FND_API.G_EXC_ERROR;

4833: X_Msg_Count => X_Msg_Count,
4834: X_Msg_Data => X_Msg_Data
4835: );
4836: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4837: RAISE FND_API.G_EXC_ERROR;
4838: END IF;
4839:
4840: End If;
4841: -- End of FP_M changes

Line 4848: x_return_status := FND_API.G_RET_STS_ERROR;

4844: IF (NOT l_src_tasks_found AND p_copy_option = 'PA_ENTIRE_VERSION')THEN
4845: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4846: p_msg_name => 'PA_CANT_COPY_EMPTY_STRUCT_VER' );
4847: x_msg_data := 'PA_CANT_COPY_EMPTY_STRUCT_VER';
4848: x_return_status := FND_API.G_RET_STS_ERROR;
4849: RAISE FND_API.G_EXC_ERROR;
4850: END IF;
4851:
4852: /* Bug 2623999 coomnted out the code below. It is redundant and causing issues */

Line 4849: RAISE FND_API.G_EXC_ERROR;

4845: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4846: p_msg_name => 'PA_CANT_COPY_EMPTY_STRUCT_VER' );
4847: x_msg_data := 'PA_CANT_COPY_EMPTY_STRUCT_VER';
4848: x_return_status := FND_API.G_RET_STS_ERROR;
4849: RAISE FND_API.G_EXC_ERROR;
4850: END IF;
4851:
4852: /* Bug 2623999 coomnted out the code below. It is redundant and causing issues */
4853: /*

Line 4921: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

4917: ,x_return_status => l_return_status
4918: ,x_msg_count => l_msg_count
4919: ,x_msg_data => l_msg_data );
4920:
4921: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4922: x_msg_count := FND_MSG_PUB.count_msg;
4923: IF x_msg_count = 1 then
4924: pa_interface_utils_pub.get_messages
4925: (p_encoded => FND_API.G_TRUE,

Line 4925: (p_encoded => FND_API.G_TRUE,

4921: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
4922: x_msg_count := FND_MSG_PUB.count_msg;
4923: IF x_msg_count = 1 then
4924: pa_interface_utils_pub.get_messages
4925: (p_encoded => FND_API.G_TRUE,
4926: p_msg_index => 1,
4927: p_msg_count => l_msg_count,
4928: p_msg_data => l_msg_data,
4929: p_data => l_data,

Line 4933: raise FND_API.G_EXC_ERROR;

4929: p_data => l_data,
4930: p_msg_index_out => l_msg_index_out);
4931: x_msg_data := l_data;
4932: END IF;
4933: raise FND_API.G_EXC_ERROR;
4934: END IF;
4935: END IF;
4936: END IF;
4937: CLOSE cur_struc_type2;

Line 4945: p_commit => FND_API.G_FALSE,

4941: /*IF PA_PROJECT_STRUCTURE_UTILS.GET_STRUC_TYPE_FOR_VERSION(p_dest_structure_version_id, 'WORKPLAN') = 'Y' then
4942: */
4943: IF l_wp_type = 'Y' then
4944: PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup_Unlimited(
4945: p_commit => FND_API.G_FALSE,
4946: p_element_versions => l_tasks_ver_ids,
4947: x_return_status => l_return_status,
4948: x_msg_count => l_msg_count,
4949: x_msg_data => l_msg_data);

Line 4951: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

4947: x_return_status => l_return_status,
4948: x_msg_count => l_msg_count,
4949: x_msg_data => l_msg_data);
4950:
4951: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
4952: x_msg_count := FND_MSG_PUB.count_msg;
4953: if x_msg_count = 1 then
4954: pa_interface_utils_pub.get_messages
4955: (p_encoded => FND_API.G_TRUE,

Line 4955: (p_encoded => FND_API.G_TRUE,

4951: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
4952: x_msg_count := FND_MSG_PUB.count_msg;
4953: if x_msg_count = 1 then
4954: pa_interface_utils_pub.get_messages
4955: (p_encoded => FND_API.G_TRUE,
4956: p_msg_index => 1,
4957: p_msg_count => l_msg_count,
4958: p_msg_data => l_msg_data,
4959: p_data => l_data,

Line 4963: raise FND_API.G_EXC_ERROR;

4959: p_data => l_data,
4960: p_msg_index_out => l_msg_index_out);
4961: x_msg_data := l_data;
4962: end if;
4963: raise FND_API.G_EXC_ERROR;
4964: end if;
4965:
4966: --hsiu added for task status
4967: --if versioning is off, rollup.

Line 4981: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

4977: ,x_msg_count => l_msg_count
4978: ,x_msg_data => l_msg_data
4979: );
4980:
4981: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
4982: x_msg_count := FND_MSG_PUB.count_msg;
4983: if x_msg_count = 1 then
4984: pa_interface_utils_pub.get_messages
4985: (p_encoded => FND_API.G_TRUE,

Line 4985: (p_encoded => FND_API.G_TRUE,

4981: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
4982: x_msg_count := FND_MSG_PUB.count_msg;
4983: if x_msg_count = 1 then
4984: pa_interface_utils_pub.get_messages
4985: (p_encoded => FND_API.G_TRUE,
4986: p_msg_index => 1,
4987: p_msg_count => l_msg_count,
4988: p_msg_data => l_msg_data,
4989: p_data => l_data,

Line 4993: raise FND_API.G_EXC_ERROR;

4989: p_data => l_data,
4990: p_msg_index_out => l_msg_index_out);
4991: x_msg_data := l_data;
4992: end if;
4993: raise FND_API.G_EXC_ERROR;
4994: end if;
4995:
4996: END IF;
4997:

Line 5019: (p_validate_only => FND_API.G_FALSE

5015: 4201927 */
5016: --3305199: deliverable changes
5017: IF (p_cp_deliverable_asso_flag = 'Y' AND l_wp_type = 'Y') THEN
5018: PA_DELIVERABLE_PUB.COPY_ASSOCIATIONS
5019: (p_validate_only => FND_API.G_FALSE
5020: ,p_src_task_versions_tab => l_Old_Task_Versions_Tab
5021: ,p_dest_task_versions_tab => l_New_Task_Versions_Tab
5022: ,x_return_status => l_return_status
5023: ,x_msg_count => l_msg_count

Line 5026: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

5022: ,x_return_status => l_return_status
5023: ,x_msg_count => l_msg_count
5024: ,x_msg_data => l_msg_data);
5025:
5026: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5027: x_msg_count := FND_MSG_PUB.count_msg;
5028: if x_msg_count = 1 then
5029: pa_interface_utils_pub.get_messages
5030: (p_encoded => FND_API.G_TRUE,

Line 5030: (p_encoded => FND_API.G_TRUE,

5026: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5027: x_msg_count := FND_MSG_PUB.count_msg;
5028: if x_msg_count = 1 then
5029: pa_interface_utils_pub.get_messages
5030: (p_encoded => FND_API.G_TRUE,
5031: p_msg_index => 1,
5032: p_msg_count => l_msg_count,
5033: p_msg_data => l_msg_data,
5034: p_data => l_data,

Line 5038: raise FND_API.G_EXC_ERROR;

5034: p_data => l_data,
5035: p_msg_index_out => l_msg_index_out);
5036: x_msg_data := l_data;
5037: end if;
5038: raise FND_API.G_EXC_ERROR;
5039: end if;
5040: END IF;
5041: --3305199: end deliverable changes
5042:

Line 5086: RAISE FND_API.G_EXC_ERROR;

5082: WHEN OTHERS THEN
5083: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
5084: p_procedure_name => 'COPY_TASK',
5085: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.copy_planning_transactions:'||SQLERRM,1,240));
5086: RAISE FND_API.G_EXC_ERROR;
5087: END;
5088:
5089:
5090: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

Line 5090: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

5086: RAISE FND_API.G_EXC_ERROR;
5087: END;
5088:
5089:
5090: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5091: x_msg_count := FND_MSG_PUB.count_msg;
5092: if x_msg_count = 1 then
5093: pa_interface_utils_pub.get_messages
5094: (p_encoded => FND_API.G_TRUE,

Line 5094: (p_encoded => FND_API.G_TRUE,

5090: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5091: x_msg_count := FND_MSG_PUB.count_msg;
5092: if x_msg_count = 1 then
5093: pa_interface_utils_pub.get_messages
5094: (p_encoded => FND_API.G_TRUE,
5095: p_msg_index => 1,
5096: p_msg_count => l_msg_count,
5097: p_msg_data => l_msg_data,
5098: p_data => l_data,

Line 5102: raise FND_API.G_EXC_ERROR;

5098: p_data => l_data,
5099: p_msg_index_out => l_msg_index_out);
5100: x_msg_data := l_data;
5101: end if;
5102: raise FND_API.G_EXC_ERROR;
5103: end if;
5104: END IF;
5105:
5106: -- END OF BLOCK MOVED FOR P1 BUG 4210796

Line 5153: RAISE FND_API.G_EXC_ERROR;

5149: WHEN OTHERS THEN
5150: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
5151: p_procedure_name => 'COPY_TASK',
5152: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
5153: RAISE FND_API.G_EXC_ERROR;
5154: END;
5155:
5156: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5157: x_msg_count := FND_MSG_PUB.count_msg;

Line 5156: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

5152: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
5153: RAISE FND_API.G_EXC_ERROR;
5154: END;
5155:
5156: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5157: x_msg_count := FND_MSG_PUB.count_msg;
5158: if x_msg_count = 1 then
5159: pa_interface_utils_pub.get_messages
5160: (p_encoded => FND_API.G_TRUE,

Line 5160: (p_encoded => FND_API.G_TRUE,

5156: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5157: x_msg_count := FND_MSG_PUB.count_msg;
5158: if x_msg_count = 1 then
5159: pa_interface_utils_pub.get_messages
5160: (p_encoded => FND_API.G_TRUE,
5161: p_msg_index => 1,
5162: p_msg_count => l_msg_count,
5163: p_msg_data => l_msg_data,
5164: p_data => l_data,

Line 5168: raise FND_API.G_EXC_ERROR;

5164: p_data => l_data,
5165: p_msg_index_out => l_msg_index_out);
5166: x_msg_data := l_data;
5167: end if;
5168: raise FND_API.G_EXC_ERROR;
5169: end if;
5170: END IF;
5171: END IF;
5172:

Line 5217: RAISE FND_API.G_EXC_ERROR;

5213: WHEN OTHERS THEN
5214: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
5215: p_procedure_name => 'COPY_TASK',
5216: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.copy_planning_transactions:'||SQLERRM,1,240));
5217: RAISE FND_API.G_EXC_ERROR;
5218: END;
5219:
5220:
5221: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

Line 5221: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

5217: RAISE FND_API.G_EXC_ERROR;
5218: END;
5219:
5220:
5221: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5222: x_msg_count := FND_MSG_PUB.count_msg;
5223: if x_msg_count = 1 then
5224: pa_interface_utils_pub.get_messages
5225: (p_encoded => FND_API.G_TRUE,

Line 5225: (p_encoded => FND_API.G_TRUE,

5221: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5222: x_msg_count := FND_MSG_PUB.count_msg;
5223: if x_msg_count = 1 then
5224: pa_interface_utils_pub.get_messages
5225: (p_encoded => FND_API.G_TRUE,
5226: p_msg_index => 1,
5227: p_msg_count => l_msg_count,
5228: p_msg_data => l_msg_data,
5229: p_data => l_data,

Line 5233: raise FND_API.G_EXC_ERROR;

5229: p_data => l_data,
5230: p_msg_index_out => l_msg_index_out);
5231: x_msg_data := l_data;
5232: end if;
5233: raise FND_API.G_EXC_ERROR;
5234: end if;
5235: END IF;
5236:
5237: END OF BLOCK MOVED FOR P1 BUG 4210796

Line 5256: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

5252: ,x_return_status => l_return_status
5253: ,x_msg_count => l_msg_count
5254: ,x_msg_data => l_msg_data);
5255:
5256: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5257: x_msg_count := FND_MSG_PUB.count_msg;
5258: if x_msg_count = 1 then
5259: pa_interface_utils_pub.get_messages
5260: (p_encoded => FND_API.G_TRUE,

Line 5260: (p_encoded => FND_API.G_TRUE,

5256: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
5257: x_msg_count := FND_MSG_PUB.count_msg;
5258: if x_msg_count = 1 then
5259: pa_interface_utils_pub.get_messages
5260: (p_encoded => FND_API.G_TRUE,
5261: p_msg_index => 1,
5262: p_msg_count => l_msg_count,
5263: p_msg_data => l_msg_data,
5264: p_data => l_data,

Line 5268: raise FND_API.G_EXC_ERROR;

5264: p_data => l_data,
5265: p_msg_index_out => l_msg_index_out);
5266: x_msg_data := l_data;
5267: end if;
5268: raise FND_API.G_EXC_ERROR;
5269: end if;
5270: --END IF;
5271: --3035902: process update flag changes
5272:

Line 5277: x_return_status := FND_API.G_RET_STS_SUCCESS;

5273: --bug 4149392
5274: PA_TASK_PUB1.G_CALL_PJI_ROLLUP := NULL;
5275: --end bug 4149392
5276:
5277: x_return_status := FND_API.G_RET_STS_SUCCESS;
5278:
5279: IF (p_commit = FND_API.G_TRUE) THEN
5280: COMMIT;
5281: END IF;

Line 5279: IF (p_commit = FND_API.G_TRUE) THEN

5275: --end bug 4149392
5276:
5277: x_return_status := FND_API.G_RET_STS_SUCCESS;
5278:
5279: IF (p_commit = FND_API.G_TRUE) THEN
5280: COMMIT;
5281: END IF;
5282:
5283: IF (p_debug_mode = 'Y') THEN

Line 5287: when FND_API.G_EXC_ERROR then

5283: IF (p_debug_mode = 'Y') THEN
5284: pa_debug.debug('PA_TASK_PUB1.COPY_TASK END');
5285: END IF;
5286: EXCEPTION
5287: when FND_API.G_EXC_ERROR then
5288: if p_commit = FND_API.G_TRUE then
5289: rollback to Copy_Task;
5290: end if;
5291: x_return_status := FND_API.G_RET_STS_ERROR;

Line 5288: if p_commit = FND_API.G_TRUE then

5284: pa_debug.debug('PA_TASK_PUB1.COPY_TASK END');
5285: END IF;
5286: EXCEPTION
5287: when FND_API.G_EXC_ERROR then
5288: if p_commit = FND_API.G_TRUE then
5289: rollback to Copy_Task;
5290: end if;
5291: x_return_status := FND_API.G_RET_STS_ERROR;
5292: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 5291: x_return_status := FND_API.G_RET_STS_ERROR;

5287: when FND_API.G_EXC_ERROR then
5288: if p_commit = FND_API.G_TRUE then
5289: rollback to Copy_Task;
5290: end if;
5291: x_return_status := FND_API.G_RET_STS_ERROR;
5292: when FND_API.G_EXC_UNEXPECTED_ERROR then
5293: if p_commit = FND_API.G_TRUE then
5294: rollback to Copy_Task;
5295: end if;

Line 5292: when FND_API.G_EXC_UNEXPECTED_ERROR then

5288: if p_commit = FND_API.G_TRUE then
5289: rollback to Copy_Task;
5290: end if;
5291: x_return_status := FND_API.G_RET_STS_ERROR;
5292: when FND_API.G_EXC_UNEXPECTED_ERROR then
5293: if p_commit = FND_API.G_TRUE then
5294: rollback to Copy_Task;
5295: end if;
5296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 5293: if p_commit = FND_API.G_TRUE then

5289: rollback to Copy_Task;
5290: end if;
5291: x_return_status := FND_API.G_RET_STS_ERROR;
5292: when FND_API.G_EXC_UNEXPECTED_ERROR then
5293: if p_commit = FND_API.G_TRUE then
5294: rollback to Copy_Task;
5295: end if;
5296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5297: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 5296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

5292: when FND_API.G_EXC_UNEXPECTED_ERROR then
5293: if p_commit = FND_API.G_TRUE then
5294: rollback to Copy_Task;
5295: end if;
5296: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5297: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
5298: p_procedure_name => 'COPY_TASK',
5299: p_error_text => SUBSTRB(SQLERRM,1,240));
5300: when OTHERS then

Line 5301: if p_commit = FND_API.G_TRUE then

5297: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
5298: p_procedure_name => 'COPY_TASK',
5299: p_error_text => SUBSTRB(SQLERRM,1,240));
5300: when OTHERS then
5301: if p_commit = FND_API.G_TRUE then
5302: rollback to Copy_Task;
5303: end if;
5304: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5305: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 5304: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

5300: when OTHERS then
5301: if p_commit = FND_API.G_TRUE then
5302: rollback to Copy_Task;
5303: end if;
5304: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5305: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
5306: p_procedure_name => 'COPY_TASK',
5307: p_error_text => SUBSTRB(SQLERRM,1,240));
5308: raise;

Line 5317: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

5313: -- Pre-reqs : None
5314: -- Return Value : N/A
5315: -- Prameters
5316: -- p_api_version IN NUMBER N Not Null 1.0
5317: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
5318: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
5319: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
5320: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
5321: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 5318: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

5314: -- Return Value : N/A
5315: -- Prameters
5316: -- p_api_version IN NUMBER N Not Null 1.0
5317: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
5318: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
5319: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
5320: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
5321: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
5322: -- p_debug_mode IN VARCHAR2 N Null N

Line 5319: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

5315: -- Prameters
5316: -- p_api_version IN NUMBER N Not Null 1.0
5317: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
5318: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
5319: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
5320: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
5321: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
5322: -- p_debug_mode IN VARCHAR2 N Null N
5323: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 5320: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

5316: -- p_api_version IN NUMBER N Not Null 1.0
5317: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
5318: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
5319: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
5320: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
5321: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
5322: -- p_debug_mode IN VARCHAR2 N Null N
5323: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
5324: -- p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 5342: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,

5338: --
5339:
5340: PROCEDURE MOVE_TASK_VERSION (
5341: p_api_version IN NUMBER := 1.0,
5342: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
5343: p_commit IN VARCHAR2 := FND_API.G_FALSE,
5344: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
5345: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
5346: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',

Line 5343: p_commit IN VARCHAR2 := FND_API.G_FALSE,

5339:
5340: PROCEDURE MOVE_TASK_VERSION (
5341: p_api_version IN NUMBER := 1.0,
5342: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
5343: p_commit IN VARCHAR2 := FND_API.G_FALSE,
5344: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
5345: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
5346: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',
5347: p_debug_mode IN VARCHAR2 := 'N',

Line 5344: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,

5340: PROCEDURE MOVE_TASK_VERSION (
5341: p_api_version IN NUMBER := 1.0,
5342: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
5343: p_commit IN VARCHAR2 := FND_API.G_FALSE,
5344: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
5345: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
5346: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',
5347: p_debug_mode IN VARCHAR2 := 'N',
5348: p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 5345: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,

5341: p_api_version IN NUMBER := 1.0,
5342: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
5343: p_commit IN VARCHAR2 := FND_API.G_FALSE,
5344: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
5345: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
5346: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',
5347: p_debug_mode IN VARCHAR2 := 'N',
5348: p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
5349: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 5601: IF (p_commit = FND_API.G_TRUE) THEN

5597: IF (p_debug_mode = 'Y') THEN
5598: pa_debug.debug('PA_TASK_PUB1.MOVE_TASK_VERSION begin');
5599: END IF;
5600:
5601: IF (p_commit = FND_API.G_TRUE) THEN
5602: savepoint move_task_version;
5603: END IF;
5604:
5605: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 5605: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

5601: IF (p_commit = FND_API.G_TRUE) THEN
5602: savepoint move_task_version;
5603: END IF;
5604:
5605: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
5606: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5607: END IF;
5608:
5609: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 5606: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

5602: savepoint move_task_version;
5603: END IF;
5604:
5605: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
5606: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5607: END IF;
5608:
5609: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
5610: FND_MSG_PUB.initialize;

Line 5609: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

5605: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
5606: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5607: END IF;
5608:
5609: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
5610: FND_MSG_PUB.initialize;
5611: END IF;
5612:
5613: --bug 4075697

Line 5658: raise FND_API.G_EXC_ERROR;

5654: IF l_child_ver_id = p_ref_task_version_id THEN
5655: CLOSE get_child_ver_id;
5656: --add error PA_TSK_MV_BELOW_SELF
5657: PA_UTILS.ADD_MESSAGE('PA', 'PA_TSK_MV_BELOW_SELF');
5658: raise FND_API.G_EXC_ERROR;
5659: END IF;
5660: END LOOP;
5661: CLOSE get_child_ver_id;
5662: --end bug 3911698

Line 5680: raise FND_API.G_EXC_ERROR;

5676: --Replaced the return status value to 'S' from 'Y'
5677: IF (x_return_status <> 'S') THEN
5678: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5679: p_msg_name => l_error_msg_code);
5680: raise FND_API.G_EXC_ERROR;
5681: End If;
5682: End If;
5683: -- End of FP_M changes
5684:

Line 5727: raise FND_API.G_EXC_ERROR;

5723: END IF;
5724: IF l_update_parent_task_allowed = 'N' THEN
5725: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5726: p_msg_name => 'PA_PR_PM_NO_MOVE_TASK');
5727: raise FND_API.G_EXC_ERROR;
5728: END IF;
5729: END IF;
5730: END IF;
5731: END IF ; -- Called From Bulk API is 'N'

Line 5756: (p_encoded => FND_API.G_TRUE,

5752: if l_msg_count > 0 then
5753: x_msg_count := l_msg_count;
5754: if x_msg_count = 1 then
5755: pa_interface_utils_pub.get_messages
5756: (p_encoded => FND_API.G_TRUE,
5757: p_msg_index => 1,
5758: p_msg_count => l_msg_count,
5759: p_msg_data => l_msg_data,
5760: p_data => l_data,

Line 5764: raise FND_API.G_EXC_ERROR;

5760: p_data => l_data,
5761: p_msg_index_out => l_msg_index_out);
5762: x_msg_data := l_data;
5763: end if;
5764: raise FND_API.G_EXC_ERROR;
5765: end if;
5766: END IF;
5767: -- end hyau. Lifecycle Phase validation Changes.
5768:

Line 5822: raise FND_API.G_EXC_ERROR;

5818: );
5819: IF (l_return_status <> 'Y') THEN
5820: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5821: p_msg_name => l_error_msg_code);
5822: raise FND_API.G_EXC_ERROR;
5823: END IF;
5824:
5825: --check if ok to create subtask
5826: IF (p_peer_or_sub = 'PEER') THEN

Line 5845: raise FND_API.G_EXC_ERROR;

5841:
5842: IF (NVL(l_new_par_ver_id, -99) <> NVL (l_old_par_ver_id, -99)) THEN
5843: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5844: p_msg_name => 'PA_CANT_CHANGE_PARENT');
5845: raise FND_API.G_EXC_ERROR;
5846: END IF;
5847: END IF;
5848: --end bug 3069306
5849:

Line 5859: raise FND_API.G_EXC_ERROR;

5855:
5856: IF (l_return_status <> 'Y') THEN
5857: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5858: p_msg_name => l_error_msg_code);
5859: raise FND_API.G_EXC_ERROR;
5860: END IF;
5861:
5862: --bug 4099488
5863: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(l_parent_ver_id, p_task_version_id) = 'N' THEN

Line 5866: raise FND_API.G_EXC_ERROR;

5862: --bug 4099488
5863: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(l_parent_ver_id, p_task_version_id) = 'N' THEN
5864: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5865: p_msg_name => 'PA_INV_MOV_TSK_DEP_ERR');
5866: raise FND_API.G_EXC_ERROR;
5867: END IF;
5868: --end bug 4099488
5869: ELSE
5870: --bug 3069306

Line 5884: raise FND_API.G_EXC_ERROR;

5880:
5881: IF (NVL(l_new_par_ver_id, -99) <> NVL (l_old_par_ver_id, -99)) THEN
5882: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5883: p_msg_name => 'PA_CANT_CHANGE_PARENT');
5884: raise FND_API.G_EXC_ERROR;
5885: END IF;
5886: END IF;
5887: --end bug 3069306
5888:

Line 5898: raise FND_API.G_EXC_ERROR;

5894:
5895: IF (l_return_status <> 'Y') THEN
5896: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5897: p_msg_name => l_error_msg_code);
5898: raise FND_API.G_EXC_ERROR;
5899: END IF;
5900:
5901: --bug 4099488
5902: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(p_ref_task_version_id, p_task_version_id) = 'N' THEN

Line 5905: raise FND_API.G_EXC_ERROR;

5901: --bug 4099488
5902: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(p_ref_task_version_id, p_task_version_id) = 'N' THEN
5903: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5904: p_msg_name => 'PA_INV_MOV_TSK_DEP_ERR');
5905: raise FND_API.G_EXC_ERROR;
5906: END IF;
5907: --end bug 4099488
5908: END IF;
5909:

Line 5931: RAISE FND_API.G_EXC_ERROR;

5927: --
5928: IF PA_PROJ_ELEMENTS_UTILS.check_deliv_in_hierarchy(p_task_version_id,l_ref_parent_task_ver_id) = 'Y' THEN
5929: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
5930: p_msg_name => 'PA_PS_CHK_DELIV_UPDATE');
5931: RAISE FND_API.G_EXC_ERROR;
5932: END IF;
5933: --
5934: PA_TASK_PUB1.Update_Task_Version
5935: ( p_validate_only => FND_API.G_FALSE,

Line 5935: ( p_validate_only => FND_API.G_FALSE,

5931: RAISE FND_API.G_EXC_ERROR;
5932: END IF;
5933: --
5934: PA_TASK_PUB1.Update_Task_Version
5935: ( p_validate_only => FND_API.G_FALSE,
5936: p_ref_task_version_id => p_ref_task_version_id,
5937: p_peer_or_sub => p_peer_or_sub,
5938: p_task_version_id => p_task_version_id,
5939: p_record_version_number => p_record_version_number,

Line 5949: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

5945: x_msg_count := FND_MSG_PUB.count_msg;
5946:
5947: --dbms_output.put_line( 'Count '|| x_msg_count );
5948:
5949: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
5950: x_msg_count := FND_MSG_PUB.count_msg;
5951: IF x_msg_count = 1 then
5952: pa_interface_utils_pub.get_messages
5953: (p_encoded => FND_API.G_TRUE,

Line 5953: (p_encoded => FND_API.G_TRUE,

5949: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
5950: x_msg_count := FND_MSG_PUB.count_msg;
5951: IF x_msg_count = 1 then
5952: pa_interface_utils_pub.get_messages
5953: (p_encoded => FND_API.G_TRUE,
5954: p_msg_index => 1,
5955: p_msg_count => l_msg_count,
5956: p_msg_data => l_msg_data,
5957: p_data => l_data,

Line 5961: raise FND_API.G_EXC_ERROR;

5957: p_data => l_data,
5958: p_msg_index_out => l_msg_index_out);
5959: x_msg_data := l_data;
5960: END IF;
5961: raise FND_API.G_EXC_ERROR;
5962: END IF;
5963:
5964:
5965: /* SELECT proj_element_id, project_id INTO l_structure_id, l_project_id

Line 6074: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

6070:
6071: --dbms_output.put_line( 'After move task old '|| x_msg_count );
6072:
6073:
6074: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6075: x_msg_count := FND_MSG_PUB.count_msg;
6076: IF x_msg_count = 1 then
6077: pa_interface_utils_pub.get_messages
6078: (p_encoded => FND_API.G_TRUE,

Line 6078: (p_encoded => FND_API.G_TRUE,

6074: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6075: x_msg_count := FND_MSG_PUB.count_msg;
6076: IF x_msg_count = 1 then
6077: pa_interface_utils_pub.get_messages
6078: (p_encoded => FND_API.G_TRUE,
6079: p_msg_index => 1,
6080: p_msg_count => l_msg_count,
6081: p_msg_data => l_msg_data,
6082: p_data => l_data,

Line 6086: raise FND_API.G_EXC_ERROR;

6082: p_data => l_data,
6083: p_msg_index_out => l_msg_index_out);
6084: x_msg_data := l_data;
6085: END IF;
6086: raise FND_API.G_EXC_ERROR;
6087: END IF;
6088:
6089: -- merged from 85
6090: --Bug 2947492 ( Move )

Line 6103: raise FND_API.G_EXC_ERROR;

6099: IF NVL( l_top_task_id, -99 ) <> NVL( l_old_top_task_id, -99 )
6100: THEN
6101: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6102: p_msg_name => 'PA_CANT_CHANGE_PARENT');
6103: raise FND_API.G_EXC_ERROR;
6104: END IF;
6105: --End bug 2967204
6106:
6107: /*

Line 6122: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

6118: ,x_msg_count => l_msg_count
6119: ,x_msg_data => l_msg_data
6120: );
6121:
6122: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6123: x_msg_count := FND_MSG_PUB.count_msg;
6124: IF x_msg_count = 1 then
6125: pa_interface_utils_pub.get_messages
6126: (p_encoded => FND_API.G_TRUE,

Line 6126: (p_encoded => FND_API.G_TRUE,

6122: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6123: x_msg_count := FND_MSG_PUB.count_msg;
6124: IF x_msg_count = 1 then
6125: pa_interface_utils_pub.get_messages
6126: (p_encoded => FND_API.G_TRUE,
6127: p_msg_index => 1,
6128: p_msg_count => l_msg_count,
6129: p_msg_data => l_msg_data,
6130: p_data => l_data,

Line 6134: raise FND_API.G_EXC_ERROR;

6130: p_data => l_data,
6131: p_msg_index_out => l_msg_index_out);
6132: x_msg_data := l_data;
6133: END IF;
6134: raise FND_API.G_EXC_ERROR;
6135: END IF;
6136: */ --commenting out, please refer mails from venkatesh dates 22 jan 04
6137:
6138: /* Commenting out the call to MAINTAIN_PLANNABLE_TASKS for bug 3010538

Line 6153: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

6149: , x_msg_data => l_msg_data
6150: , x_msg_count => l_msg_count
6151: );
6152:
6153: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6154: x_msg_count := FND_MSG_PUB.count_msg;
6155: IF x_msg_count = 1 then
6156: pa_interface_utils_pub.get_messages
6157: (p_encoded => FND_API.G_TRUE,

Line 6157: (p_encoded => FND_API.G_TRUE,

6153: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6154: x_msg_count := FND_MSG_PUB.count_msg;
6155: IF x_msg_count = 1 then
6156: pa_interface_utils_pub.get_messages
6157: (p_encoded => FND_API.G_TRUE,
6158: p_msg_index => 1,
6159: p_msg_count => l_msg_count,
6160: p_msg_data => l_msg_data,
6161: p_data => l_data,

Line 6165: raise FND_API.G_EXC_ERROR;

6161: p_data => l_data,
6162: p_msg_index_out => l_msg_index_out);
6163: x_msg_data := l_data;
6164: END IF;
6165: raise FND_API.G_EXC_ERROR;
6166: END IF;
6167: bug 3010538 */
6168:
6169: --End Bug 2947492 ( Move )

Line 6233: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6229: ,x_return_status => l_return_status
6230: ,x_msg_count => l_msg_count
6231: ,x_msg_data => l_msg_data);
6232:
6233: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6234: x_msg_count := FND_MSG_PUB.count_msg;
6235: if x_msg_count = 1 then
6236: pa_interface_utils_pub.get_messages
6237: (p_encoded => FND_API.G_TRUE,

Line 6237: (p_encoded => FND_API.G_TRUE,

6233: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6234: x_msg_count := FND_MSG_PUB.count_msg;
6235: if x_msg_count = 1 then
6236: pa_interface_utils_pub.get_messages
6237: (p_encoded => FND_API.G_TRUE,
6238: p_msg_index => 1,
6239: p_msg_count => l_msg_count,
6240: p_msg_data => l_msg_data,
6241: p_data => l_data,

Line 6245: raise FND_API.G_EXC_ERROR;

6241: p_data => l_data,
6242: p_msg_index_out => l_msg_index_out);
6243: x_msg_data := l_data;
6244: end if;
6245: raise FND_API.G_EXC_ERROR;
6246: end if;
6247: --3035902: end process update flag changes
6248: --END IF;
6249:

Line 6264: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6260: ,x_return_status => l_return_status
6261: ,x_msg_count => l_msg_count
6262: ,x_msg_data => l_msg_data );
6263:
6264: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6265: x_msg_count := FND_MSG_PUB.count_msg;
6266: if x_msg_count = 1 then
6267: pa_interface_utils_pub.get_messages
6268: (p_encoded => FND_API.G_TRUE,

Line 6268: (p_encoded => FND_API.G_TRUE,

6264: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6265: x_msg_count := FND_MSG_PUB.count_msg;
6266: if x_msg_count = 1 then
6267: pa_interface_utils_pub.get_messages
6268: (p_encoded => FND_API.G_TRUE,
6269: p_msg_index => 1,
6270: p_msg_count => l_msg_count,
6271: p_msg_data => l_msg_data,
6272: p_data => l_data,

Line 6276: raise FND_API.G_EXC_ERROR;

6272: p_data => l_data,
6273: p_msg_index_out => l_msg_index_out);
6274: x_msg_data := l_data;
6275: end if;
6276: raise FND_API.G_EXC_ERROR;
6277: end if;
6278: END IF;
6279: END IF;
6280:

Line 6300: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then

6296: ,x_msg_count => x_msg_count
6297: ,x_msg_data => x_msg_data
6298: );
6299:
6300: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
6301: x_msg_count := FND_MSG_PUB.count_msg;
6302: If x_msg_count = 1 then
6303: pa_interface_utils_pub.get_messages
6304: (p_encoded => FND_API.G_TRUE,

Line 6304: (p_encoded => FND_API.G_TRUE,

6300: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
6301: x_msg_count := FND_MSG_PUB.count_msg;
6302: If x_msg_count = 1 then
6303: pa_interface_utils_pub.get_messages
6304: (p_encoded => FND_API.G_TRUE,
6305: p_msg_index => 1,
6306: p_msg_count => l_msg_count,
6307: p_msg_data => l_msg_data,
6308: p_data => l_data,

Line 6312: raise FND_API.G_EXC_ERROR;

6308: p_data => l_data,
6309: p_msg_index_out => l_msg_index_out);
6310: x_msg_data := l_data;
6311: End If;
6312: raise FND_API.G_EXC_ERROR;
6313: End If;
6314: End If;
6315: -- End of FP_M changes
6316:

Line 6325: p_commit => FND_API.G_FALSE,

6321: l_tasks_ver_ids(l_task_cnt) := p_task_version_id;
6322:
6323: --PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup(
6324: PA_STRUCT_TASK_ROLLUP_PUB.TASKS_ROLLUP_UNLIMITED(
6325: p_commit => FND_API.G_FALSE,
6326: p_element_versions => l_tasks_ver_ids,
6327: x_return_status => l_return_status,
6328: x_msg_count => l_msg_count,
6329: x_msg_data => l_msg_data);

Line 6333: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6329: x_msg_data => l_msg_data);
6330:
6331: /* Bug 5768425 End */
6332:
6333: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6334: x_msg_count := FND_MSG_PUB.count_msg;
6335: if x_msg_count = 1 then
6336: pa_interface_utils_pub.get_messages
6337: (p_encoded => FND_API.G_TRUE,

Line 6337: (p_encoded => FND_API.G_TRUE,

6333: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6334: x_msg_count := FND_MSG_PUB.count_msg;
6335: if x_msg_count = 1 then
6336: pa_interface_utils_pub.get_messages
6337: (p_encoded => FND_API.G_TRUE,
6338: p_msg_index => 1,
6339: p_msg_count => l_msg_count,
6340: p_msg_data => l_msg_data,
6341: p_data => l_data,

Line 6345: raise FND_API.G_EXC_ERROR;

6341: p_data => l_data,
6342: p_msg_index_out => l_msg_index_out);
6343: x_msg_data := l_data;
6344: end if;
6345: raise FND_API.G_EXC_ERROR;
6346: end if;
6347:
6348: --hsiu added for task status
6349: --if versioning is off, rollup.

Line 6359: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6355: ,x_msg_count => l_msg_count
6356: ,x_msg_data => l_msg_data
6357: );
6358:
6359: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6360: x_msg_count := FND_MSG_PUB.count_msg;
6361: if x_msg_count = 1 then
6362: pa_interface_utils_pub.get_messages
6363: (p_encoded => FND_API.G_TRUE,

Line 6363: (p_encoded => FND_API.G_TRUE,

6359: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6360: x_msg_count := FND_MSG_PUB.count_msg;
6361: if x_msg_count = 1 then
6362: pa_interface_utils_pub.get_messages
6363: (p_encoded => FND_API.G_TRUE,
6364: p_msg_index => 1,
6365: p_msg_count => l_msg_count,
6366: p_msg_data => l_msg_data,
6367: p_data => l_data,

Line 6371: raise FND_API.G_EXC_ERROR;

6367: p_data => l_data,
6368: p_msg_index_out => l_msg_index_out);
6369: x_msg_data := l_data;
6370: end if;
6371: raise FND_API.G_EXC_ERROR;
6372: end if;
6373:
6374: IF (l_old_peer_task_id IS NOT NULL) THEN
6375: PA_STRUCT_TASK_ROLLUP_PUB.Task_Status_Rollup(

Line 6383: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6379: ,x_msg_count => l_msg_count
6380: ,x_msg_data => l_msg_data
6381: );
6382:
6383: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6384: x_msg_count := FND_MSG_PUB.count_msg;
6385: if x_msg_count = 1 then
6386: pa_interface_utils_pub.get_messages
6387: (p_encoded => FND_API.G_TRUE,

Line 6387: (p_encoded => FND_API.G_TRUE,

6383: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6384: x_msg_count := FND_MSG_PUB.count_msg;
6385: if x_msg_count = 1 then
6386: pa_interface_utils_pub.get_messages
6387: (p_encoded => FND_API.G_TRUE,
6388: p_msg_index => 1,
6389: p_msg_count => l_msg_count,
6390: p_msg_data => l_msg_data,
6391: p_data => l_data,

Line 6395: raise FND_API.G_EXC_ERROR;

6391: p_data => l_data,
6392: p_msg_index_out => l_msg_index_out);
6393: x_msg_data := l_data;
6394: end if;
6395: raise FND_API.G_EXC_ERROR;
6396: end if;
6397: END IF;
6398:
6399: END IF;

Line 6461: RAISE FND_API.G_EXC_ERROR;

6457: WHEN OTHERS THEN
6458: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
6459: p_procedure_name => 'MOVE_TASK_VERSION',
6460: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
6461: RAISE FND_API.G_EXC_ERROR;
6462: END;
6463: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6464: x_msg_count := FND_MSG_PUB.count_msg;
6465: if x_msg_count = 1 then

Line 6463: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6459: p_procedure_name => 'MOVE_TASK_VERSION',
6460: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
6461: RAISE FND_API.G_EXC_ERROR;
6462: END;
6463: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6464: x_msg_count := FND_MSG_PUB.count_msg;
6465: if x_msg_count = 1 then
6466: pa_interface_utils_pub.get_messages
6467: (p_encoded => FND_API.G_TRUE,

Line 6467: (p_encoded => FND_API.G_TRUE,

6463: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6464: x_msg_count := FND_MSG_PUB.count_msg;
6465: if x_msg_count = 1 then
6466: pa_interface_utils_pub.get_messages
6467: (p_encoded => FND_API.G_TRUE,
6468: p_msg_index => 1,
6469: p_msg_count => l_msg_count,
6470: p_msg_data => l_msg_data,
6471: p_data => l_data,

Line 6475: raise FND_API.G_EXC_ERROR;

6471: p_data => l_data,
6472: p_msg_index_out => l_msg_index_out);
6473: x_msg_data := l_data;
6474: end if;
6475: raise FND_API.G_EXC_ERROR;
6476: end if;
6477: END IF;
6478: END IF;
6479: end;

Line 6485: x_return_status := FND_API.G_RET_STS_SUCCESS;

6481: --bug 4149392
6482: PA_TASK_PUB1.G_CALL_PJI_ROLLUP := NULL;
6483: --end bug 4149392
6484:
6485: x_return_status := FND_API.G_RET_STS_SUCCESS;
6486:
6487: IF (p_commit = FND_API.G_TRUE) THEN
6488: COMMIT;
6489: END IF;

Line 6487: IF (p_commit = FND_API.G_TRUE) THEN

6483: --end bug 4149392
6484:
6485: x_return_status := FND_API.G_RET_STS_SUCCESS;
6486:
6487: IF (p_commit = FND_API.G_TRUE) THEN
6488: COMMIT;
6489: END IF;
6490:
6491: IF (p_debug_mode = 'Y') THEN

Line 6495: when FND_API.G_EXC_ERROR then

6491: IF (p_debug_mode = 'Y') THEN
6492: pa_debug.debug('PA_TASK_PUB1.MOVE_TASK_VERSION END');
6493: END IF;
6494: EXCEPTION
6495: when FND_API.G_EXC_ERROR then
6496: if p_commit = FND_API.G_TRUE then
6497: rollback to move_task_version;
6498: end if;
6499: x_return_status := FND_API.G_RET_STS_ERROR;

Line 6496: if p_commit = FND_API.G_TRUE then

6492: pa_debug.debug('PA_TASK_PUB1.MOVE_TASK_VERSION END');
6493: END IF;
6494: EXCEPTION
6495: when FND_API.G_EXC_ERROR then
6496: if p_commit = FND_API.G_TRUE then
6497: rollback to move_task_version;
6498: end if;
6499: x_return_status := FND_API.G_RET_STS_ERROR;
6500: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 6499: x_return_status := FND_API.G_RET_STS_ERROR;

6495: when FND_API.G_EXC_ERROR then
6496: if p_commit = FND_API.G_TRUE then
6497: rollback to move_task_version;
6498: end if;
6499: x_return_status := FND_API.G_RET_STS_ERROR;
6500: when FND_API.G_EXC_UNEXPECTED_ERROR then
6501: if p_commit = FND_API.G_TRUE then
6502: rollback to move_task_version;
6503: end if;

Line 6500: when FND_API.G_EXC_UNEXPECTED_ERROR then

6496: if p_commit = FND_API.G_TRUE then
6497: rollback to move_task_version;
6498: end if;
6499: x_return_status := FND_API.G_RET_STS_ERROR;
6500: when FND_API.G_EXC_UNEXPECTED_ERROR then
6501: if p_commit = FND_API.G_TRUE then
6502: rollback to move_task_version;
6503: end if;
6504: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 6501: if p_commit = FND_API.G_TRUE then

6497: rollback to move_task_version;
6498: end if;
6499: x_return_status := FND_API.G_RET_STS_ERROR;
6500: when FND_API.G_EXC_UNEXPECTED_ERROR then
6501: if p_commit = FND_API.G_TRUE then
6502: rollback to move_task_version;
6503: end if;
6504: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6505: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 6504: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

6500: when FND_API.G_EXC_UNEXPECTED_ERROR then
6501: if p_commit = FND_API.G_TRUE then
6502: rollback to move_task_version;
6503: end if;
6504: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6505: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
6506: p_procedure_name => 'MOVE_TASK_VERSION',
6507: p_error_text => SUBSTRB(SQLERRM,1,240));
6508: when OTHERS then

Line 6509: if p_commit = FND_API.G_TRUE then

6505: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
6506: p_procedure_name => 'MOVE_TASK_VERSION',
6507: p_error_text => SUBSTRB(SQLERRM,1,240));
6508: when OTHERS then
6509: if p_commit = FND_API.G_TRUE then
6510: rollback to move_task_version;
6511: end if;
6512: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6513: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 6512: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

6508: when OTHERS then
6509: if p_commit = FND_API.G_TRUE then
6510: rollback to move_task_version;
6511: end if;
6512: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6513: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
6514: p_procedure_name => 'MOVE_TASK_VERSION',
6515: p_error_text => SUBSTRB(SQLERRM,1,240));
6516: raise;

Line 6525: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

6521: -- Pre-reqs : None
6522: -- Return Value : N/A
6523: -- Prameters
6524: -- p_api_version IN NUMBER N Not Null 1.0
6525: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
6526: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
6527: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
6528: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
6529: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 6526: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

6522: -- Return Value : N/A
6523: -- Prameters
6524: -- p_api_version IN NUMBER N Not Null 1.0
6525: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
6526: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
6527: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
6528: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
6529: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
6530: -- p_debug_mode IN VARCHAR2 N Null N

Line 6527: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

6523: -- Prameters
6524: -- p_api_version IN NUMBER N Not Null 1.0
6525: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
6526: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
6527: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
6528: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
6529: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
6530: -- p_debug_mode IN VARCHAR2 N Null N
6531: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 6528: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

6524: -- p_api_version IN NUMBER N Not Null 1.0
6525: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
6526: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
6527: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
6528: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
6529: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
6530: -- p_debug_mode IN VARCHAR2 N Null N
6531: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
6532: -- p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 6546: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

6542: --
6543:
6544: PROCEDURE INDENT_TASK_VERSION (
6545: p_api_version IN NUMBER :=1.0,
6546: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
6547: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
6548: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
6549: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
6550: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 6547: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

6543:
6544: PROCEDURE INDENT_TASK_VERSION (
6545: p_api_version IN NUMBER :=1.0,
6546: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
6547: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
6548: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
6549: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
6550: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
6551: p_debug_mode IN VARCHAR2 :='N',

Line 6548: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

6544: PROCEDURE INDENT_TASK_VERSION (
6545: p_api_version IN NUMBER :=1.0,
6546: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
6547: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
6548: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
6549: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
6550: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
6551: p_debug_mode IN VARCHAR2 :='N',
6552: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 6549: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

6545: p_api_version IN NUMBER :=1.0,
6546: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
6547: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
6548: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
6549: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
6550: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
6551: p_debug_mode IN VARCHAR2 :='N',
6552: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
6553: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 6635: IF (p_commit = FND_API.G_TRUE) THEN

6631: IF (p_debug_mode = 'Y') THEN
6632: pa_debug.debug('PA_TASK_PUB1.INDENT_TASK_VERSION begin');
6633: END IF;
6634:
6635: IF (p_commit = FND_API.G_TRUE) THEN
6636: savepoint indent_task_version;
6637: END IF;
6638:
6639: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 6639: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

6635: IF (p_commit = FND_API.G_TRUE) THEN
6636: savepoint indent_task_version;
6637: END IF;
6638:
6639: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
6640: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6641: END IF;
6642:
6643: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 6640: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

6636: savepoint indent_task_version;
6637: END IF;
6638:
6639: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
6640: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6641: END IF;
6642:
6643: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
6644: FND_MSG_PUB.initialize;

Line 6643: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

6639: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
6640: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6641: END IF;
6642:
6643: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
6644: FND_MSG_PUB.initialize;
6645: END IF;
6646:
6647: ----dbms_output.put_line( 'Indent Task Stage 1 ' );

Line 6665: (p_encoded => FND_API.G_TRUE,

6661: if l_msg_count > 0 then
6662: x_msg_count := l_msg_count;
6663: if x_msg_count = 1 then
6664: pa_interface_utils_pub.get_messages
6665: (p_encoded => FND_API.G_TRUE,
6666: p_msg_index => 1,
6667: p_msg_count => l_msg_count,
6668: p_msg_data => l_msg_data,
6669: p_data => l_data,

Line 6673: raise FND_API.G_EXC_ERROR;

6669: p_data => l_data,
6670: p_msg_index_out => l_msg_index_out);
6671: x_msg_data := l_data;
6672: end if;
6673: raise FND_API.G_EXC_ERROR;
6674: end if;
6675: END IF;
6676:
6677: -- hyau

Line 6698: (p_encoded => FND_API.G_TRUE,

6694: if l_msg_count > 0 then
6695: x_msg_count := l_msg_count;
6696: if x_msg_count = 1 then
6697: pa_interface_utils_pub.get_messages
6698: (p_encoded => FND_API.G_TRUE,
6699: p_msg_index => 1,
6700: p_msg_count => l_msg_count,
6701: p_msg_data => l_msg_data,
6702: p_data => l_data,

Line 6706: raise FND_API.G_EXC_ERROR;

6702: p_data => l_data,
6703: p_msg_index_out => l_msg_index_out);
6704: x_msg_data := l_data;
6705: end if;
6706: raise FND_API.G_EXC_ERROR;
6707: end if;
6708: END IF;
6709: -- end hyau. Lifecycle Phase validation Changes.
6710:

Line 6751: (p_encoded => FND_API.G_TRUE,

6747: if l_msg_count > 0 then
6748: x_msg_count := l_msg_count;
6749: if x_msg_count = 1 then
6750: pa_interface_utils_pub.get_messages
6751: (p_encoded => FND_API.G_TRUE,
6752: p_msg_index => 1,
6753: p_msg_count => l_msg_count,
6754: p_msg_data => l_msg_data,
6755: p_data => l_data,

Line 6759: raise FND_API.G_EXC_ERROR;

6755: p_data => l_data,
6756: p_msg_index_out => l_msg_index_out);
6757: x_msg_data := l_data;
6758: end if;
6759: raise FND_API.G_EXC_ERROR;
6760: end if;
6761:
6762: --dbms_output.put_line( 'Indent Task Stage 6 ' );
6763:

Line 6803: raise FND_API.G_EXC_ERROR;

6799:
6800: IF (l_return_status <> 'Y') THEN
6801: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6802: p_msg_name => l_error_msg_code);
6803: raise FND_API.G_EXC_ERROR;
6804: END IF;
6805:
6806: --check if ok to create subtask
6807: IF (l_peer_or_sub = 'PEER') THEN

Line 6820: raise FND_API.G_EXC_ERROR;

6816:
6817: IF (l_return_status <> 'Y') THEN
6818: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6819: p_msg_name => l_error_msg_code);
6820: raise FND_API.G_EXC_ERROR;
6821: END IF;
6822: ELSE
6823: PA_PROJ_ELEMENTS_UTILS.Check_create_subtask_ok(
6824: p_parent_task_ver_id => l_ref_task_version_id

Line 6832: raise FND_API.G_EXC_ERROR;

6828:
6829: IF (l_return_status <> 'Y') THEN
6830: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6831: p_msg_name => l_error_msg_code);
6832: raise FND_API.G_EXC_ERROR;
6833: END IF;
6834: END IF;
6835:
6836: --end task status changes

Line 6842: ( p_validate_only => FND_API.G_FALSE,

6838:
6839: --dbms_output.put_line( 'Indent Task Stage 9 ' );
6840:
6841: PA_TASK_PUB1.Update_Task_Version
6842: ( p_validate_only => FND_API.G_FALSE,
6843: p_ref_task_version_id => l_ref_task_version_id,
6844: p_peer_or_sub => l_peer_or_sub,
6845: p_task_version_id => p_task_version_id,
6846: p_record_version_number => p_record_version_number,

Line 6854: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

6850:
6851: --dbms_output.put_line( 'Indent Task Stage 10 ' );
6852:
6853:
6854: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6855: x_msg_count := FND_MSG_PUB.count_msg;
6856: IF x_msg_count = 1 then
6857: pa_interface_utils_pub.get_messages
6858: (p_encoded => FND_API.G_TRUE,

Line 6858: (p_encoded => FND_API.G_TRUE,

6854: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6855: x_msg_count := FND_MSG_PUB.count_msg;
6856: IF x_msg_count = 1 then
6857: pa_interface_utils_pub.get_messages
6858: (p_encoded => FND_API.G_TRUE,
6859: p_msg_index => 1,
6860: p_msg_count => l_msg_count,
6861: p_msg_data => l_msg_data,
6862: p_data => l_data,

Line 6866: raise FND_API.G_EXC_ERROR;

6862: p_data => l_data,
6863: p_msg_index_out => l_msg_index_out);
6864: x_msg_data := l_data;
6865: END IF;
6866: raise FND_API.G_EXC_ERROR;
6867: END IF;
6868:
6869:
6870: --dbms_output.put_line( 'Indent Task Stage 11 ' );

Line 6963: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

6959: END IF;
6960: END IF;
6961: CLOSE cur_struc_type;
6962:
6963: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6964: x_msg_count := FND_MSG_PUB.count_msg;
6965: IF x_msg_count = 1 then
6966: pa_interface_utils_pub.get_messages
6967: (p_encoded => FND_API.G_TRUE,

Line 6967: (p_encoded => FND_API.G_TRUE,

6963: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
6964: x_msg_count := FND_MSG_PUB.count_msg;
6965: IF x_msg_count = 1 then
6966: pa_interface_utils_pub.get_messages
6967: (p_encoded => FND_API.G_TRUE,
6968: p_msg_index => 1,
6969: p_msg_count => l_msg_count,
6970: p_msg_data => l_msg_data,
6971: p_data => l_data,

Line 6975: raise FND_API.G_EXC_ERROR;

6971: p_data => l_data,
6972: p_msg_index_out => l_msg_index_out);
6973: x_msg_data := l_data;
6974: END IF;
6975: raise FND_API.G_EXC_ERROR;
6976: END IF;
6977:
6978: --Hsiu added for date rollup; workplan only
6979:

Line 6985: p_commit => FND_API.G_FALSE,

6981: l_tasks_ver_ids.extend;
6982: l_tasks_ver_ids(l_tasks_ver_ids.count) := p_task_version_id;
6983:
6984: PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup(
6985: p_commit => FND_API.G_FALSE,
6986: p_element_versions => l_tasks_ver_ids,
6987: x_return_status => l_return_status,
6988: x_msg_count => l_msg_count,
6989: x_msg_data => l_msg_data);

Line 6991: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

6987: x_return_status => l_return_status,
6988: x_msg_count => l_msg_count,
6989: x_msg_data => l_msg_data);
6990:
6991: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6992: x_msg_count := FND_MSG_PUB.count_msg;
6993: if x_msg_count = 1 then
6994: pa_interface_utils_pub.get_messages
6995: (p_encoded => FND_API.G_TRUE,

Line 6995: (p_encoded => FND_API.G_TRUE,

6991: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
6992: x_msg_count := FND_MSG_PUB.count_msg;
6993: if x_msg_count = 1 then
6994: pa_interface_utils_pub.get_messages
6995: (p_encoded => FND_API.G_TRUE,
6996: p_msg_index => 1,
6997: p_msg_count => l_msg_count,
6998: p_msg_data => l_msg_data,
6999: p_data => l_data,

Line 7003: raise FND_API.G_EXC_ERROR;

6999: p_data => l_data,
7000: p_msg_index_out => l_msg_index_out);
7001: x_msg_data := l_data;
7002: end if;
7003: raise FND_API.G_EXC_ERROR;
7004: end if;
7005:
7006: --hsiu added for task status
7007: --if versioning is off, rollup.

Line 7017: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

7013: ,x_msg_count => l_msg_count
7014: ,x_msg_data => l_msg_data
7015: );
7016:
7017: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
7018: x_msg_count := FND_MSG_PUB.count_msg;
7019: if x_msg_count = 1 then
7020: pa_interface_utils_pub.get_messages
7021: (p_encoded => FND_API.G_TRUE,

Line 7021: (p_encoded => FND_API.G_TRUE,

7017: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
7018: x_msg_count := FND_MSG_PUB.count_msg;
7019: if x_msg_count = 1 then
7020: pa_interface_utils_pub.get_messages
7021: (p_encoded => FND_API.G_TRUE,
7022: p_msg_index => 1,
7023: p_msg_count => l_msg_count,
7024: p_msg_data => l_msg_data,
7025: p_data => l_data,

Line 7029: raise FND_API.G_EXC_ERROR;

7025: p_data => l_data,
7026: p_msg_index_out => l_msg_index_out);
7027: x_msg_data := l_data;
7028: end if;
7029: raise FND_API.G_EXC_ERROR;
7030: end if;
7031: END IF;
7032:
7033: --end task status changes

Line 7037: x_return_status := FND_API.G_RET_STS_SUCCESS;

7033: --end task status changes
7034:
7035: END IF;
7036:
7037: x_return_status := FND_API.G_RET_STS_SUCCESS;
7038:
7039: IF (p_commit = FND_API.G_TRUE) THEN
7040: COMMIT;
7041: END IF;

Line 7039: IF (p_commit = FND_API.G_TRUE) THEN

7035: END IF;
7036:
7037: x_return_status := FND_API.G_RET_STS_SUCCESS;
7038:
7039: IF (p_commit = FND_API.G_TRUE) THEN
7040: COMMIT;
7041: END IF;
7042:
7043: IF (p_debug_mode = 'Y') THEN

Line 7048: when FND_API.G_EXC_ERROR then

7044: pa_debug.debug('PA_TASK_PUB1.INDENT_TASK_VERSION END');
7045: END IF;
7046:
7047: EXCEPTION
7048: when FND_API.G_EXC_ERROR then
7049: if p_commit = FND_API.G_TRUE then
7050: rollback to indent_task_version;
7051: end if;
7052: x_return_status := FND_API.G_RET_STS_ERROR;

Line 7049: if p_commit = FND_API.G_TRUE then

7045: END IF;
7046:
7047: EXCEPTION
7048: when FND_API.G_EXC_ERROR then
7049: if p_commit = FND_API.G_TRUE then
7050: rollback to indent_task_version;
7051: end if;
7052: x_return_status := FND_API.G_RET_STS_ERROR;
7053: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 7052: x_return_status := FND_API.G_RET_STS_ERROR;

7048: when FND_API.G_EXC_ERROR then
7049: if p_commit = FND_API.G_TRUE then
7050: rollback to indent_task_version;
7051: end if;
7052: x_return_status := FND_API.G_RET_STS_ERROR;
7053: when FND_API.G_EXC_UNEXPECTED_ERROR then
7054: if p_commit = FND_API.G_TRUE then
7055: rollback to indent_task_version;
7056: end if;

Line 7053: when FND_API.G_EXC_UNEXPECTED_ERROR then

7049: if p_commit = FND_API.G_TRUE then
7050: rollback to indent_task_version;
7051: end if;
7052: x_return_status := FND_API.G_RET_STS_ERROR;
7053: when FND_API.G_EXC_UNEXPECTED_ERROR then
7054: if p_commit = FND_API.G_TRUE then
7055: rollback to indent_task_version;
7056: end if;
7057: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 7054: if p_commit = FND_API.G_TRUE then

7050: rollback to indent_task_version;
7051: end if;
7052: x_return_status := FND_API.G_RET_STS_ERROR;
7053: when FND_API.G_EXC_UNEXPECTED_ERROR then
7054: if p_commit = FND_API.G_TRUE then
7055: rollback to indent_task_version;
7056: end if;
7057: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7058: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 7057: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

7053: when FND_API.G_EXC_UNEXPECTED_ERROR then
7054: if p_commit = FND_API.G_TRUE then
7055: rollback to indent_task_version;
7056: end if;
7057: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7058: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
7059: p_procedure_name => 'INDENT_TASK_VERSION',
7060: p_error_text => SUBSTRB(SQLERRM,1,240));
7061: when OTHERS then

Line 7062: if p_commit = FND_API.G_TRUE then

7058: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
7059: p_procedure_name => 'INDENT_TASK_VERSION',
7060: p_error_text => SUBSTRB(SQLERRM,1,240));
7061: when OTHERS then
7062: if p_commit = FND_API.G_TRUE then
7063: rollback to indent_task_version;
7064: end if;
7065: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7066: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 7065: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

7061: when OTHERS then
7062: if p_commit = FND_API.G_TRUE then
7063: rollback to indent_task_version;
7064: end if;
7065: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7066: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
7067: p_procedure_name => 'INDENT_TASK_VERSION',
7068: p_error_text => SUBSTRB(SQLERRM,1,240));
7069: raise;

Line 7080: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

7076: -- Pre-reqs : None
7077: -- Return Value : N/A
7078: -- Prameters
7079: -- p_api_version IN NUMBER N Not Null 1.0
7080: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
7081: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
7082: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
7083: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
7084: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 7081: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

7077: -- Return Value : N/A
7078: -- Prameters
7079: -- p_api_version IN NUMBER N Not Null 1.0
7080: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
7081: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
7082: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
7083: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
7084: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
7085: -- p_debug_mode IN VARCHAR2 N Null N

Line 7082: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

7078: -- Prameters
7079: -- p_api_version IN NUMBER N Not Null 1.0
7080: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
7081: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
7082: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
7083: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
7084: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
7085: -- p_debug_mode IN VARCHAR2 N Null N
7086: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 7083: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

7079: -- p_api_version IN NUMBER N Not Null 1.0
7080: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
7081: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
7082: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
7083: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
7084: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
7085: -- p_debug_mode IN VARCHAR2 N Null N
7086: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
7087: -- p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 7101: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

7097: --
7098:
7099: PROCEDURE OUTDENT_TASK_VERSION (
7100: p_api_version IN NUMBER :=1.0,
7101: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
7102: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
7103: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
7104: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
7105: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 7102: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

7098:
7099: PROCEDURE OUTDENT_TASK_VERSION (
7100: p_api_version IN NUMBER :=1.0,
7101: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
7102: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
7103: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
7104: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
7105: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
7106: p_debug_mode IN VARCHAR2 :='N',

Line 7103: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

7099: PROCEDURE OUTDENT_TASK_VERSION (
7100: p_api_version IN NUMBER :=1.0,
7101: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
7102: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
7103: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
7104: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
7105: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
7106: p_debug_mode IN VARCHAR2 :='N',
7107: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 7104: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

7100: p_api_version IN NUMBER :=1.0,
7101: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
7102: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
7103: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
7104: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
7105: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
7106: p_debug_mode IN VARCHAR2 :='N',
7107: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
7108: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 7197: IF (p_commit = FND_API.G_TRUE) THEN

7193: IF (p_debug_mode = 'Y') THEN
7194: pa_debug.debug('PA_TASK_PUB1.OUTDENT_TASK_VERSION begin');
7195: END IF;
7196:
7197: IF (p_commit = FND_API.G_TRUE) THEN
7198: savepoint outdent_task_version;
7199: END IF;
7200:
7201: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 7201: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

7197: IF (p_commit = FND_API.G_TRUE) THEN
7198: savepoint outdent_task_version;
7199: END IF;
7200:
7201: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
7202: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7203: END IF;
7204:
7205: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 7202: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

7198: savepoint outdent_task_version;
7199: END IF;
7200:
7201: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
7202: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7203: END IF;
7204:
7205: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
7206: FND_MSG_PUB.initialize;

Line 7205: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

7201: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
7202: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7203: END IF;
7204:
7205: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
7206: FND_MSG_PUB.initialize;
7207: END IF;
7208:
7209: --hsiu

Line 7226: (p_encoded => FND_API.G_TRUE,

7222: if l_msg_count > 0 then
7223: x_msg_count := l_msg_count;
7224: if x_msg_count = 1 then
7225: pa_interface_utils_pub.get_messages
7226: (p_encoded => FND_API.G_TRUE,
7227: p_msg_index => 1,
7228: p_msg_count => l_msg_count,
7229: p_msg_data => l_msg_data,
7230: p_data => l_data,

Line 7234: raise FND_API.G_EXC_ERROR;

7230: p_data => l_data,
7231: p_msg_index_out => l_msg_index_out);
7232: x_msg_data := l_data;
7233: end if;
7234: raise FND_API.G_EXC_ERROR;
7235: end if;
7236: END IF;
7237:
7238: --hsiu added, for dates rollup

Line 7267: (p_encoded => FND_API.G_TRUE,

7263: if l_msg_count > 0 then
7264: x_msg_count := l_msg_count;
7265: if x_msg_count = 1 then
7266: pa_interface_utils_pub.get_messages
7267: (p_encoded => FND_API.G_TRUE,
7268: p_msg_index => 1,
7269: p_msg_count => l_msg_count,
7270: p_msg_data => l_msg_data,
7271: p_data => l_data,

Line 7275: raise FND_API.G_EXC_ERROR;

7271: p_data => l_data,
7272: p_msg_index_out => l_msg_index_out);
7273: x_msg_data := l_data;
7274: end if;
7275: raise FND_API.G_EXC_ERROR;
7276: end if;
7277:
7278: --get the reference task version of p_task_version_id
7279: SELECT element_version_id

Line 7305: raise FND_API.G_EXC_ERROR;

7301:
7302: IF (l_return_status <> 'Y') THEN
7303: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7304: p_msg_name => l_error_msg_code);
7305: raise FND_API.G_EXC_ERROR;
7306: END IF;
7307:
7308: OPEN get_parent_version_id(l_ref_task_version_id);
7309: FETCH get_parent_version_id into l_parent_ver_id;

Line 7320: raise FND_API.G_EXC_ERROR;

7316:
7317: IF (l_return_status <> 'Y') THEN
7318: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7319: p_msg_name => l_error_msg_code);
7320: raise FND_API.G_EXC_ERROR;
7321: END IF;
7322: --task status changes ends
7323:
7324: --dbms_output.put_line( 'Before Update_Task_Version ' );

Line 7327: ( p_validate_only => FND_API.G_FALSE,

7323:
7324: --dbms_output.put_line( 'Before Update_Task_Version ' );
7325:
7326: PA_TASK_PUB1.Update_Task_Version
7327: ( p_validate_only => FND_API.G_FALSE,
7328: p_ref_task_version_id => l_ref_task_version_id,
7329: p_peer_or_sub => 'PEER',
7330: p_task_version_id => p_task_version_id,
7331: p_record_version_number => p_record_version_number,

Line 7337: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

7333: x_return_status => l_return_status,
7334: x_msg_count => l_msg_count,
7335: x_msg_data => l_msg_data );
7336:
7337: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
7338: x_msg_count := FND_MSG_PUB.count_msg;
7339: IF x_msg_count = 1 then
7340: pa_interface_utils_pub.get_messages
7341: (p_encoded => FND_API.G_TRUE,

Line 7341: (p_encoded => FND_API.G_TRUE,

7337: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
7338: x_msg_count := FND_MSG_PUB.count_msg;
7339: IF x_msg_count = 1 then
7340: pa_interface_utils_pub.get_messages
7341: (p_encoded => FND_API.G_TRUE,
7342: p_msg_index => 1,
7343: p_msg_count => l_msg_count,
7344: p_msg_data => l_msg_data,
7345: p_data => l_data,

Line 7349: raise FND_API.G_EXC_ERROR;

7345: p_data => l_data,
7346: p_msg_index_out => l_msg_index_out);
7347: x_msg_data := l_data;
7348: END IF;
7349: raise FND_API.G_EXC_ERROR;
7350: END IF;
7351:
7352: --dbms_output.put_line( 'Before Update WBS numbers ' );
7353:

Line 7440: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

7436: END IF;
7437: END IF;
7438: CLOSE cur_struc_type;
7439:
7440: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
7441: x_msg_count := FND_MSG_PUB.count_msg;
7442: IF x_msg_count = 1 then
7443: pa_interface_utils_pub.get_messages
7444: (p_encoded => FND_API.G_TRUE,

Line 7444: (p_encoded => FND_API.G_TRUE,

7440: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
7441: x_msg_count := FND_MSG_PUB.count_msg;
7442: IF x_msg_count = 1 then
7443: pa_interface_utils_pub.get_messages
7444: (p_encoded => FND_API.G_TRUE,
7445: p_msg_index => 1,
7446: p_msg_count => l_msg_count,
7447: p_msg_data => l_msg_data,
7448: p_data => l_data,

Line 7452: raise FND_API.G_EXC_ERROR;

7448: p_data => l_data,
7449: p_msg_index_out => l_msg_index_out);
7450: x_msg_data := l_data;
7451: END IF;
7452: raise FND_API.G_EXC_ERROR;
7453: END IF;
7454:
7455: --dbms_output.put_line( 'After Move task ' );
7456:

Line 7469: p_commit => FND_API.G_FALSE,

7465: l_rollup_task_id := p_task_version_id;
7466: END IF;
7467:
7468: PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup(
7469: p_commit => FND_API.G_FALSE,
7470: p_element_versions => l_tasks_ver_ids,
7471: x_return_status => l_return_status,
7472: x_msg_count => l_msg_count,
7473: x_msg_data => l_msg_data);

Line 7475: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

7471: x_return_status => l_return_status,
7472: x_msg_count => l_msg_count,
7473: x_msg_data => l_msg_data);
7474:
7475: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
7476: x_msg_count := FND_MSG_PUB.count_msg;
7477: if x_msg_count = 1 then
7478: pa_interface_utils_pub.get_messages
7479: (p_encoded => FND_API.G_TRUE,

Line 7479: (p_encoded => FND_API.G_TRUE,

7475: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
7476: x_msg_count := FND_MSG_PUB.count_msg;
7477: if x_msg_count = 1 then
7478: pa_interface_utils_pub.get_messages
7479: (p_encoded => FND_API.G_TRUE,
7480: p_msg_index => 1,
7481: p_msg_count => l_msg_count,
7482: p_msg_data => l_msg_data,
7483: p_data => l_data,

Line 7487: raise FND_API.G_EXC_ERROR;

7483: p_data => l_data,
7484: p_msg_index_out => l_msg_index_out);
7485: x_msg_data := l_data;
7486: end if;
7487: raise FND_API.G_EXC_ERROR;
7488: end if;
7489:
7490: --hsiu added for task status
7491: --if versioning is off, rollup.

Line 7501: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

7497: ,x_msg_count => l_msg_count
7498: ,x_msg_data => l_msg_data
7499: );
7500:
7501: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
7502: x_msg_count := FND_MSG_PUB.count_msg;
7503: if x_msg_count = 1 then
7504: pa_interface_utils_pub.get_messages
7505: (p_encoded => FND_API.G_TRUE,

Line 7505: (p_encoded => FND_API.G_TRUE,

7501: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
7502: x_msg_count := FND_MSG_PUB.count_msg;
7503: if x_msg_count = 1 then
7504: pa_interface_utils_pub.get_messages
7505: (p_encoded => FND_API.G_TRUE,
7506: p_msg_index => 1,
7507: p_msg_count => l_msg_count,
7508: p_msg_data => l_msg_data,
7509: p_data => l_data,

Line 7513: raise FND_API.G_EXC_ERROR;

7509: p_data => l_data,
7510: p_msg_index_out => l_msg_index_out);
7511: x_msg_data := l_data;
7512: end if;
7513: raise FND_API.G_EXC_ERROR;
7514: end if;
7515: END IF;
7516:
7517: --end task status changes

Line 7521: x_return_status := FND_API.G_RET_STS_SUCCESS;

7517: --end task status changes
7518:
7519: END IF;
7520:
7521: x_return_status := FND_API.G_RET_STS_SUCCESS;
7522:
7523: IF (p_commit = FND_API.G_TRUE) THEN
7524: COMMIT;
7525: END IF;

Line 7523: IF (p_commit = FND_API.G_TRUE) THEN

7519: END IF;
7520:
7521: x_return_status := FND_API.G_RET_STS_SUCCESS;
7522:
7523: IF (p_commit = FND_API.G_TRUE) THEN
7524: COMMIT;
7525: END IF;
7526:
7527: IF (p_debug_mode = 'Y') THEN

Line 7532: when FND_API.G_EXC_ERROR then

7528: pa_debug.debug('PA_TASK_PUB1.OUTDENT_TASK_VERSION END');
7529: END IF;
7530:
7531: EXCEPTION
7532: when FND_API.G_EXC_ERROR then
7533: if p_commit = FND_API.G_TRUE then
7534: rollback to outdent_task_version;
7535: end if;
7536: x_return_status := FND_API.G_RET_STS_ERROR;

Line 7533: if p_commit = FND_API.G_TRUE then

7529: END IF;
7530:
7531: EXCEPTION
7532: when FND_API.G_EXC_ERROR then
7533: if p_commit = FND_API.G_TRUE then
7534: rollback to outdent_task_version;
7535: end if;
7536: x_return_status := FND_API.G_RET_STS_ERROR;
7537: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 7536: x_return_status := FND_API.G_RET_STS_ERROR;

7532: when FND_API.G_EXC_ERROR then
7533: if p_commit = FND_API.G_TRUE then
7534: rollback to outdent_task_version;
7535: end if;
7536: x_return_status := FND_API.G_RET_STS_ERROR;
7537: when FND_API.G_EXC_UNEXPECTED_ERROR then
7538: if p_commit = FND_API.G_TRUE then
7539: rollback to outdent_task_version;
7540: end if;

Line 7537: when FND_API.G_EXC_UNEXPECTED_ERROR then

7533: if p_commit = FND_API.G_TRUE then
7534: rollback to outdent_task_version;
7535: end if;
7536: x_return_status := FND_API.G_RET_STS_ERROR;
7537: when FND_API.G_EXC_UNEXPECTED_ERROR then
7538: if p_commit = FND_API.G_TRUE then
7539: rollback to outdent_task_version;
7540: end if;
7541: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 7538: if p_commit = FND_API.G_TRUE then

7534: rollback to outdent_task_version;
7535: end if;
7536: x_return_status := FND_API.G_RET_STS_ERROR;
7537: when FND_API.G_EXC_UNEXPECTED_ERROR then
7538: if p_commit = FND_API.G_TRUE then
7539: rollback to outdent_task_version;
7540: end if;
7541: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7542: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 7541: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

7537: when FND_API.G_EXC_UNEXPECTED_ERROR then
7538: if p_commit = FND_API.G_TRUE then
7539: rollback to outdent_task_version;
7540: end if;
7541: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7542: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
7543: p_procedure_name => 'OUTDENT_TASK_VERSION',
7544: p_error_text => SUBSTRB(SQLERRM,1,240));
7545: when OTHERS then

Line 7546: if p_commit = FND_API.G_TRUE then

7542: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
7543: p_procedure_name => 'OUTDENT_TASK_VERSION',
7544: p_error_text => SUBSTRB(SQLERRM,1,240));
7545: when OTHERS then
7546: if p_commit = FND_API.G_TRUE then
7547: rollback to outdent_task_version;
7548: end if;
7549: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7550: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 7549: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

7545: when OTHERS then
7546: if p_commit = FND_API.G_TRUE then
7547: rollback to outdent_task_version;
7548: end if;
7549: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7550: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
7551: p_procedure_name => 'OUTDENT_TASK_VERSION',
7552: p_error_text => SUBSTRB(SQLERRM,1,240));
7553: raise;

Line 7737: (p_encoded => FND_API.G_TRUE,

7733: if l_msg_count > 0 then
7734: x_msg_count := l_msg_count;
7735: if x_msg_count = 1 then
7736: pa_interface_utils_pub.get_messages
7737: (p_encoded => FND_API.G_TRUE,
7738: p_msg_index => 1,
7739: p_msg_count => l_msg_count,
7740: p_msg_data => l_msg_data,
7741: p_data => l_data,

Line 7796: (p_encoded => FND_API.G_TRUE,

7792: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA'
7793: ,p_msg_name => 'PA_PS_TSK_WBS_LVL_ERR');
7794: x_msg_count := 1;
7795: pa_interface_utils_pub.get_messages
7796: (p_encoded => FND_API.G_TRUE,
7797: p_msg_index => 1,
7798: p_msg_count => l_msg_count,
7799: p_msg_data => l_msg_data,
7800: p_data => l_data,

Line 7855: (p_encoded => FND_API.G_TRUE,

7851: ,p_msg_name => 'PA_PS_OUTLINE_LEVEL_INVALID');
7852:
7853: x_msg_count := 1;
7854: pa_interface_utils_pub.get_messages
7855: (p_encoded => FND_API.G_TRUE,
7856: p_msg_index => 1,
7857: p_msg_count => l_msg_count,
7858: p_msg_data => l_msg_data,
7859: p_data => l_data,

Line 7875: (p_encoded => FND_API.G_TRUE,

7871: ,p_msg_name => 'PA_PS_OUTLINE_LEVEL_INVALID');
7872:
7873: x_msg_count := 1;
7874: pa_interface_utils_pub.get_messages
7875: (p_encoded => FND_API.G_TRUE,
7876: p_msg_index => 1,
7877: p_msg_count => l_msg_count,
7878: p_msg_data => l_msg_data,
7879: p_data => l_data,

Line 7899: (p_encoded => FND_API.G_TRUE,

7895: ,p_msg_name => 'PA_PS_OUTLINE_LEVEL_INVALID');
7896:
7897: x_msg_count := 1;
7898: pa_interface_utils_pub.get_messages
7899: (p_encoded => FND_API.G_TRUE,
7900: p_msg_index => 1,
7901: p_msg_count => l_msg_count,
7902: p_msg_data => l_msg_data,
7903: p_data => l_data,

Line 7982: ( p_validate_only => FND_API.G_FALSE

7978: END IF;
7979: --3035902: end process update flag changes
7980:
7981: PA_TASK_PUB1.CREATE_TASK
7982: ( p_validate_only => FND_API.G_FALSE
7983: ,p_object_type => 'PA_TASKS'
7984: ,p_project_id => p_project_id
7985: ,p_ref_task_id => l_ref_proj_eleme_id
7986: ,p_peer_or_sub => l_peer_or_sub

Line 8002: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

7998: ,x_return_status => l_return_status
7999: ,x_msg_count => l_msg_count
8000: ,x_msg_data => l_msg_data);
8001:
8002: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8003: x_msg_count := FND_MSG_PUB.count_msg;
8004: if x_msg_count = 1 then
8005: pa_interface_utils_pub.get_messages
8006: (p_encoded => FND_API.G_TRUE,

Line 8006: (p_encoded => FND_API.G_TRUE,

8002: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8003: x_msg_count := FND_MSG_PUB.count_msg;
8004: if x_msg_count = 1 then
8005: pa_interface_utils_pub.get_messages
8006: (p_encoded => FND_API.G_TRUE,
8007: p_msg_index => 1,
8008: p_msg_count => l_msg_count,
8009: p_msg_data => l_msg_data,
8010: p_data => l_data,

Line 8042: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8038: ,x_return_status => l_return_status
8039: ,x_msg_count => l_msg_count
8040: ,x_msg_data => l_msg_data);
8041:
8042: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8043: x_msg_count := FND_MSG_PUB.count_msg;
8044: if x_msg_count = 1 then
8045: pa_interface_utils_pub.get_messages
8046: (p_encoded => FND_API.G_TRUE,

Line 8046: (p_encoded => FND_API.G_TRUE,

8042: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8043: x_msg_count := FND_MSG_PUB.count_msg;
8044: if x_msg_count = 1 then
8045: pa_interface_utils_pub.get_messages
8046: (p_encoded => FND_API.G_TRUE,
8047: p_msg_index => 1,
8048: p_msg_count => l_msg_count,
8049: p_msg_data => l_msg_data,
8050: p_data => l_data,

Line 8054: raise FND_API.G_EXC_ERROR;

8050: p_data => l_data,
8051: p_msg_index_out => l_msg_index_out);
8052: x_msg_data := l_data;
8053: end if;
8054: raise FND_API.G_EXC_ERROR;
8055: end if;
8056: --END IF;
8057: --3035902: end process update flag changes
8058:

Line 8076: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8072: ,x_return_status => l_return_status
8073: ,x_msg_count => l_msg_count
8074: ,x_msg_data => l_msg_data );
8075:
8076: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8077: x_msg_count := FND_MSG_PUB.count_msg;
8078: if x_msg_count = 1 then
8079: pa_interface_utils_pub.get_messages
8080: (p_encoded => FND_API.G_TRUE,

Line 8080: (p_encoded => FND_API.G_TRUE,

8076: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8077: x_msg_count := FND_MSG_PUB.count_msg;
8078: if x_msg_count = 1 then
8079: pa_interface_utils_pub.get_messages
8080: (p_encoded => FND_API.G_TRUE,
8081: p_msg_index => 1,
8082: p_msg_count => l_msg_count,
8083: p_msg_data => l_msg_data,
8084: p_data => l_data,

Line 8088: raise FND_API.G_EXC_ERROR;

8084: p_data => l_data,
8085: p_msg_index_out => l_msg_index_out);
8086: x_msg_data := l_data;
8087: end if;
8088: raise FND_API.G_EXC_ERROR;
8089: end if;
8090: END IF;
8091: END IF;
8092:

Line 8136: ( p_validate_only => FND_API.G_FALSE

8132:
8133:
8134: --CREATE_TASK_VERSION
8135: PA_TASK_PUB1.CREATE_TASK_VERSION
8136: ( p_validate_only => FND_API.G_FALSE
8137: ,p_ref_task_version_id => l_ref_task_ver_id
8138: ,p_peer_or_sub => l_peer_or_sub
8139: ,p_task_id => l_task_id
8140: ,p_TASK_UNPUB_VER_STATUS_CODE => l_task_unpub_ver_status_code

Line 8147: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8143: ,x_return_status => l_return_status
8144: ,x_msg_count => l_msg_count
8145: ,x_msg_data => l_msg_data);
8146:
8147: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8148: x_msg_count := FND_MSG_PUB.count_msg;
8149: if x_msg_count = 1 then
8150: pa_interface_utils_pub.get_messages
8151: (p_encoded => FND_API.G_TRUE,

Line 8151: (p_encoded => FND_API.G_TRUE,

8147: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8148: x_msg_count := FND_MSG_PUB.count_msg;
8149: if x_msg_count = 1 then
8150: pa_interface_utils_pub.get_messages
8151: (p_encoded => FND_API.G_TRUE,
8152: p_msg_index => 1,
8153: p_msg_count => l_msg_count,
8154: p_msg_data => l_msg_data,
8155: p_data => l_data,

Line 8173: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8169: ,x_msg_count => l_msg_count
8170: ,x_msg_data => l_msg_data
8171: );
8172:
8173: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8174: x_msg_count := FND_MSG_PUB.count_msg;
8175: if x_msg_count = 1 then
8176: pa_interface_utils_pub.get_messages
8177: (p_encoded => FND_API.G_TRUE,

Line 8177: (p_encoded => FND_API.G_TRUE,

8173: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8174: x_msg_count := FND_MSG_PUB.count_msg;
8175: if x_msg_count = 1 then
8176: pa_interface_utils_pub.get_messages
8177: (p_encoded => FND_API.G_TRUE,
8178: p_msg_index => 1,
8179: p_msg_count => l_msg_count,
8180: p_msg_data => l_msg_data,
8181: p_data => l_data,

Line 8193: ( p_validate_only => FND_API.G_FALSE

8189: --my_error_msg( 'before PA_PROJECT_STRUCTURE_UTILS.GET_STRUC_TYPE_FOR_VERSION' );
8190:
8191: if PA_PROJECT_STRUCTURE_UTILS.GET_STRUC_TYPE_FOR_VERSION(p_structure_version_id, 'WORKPLAN') = 'Y' then
8192: PA_TASK_PUB1.CREATE_SCHEDULE_VERSION
8193: ( p_validate_only => FND_API.G_FALSE
8194: ,p_element_version_id => l_task_version_id
8195: ,p_scheduled_start_date => nvl(p_scheduled_start_date(i), sysdate)
8196: ,p_scheduled_end_date => nvl(p_scheduled_finish_date(i),nvl(p_scheduled_start_date(i), sysdate))
8197: ,p_planned_effort => p_planned_effort(i)

Line 8204: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8200: ,x_return_status => l_return_status
8201: ,x_msg_count => l_msg_count
8202: ,x_msg_data => l_msg_data );
8203:
8204: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8205: x_msg_count := FND_MSG_PUB.count_msg;
8206: if x_msg_count = 1 then
8207: pa_interface_utils_pub.get_messages
8208: (p_encoded => FND_API.G_TRUE,

Line 8208: (p_encoded => FND_API.G_TRUE,

8204: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8205: x_msg_count := FND_MSG_PUB.count_msg;
8206: if x_msg_count = 1 then
8207: pa_interface_utils_pub.get_messages
8208: (p_encoded => FND_API.G_TRUE,
8209: p_msg_index => 1,
8210: p_msg_count => l_msg_count,
8211: p_msg_data => l_msg_data,
8212: p_data => l_data,

Line 8251: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8247: x_msg_count => l_msg_count,
8248: x_msg_data => l_msg_data
8249: );
8250:
8251: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8252: x_msg_count := FND_MSG_PUB.count_msg;
8253: if x_msg_count = 1 then
8254: pa_interface_utils_pub.get_messages
8255: (p_encoded => FND_API.G_TRUE,

Line 8255: (p_encoded => FND_API.G_TRUE,

8251: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8252: x_msg_count := FND_MSG_PUB.count_msg;
8253: if x_msg_count = 1 then
8254: pa_interface_utils_pub.get_messages
8255: (p_encoded => FND_API.G_TRUE,
8256: p_msg_index => 1,
8257: p_msg_count => l_msg_count,
8258: p_msg_data => l_msg_data,
8259: p_data => l_data,

Line 8309: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8305: p_procedure_name => 'CREATE_TASKS',
8306: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
8307: RAISE API_ERROR;
8308: END;
8309: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8310: x_msg_count := FND_MSG_PUB.count_msg;
8311: if x_msg_count = 1 then
8312: pa_interface_utils_pub.get_messages
8313: (p_encoded => FND_API.G_TRUE,

Line 8313: (p_encoded => FND_API.G_TRUE,

8309: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8310: x_msg_count := FND_MSG_PUB.count_msg;
8311: if x_msg_count = 1 then
8312: pa_interface_utils_pub.get_messages
8313: (p_encoded => FND_API.G_TRUE,
8314: p_msg_index => 1,
8315: p_msg_count => l_msg_count,
8316: p_msg_data => l_msg_data,
8317: p_data => l_data,

Line 8333: p_commit => FND_API.G_FALSE,

8329: --Hsiu added for date rollup; workplan only
8330:
8331: if PA_PROJECT_STRUCTURE_UTILS.GET_STRUC_TYPE_FOR_VERSION(p_structure_version_id, 'WORKPLAN') = 'Y' then
8332: PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup(
8333: p_commit => FND_API.G_FALSE,
8334: p_element_versions => l_tasks_ver_ids,
8335: x_return_status => l_return_status,
8336: x_msg_count => l_msg_count,
8337: x_msg_data => l_msg_data);

Line 8339: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8335: x_return_status => l_return_status,
8336: x_msg_count => l_msg_count,
8337: x_msg_data => l_msg_data);
8338:
8339: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8340: x_msg_count := FND_MSG_PUB.count_msg;
8341: if x_msg_count = 1 then
8342: pa_interface_utils_pub.get_messages
8343: (p_encoded => FND_API.G_TRUE,

Line 8343: (p_encoded => FND_API.G_TRUE,

8339: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8340: x_msg_count := FND_MSG_PUB.count_msg;
8341: if x_msg_count = 1 then
8342: pa_interface_utils_pub.get_messages
8343: (p_encoded => FND_API.G_TRUE,
8344: p_msg_index => 1,
8345: p_msg_count => l_msg_count,
8346: p_msg_data => l_msg_data,
8347: p_data => l_data,

Line 8383: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

8379: ,x_return_status => l_return_status
8380: ,x_msg_count => l_msg_count
8381: ,x_msg_data => l_msg_data );
8382:
8383: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8384: x_msg_count := FND_MSG_PUB.count_msg;
8385: if x_msg_count = 1 then
8386: pa_interface_utils_pub.get_messages
8387: (p_encoded => FND_API.G_TRUE,

Line 8387: (p_encoded => FND_API.G_TRUE,

8383: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
8384: x_msg_count := FND_MSG_PUB.count_msg;
8385: if x_msg_count = 1 then
8386: pa_interface_utils_pub.get_messages
8387: (p_encoded => FND_API.G_TRUE,
8388: p_msg_index => 1,
8389: p_msg_count => l_msg_count,
8390: p_msg_data => l_msg_data,
8391: p_data => l_data,

Line 8401: x_return_status := FND_API.G_RET_STS_SUCCESS;

8397: -- anlee end of changes
8398:
8399: END IF;
8400:
8401: x_return_status := FND_API.G_RET_STS_SUCCESS;
8402: EXCEPTION
8403: WHEN API_ERROR THEN
8404: rollback to create_tasks;
8405: x_return_status := FND_API.G_RET_STS_ERROR;

Line 8405: x_return_status := FND_API.G_RET_STS_ERROR;

8401: x_return_status := FND_API.G_RET_STS_SUCCESS;
8402: EXCEPTION
8403: WHEN API_ERROR THEN
8404: rollback to create_tasks;
8405: x_return_status := FND_API.G_RET_STS_ERROR;
8406: WHEN OTHERS THEN
8407: rollback to create_tasks;
8408: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8409: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_STRUCTURE_TASK_PUB',

Line 8408: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

8404: rollback to create_tasks;
8405: x_return_status := FND_API.G_RET_STS_ERROR;
8406: WHEN OTHERS THEN
8407: rollback to create_tasks;
8408: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8409: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_STRUCTURE_TASK_PUB',
8410: p_procedure_name => 'CREATE_TASKS',
8411: p_error_text => SUBSTRB(SQLERRM,1,240));
8412: raise;

Line 8422: -- p_commit IN VARCHAR2 := FND_API.G_FALSE

8418: -- Type : Utility
8419: -- Pre-reqs : None
8420: -- Return Value : N/A
8421: -- Prameters
8422: -- p_commit IN VARCHAR2 := FND_API.G_FALSE
8423: -- p_element_versions IN PA_NUM_1000_NUM
8424: -- p_outline_level IN PA_NUM_1000_NUM
8425: -- p_top_peer_count IN NUMBER
8426: -- p_top_sub_count IN NUMBER

Line 8966: x_return_status := FND_API.G_RET_STS_SUCCESS;

8962: IF l_debug_mode = 'Y' THEN
8963: pa_debug.reset_curr_function;
8964: END IF;
8965:
8966: x_return_status := FND_API.G_RET_STS_SUCCESS;
8967: EXCEPTION
8968: WHEN OTHERS THEN
8969: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8970: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 8969: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

8965:
8966: x_return_status := FND_API.G_RET_STS_SUCCESS;
8967: EXCEPTION
8968: WHEN OTHERS THEN
8969: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8970: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
8971: p_procedure_name => 'CALC_TASK_WEIGHTS',
8972: p_error_text => SUBSTRB(SQLERRM,1,240));
8973: IF l_debug_mode = 'Y' THEN

Line 8986: -- p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE

8982: -- Pre-reqs : None
8983: -- Return Value : N/A
8984: -- Parameters
8985: -- p_api_version IN NUMBER := 1.0
8986: -- p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
8987: -- p_commit IN VARCHAR2 := FND_API.G_FALSE
8988: -- p_validate_only IN VARCHAR2 := FND_API.G_TRUE
8989: -- p_validation_level IN VARCHAR2 := 100
8990: -- p_calling_module IN VARCHAR2 := 'SELF_SERVICE'

Line 8987: -- p_commit IN VARCHAR2 := FND_API.G_FALSE

8983: -- Return Value : N/A
8984: -- Parameters
8985: -- p_api_version IN NUMBER := 1.0
8986: -- p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
8987: -- p_commit IN VARCHAR2 := FND_API.G_FALSE
8988: -- p_validate_only IN VARCHAR2 := FND_API.G_TRUE
8989: -- p_validation_level IN VARCHAR2 := 100
8990: -- p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
8991: -- p_debug_mode IN VARCHAR2 := 'N'

Line 8988: -- p_validate_only IN VARCHAR2 := FND_API.G_TRUE

8984: -- Parameters
8985: -- p_api_version IN NUMBER := 1.0
8986: -- p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
8987: -- p_commit IN VARCHAR2 := FND_API.G_FALSE
8988: -- p_validate_only IN VARCHAR2 := FND_API.G_TRUE
8989: -- p_validation_level IN VARCHAR2 := 100
8990: -- p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
8991: -- p_debug_mode IN VARCHAR2 := 'N'
8992: -- p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 9008: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE

9004: --
9005: procedure Update_Task_Weighting
9006: (
9007: p_api_version IN NUMBER := 1.0
9008: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
9009: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
9010: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
9011: ,p_validation_level IN VARCHAR2 := 100
9012: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'

Line 9009: ,p_commit IN VARCHAR2 := FND_API.G_FALSE

9005: procedure Update_Task_Weighting
9006: (
9007: p_api_version IN NUMBER := 1.0
9008: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
9009: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
9010: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
9011: ,p_validation_level IN VARCHAR2 := 100
9012: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
9013: ,p_debug_mode IN VARCHAR2 := 'N'

Line 9010: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE

9006: (
9007: p_api_version IN NUMBER := 1.0
9008: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
9009: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
9010: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
9011: ,p_validation_level IN VARCHAR2 := 100
9012: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
9013: ,p_debug_mode IN VARCHAR2 := 'N'
9014: ,p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 9032: IF (p_commit = FND_API.G_TRUE) THEN

9028: IF (p_debug_mode = 'Y') THEN
9029: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_WEIGHTING begin');
9030: END IF;
9031:
9032: IF (p_commit = FND_API.G_TRUE) THEN
9033: savepoint update_task_weighting;
9034: END IF;
9035:
9036: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 9036: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

9032: IF (p_commit = FND_API.G_TRUE) THEN
9033: savepoint update_task_weighting;
9034: END IF;
9035:
9036: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
9037: FND_MSG_PUB.initialize;
9038: END IF;
9039:
9040: PA_TASK_PVT1.Update_Task_Weighting(

Line 9050: when FND_API.G_EXC_ERROR then

9046: ,x_msg_data => x_msg_data
9047: );
9048:
9049: EXCEPTION
9050: when FND_API.G_EXC_ERROR then
9051: if p_commit = FND_API.G_TRUE then
9052: rollback to update_task_weighting;
9053: end if;
9054: x_return_status := FND_API.G_RET_STS_ERROR;

Line 9051: if p_commit = FND_API.G_TRUE then

9047: );
9048:
9049: EXCEPTION
9050: when FND_API.G_EXC_ERROR then
9051: if p_commit = FND_API.G_TRUE then
9052: rollback to update_task_weighting;
9053: end if;
9054: x_return_status := FND_API.G_RET_STS_ERROR;
9055: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 9054: x_return_status := FND_API.G_RET_STS_ERROR;

9050: when FND_API.G_EXC_ERROR then
9051: if p_commit = FND_API.G_TRUE then
9052: rollback to update_task_weighting;
9053: end if;
9054: x_return_status := FND_API.G_RET_STS_ERROR;
9055: when FND_API.G_EXC_UNEXPECTED_ERROR then
9056: if p_commit = FND_API.G_TRUE then
9057: rollback to update_task_weighting;
9058: end if;

Line 9055: when FND_API.G_EXC_UNEXPECTED_ERROR then

9051: if p_commit = FND_API.G_TRUE then
9052: rollback to update_task_weighting;
9053: end if;
9054: x_return_status := FND_API.G_RET_STS_ERROR;
9055: when FND_API.G_EXC_UNEXPECTED_ERROR then
9056: if p_commit = FND_API.G_TRUE then
9057: rollback to update_task_weighting;
9058: end if;
9059: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 9056: if p_commit = FND_API.G_TRUE then

9052: rollback to update_task_weighting;
9053: end if;
9054: x_return_status := FND_API.G_RET_STS_ERROR;
9055: when FND_API.G_EXC_UNEXPECTED_ERROR then
9056: if p_commit = FND_API.G_TRUE then
9057: rollback to update_task_weighting;
9058: end if;
9059: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
9060: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 9059: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

9055: when FND_API.G_EXC_UNEXPECTED_ERROR then
9056: if p_commit = FND_API.G_TRUE then
9057: rollback to update_task_weighting;
9058: end if;
9059: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
9060: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
9061: p_procedure_name => 'UPDATE_TASK_WEIGHTING',
9062: p_error_text => SUBSTRB(SQLERRM,1,240));
9063: when OTHERS then

Line 9064: if p_commit = FND_API.G_TRUE then

9060: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
9061: p_procedure_name => 'UPDATE_TASK_WEIGHTING',
9062: p_error_text => SUBSTRB(SQLERRM,1,240));
9063: when OTHERS then
9064: if p_commit = FND_API.G_TRUE then
9065: rollback to update_task_weighting;
9066: end if;
9067: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
9068: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 9067: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

9063: when OTHERS then
9064: if p_commit = FND_API.G_TRUE then
9065: rollback to update_task_weighting;
9066: end if;
9067: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
9068: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
9069: p_procedure_name => 'UPDATE_TASK_WEIGHTING',
9070: p_error_text => SUBSTRB(SQLERRM,1,240));
9071: raise;

Line 9079: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

9075: -- Amit : Following procedure added for Bug 2838700
9076:
9077: PROCEDURE INDENT_TASK_VERSION_BULK (
9078: p_api_version IN NUMBER :=1.0,
9079: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
9080: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
9081: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
9082: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
9083: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 9080: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

9076:
9077: PROCEDURE INDENT_TASK_VERSION_BULK (
9078: p_api_version IN NUMBER :=1.0,
9079: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
9080: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
9081: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
9082: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
9083: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
9084: p_debug_mode IN VARCHAR2 :='N',

Line 9081: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

9077: PROCEDURE INDENT_TASK_VERSION_BULK (
9078: p_api_version IN NUMBER :=1.0,
9079: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
9080: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
9081: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
9082: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
9083: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
9084: p_debug_mode IN VARCHAR2 :='N',
9085: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 9082: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

9078: p_api_version IN NUMBER :=1.0,
9079: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
9080: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
9081: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
9082: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
9083: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
9084: p_debug_mode IN VARCHAR2 :='N',
9085: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
9086: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 9381: IF (p_commit = FND_API.G_TRUE) THEN

9377: IF (p_debug_mode = 'Y') THEN
9378: pa_debug.debug('PA_TASK_PUB1.INDENT_TASK_VERSION_BULK begin');
9379: END IF;
9380:
9381: IF (p_commit = FND_API.G_TRUE) THEN
9382: savepoint indent_task_version_bulk;
9383: END IF;
9384:
9385: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 9385: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

9381: IF (p_commit = FND_API.G_TRUE) THEN
9382: savepoint indent_task_version_bulk;
9383: END IF;
9384:
9385: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
9386: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
9387: END IF;
9388:
9389: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 9386: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

9382: savepoint indent_task_version_bulk;
9383: END IF;
9384:
9385: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
9386: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
9387: END IF;
9388:
9389: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
9390: FND_MSG_PUB.initialize;

Line 9389: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

9385: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
9386: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
9387: END IF;
9388:
9389: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
9390: FND_MSG_PUB.initialize;
9391: END IF;
9392:
9393: --bug 4075697

Line 9441: raise FND_API.G_EXC_ERROR;

9437: END IF;
9438: IF l_update_parent_task_allowed = 'N' THEN
9439: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9440: p_msg_name => 'PA_PR_PM_NO_MOVE_TASK');
9441: raise FND_API.G_EXC_ERROR;
9442: END IF;
9443: END IF;
9444: END IF;
9445:

Line 9455: raise FND_API.G_EXC_ERROR;

9451: p_structure_version_id,
9452: p_task_version_id)) THEN
9453: --deleting linked task. Error
9454: PA_UTILS.ADD_MESSAGE('PA', 'PA_PS_NO_IND_LINKED_TASK');
9455: raise FND_API.G_EXC_ERROR;
9456: END IF;
9457: END IF;
9458:
9459: -- Get Source Task Information

Line 9482: raise FND_API.G_EXC_ERROR;

9478: IF ('Y' = pa_proj_elements_utils.CHECK_ELEMENT_HAS_PHASE(
9479: src_proj_element_id)) THEN
9480: --Indenting a task with phase. Error
9481: PA_UTILS.ADD_MESSAGE('PA', 'PA_LC_NO_INDENT_PHASE_TASK');
9482: raise FND_API.G_EXC_ERROR;
9483: END IF;
9484: END IF;
9485:
9486:

Line 9490: raise FND_API.G_EXC_ERROR;

9486:
9487: IF src_seq_number = 1 then
9488: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA'
9489: ,p_msg_name => 'PA_PS_CANNOT_INDENT');
9490: raise FND_API.G_EXC_ERROR;
9491: END IF;
9492:
9493: /* Bug 2843737 Added logic to populate the error message when you try to indent lowest task
9494: Also restructured the logic to get the reference task */

Line 9510: raise FND_API.G_EXC_ERROR;

9506:
9507: IF src_wbs_level > ref_wbs_level then
9508: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA'
9509: ,p_msg_name => 'PA_PS_CANNOT_INDENT');
9510: raise FND_API.G_EXC_ERROR;
9511: END IF;
9512:
9513: IF src_wbs_level = ref_wbs_level then
9514: l_peer_or_sub := 'SUB';

Line 9580: raise FND_API.G_EXC_ERROR;

9576: --IF PA_PROJ_ELEMENTS_UTILS.check_deliv_in_hierarchy(p_task_version_id,ref_elem_ver_id) = 'Y' THEN
9577: IF PA_PROJ_ELEMENTS_UTILS.check_deliv_in_hierarchy(p_task_version_id, l_ref_tsk_version_id) = 'Y' THEN
9578: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9579: p_msg_name => 'PA_PS_CHK_DELIV_UPDATE');
9580: raise FND_API.G_EXC_ERROR;
9581: END IF;
9582:
9583: --Check if ok to indent this task
9584: PA_PROJ_ELEMENTS_UTILS.Check_move_task_ok(

Line 9593: raise FND_API.G_EXC_ERROR;

9589:
9590: IF (l_return_status <> 'Y') THEN
9591: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9592: p_msg_name => l_error_msg_code);
9593: raise FND_API.G_EXC_ERROR;
9594: END IF;
9595:
9596: --check if ok to create subtask
9597: IF (l_peer_or_sub = 'PEER') THEN

Line 9616: raise FND_API.G_EXC_ERROR;

9612:
9613: IF (NVL(l_new_par_ver_id, -99) <> NVL (l_old_par_ver_id, -99)) THEN
9614: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9615: p_msg_name => 'PA_CANT_CHANGE_PARENT');
9616: raise FND_API.G_EXC_ERROR;
9617: END IF;
9618: END IF;
9619: --end bug 3069306
9620:

Line 9630: raise FND_API.G_EXC_ERROR;

9626:
9627: IF (l_return_status <> 'Y') THEN
9628: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9629: p_msg_name => l_error_msg_code);
9630: raise FND_API.G_EXC_ERROR;
9631: END IF;
9632:
9633: --bug 4099488
9634: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(l_parent_ver_id, p_task_version_id) = 'N' THEN

Line 9637: raise FND_API.G_EXC_ERROR;

9633: --bug 4099488
9634: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(l_parent_ver_id, p_task_version_id) = 'N' THEN
9635: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9636: p_msg_name => 'PA_INV_MOV_TSK_DEP_ERR');
9637: raise FND_API.G_EXC_ERROR;
9638: END IF;
9639: --end bug 4099488
9640: ELSE
9641: --bug 3069306

Line 9655: raise FND_API.G_EXC_ERROR;

9651:
9652: IF (NVL(l_new_par_ver_id, -99) <> NVL (l_old_par_ver_id, -99)) THEN
9653: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9654: p_msg_name => 'PA_CANT_CHANGE_PARENT');
9655: raise FND_API.G_EXC_ERROR;
9656: END IF;
9657: END IF;
9658: --end bug 3069306
9659:

Line 9670: raise FND_API.G_EXC_ERROR;

9666:
9667: IF (l_return_status <> 'Y') THEN
9668: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9669: p_msg_name => l_error_msg_code);
9670: raise FND_API.G_EXC_ERROR;
9671: END IF;
9672:
9673: --bug 4099488
9674: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(ref_elem_ver_id, p_task_version_id) = 'N' THEN

Line 9677: raise FND_API.G_EXC_ERROR;

9673: --bug 4099488
9674: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(ref_elem_ver_id, p_task_version_id) = 'N' THEN
9675: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9676: p_msg_name => 'PA_INV_MOV_TSK_DEP_ERR');
9677: raise FND_API.G_EXC_ERROR;
9678: END IF;
9679: --end bug 4099488
9680: END IF;
9681:

Line 9699: raise FND_API.G_EXC_ERROR;

9695:
9696: IF (x_return_status <> 'S') THEN -- 4275757 : Changed from 'Y' to 'S'
9697: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9698: p_msg_name => l_error_msg_code);
9699: raise FND_API.G_EXC_ERROR;
9700: End If;
9701: End If;
9702:
9703: --check the task is a lowest task bug 3301192

Line 9712: ( p_validate_only => FND_API.G_FALSE,

9708:
9709: The processing done by the followig two calls is made now as plsql table bulk processing
9710:
9711: PA_TASK_PUB1.Update_Task_Version
9712: ( p_validate_only => FND_API.G_FALSE,
9713: p_ref_task_version_id => l_ref_task_version_id,
9714: p_peer_or_sub => l_peer_or_sub,
9715: p_task_version_id => p_task_version_id,
9716: p_record_version_number => p_record_version_number,

Line 10023: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

10019: ,x_msg_data => l_msg_data
10020: );
10021:
10022:
10023: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10024: x_msg_count := FND_MSG_PUB.count_msg;
10025: IF x_msg_count = 1 then
10026: pa_interface_utils_pub.get_messages
10027: (p_encoded => FND_API.G_TRUE,

Line 10027: (p_encoded => FND_API.G_TRUE,

10023: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10024: x_msg_count := FND_MSG_PUB.count_msg;
10025: IF x_msg_count = 1 then
10026: pa_interface_utils_pub.get_messages
10027: (p_encoded => FND_API.G_TRUE,
10028: p_msg_index => 1,
10029: p_msg_count => l_msg_count,
10030: p_msg_data => l_msg_data,
10031: p_data => l_data,

Line 10035: raise FND_API.G_EXC_ERROR;

10031: p_data => l_data,
10032: p_msg_index_out => l_msg_index_out);
10033: x_msg_data := l_data;
10034: END IF;
10035: raise FND_API.G_EXC_ERROR;
10036: END IF;
10037:
10038: --for task weighting
10039: PA_TASK_PVT1.RECALC_TASKS_WEIGHTING(

Line 10049: (p_encoded => FND_API.G_TRUE,

10045:
10046: x_msg_count := FND_MSG_PUB.count_msg;
10047: IF x_msg_count = 1 then
10048: pa_interface_utils_pub.get_messages
10049: (p_encoded => FND_API.G_TRUE,
10050: p_msg_index => 1,
10051: p_msg_count => l_msg_count,
10052: p_msg_data => l_msg_data,
10053: p_data => l_data,

Line 10069: (p_encoded => FND_API.G_TRUE,

10065:
10066: x_msg_count := FND_MSG_PUB.count_msg;
10067: IF x_msg_count = 1 then
10068: pa_interface_utils_pub.get_messages
10069: (p_encoded => FND_API.G_TRUE,
10070: p_msg_index => 1,
10071: p_msg_count => l_msg_count,
10072: p_msg_data => l_msg_data,
10073: p_data => l_data,

Line 10148: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

10144: ,x_msg_count => l_msg_count
10145: ,x_msg_data => l_msg_data );
10146:
10147: -- Merged from 85
10148: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10149: x_msg_count := FND_MSG_PUB.count_msg;
10150: IF x_msg_count = 1 then
10151: pa_interface_utils_pub.get_messages
10152: (p_encoded => FND_API.G_TRUE,

Line 10152: (p_encoded => FND_API.G_TRUE,

10148: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10149: x_msg_count := FND_MSG_PUB.count_msg;
10150: IF x_msg_count = 1 then
10151: pa_interface_utils_pub.get_messages
10152: (p_encoded => FND_API.G_TRUE,
10153: p_msg_index => 1,
10154: p_msg_count => l_msg_count,
10155: p_msg_data => l_msg_data,
10156: p_data => l_data,

Line 10160: raise FND_API.G_EXC_ERROR;

10156: p_data => l_data,
10157: p_msg_index_out => l_msg_index_out);
10158: x_msg_data := l_data;
10159: END IF;
10160: raise FND_API.G_EXC_ERROR;
10161: END IF;
10162:
10163: --Bug 2947492 ( Indent )
10164: --

Line 10176: raise FND_API.G_EXC_ERROR;

10172: IF NVL( l_top_task_id, -99 ) <> NVL( l_old_top_task_id, -99 )
10173: THEN
10174: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10175: p_msg_name => 'PA_CANT_CHANGE_PARENT');
10176: raise FND_API.G_EXC_ERROR;
10177: END IF;
10178: --End bug 2967204
10179:
10180: --First call the check_reparent ok

Line 10194: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

10190: ,x_msg_count => l_msg_count
10191: ,x_msg_data => l_msg_data
10192: );
10193:
10194: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10195: x_msg_count := FND_MSG_PUB.count_msg;
10196: IF x_msg_count = 1 then
10197: pa_interface_utils_pub.get_messages
10198: (p_encoded => FND_API.G_TRUE,

Line 10198: (p_encoded => FND_API.G_TRUE,

10194: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10195: x_msg_count := FND_MSG_PUB.count_msg;
10196: IF x_msg_count = 1 then
10197: pa_interface_utils_pub.get_messages
10198: (p_encoded => FND_API.G_TRUE,
10199: p_msg_index => 1,
10200: p_msg_count => l_msg_count,
10201: p_msg_data => l_msg_data,
10202: p_data => l_data,

Line 10206: raise FND_API.G_EXC_ERROR;

10202: p_data => l_data,
10203: p_msg_index_out => l_msg_index_out);
10204: x_msg_data := l_data;
10205: END IF;
10206: raise FND_API.G_EXC_ERROR;
10207: END IF;
10208: */ --commenting out. check mails form Venkatesh Jayaraman dated 22 Jan 04
10209:
10210: /* Commenting out the call to MAINTAIN_PLANNABLE_TASKS for bug 3010538

Line 10226: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

10222: , x_msg_data => l_msg_data
10223: , x_msg_count => l_msg_count
10224: );
10225:
10226: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10227: x_msg_count := FND_MSG_PUB.count_msg;
10228: IF x_msg_count = 1 then
10229: pa_interface_utils_pub.get_messages
10230: (p_encoded => FND_API.G_TRUE,

Line 10230: (p_encoded => FND_API.G_TRUE,

10226: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
10227: x_msg_count := FND_MSG_PUB.count_msg;
10228: IF x_msg_count = 1 then
10229: pa_interface_utils_pub.get_messages
10230: (p_encoded => FND_API.G_TRUE,
10231: p_msg_index => 1,
10232: p_msg_count => l_msg_count,
10233: p_msg_data => l_msg_data,
10234: p_data => l_data,

Line 10238: raise FND_API.G_EXC_ERROR;

10234: p_data => l_data,
10235: p_msg_index_out => l_msg_index_out);
10236: x_msg_data := l_data;
10237: END IF;
10238: raise FND_API.G_EXC_ERROR;
10239: END IF;
10240: bug 3010538 */
10241:
10242: --End Bug 2947492 ( Indent )

Line 10262: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then

10258: ,x_msg_count => x_msg_count
10259: ,x_msg_data => x_msg_data
10260: );
10261:
10262: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
10263: x_msg_count := FND_MSG_PUB.count_msg;
10264: If x_msg_count = 1 then
10265: pa_interface_utils_pub.get_messages
10266: (p_encoded => FND_API.G_TRUE,

Line 10266: (p_encoded => FND_API.G_TRUE,

10262: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
10263: x_msg_count := FND_MSG_PUB.count_msg;
10264: If x_msg_count = 1 then
10265: pa_interface_utils_pub.get_messages
10266: (p_encoded => FND_API.G_TRUE,
10267: p_msg_index => 1,
10268: p_msg_count => l_msg_count,
10269: p_msg_data => l_msg_data,
10270: p_data => l_data,

Line 10274: raise FND_API.G_EXC_ERROR;

10270: p_data => l_data,
10271: p_msg_index_out => l_msg_index_out);
10272: x_msg_data := l_data;
10273: End If;
10274: raise FND_API.G_EXC_ERROR;
10275: End If;
10276: End If;
10277: -- End of FP_M changes
10278:

Line 10283: p_commit => FND_API.G_FALSE,

10279: l_tasks_ver_ids.extend;
10280: l_tasks_ver_ids(l_tasks_ver_ids.count) := p_task_version_id;
10281:
10282: PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup(
10283: p_commit => FND_API.G_FALSE,
10284: p_element_versions => l_tasks_ver_ids,
10285: x_return_status => l_return_status,
10286: x_msg_count => l_msg_count,
10287: x_msg_data => l_msg_data);

Line 10289: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

10285: x_return_status => l_return_status,
10286: x_msg_count => l_msg_count,
10287: x_msg_data => l_msg_data);
10288:
10289: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10290: x_msg_count := FND_MSG_PUB.count_msg;
10291: if x_msg_count = 1 then
10292: pa_interface_utils_pub.get_messages
10293: (p_encoded => FND_API.G_TRUE,

Line 10293: (p_encoded => FND_API.G_TRUE,

10289: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10290: x_msg_count := FND_MSG_PUB.count_msg;
10291: if x_msg_count = 1 then
10292: pa_interface_utils_pub.get_messages
10293: (p_encoded => FND_API.G_TRUE,
10294: p_msg_index => 1,
10295: p_msg_count => l_msg_count,
10296: p_msg_data => l_msg_data,
10297: p_data => l_data,

Line 10301: raise FND_API.G_EXC_ERROR;

10297: p_data => l_data,
10298: p_msg_index_out => l_msg_index_out);
10299: x_msg_data := l_data;
10300: end if;
10301: raise FND_API.G_EXC_ERROR;
10302: end if;
10303:
10304: --hsiu added for task status
10305: --if versioning is off, rollup.

Line 10315: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

10311: ,x_msg_count => l_msg_count
10312: ,x_msg_data => l_msg_data
10313: );
10314:
10315: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10316: x_msg_count := FND_MSG_PUB.count_msg;
10317: if x_msg_count = 1 then
10318: pa_interface_utils_pub.get_messages
10319: (p_encoded => FND_API.G_TRUE,

Line 10319: (p_encoded => FND_API.G_TRUE,

10315: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10316: x_msg_count := FND_MSG_PUB.count_msg;
10317: if x_msg_count = 1 then
10318: pa_interface_utils_pub.get_messages
10319: (p_encoded => FND_API.G_TRUE,
10320: p_msg_index => 1,
10321: p_msg_count => l_msg_count,
10322: p_msg_data => l_msg_data,
10323: p_data => l_data,

Line 10327: raise FND_API.G_EXC_ERROR;

10323: p_data => l_data,
10324: p_msg_index_out => l_msg_index_out);
10325: x_msg_data := l_data;
10326: end if;
10327: raise FND_API.G_EXC_ERROR;
10328: end if;
10329: END IF;
10330:
10331: --end task status changes

Line 10384: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

10380: ,x_return_status => l_return_status
10381: ,x_msg_count => l_msg_count
10382: ,x_msg_data => l_msg_data);
10383:
10384: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10385: x_msg_count := FND_MSG_PUB.count_msg;
10386: if x_msg_count = 1 then
10387: pa_interface_utils_pub.get_messages
10388: (p_encoded => FND_API.G_TRUE,

Line 10388: (p_encoded => FND_API.G_TRUE,

10384: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10385: x_msg_count := FND_MSG_PUB.count_msg;
10386: if x_msg_count = 1 then
10387: pa_interface_utils_pub.get_messages
10388: (p_encoded => FND_API.G_TRUE,
10389: p_msg_index => 1,
10390: p_msg_count => l_msg_count,
10391: p_msg_data => l_msg_data,
10392: p_data => l_data,

Line 10396: raise FND_API.G_EXC_ERROR;

10392: p_data => l_data,
10393: p_msg_index_out => l_msg_index_out);
10394: x_msg_data := l_data;
10395: end if;
10396: raise FND_API.G_EXC_ERROR;
10397: end if;
10398: END IF;
10399: --3035902: end process update flag changes
10400:

Line 10416: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

10412: ,x_return_status => l_return_status
10413: ,x_msg_count => l_msg_count
10414: ,x_msg_data => l_msg_data );
10415:
10416: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10417: x_msg_count := FND_MSG_PUB.count_msg;
10418: if x_msg_count = 1 then
10419: pa_interface_utils_pub.get_messages
10420: (p_encoded => FND_API.G_TRUE,

Line 10420: (p_encoded => FND_API.G_TRUE,

10416: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10417: x_msg_count := FND_MSG_PUB.count_msg;
10418: if x_msg_count = 1 then
10419: pa_interface_utils_pub.get_messages
10420: (p_encoded => FND_API.G_TRUE,
10421: p_msg_index => 1,
10422: p_msg_count => l_msg_count,
10423: p_msg_data => l_msg_data,
10424: p_data => l_data,

Line 10428: raise FND_API.G_EXC_ERROR;

10424: p_data => l_data,
10425: p_msg_index_out => l_msg_index_out);
10426: x_msg_data := l_data;
10427: end if;
10428: raise FND_API.G_EXC_ERROR;
10429: end if;
10430: END IF;
10431: END IF;
10432:

Line 10483: RAISE FND_API.G_EXC_ERROR;

10479: WHEN OTHERS THEN
10480: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
10481: p_procedure_name => 'INDENT_TASK_VERSION_BULK',
10482: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
10483: RAISE FND_API.G_EXC_ERROR;
10484: END;
10485:
10486: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10487: x_msg_count := FND_MSG_PUB.count_msg;

Line 10486: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

10482: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
10483: RAISE FND_API.G_EXC_ERROR;
10484: END;
10485:
10486: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10487: x_msg_count := FND_MSG_PUB.count_msg;
10488: if x_msg_count = 1 then
10489: pa_interface_utils_pub.get_messages
10490: (p_encoded => FND_API.G_TRUE,

Line 10490: (p_encoded => FND_API.G_TRUE,

10486: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
10487: x_msg_count := FND_MSG_PUB.count_msg;
10488: if x_msg_count = 1 then
10489: pa_interface_utils_pub.get_messages
10490: (p_encoded => FND_API.G_TRUE,
10491: p_msg_index => 1,
10492: p_msg_count => l_msg_count,
10493: p_msg_data => l_msg_data,
10494: p_data => l_data,

Line 10498: raise FND_API.G_EXC_ERROR;

10494: p_data => l_data,
10495: p_msg_index_out => l_msg_index_out);
10496: x_msg_data := l_data;
10497: end if;
10498: raise FND_API.G_EXC_ERROR;
10499: end if;
10500: END IF; --<>
10501: END IF; --<>
10502:

Line 10507: x_return_status := FND_API.G_RET_STS_SUCCESS;

10503: --bug 4149392
10504: PA_TASK_PUB1.G_CALL_PJI_ROLLUP := NULL;
10505: --end bug 4149392
10506:
10507: x_return_status := FND_API.G_RET_STS_SUCCESS;
10508:
10509: IF (p_commit = FND_API.G_TRUE) THEN
10510: COMMIT;
10511: END IF;

Line 10509: IF (p_commit = FND_API.G_TRUE) THEN

10505: --end bug 4149392
10506:
10507: x_return_status := FND_API.G_RET_STS_SUCCESS;
10508:
10509: IF (p_commit = FND_API.G_TRUE) THEN
10510: COMMIT;
10511: END IF;
10512:
10513: IF (p_debug_mode = 'Y') THEN

Line 10518: when FND_API.G_EXC_ERROR then

10514: pa_debug.debug('PA_TASK_PUB1.INDENT_TASK_VERSION_BULK END');
10515: END IF;
10516:
10517: EXCEPTION
10518: when FND_API.G_EXC_ERROR then
10519: if p_commit = FND_API.G_TRUE then
10520: rollback to indent_task_version_bulk;
10521: end if;
10522: x_return_status := FND_API.G_RET_STS_ERROR;

Line 10519: if p_commit = FND_API.G_TRUE then

10515: END IF;
10516:
10517: EXCEPTION
10518: when FND_API.G_EXC_ERROR then
10519: if p_commit = FND_API.G_TRUE then
10520: rollback to indent_task_version_bulk;
10521: end if;
10522: x_return_status := FND_API.G_RET_STS_ERROR;
10523: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 10522: x_return_status := FND_API.G_RET_STS_ERROR;

10518: when FND_API.G_EXC_ERROR then
10519: if p_commit = FND_API.G_TRUE then
10520: rollback to indent_task_version_bulk;
10521: end if;
10522: x_return_status := FND_API.G_RET_STS_ERROR;
10523: when FND_API.G_EXC_UNEXPECTED_ERROR then
10524: if p_commit = FND_API.G_TRUE then
10525: rollback to indent_task_version_bulk;
10526: end if;

Line 10523: when FND_API.G_EXC_UNEXPECTED_ERROR then

10519: if p_commit = FND_API.G_TRUE then
10520: rollback to indent_task_version_bulk;
10521: end if;
10522: x_return_status := FND_API.G_RET_STS_ERROR;
10523: when FND_API.G_EXC_UNEXPECTED_ERROR then
10524: if p_commit = FND_API.G_TRUE then
10525: rollback to indent_task_version_bulk;
10526: end if;
10527: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 10524: if p_commit = FND_API.G_TRUE then

10520: rollback to indent_task_version_bulk;
10521: end if;
10522: x_return_status := FND_API.G_RET_STS_ERROR;
10523: when FND_API.G_EXC_UNEXPECTED_ERROR then
10524: if p_commit = FND_API.G_TRUE then
10525: rollback to indent_task_version_bulk;
10526: end if;
10527: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
10528: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 10527: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

10523: when FND_API.G_EXC_UNEXPECTED_ERROR then
10524: if p_commit = FND_API.G_TRUE then
10525: rollback to indent_task_version_bulk;
10526: end if;
10527: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
10528: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
10529: p_procedure_name => 'INDENT_TASK_VERSION_BULK',
10530: p_error_text => SUBSTRB(SQLERRM,1,240));
10531: when OTHERS then

Line 10532: if p_commit = FND_API.G_TRUE then

10528: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
10529: p_procedure_name => 'INDENT_TASK_VERSION_BULK',
10530: p_error_text => SUBSTRB(SQLERRM,1,240));
10531: when OTHERS then
10532: if p_commit = FND_API.G_TRUE then
10533: rollback to indent_task_version_bulk;
10534: end if;
10535: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
10536: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 10535: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

10531: when OTHERS then
10532: if p_commit = FND_API.G_TRUE then
10533: rollback to indent_task_version_bulk;
10534: end if;
10535: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
10536: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
10537: p_procedure_name => 'INDENT_TASK_VERSION_BULK',
10538: p_error_text => SUBSTRB(SQLERRM,1,240));
10539: raise;

Line 10547: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

10543: -- Amit : Following procedure added for Bug 2838700
10544:
10545: PROCEDURE OUTDENT_TASK_VERSION_BULK (
10546: p_api_version IN NUMBER :=1.0,
10547: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
10548: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
10549: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
10550: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
10551: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 10548: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

10544:
10545: PROCEDURE OUTDENT_TASK_VERSION_BULK (
10546: p_api_version IN NUMBER :=1.0,
10547: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
10548: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
10549: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
10550: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
10551: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
10552: p_debug_mode IN VARCHAR2 :='N',

Line 10549: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

10545: PROCEDURE OUTDENT_TASK_VERSION_BULK (
10546: p_api_version IN NUMBER :=1.0,
10547: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
10548: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
10549: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
10550: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
10551: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
10552: p_debug_mode IN VARCHAR2 :='N',
10553: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 10550: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

10546: p_api_version IN NUMBER :=1.0,
10547: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
10548: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
10549: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
10550: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
10551: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
10552: p_debug_mode IN VARCHAR2 :='N',
10553: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
10554: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 10887: IF (p_commit = FND_API.G_TRUE) THEN

10883: IF (p_debug_mode = 'Y') THEN
10884: pa_debug.debug('PA_TASK_PUB1.OUTDENT_TASK_VERSION_BULK begin');
10885: END IF;
10886:
10887: IF (p_commit = FND_API.G_TRUE) THEN
10888: savepoint OUTDENT_task_version_bulk;
10889: END IF;
10890:
10891: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 10891: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

10887: IF (p_commit = FND_API.G_TRUE) THEN
10888: savepoint OUTDENT_task_version_bulk;
10889: END IF;
10890:
10891: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
10892: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
10893: END IF;
10894:
10895: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 10892: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

10888: savepoint OUTDENT_task_version_bulk;
10889: END IF;
10890:
10891: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
10892: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
10893: END IF;
10894:
10895: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
10896: FND_MSG_PUB.initialize;

Line 10895: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

10891: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
10892: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
10893: END IF;
10894:
10895: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
10896: FND_MSG_PUB.initialize;
10897: END IF;
10898:
10899: --bug 4075697

Line 10949: raise FND_API.G_EXC_ERROR;

10945: END IF;
10946: IF l_update_parent_task_allowed = 'N' THEN
10947: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10948: p_msg_name => 'PA_PR_PM_NO_MOVE_TASK');
10949: raise FND_API.G_EXC_ERROR;
10950: END IF;
10951: END IF;
10952: END IF;
10953:

Line 10963: raise FND_API.G_EXC_ERROR;

10959: p_structure_version_id,
10960: p_task_version_id)) THEN
10961: --deleting linked task. Error
10962: PA_UTILS.ADD_MESSAGE('PA', 'PA_PS_NO_OUTD_LINKED_TASK');
10963: raise FND_API.G_EXC_ERROR;
10964: END IF;
10965: END IF;
10966:
10967: --hsiu added, for dates rollup

Line 10999: raise FND_API.G_EXC_ERROR;

10995:
10996: IF src_wbs_level = 1 then
10997: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA'
10998: ,p_msg_name => 'PA_PS_CANNOT_OUTDENT');
10999: raise FND_API.G_EXC_ERROR;
11000: END IF;
11001:
11002: -- Get Refernce Task Information
11003:

Line 11029: raise FND_API.G_EXC_ERROR;

11025:
11026: IF src_wbs_level < ref_wbs_level then
11027: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA'
11028: ,p_msg_name => 'PA_PS_CANNOT_OUTDENT');
11029: raise FND_API.G_EXC_ERROR;
11030: END IF;
11031:
11032: -- While Outdenting always the source task will become peer of reference task
11033: l_peer_or_sub := 'PEER';

Line 11062: raise FND_API.G_EXC_ERROR;

11058: END IF;
11059:
11060: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11061: p_msg_name => 'PA_PS_TASK_HAS_SUB_PROJ');
11062: raise FND_API.G_EXC_ERROR;
11063:
11064: end if;
11065:
11066: --Check if ok to OUTDENT this task

Line 11076: raise FND_API.G_EXC_ERROR;

11072:
11073: IF (l_return_status <> 'Y') THEN
11074: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11075: p_msg_name => l_error_msg_code);
11076: raise FND_API.G_EXC_ERROR;
11077: END IF;
11078:
11079: --check if ok to create
11080: OPEN get_parent_version_id(ref_elem_ver_id);

Line 11098: raise FND_API.G_EXC_ERROR;

11094:
11095: IF (NVL(l_new_par_ver_id, -99) <> NVL (l_old_par_ver_id, -99)) THEN
11096: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11097: p_msg_name => 'PA_CANT_CHANGE_PARENT');
11098: raise FND_API.G_EXC_ERROR;
11099: END IF;
11100: END IF;
11101: --end bug 3069306
11102:

Line 11112: raise FND_API.G_EXC_ERROR;

11108:
11109: IF (l_return_status <> 'Y') THEN
11110: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11111: p_msg_name => l_error_msg_code);
11112: raise FND_API.G_EXC_ERROR;
11113: END IF;
11114:
11115: -- Added for FP_M changes. Bug 3305199 : Bhumesh xxx
11116:

Line 11133: raise FND_API.G_EXC_ERROR;

11129: -- IF (x_return_status <> 'Y') THEN --Bug 3831786 Commented
11130: IF (x_return_status <> 'S') THEN --Bug 3831786 Added
11131: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11132: p_msg_name => l_error_msg_code);
11133: raise FND_API.G_EXC_ERROR;
11134: End If;
11135: End If;
11136:
11137: --check the task is a lowest task bug 3301192

Line 11147: ( p_validate_only => FND_API.G_FALSE,

11143:
11144: The processing done by the followig two calls is made now as plsql table bulk processing
11145:
11146: PA_TASK_PUB1.Update_Task_Version
11147: ( p_validate_only => FND_API.G_FALSE,
11148: p_ref_task_version_id => l_ref_task_version_id,
11149: p_peer_or_sub => 'PEER',
11150: p_task_version_id => p_task_version_id,
11151: p_record_version_number => p_record_version_number,

Line 11232: raise FND_API.G_EXC_ERROR;

11228: IF (l_element_version_id_tab(j) <> p_task_version_id) Then
11229: IF PA_PROJ_ELEMENTS_UTILS.check_deliv_in_hierarchy(p_task_version_id, l_element_version_id_tab(j)) = 'Y' THEN
11230: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11231: p_msg_name => 'PA_PS_CHK_DELIV_UPDATE');
11232: raise FND_API.G_EXC_ERROR;
11233: END IF;
11234: END IF;
11235: END LOOP;
11236: --end bug 3475920*/

Line 11536: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

11532: ,x_msg_data => l_msg_data
11533: );
11534:
11535:
11536: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11537: x_msg_count := FND_MSG_PUB.count_msg;
11538: IF x_msg_count = 1 then
11539: pa_interface_utils_pub.get_messages
11540: (p_encoded => FND_API.G_TRUE,

Line 11540: (p_encoded => FND_API.G_TRUE,

11536: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11537: x_msg_count := FND_MSG_PUB.count_msg;
11538: IF x_msg_count = 1 then
11539: pa_interface_utils_pub.get_messages
11540: (p_encoded => FND_API.G_TRUE,
11541: p_msg_index => 1,
11542: p_msg_count => l_msg_count,
11543: p_msg_data => l_msg_data,
11544: p_data => l_data,

Line 11548: raise FND_API.G_EXC_ERROR;

11544: p_data => l_data,
11545: p_msg_index_out => l_msg_index_out);
11546: x_msg_data := l_data;
11547: END IF;
11548: raise FND_API.G_EXC_ERROR;
11549: END IF;
11550:
11551: -- I don't think the following code is needed. This case is impossible in case of OUTDENT
11552: IF l_update_new_child_rels = 'Y' -- AND p_action IN( 'OUTDENT' )

Line 11568: raise FND_API.G_EXC_ERROR;

11564: --bug 4099488
11565: IF PA_RELATIONSHIP_UTILS.check_dependencies_valid(p_task_version_id, cur_new_child_rec.object_id_to1) = 'N' THEN
11566: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11567: p_msg_name => 'PA_INV_MOV_TSK_DEP_ERR');
11568: raise FND_API.G_EXC_ERROR;
11569: END IF;
11570: --end bug 4099488
11571:
11572: PA_RELATIONSHIP_PVT.Update_Relationship

Line 11600: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

11596: ,x_msg_count => x_msg_count
11597: ,x_msg_data => x_msg_data
11598: );
11599:
11600: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11601: x_msg_count := FND_MSG_PUB.count_msg;
11602: IF x_msg_count = 1 then
11603: pa_interface_utils_pub.get_messages
11604: (p_encoded => FND_API.G_TRUE,

Line 11604: (p_encoded => FND_API.G_TRUE,

11600: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11601: x_msg_count := FND_MSG_PUB.count_msg;
11602: IF x_msg_count = 1 then
11603: pa_interface_utils_pub.get_messages
11604: (p_encoded => FND_API.G_TRUE,
11605: p_msg_index => 1,
11606: p_msg_count => l_msg_count,
11607: p_msg_data => l_msg_data,
11608: p_data => l_data,

Line 11612: raise FND_API.G_EXC_ERROR;

11608: p_data => l_data,
11609: p_msg_index_out => l_msg_index_out);
11610: x_msg_data := l_data;
11611: END IF;
11612: raise FND_API.G_EXC_ERROR;
11613: END IF;
11614:
11615: END LOOP;
11616: END IF;

Line 11629: (p_encoded => FND_API.G_TRUE,

11625:
11626: x_msg_count := FND_MSG_PUB.count_msg;
11627: IF x_msg_count = 1 then
11628: pa_interface_utils_pub.get_messages
11629: (p_encoded => FND_API.G_TRUE,
11630: p_msg_index => 1,
11631: p_msg_count => l_msg_count,
11632: p_msg_data => l_msg_data,
11633: p_data => l_data,

Line 11649: (p_encoded => FND_API.G_TRUE,

11645:
11646: x_msg_count := FND_MSG_PUB.count_msg;
11647: IF x_msg_count = 1 then
11648: pa_interface_utils_pub.get_messages
11649: (p_encoded => FND_API.G_TRUE,
11650: p_msg_index => 1,
11651: p_msg_count => l_msg_count,
11652: p_msg_data => l_msg_data,
11653: p_data => l_data,

Line 11749: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

11745: ,x_msg_count => l_msg_count
11746: ,x_msg_data => l_msg_data
11747: );
11748:
11749: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11750: x_msg_count := FND_MSG_PUB.count_msg;
11751: IF x_msg_count = 1 then
11752: pa_interface_utils_pub.get_messages
11753: (p_encoded => FND_API.G_TRUE,

Line 11753: (p_encoded => FND_API.G_TRUE,

11749: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11750: x_msg_count := FND_MSG_PUB.count_msg;
11751: IF x_msg_count = 1 then
11752: pa_interface_utils_pub.get_messages
11753: (p_encoded => FND_API.G_TRUE,
11754: p_msg_index => 1,
11755: p_msg_count => l_msg_count,
11756: p_msg_data => l_msg_data,
11757: p_data => l_data,

Line 11761: raise FND_API.G_EXC_ERROR;

11757: p_data => l_data,
11758: p_msg_index_out => l_msg_index_out);
11759: x_msg_data := l_data;
11760: END IF;
11761: raise FND_API.G_EXC_ERROR;
11762: END IF;
11763:
11764: END LOOP;
11765: --End Bug 2947492 ( outdent )

Line 11780: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

11776: ,x_return_status => l_return_status
11777: ,x_msg_count => l_msg_count
11778: ,x_msg_data => l_msg_data );
11779:
11780: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11781: x_msg_count := FND_MSG_PUB.count_msg;
11782: IF x_msg_count = 1 then
11783: pa_interface_utils_pub.get_messages
11784: (p_encoded => FND_API.G_TRUE,

Line 11784: (p_encoded => FND_API.G_TRUE,

11780: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11781: x_msg_count := FND_MSG_PUB.count_msg;
11782: IF x_msg_count = 1 then
11783: pa_interface_utils_pub.get_messages
11784: (p_encoded => FND_API.G_TRUE,
11785: p_msg_index => 1,
11786: p_msg_count => l_msg_count,
11787: p_msg_data => l_msg_data,
11788: p_data => l_data,

Line 11792: raise FND_API.G_EXC_ERROR;

11788: p_data => l_data,
11789: p_msg_index_out => l_msg_index_out);
11790: x_msg_data := l_data;
11791: END IF;
11792: raise FND_API.G_EXC_ERROR;
11793: END IF;
11794:
11795: --Bug 2947492 (outdent )
11796: --

Line 11808: raise FND_API.G_EXC_ERROR;

11804: IF NVL( l_top_task_id, -99 ) <> NVL( l_old_top_task_id, -99 )
11805: THEN
11806: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
11807: p_msg_name => 'PA_CANT_CHANGE_PARENT');
11808: raise FND_API.G_EXC_ERROR;
11809: END IF;
11810: --End bug 2967204
11811:
11812: /*

Line 11826: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

11822: ,x_msg_count => l_msg_count
11823: ,x_msg_data => l_msg_data
11824: );
11825:
11826: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11827: x_msg_count := FND_MSG_PUB.count_msg;
11828: IF x_msg_count = 1 then
11829: pa_interface_utils_pub.get_messages
11830: (p_encoded => FND_API.G_TRUE,

Line 11830: (p_encoded => FND_API.G_TRUE,

11826: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11827: x_msg_count := FND_MSG_PUB.count_msg;
11828: IF x_msg_count = 1 then
11829: pa_interface_utils_pub.get_messages
11830: (p_encoded => FND_API.G_TRUE,
11831: p_msg_index => 1,
11832: p_msg_count => l_msg_count,
11833: p_msg_data => l_msg_data,
11834: p_data => l_data,

Line 11838: raise FND_API.G_EXC_ERROR;

11834: p_data => l_data,
11835: p_msg_index_out => l_msg_index_out);
11836: x_msg_data := l_data;
11837: END IF;
11838: raise FND_API.G_EXC_ERROR;
11839: END IF;
11840: */ --check venkatesh mail dated 22 jan 04
11841:
11842: /* Commenting out the call to MAINTAIN_PLANNABLE_TASKS for bug 3010538

Line 11860: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

11856: , x_msg_data => l_msg_data
11857: , x_msg_count => l_msg_count
11858: );
11859:
11860: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11861: x_msg_count := FND_MSG_PUB.count_msg;
11862: IF x_msg_count = 1 then
11863: pa_interface_utils_pub.get_messages
11864: (p_encoded => FND_API.G_TRUE,

Line 11864: (p_encoded => FND_API.G_TRUE,

11860: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
11861: x_msg_count := FND_MSG_PUB.count_msg;
11862: IF x_msg_count = 1 then
11863: pa_interface_utils_pub.get_messages
11864: (p_encoded => FND_API.G_TRUE,
11865: p_msg_index => 1,
11866: p_msg_count => l_msg_count,
11867: p_msg_data => l_msg_data,
11868: p_data => l_data,

Line 11872: raise FND_API.G_EXC_ERROR;

11868: p_data => l_data,
11869: p_msg_index_out => l_msg_index_out);
11870: x_msg_data := l_data;
11871: END IF;
11872: raise FND_API.G_EXC_ERROR;
11873: END IF;
11874: bug 3010538 */
11875:
11876: --End Bug 2947492 (outdent )

Line 11897: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then

11893: ,x_msg_count => x_msg_count
11894: ,x_msg_data => x_msg_data
11895: );
11896:
11897: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
11898: x_msg_count := FND_MSG_PUB.count_msg;
11899: If x_msg_count = 1 then
11900: pa_interface_utils_pub.get_messages
11901: (p_encoded => FND_API.G_TRUE,

Line 11901: (p_encoded => FND_API.G_TRUE,

11897: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
11898: x_msg_count := FND_MSG_PUB.count_msg;
11899: If x_msg_count = 1 then
11900: pa_interface_utils_pub.get_messages
11901: (p_encoded => FND_API.G_TRUE,
11902: p_msg_index => 1,
11903: p_msg_count => l_msg_count,
11904: p_msg_data => l_msg_data,
11905: p_data => l_data,

Line 11909: raise FND_API.G_EXC_ERROR;

11905: p_data => l_data,
11906: p_msg_index_out => l_msg_index_out);
11907: x_msg_data := l_data;
11908: End If;
11909: raise FND_API.G_EXC_ERROR;
11910: End If;
11911: End If;
11912: -- End of FP_M changes
11913:

Line 11923: p_commit => FND_API.G_FALSE,

11919: l_rollup_task_id := p_task_version_id;
11920: END IF;
11921:
11922: PA_STRUCT_TASK_ROLLUP_PUB.Tasks_Rollup(
11923: p_commit => FND_API.G_FALSE,
11924: p_element_versions => l_tasks_ver_ids,
11925: x_return_status => l_return_status,
11926: x_msg_count => l_msg_count,
11927: x_msg_data => l_msg_data);

Line 11929: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

11925: x_return_status => l_return_status,
11926: x_msg_count => l_msg_count,
11927: x_msg_data => l_msg_data);
11928:
11929: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
11930: x_msg_count := FND_MSG_PUB.count_msg;
11931: if x_msg_count = 1 then
11932: pa_interface_utils_pub.get_messages
11933: (p_encoded => FND_API.G_TRUE,

Line 11933: (p_encoded => FND_API.G_TRUE,

11929: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
11930: x_msg_count := FND_MSG_PUB.count_msg;
11931: if x_msg_count = 1 then
11932: pa_interface_utils_pub.get_messages
11933: (p_encoded => FND_API.G_TRUE,
11934: p_msg_index => 1,
11935: p_msg_count => l_msg_count,
11936: p_msg_data => l_msg_data,
11937: p_data => l_data,

Line 11941: raise FND_API.G_EXC_ERROR;

11937: p_data => l_data,
11938: p_msg_index_out => l_msg_index_out);
11939: x_msg_data := l_data;
11940: end if;
11941: raise FND_API.G_EXC_ERROR;
11942: end if;
11943:
11944: --if versioning is off, rollup.
11945: IF ('N' = PA_WORKPLAN_ATTR_UTILS.CHECK_WP_VERSIONING_ENABLED(l_project_id)) THEN

Line 11954: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

11950: ,x_msg_count => l_msg_count
11951: ,x_msg_data => l_msg_data
11952: );
11953:
11954: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
11955: x_msg_count := FND_MSG_PUB.count_msg;
11956: if x_msg_count = 1 then
11957: pa_interface_utils_pub.get_messages
11958: (p_encoded => FND_API.G_TRUE,

Line 11958: (p_encoded => FND_API.G_TRUE,

11954: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
11955: x_msg_count := FND_MSG_PUB.count_msg;
11956: if x_msg_count = 1 then
11957: pa_interface_utils_pub.get_messages
11958: (p_encoded => FND_API.G_TRUE,
11959: p_msg_index => 1,
11960: p_msg_count => l_msg_count,
11961: p_msg_data => l_msg_data,
11962: p_data => l_data,

Line 11966: raise FND_API.G_EXC_ERROR;

11962: p_data => l_data,
11963: p_msg_index_out => l_msg_index_out);
11964: x_msg_data := l_data;
11965: end if;
11966: raise FND_API.G_EXC_ERROR;
11967: end if;
11968: END IF;
11969:
11970: END IF;

Line 12020: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

12016: ,x_return_status => l_return_status
12017: ,x_msg_count => l_msg_count
12018: ,x_msg_data => l_msg_data);
12019:
12020: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12021: x_msg_count := FND_MSG_PUB.count_msg;
12022: if x_msg_count = 1 then
12023: pa_interface_utils_pub.get_messages
12024: (p_encoded => FND_API.G_TRUE,

Line 12024: (p_encoded => FND_API.G_TRUE,

12020: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12021: x_msg_count := FND_MSG_PUB.count_msg;
12022: if x_msg_count = 1 then
12023: pa_interface_utils_pub.get_messages
12024: (p_encoded => FND_API.G_TRUE,
12025: p_msg_index => 1,
12026: p_msg_count => l_msg_count,
12027: p_msg_data => l_msg_data,
12028: p_data => l_data,

Line 12032: raise FND_API.G_EXC_ERROR;

12028: p_data => l_data,
12029: p_msg_index_out => l_msg_index_out);
12030: x_msg_data := l_data;
12031: end if;
12032: raise FND_API.G_EXC_ERROR;
12033: end if;
12034: --end if;
12035: --3035902: end process update flag changes
12036:

Line 12053: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

12049: ,x_return_status => l_return_status
12050: ,x_msg_count => l_msg_count
12051: ,x_msg_data => l_msg_data );
12052:
12053: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12054: x_msg_count := FND_MSG_PUB.count_msg;
12055: if x_msg_count = 1 then
12056: pa_interface_utils_pub.get_messages
12057: (p_encoded => FND_API.G_TRUE,

Line 12057: (p_encoded => FND_API.G_TRUE,

12053: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12054: x_msg_count := FND_MSG_PUB.count_msg;
12055: if x_msg_count = 1 then
12056: pa_interface_utils_pub.get_messages
12057: (p_encoded => FND_API.G_TRUE,
12058: p_msg_index => 1,
12059: p_msg_count => l_msg_count,
12060: p_msg_data => l_msg_data,
12061: p_data => l_data,

Line 12065: raise FND_API.G_EXC_ERROR;

12061: p_data => l_data,
12062: p_msg_index_out => l_msg_index_out);
12063: x_msg_data := l_data;
12064: end if;
12065: raise FND_API.G_EXC_ERROR;
12066: end if;
12067: END IF;
12068: END IF;
12069:

Line 12120: RAISE FND_API.G_EXC_ERROR;

12116: WHEN OTHERS then
12117: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12118: p_procedure_name => 'OUTDENT_TASK_VERSION_BULK',
12119: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
12120: RAISE FND_API.G_EXC_ERROR;
12121: END;
12122: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12123: x_msg_count := FND_MSG_PUB.count_msg;
12124: if x_msg_count = 1 then

Line 12122: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

12118: p_procedure_name => 'OUTDENT_TASK_VERSION_BULK',
12119: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.delete_planning_transactions:'||SQLERRM,1,240));
12120: RAISE FND_API.G_EXC_ERROR;
12121: END;
12122: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12123: x_msg_count := FND_MSG_PUB.count_msg;
12124: if x_msg_count = 1 then
12125: pa_interface_utils_pub.get_messages
12126: (p_encoded => FND_API.G_TRUE,

Line 12126: (p_encoded => FND_API.G_TRUE,

12122: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
12123: x_msg_count := FND_MSG_PUB.count_msg;
12124: if x_msg_count = 1 then
12125: pa_interface_utils_pub.get_messages
12126: (p_encoded => FND_API.G_TRUE,
12127: p_msg_index => 1,
12128: p_msg_count => l_msg_count,
12129: p_msg_data => l_msg_data,
12130: p_data => l_data,

Line 12134: raise FND_API.G_EXC_ERROR;

12130: p_data => l_data,
12131: p_msg_index_out => l_msg_index_out);
12132: x_msg_data := l_data;
12133: end if;
12134: raise FND_API.G_EXC_ERROR;
12135: end if;
12136: END IF; --<>
12137: END IF; --<>
12138: --bug 3301192

Line 12144: x_return_status := FND_API.G_RET_STS_SUCCESS;

12140: --bug 4149392
12141: PA_TASK_PUB1.G_CALL_PJI_ROLLUP := NULL;
12142: --end bug 4149392
12143:
12144: x_return_status := FND_API.G_RET_STS_SUCCESS;
12145:
12146: IF (p_commit = FND_API.G_TRUE) THEN
12147: COMMIT;
12148: END IF;

Line 12146: IF (p_commit = FND_API.G_TRUE) THEN

12142: --end bug 4149392
12143:
12144: x_return_status := FND_API.G_RET_STS_SUCCESS;
12145:
12146: IF (p_commit = FND_API.G_TRUE) THEN
12147: COMMIT;
12148: END IF;
12149:
12150: IF (p_debug_mode = 'Y') THEN

Line 12155: when FND_API.G_EXC_ERROR then

12151: pa_debug.debug('PA_TASK_PUB1.OUTDENT_TASK_VERSION_BULK END');
12152: END IF;
12153:
12154: EXCEPTION
12155: when FND_API.G_EXC_ERROR then
12156: if p_commit = FND_API.G_TRUE then
12157: rollback to OUTDENT_task_version_bulk;
12158: end if;
12159: x_return_status := FND_API.G_RET_STS_ERROR;

Line 12156: if p_commit = FND_API.G_TRUE then

12152: END IF;
12153:
12154: EXCEPTION
12155: when FND_API.G_EXC_ERROR then
12156: if p_commit = FND_API.G_TRUE then
12157: rollback to OUTDENT_task_version_bulk;
12158: end if;
12159: x_return_status := FND_API.G_RET_STS_ERROR;
12160: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 12159: x_return_status := FND_API.G_RET_STS_ERROR;

12155: when FND_API.G_EXC_ERROR then
12156: if p_commit = FND_API.G_TRUE then
12157: rollback to OUTDENT_task_version_bulk;
12158: end if;
12159: x_return_status := FND_API.G_RET_STS_ERROR;
12160: when FND_API.G_EXC_UNEXPECTED_ERROR then
12161: if p_commit = FND_API.G_TRUE then
12162: rollback to OUTDENT_task_version_bulk;
12163: end if;

Line 12160: when FND_API.G_EXC_UNEXPECTED_ERROR then

12156: if p_commit = FND_API.G_TRUE then
12157: rollback to OUTDENT_task_version_bulk;
12158: end if;
12159: x_return_status := FND_API.G_RET_STS_ERROR;
12160: when FND_API.G_EXC_UNEXPECTED_ERROR then
12161: if p_commit = FND_API.G_TRUE then
12162: rollback to OUTDENT_task_version_bulk;
12163: end if;
12164: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 12161: if p_commit = FND_API.G_TRUE then

12157: rollback to OUTDENT_task_version_bulk;
12158: end if;
12159: x_return_status := FND_API.G_RET_STS_ERROR;
12160: when FND_API.G_EXC_UNEXPECTED_ERROR then
12161: if p_commit = FND_API.G_TRUE then
12162: rollback to OUTDENT_task_version_bulk;
12163: end if;
12164: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12165: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 12164: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12160: when FND_API.G_EXC_UNEXPECTED_ERROR then
12161: if p_commit = FND_API.G_TRUE then
12162: rollback to OUTDENT_task_version_bulk;
12163: end if;
12164: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12165: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12166: p_procedure_name => 'OUTDENT_TASK_VERSION_BULK',
12167: p_error_text => SUBSTRB(SQLERRM,1,240));
12168: when OTHERS then

Line 12169: if p_commit = FND_API.G_TRUE then

12165: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12166: p_procedure_name => 'OUTDENT_TASK_VERSION_BULK',
12167: p_error_text => SUBSTRB(SQLERRM,1,240));
12168: when OTHERS then
12169: if p_commit = FND_API.G_TRUE then
12170: rollback to OUTDENT_task_version_bulk;
12171: end if;
12172: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12173: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 12172: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12168: when OTHERS then
12169: if p_commit = FND_API.G_TRUE then
12170: rollback to OUTDENT_task_version_bulk;
12171: end if;
12172: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12173: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12174: p_procedure_name => 'OUTDENT_TASK_VERSION_BULK',
12175: p_error_text => SUBSTRB(SQLERRM,1,240));
12176: raise;

Line 12247: x_return_status := FND_API.G_RET_STS_SUCCESS;

12243:
12244: BEGIN
12245:
12246: --hsiu: 3604086
12247: x_return_status := FND_API.G_RET_STS_SUCCESS;
12248:
12249: l_msg_count := 0;
12250: l_return_status := FND_API.G_RET_STS_SUCCESS;
12251: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'), 'N') ; -- Bug # 4605505.

Line 12250: l_return_status := FND_API.G_RET_STS_SUCCESS;

12246: --hsiu: 3604086
12247: x_return_status := FND_API.G_RET_STS_SUCCESS;
12248:
12249: l_msg_count := 0;
12250: l_return_status := FND_API.G_RET_STS_SUCCESS;
12251: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'), 'N') ; -- Bug # 4605505.
12252: j := 0 ;
12253:
12254: --hsiu: commenting out due to p1 issue.

Line 12267: l_return_status := FND_API.G_RET_STS_SUCCESS ;

12263: pa_debug.debug('record version id is :'||p_record_version_number_tbl(i));
12264: END IF ;
12265:
12266: -- initialization is required for every loop
12267: l_return_status := FND_API.G_RET_STS_SUCCESS ;
12268: l_msg_count := 0 ;
12269: l_msg_data := null ;
12270:
12271:

Line 12283: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

12279: ,x_msg_data => l_msg_data
12280: ,p_structure_version_id => p_structure_version_id
12281: );
12282:
12283: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
12284:
12285: j := j+1 ;
12286:
12287: SELECT e.element_number

Line 12297: (p_encoded => FND_API.G_FALSE, -- Get the encoded message.

12293: WHERE v.element_version_id = p_task_version_id_tbl(i)
12294: AND e.proj_element_id = v.proj_element_id ;
12295:
12296: PA_INTERFACE_UTILS_PUB.get_messages
12297: (p_encoded => FND_API.G_FALSE, -- Get the encoded message.
12298: p_msg_index => 1, -- Get the message at index 1.
12299: p_data => l_enc_msg_data,
12300: p_msg_index_out => l_msg_index_out);
12301:

Line 12356: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12352: END IF ;
12353:
12354: EXCEPTION
12355: WHEN NO_DATA_FOUND THEN
12356: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12357: x_msg_count := 1;
12358: x_msg_data := SQLERRM;
12359: --hsiu: commenting out due to p1 issue.
12360: -- savepoint should be issued only when p_commit

Line 12365: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12361: -- is true, which is a missing parameter
12362: -- rollback to delete_bulk;
12363: RETURN ;
12364: WHEN OTHERS THEN
12365: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12366: x_msg_count := 1;
12367: x_msg_data := SQLERRM;
12368: --hsiu: commenting out due to p1 issue.
12369: -- savepoint should be issued only when p_commit

Line 12399: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

12395: --This procedure was designed specifically to fit the flow of Self_Service Task Details page
12396: --(or any page that uses TaskAssociationsVO).
12397: PROCEDURE Update_Task_Association (
12398: p_api_version IN NUMBER :=1.0,
12399: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12400: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12401: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12402: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12403: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 12400: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

12396: --(or any page that uses TaskAssociationsVO).
12397: PROCEDURE Update_Task_Association (
12398: p_api_version IN NUMBER :=1.0,
12399: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12400: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12401: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12402: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12403: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12404: p_debug_mode IN VARCHAR2 :='N',

Line 12401: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

12397: PROCEDURE Update_Task_Association (
12398: p_api_version IN NUMBER :=1.0,
12399: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12400: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12401: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12402: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12403: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12404: p_debug_mode IN VARCHAR2 :='N',
12405: p_max_msg_count IN NUMBER :=NULL,

Line 12402: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

12398: p_api_version IN NUMBER :=1.0,
12399: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12400: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12401: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12402: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12403: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12404: p_debug_mode IN VARCHAR2 :='N',
12405: p_max_msg_count IN NUMBER :=NULL,
12406: p_associated_project_id IN NUMBER := NULL,

Line 12432: x_return_status := FND_API.G_RET_STS_SUCCESS;

12428: l_error_msg_code VARCHAR2(30);
12429:
12430: BEGIN
12431:
12432: x_return_status := FND_API.G_RET_STS_SUCCESS;
12433:
12434: IF (p_debug_mode = 'Y') THEN
12435: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_ASSOCIATION START');
12436: END IF;

Line 12438: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

12434: IF (p_debug_mode = 'Y') THEN
12435: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_ASSOCIATION START');
12436: END IF;
12437:
12438: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12439: FND_MSG_PUB.initialize;
12440: END IF;
12441:
12442: IF (p_commit = FND_API.G_TRUE) THEN

Line 12442: IF (p_commit = FND_API.G_TRUE) THEN

12438: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12439: FND_MSG_PUB.initialize;
12440: END IF;
12441:
12442: IF (p_commit = FND_API.G_TRUE) THEN
12443: savepoint update_task_association;
12444: END IF;
12445:
12446: l_type_to := 'PA_PROJECTS';

Line 12457: x_return_status := FND_API.G_RET_STS_ERROR;

12453:
12454: -- when creating a new relationship check both ids and object types
12455: IF p_relationship_id is NULL THEN
12456: IF p_task_id is NULL or l_id_to is NULL THEN
12457: x_return_status := FND_API.G_RET_STS_ERROR;
12458: l_error_msg_code:= 'PA_PS_TASK_NUMBER_NULL';
12459: ELSE
12460: IF p_task_id = l_id_to and l_type_to = 'PA_TASKS' then
12461: x_return_status := FND_API.G_RET_STS_ERROR;

Line 12461: x_return_status := FND_API.G_RET_STS_ERROR;

12457: x_return_status := FND_API.G_RET_STS_ERROR;
12458: l_error_msg_code:= 'PA_PS_TASK_NUMBER_NULL';
12459: ELSE
12460: IF p_task_id = l_id_to and l_type_to = 'PA_TASKS' then
12461: x_return_status := FND_API.G_RET_STS_ERROR;
12462: l_error_msg_code:= 'PA_TASK_ID_INVALID';
12463: END IF;
12464: END IF;
12465: END IF;

Line 12470: x_return_status := FND_API.G_RET_STS_ERROR;

12466:
12467: -- when updating an existing relationship check both ids and object types
12468: IF p_relationship_id is not null and l_id_to is not null THEN
12469: IF p_task_id = l_id_to and l_type_to = 'PA_TASKS' then
12470: x_return_status := FND_API.G_RET_STS_ERROR;
12471: l_error_msg_code:= 'PA_TASK_ID_INVALID';
12472: END IF;
12473: END IF;
12474:

Line 12475: IF x_return_status = FND_API.G_RET_STS_ERROR THEN

12471: l_error_msg_code:= 'PA_TASK_ID_INVALID';
12472: END IF;
12473: END IF;
12474:
12475: IF x_return_status = FND_API.G_RET_STS_ERROR THEN
12476: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
12477: p_msg_name => l_error_msg_code);
12478: END IF;
12479:

Line 12481: IF p_relationship_id is NULL and x_return_status = FND_API.G_RET_STS_SUCCESS THEN

12477: p_msg_name => l_error_msg_code);
12478: END IF;
12479:
12480: -- Create a new association row
12481: IF p_relationship_id is NULL and x_return_status = FND_API.G_RET_STS_SUCCESS THEN
12482: PA_OBJECT_RELATIONSHIPS_PKG.INSERT_ROW(
12483: p_user_id => FND_GLOBAL.USER_ID
12484: ,p_object_type_from => 'PA_TASKS'
12485: ,p_object_id_from1 => p_task_id

Line 12525: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

12521: Delete_Association(p_relationship_id,p_record_version_number, x_return_status);
12522: END IF;
12523:
12524:
12525: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12526: x_msg_count := FND_MSG_PUB.count_msg;
12527: IF x_msg_count = 1 then
12528: pa_interface_utils_pub.get_messages
12529: (p_encoded => FND_API.G_TRUE,

Line 12529: (p_encoded => FND_API.G_TRUE,

12525: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12526: x_msg_count := FND_MSG_PUB.count_msg;
12527: IF x_msg_count = 1 then
12528: pa_interface_utils_pub.get_messages
12529: (p_encoded => FND_API.G_TRUE,
12530: p_msg_index => 1,
12531: p_msg_count => x_msg_count,
12532: p_msg_data => x_msg_data,
12533: p_data => l_data,

Line 12537: raise FND_API.G_EXC_ERROR;

12533: p_data => l_data,
12534: p_msg_index_out => l_msg_index_out);
12535: x_msg_data := l_data;
12536: END IF;
12537: raise FND_API.G_EXC_ERROR;
12538: ELSE
12539: IF (p_commit = FND_API.G_TRUE) THEN
12540: COMMIT;
12541: END IF;

Line 12539: IF (p_commit = FND_API.G_TRUE) THEN

12535: x_msg_data := l_data;
12536: END IF;
12537: raise FND_API.G_EXC_ERROR;
12538: ELSE
12539: IF (p_commit = FND_API.G_TRUE) THEN
12540: COMMIT;
12541: END IF;
12542: END IF;
12543:

Line 12550: WHEN FND_API.G_EXC_ERROR THEN

12546: END IF;
12547:
12548:
12549: EXCEPTION
12550: WHEN FND_API.G_EXC_ERROR THEN
12551: IF (p_commit = FND_API.G_TRUE) THEN
12552: ROLLBACK to update_task_association;
12553: END IF;
12554: x_msg_count := FND_MSG_PUB.count_msg;

Line 12551: IF (p_commit = FND_API.G_TRUE) THEN

12547:
12548:
12549: EXCEPTION
12550: WHEN FND_API.G_EXC_ERROR THEN
12551: IF (p_commit = FND_API.G_TRUE) THEN
12552: ROLLBACK to update_task_association;
12553: END IF;
12554: x_msg_count := FND_MSG_PUB.count_msg;
12555: x_return_status := FND_API.G_RET_STS_ERROR;

Line 12555: x_return_status := FND_API.G_RET_STS_ERROR;

12551: IF (p_commit = FND_API.G_TRUE) THEN
12552: ROLLBACK to update_task_association;
12553: END IF;
12554: x_msg_count := FND_MSG_PUB.count_msg;
12555: x_return_status := FND_API.G_RET_STS_ERROR;
12556: WHEN OTHERS THEN
12557: IF (p_commit = FND_API.G_TRUE) THEN
12558: ROLLBACK to update_task_association;
12559: END IF;

Line 12557: IF (p_commit = FND_API.G_TRUE) THEN

12553: END IF;
12554: x_msg_count := FND_MSG_PUB.count_msg;
12555: x_return_status := FND_API.G_RET_STS_ERROR;
12556: WHEN OTHERS THEN
12557: IF (p_commit = FND_API.G_TRUE) THEN
12558: ROLLBACK to update_task_association;
12559: END IF;
12560: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12561: x_msg_count := FND_MSG_PUB.count_msg;

Line 12560: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12556: WHEN OTHERS THEN
12557: IF (p_commit = FND_API.G_TRUE) THEN
12558: ROLLBACK to update_task_association;
12559: END IF;
12560: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12561: x_msg_count := FND_MSG_PUB.count_msg;
12562: --put message
12563: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12564: p_procedure_name => 'update_task_association',

Line 12577: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

12573: --if p_relationship_id is NOT NULL then only this ONE relationship is deleted
12574: --if p_relationship_id is NULL, then ALL associations are deleted.
12575: PROCEDURE Delete_Task_Associations(
12576: p_api_version IN NUMBER :=1.0,
12577: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12578: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12579: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12580: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12581: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 12578: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

12574: --if p_relationship_id is NULL, then ALL associations are deleted.
12575: PROCEDURE Delete_Task_Associations(
12576: p_api_version IN NUMBER :=1.0,
12577: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12578: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12579: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12580: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12581: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12582: p_debug_mode IN VARCHAR2 :='N',

Line 12579: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

12575: PROCEDURE Delete_Task_Associations(
12576: p_api_version IN NUMBER :=1.0,
12577: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12578: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12579: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12580: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12581: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12582: p_debug_mode IN VARCHAR2 :='N',
12583: p_max_msg_count IN NUMBER :=NULL,

Line 12580: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

12576: p_api_version IN NUMBER :=1.0,
12577: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12578: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12579: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12580: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12581: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12582: p_debug_mode IN VARCHAR2 :='N',
12583: p_max_msg_count IN NUMBER :=NULL,
12584: p_relationship_type IN VARCHAR2 :='A',

Line 12605: x_return_status := FND_API.G_RET_STS_SUCCESS;

12601: l_data VARCHAR2(250);
12602: l_msg_index_out NUMBER;
12603:
12604: BEGIN
12605: x_return_status := FND_API.G_RET_STS_SUCCESS;
12606:
12607: IF (p_debug_mode = 'Y') THEN
12608: pa_debug.debug('PA_TASK_PUB1.DELETE_TASK_ASSOCIATION START');
12609: END IF;

Line 12611: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

12607: IF (p_debug_mode = 'Y') THEN
12608: pa_debug.debug('PA_TASK_PUB1.DELETE_TASK_ASSOCIATION START');
12609: END IF;
12610:
12611: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12612: FND_MSG_PUB.initialize;
12613: END IF;
12614:
12615: IF (p_commit = FND_API.G_TRUE) THEN

Line 12615: IF (p_commit = FND_API.G_TRUE) THEN

12611: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12612: FND_MSG_PUB.initialize;
12613: END IF;
12614:
12615: IF (p_commit = FND_API.G_TRUE) THEN
12616: savepoint delete_task_association;
12617: END IF;
12618:
12619: --Delete just the requested relationship row

Line 12626: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

12622: ELSE
12623: IF p_task_id is not null THEN
12624: FOR task_associations_rec IN task_associations(p_task_id ) LOOP
12625: Delete_Association(task_associations_rec.object_relationship_id,null, x_return_status);
12626: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12627: EXIT;
12628: END IF;
12629: END LOOP;
12630: END IF;

Line 12633: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

12629: END LOOP;
12630: END IF;
12631: END IF;
12632:
12633: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12634: x_msg_count := FND_MSG_PUB.count_msg;
12635: IF x_msg_count = 1 then
12636: pa_interface_utils_pub.get_messages
12637: (p_encoded => FND_API.G_TRUE,

Line 12637: (p_encoded => FND_API.G_TRUE,

12633: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12634: x_msg_count := FND_MSG_PUB.count_msg;
12635: IF x_msg_count = 1 then
12636: pa_interface_utils_pub.get_messages
12637: (p_encoded => FND_API.G_TRUE,
12638: p_msg_index => 1,
12639: p_msg_count => x_msg_count,
12640: p_msg_data => x_msg_data,
12641: p_data => l_data,

Line 12645: raise FND_API.G_EXC_ERROR;

12641: p_data => l_data,
12642: p_msg_index_out => l_msg_index_out);
12643: x_msg_data := l_data;
12644: END IF;
12645: raise FND_API.G_EXC_ERROR;
12646: ELSE
12647: IF (p_commit = FND_API.G_TRUE) THEN
12648: COMMIT;
12649: END IF;

Line 12647: IF (p_commit = FND_API.G_TRUE) THEN

12643: x_msg_data := l_data;
12644: END IF;
12645: raise FND_API.G_EXC_ERROR;
12646: ELSE
12647: IF (p_commit = FND_API.G_TRUE) THEN
12648: COMMIT;
12649: END IF;
12650: END IF;
12651:

Line 12659: WHEN FND_API.G_EXC_ERROR THEN

12655: END IF;
12656:
12657:
12658: EXCEPTION
12659: WHEN FND_API.G_EXC_ERROR THEN
12660: IF (p_commit = FND_API.G_TRUE) THEN
12661: ROLLBACK to delete_task_association;
12662: END IF;
12663: x_msg_count := FND_MSG_PUB.count_msg;

Line 12660: IF (p_commit = FND_API.G_TRUE) THEN

12656:
12657:
12658: EXCEPTION
12659: WHEN FND_API.G_EXC_ERROR THEN
12660: IF (p_commit = FND_API.G_TRUE) THEN
12661: ROLLBACK to delete_task_association;
12662: END IF;
12663: x_msg_count := FND_MSG_PUB.count_msg;
12664: x_return_status := FND_API.G_RET_STS_ERROR;

Line 12664: x_return_status := FND_API.G_RET_STS_ERROR;

12660: IF (p_commit = FND_API.G_TRUE) THEN
12661: ROLLBACK to delete_task_association;
12662: END IF;
12663: x_msg_count := FND_MSG_PUB.count_msg;
12664: x_return_status := FND_API.G_RET_STS_ERROR;
12665: WHEN OTHERS THEN
12666: IF (p_commit = FND_API.G_TRUE) THEN
12667: ROLLBACK to delete_task_association;
12668: END IF;

Line 12666: IF (p_commit = FND_API.G_TRUE) THEN

12662: END IF;
12663: x_msg_count := FND_MSG_PUB.count_msg;
12664: x_return_status := FND_API.G_RET_STS_ERROR;
12665: WHEN OTHERS THEN
12666: IF (p_commit = FND_API.G_TRUE) THEN
12667: ROLLBACK to delete_task_association;
12668: END IF;
12669: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12670: x_msg_count := FND_MSG_PUB.count_msg;

Line 12669: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12665: WHEN OTHERS THEN
12666: IF (p_commit = FND_API.G_TRUE) THEN
12667: ROLLBACK to delete_task_association;
12668: END IF;
12669: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12670: x_msg_count := FND_MSG_PUB.count_msg;
12671: --put message
12672: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12673: p_procedure_name => 'delete_all_task_associations',

Line 12713: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12709:
12710:
12711: EXCEPTION
12712: WHEN OTHERS THEN
12713: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12714: --x_msg_count := FND_MSG_PUB.count_msg;
12715: --put message
12716: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12717: p_procedure_name => 'delete_association',

Line 12792: x_return_status := FND_API.G_RET_STS_SUCCESS;

12788:
12789: )IS
12790: l_ret_code VARCHAR2(1);
12791: BEGIN
12792: x_return_status := FND_API.G_RET_STS_SUCCESS;
12793: l_ret_code := has_Associations(p_task_id,p_relationship_type);
12794: IF l_ret_code = 'Y' THEN
12795: x_return_status := FND_API.G_RET_STS_ERROR;
12796: /*PA_UTILS.ADD_MESSAGE

Line 12795: x_return_status := FND_API.G_RET_STS_ERROR;

12791: BEGIN
12792: x_return_status := FND_API.G_RET_STS_SUCCESS;
12793: l_ret_code := has_Associations(p_task_id,p_relationship_type);
12794: IF l_ret_code = 'Y' THEN
12795: x_return_status := FND_API.G_RET_STS_ERROR;
12796: /*PA_UTILS.ADD_MESSAGE
12797: (p_app_short_name => 'PA',
12798: p_msg_name => 'PA_TASK_HAS_ASSOCIATIONS');*/ --Bug 3831786 commented
12799: x_msg_data:='PA_TASK_HAS_ASSOCIATIONS'; --Bug No 3491544 Smukka Apr 07 2004

Line 12814: x_return_status := FND_API.G_RET_STS_SUCCESS;

12810:
12811: )IS
12812: l_ret_code VARCHAR2(1);
12813: BEGIN
12814: x_return_status := FND_API.G_RET_STS_SUCCESS;
12815: l_ret_code := proj_has_task_associations(p_project_id,p_relationship_type);
12816: IF l_ret_code = 'Y' THEN
12817: x_return_status := FND_API.G_RET_STS_ERROR;
12818: PA_UTILS.ADD_MESSAGE

Line 12817: x_return_status := FND_API.G_RET_STS_ERROR;

12813: BEGIN
12814: x_return_status := FND_API.G_RET_STS_SUCCESS;
12815: l_ret_code := proj_has_task_associations(p_project_id,p_relationship_type);
12816: IF l_ret_code = 'Y' THEN
12817: x_return_status := FND_API.G_RET_STS_ERROR;
12818: PA_UTILS.ADD_MESSAGE
12819: (p_app_short_name => 'PA',
12820: p_msg_name => 'PA_PROJECT_HAS_ASSOCIATIONS');
12821:

Line 12831: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

12827: --if p_relationship_id is NOT NULL then only this ONE relationship is deleted
12828: --if p_relationship_id is NULL, then ALL associations are deleted.
12829: PROCEDURE Delete_Proj_To_Task_Assoc(
12830: p_api_version IN NUMBER :=1.0,
12831: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12832: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12833: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12834: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12835: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 12832: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

12828: --if p_relationship_id is NULL, then ALL associations are deleted.
12829: PROCEDURE Delete_Proj_To_Task_Assoc(
12830: p_api_version IN NUMBER :=1.0,
12831: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12832: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12833: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12834: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12835: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12836: p_debug_mode IN VARCHAR2 :='N',

Line 12833: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

12829: PROCEDURE Delete_Proj_To_Task_Assoc(
12830: p_api_version IN NUMBER :=1.0,
12831: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12832: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12833: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12834: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12835: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12836: p_debug_mode IN VARCHAR2 :='N',
12837: p_max_msg_count IN NUMBER :=NULL,

Line 12834: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

12830: p_api_version IN NUMBER :=1.0,
12831: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12832: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12833: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12834: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
12835: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12836: p_debug_mode IN VARCHAR2 :='N',
12837: p_max_msg_count IN NUMBER :=NULL,
12838: p_relationship_type IN VARCHAR2 :='A',

Line 12859: x_return_status := FND_API.G_RET_STS_SUCCESS;

12855: l_data VARCHAR2(250);
12856: l_msg_index_out NUMBER;
12857:
12858: BEGIN
12859: x_return_status := FND_API.G_RET_STS_SUCCESS;
12860:
12861: IF (p_debug_mode = 'Y') THEN
12862: pa_debug.debug('PA_TASK_PUB1.Delete_Proj_To_Task_Assoc START');
12863: END IF;

Line 12864: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

12860:
12861: IF (p_debug_mode = 'Y') THEN
12862: pa_debug.debug('PA_TASK_PUB1.Delete_Proj_To_Task_Assoc START');
12863: END IF;
12864: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12865: FND_MSG_PUB.initialize;
12866: END IF;
12867:
12868: IF (p_commit = FND_API.G_TRUE) THEN

Line 12868: IF (p_commit = FND_API.G_TRUE) THEN

12864: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12865: FND_MSG_PUB.initialize;
12866: END IF;
12867:
12868: IF (p_commit = FND_API.G_TRUE) THEN
12869: savepoint delete_prj_to_task_assoc;
12870: END IF;
12871:
12872: --Delete just the requested relationship row

Line 12879: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

12875: ELSE
12876: IF p_project_id is not null THEN
12877: FOR task_associations_rec IN task_associations(p_project_id ) LOOP
12878: Delete_Association(task_associations_rec.object_relationship_id,null, x_return_status);
12879: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12880: EXIT;
12881: END IF;
12882: END LOOP;
12883: END IF;

Line 12886: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

12882: END LOOP;
12883: END IF;
12884: END IF;
12885:
12886: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12887: x_msg_count := FND_MSG_PUB.count_msg;
12888: IF x_msg_count = 1 then
12889: pa_interface_utils_pub.get_messages
12890: (p_encoded => FND_API.G_TRUE,

Line 12890: (p_encoded => FND_API.G_TRUE,

12886: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
12887: x_msg_count := FND_MSG_PUB.count_msg;
12888: IF x_msg_count = 1 then
12889: pa_interface_utils_pub.get_messages
12890: (p_encoded => FND_API.G_TRUE,
12891: p_msg_index => 1,
12892: p_msg_count => x_msg_count,
12893: p_msg_data => x_msg_data,
12894: p_data => l_data,

Line 12897: raise FND_API.G_EXC_ERROR;

12893: p_msg_data => x_msg_data,
12894: p_data => l_data,
12895: p_msg_index_out => l_msg_index_out);
12896: x_msg_data := l_data;
12897: raise FND_API.G_EXC_ERROR;
12898: END IF;
12899: ELSE
12900: IF (p_commit = FND_API.G_TRUE) THEN
12901: COMMIT;

Line 12900: IF (p_commit = FND_API.G_TRUE) THEN

12896: x_msg_data := l_data;
12897: raise FND_API.G_EXC_ERROR;
12898: END IF;
12899: ELSE
12900: IF (p_commit = FND_API.G_TRUE) THEN
12901: COMMIT;
12902: END IF;
12903: END IF;
12904:

Line 12910: WHEN FND_API.G_EXC_ERROR THEN

12906: pa_debug.debug('PA_TASK_PUB1.Delete_Proj_To_Task_Assoc END');
12907: END IF;
12908:
12909: EXCEPTION
12910: WHEN FND_API.G_EXC_ERROR THEN
12911: IF (p_commit = FND_API.G_TRUE) THEN
12912: ROLLBACK to delete_prj_to_task_assoc;
12913: END IF;
12914: x_msg_count := FND_MSG_PUB.count_msg;

Line 12911: IF (p_commit = FND_API.G_TRUE) THEN

12907: END IF;
12908:
12909: EXCEPTION
12910: WHEN FND_API.G_EXC_ERROR THEN
12911: IF (p_commit = FND_API.G_TRUE) THEN
12912: ROLLBACK to delete_prj_to_task_assoc;
12913: END IF;
12914: x_msg_count := FND_MSG_PUB.count_msg;
12915: x_return_status := FND_API.G_RET_STS_ERROR;

Line 12915: x_return_status := FND_API.G_RET_STS_ERROR;

12911: IF (p_commit = FND_API.G_TRUE) THEN
12912: ROLLBACK to delete_prj_to_task_assoc;
12913: END IF;
12914: x_msg_count := FND_MSG_PUB.count_msg;
12915: x_return_status := FND_API.G_RET_STS_ERROR;
12916: WHEN OTHERS THEN
12917: IF (p_commit = FND_API.G_TRUE) THEN
12918: ROLLBACK to delete_prj_to_task_assoc;
12919: END IF;

Line 12917: IF (p_commit = FND_API.G_TRUE) THEN

12913: END IF;
12914: x_msg_count := FND_MSG_PUB.count_msg;
12915: x_return_status := FND_API.G_RET_STS_ERROR;
12916: WHEN OTHERS THEN
12917: IF (p_commit = FND_API.G_TRUE) THEN
12918: ROLLBACK to delete_prj_to_task_assoc;
12919: END IF;
12920: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12921: --put message

Line 12920: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

12916: WHEN OTHERS THEN
12917: IF (p_commit = FND_API.G_TRUE) THEN
12918: ROLLBACK to delete_prj_to_task_assoc;
12919: END IF;
12920: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12921: --put message
12922: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
12923: p_procedure_name => 'delete_proj_to_task_assoc',
12924: p_error_text => SUBSTRB(SQLERRM,1,240));

Line 12931: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

12927:
12928:
12929: PROCEDURE Copy_Task_Associations(
12930: p_api_version IN NUMBER :=1.0,
12931: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12932: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12933: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12934: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12935: p_debug_mode IN VARCHAR2 :='N',

Line 12932: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

12928:
12929: PROCEDURE Copy_Task_Associations(
12930: p_api_version IN NUMBER :=1.0,
12931: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12932: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12933: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12934: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12935: p_debug_mode IN VARCHAR2 :='N',
12936: p_max_msg_count IN NUMBER :=NULL,

Line 12933: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

12929: PROCEDURE Copy_Task_Associations(
12930: p_api_version IN NUMBER :=1.0,
12931: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
12932: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
12933: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
12934: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
12935: p_debug_mode IN VARCHAR2 :='N',
12936: p_max_msg_count IN NUMBER :=NULL,
12937: p_project_id_to IN NUMBER := NULL,

Line 12982: x_return_status := FND_API.G_RET_STS_SUCCESS;

12978: IF (p_debug_mode = 'Y') THEN
12979: pa_debug.debug('PA_TASK_PUB1.Copy_Task_Associations START');
12980: END IF;
12981:
12982: x_return_status := FND_API.G_RET_STS_SUCCESS;
12983:
12984: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12985: FND_MSG_PUB.initialize;
12986: END IF;

Line 12984: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

12980: END IF;
12981:
12982: x_return_status := FND_API.G_RET_STS_SUCCESS;
12983:
12984: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12985: FND_MSG_PUB.initialize;
12986: END IF;
12987:
12988: IF (p_commit = FND_API.G_TRUE) THEN

Line 12988: IF (p_commit = FND_API.G_TRUE) THEN

12984: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
12985: FND_MSG_PUB.initialize;
12986: END IF;
12987:
12988: IF (p_commit = FND_API.G_TRUE) THEN
12989: savepoint copy_task_associations;
12990: END IF;
12991:
12992:

Line 13027: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

13023: ,x_return_status => x_return_status);
13024:
13025: END IF;
13026: close task_association;
13027: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
13028: EXIT;
13029: END IF;
13030: END IF;
13031: END LOOP;

Line 13033: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

13029: END IF;
13030: END IF;
13031: END LOOP;
13032:
13033: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
13034: x_msg_count := FND_MSG_PUB.count_msg;
13035: IF x_msg_count = 1 then
13036: pa_interface_utils_pub.get_messages
13037: (p_encoded => FND_API.G_TRUE,

Line 13037: (p_encoded => FND_API.G_TRUE,

13033: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
13034: x_msg_count := FND_MSG_PUB.count_msg;
13035: IF x_msg_count = 1 then
13036: pa_interface_utils_pub.get_messages
13037: (p_encoded => FND_API.G_TRUE,
13038: p_msg_index => 1,
13039: p_msg_count => x_msg_count,
13040: p_msg_data => x_msg_data,
13041: p_data => l_data,

Line 13044: raise FND_API.G_EXC_ERROR;

13040: p_msg_data => x_msg_data,
13041: p_data => l_data,
13042: p_msg_index_out => l_msg_index_out);
13043: x_msg_data := l_data;
13044: raise FND_API.G_EXC_ERROR;
13045: END IF;
13046: ELSE
13047: IF (p_commit = FND_API.G_TRUE) THEN
13048: COMMIT;

Line 13047: IF (p_commit = FND_API.G_TRUE) THEN

13043: x_msg_data := l_data;
13044: raise FND_API.G_EXC_ERROR;
13045: END IF;
13046: ELSE
13047: IF (p_commit = FND_API.G_TRUE) THEN
13048: COMMIT;
13049: END IF;
13050: END IF;
13051:

Line 13057: WHEN FND_API.G_EXC_ERROR THEN

13053: pa_debug.debug('PA_TASK_PUB1.Copy_Task_Associations END');
13054: END IF;
13055:
13056: EXCEPTION
13057: WHEN FND_API.G_EXC_ERROR THEN
13058: IF (p_commit = FND_API.G_TRUE) THEN
13059: ROLLBACK to copy_task_associations;
13060: END IF;
13061: x_msg_count := FND_MSG_PUB.count_msg;

Line 13058: IF (p_commit = FND_API.G_TRUE) THEN

13054: END IF;
13055:
13056: EXCEPTION
13057: WHEN FND_API.G_EXC_ERROR THEN
13058: IF (p_commit = FND_API.G_TRUE) THEN
13059: ROLLBACK to copy_task_associations;
13060: END IF;
13061: x_msg_count := FND_MSG_PUB.count_msg;
13062: x_return_status := FND_API.G_RET_STS_ERROR;

Line 13062: x_return_status := FND_API.G_RET_STS_ERROR;

13058: IF (p_commit = FND_API.G_TRUE) THEN
13059: ROLLBACK to copy_task_associations;
13060: END IF;
13061: x_msg_count := FND_MSG_PUB.count_msg;
13062: x_return_status := FND_API.G_RET_STS_ERROR;
13063: WHEN OTHERS THEN
13064: IF (p_commit = FND_API.G_TRUE) THEN
13065: ROLLBACK to copy_task_associations;
13066: END IF;

Line 13064: IF (p_commit = FND_API.G_TRUE) THEN

13060: END IF;
13061: x_msg_count := FND_MSG_PUB.count_msg;
13062: x_return_status := FND_API.G_RET_STS_ERROR;
13063: WHEN OTHERS THEN
13064: IF (p_commit = FND_API.G_TRUE) THEN
13065: ROLLBACK to copy_task_associations;
13066: END IF;
13067: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
13068: --put message

Line 13067: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

13063: WHEN OTHERS THEN
13064: IF (p_commit = FND_API.G_TRUE) THEN
13065: ROLLBACK to copy_task_associations;
13066: END IF;
13067: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
13068: --put message
13069: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
13070: p_procedure_name => 'Copy_Task_Associations',
13071: p_error_text => SUBSTRB(SQLERRM,1,240));

Line 13160: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

13156: p_procedure_name => 'call_add_planning_txns',
13157: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.add_planning_transactions:'||SQLERRM,1,240));
13158: raise API_ERROR;
13159: END;
13160: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
13161: x_msg_count := FND_MSG_PUB.count_msg;
13162: if x_msg_count = 1 then
13163: pa_interface_utils_pub.get_messages
13164: (p_encoded => FND_API.G_TRUE,

Line 13164: (p_encoded => FND_API.G_TRUE,

13160: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
13161: x_msg_count := FND_MSG_PUB.count_msg;
13162: if x_msg_count = 1 then
13163: pa_interface_utils_pub.get_messages
13164: (p_encoded => FND_API.G_TRUE,
13165: p_msg_index => 1,
13166: p_msg_count => l_msg_count,
13167: p_msg_data => l_msg_data,
13168: p_data => l_data,

Line 13176: x_return_status := FND_API.G_RET_STS_SUCCESS;

13172: raise API_ERROR;
13173: end if;
13174: END IF;
13175:
13176: x_return_status := FND_API.G_RET_STS_SUCCESS;
13177: EXCEPTION
13178: WHEN API_ERROR THEN
13179: x_return_status := FND_API.G_RET_STS_ERROR;
13180: WHEN OTHERS THEN

Line 13179: x_return_status := FND_API.G_RET_STS_ERROR;

13175:
13176: x_return_status := FND_API.G_RET_STS_SUCCESS;
13177: EXCEPTION
13178: WHEN API_ERROR THEN
13179: x_return_status := FND_API.G_RET_STS_ERROR;
13180: WHEN OTHERS THEN
13181: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
13182: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
13183: p_procedure_name => 'call_add_planning_txns',

Line 13181: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

13177: EXCEPTION
13178: WHEN API_ERROR THEN
13179: x_return_status := FND_API.G_RET_STS_ERROR;
13180: WHEN OTHERS THEN
13181: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
13182: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
13183: p_procedure_name => 'call_add_planning_txns',
13184: p_error_text => SUBSTRB(SQLERRM,1,240));
13185: raise;

Line 13190: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

13186: END call_add_planning_txns;
13187:
13188: PROCEDURE update_task_det_sch_info(
13189: p_api_version IN NUMBER :=1.0,
13190: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
13191: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
13192: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
13193: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
13194: p_debug_mode IN VARCHAR2 :='N',

Line 13191: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

13187:
13188: PROCEDURE update_task_det_sch_info(
13189: p_api_version IN NUMBER :=1.0,
13190: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
13191: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
13192: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
13193: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
13194: p_debug_mode IN VARCHAR2 :='N',
13195: p_task_ver_id IN NUMBER,

Line 13192: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

13188: PROCEDURE update_task_det_sch_info(
13189: p_api_version IN NUMBER :=1.0,
13190: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
13191: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
13192: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
13193: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
13194: p_debug_mode IN VARCHAR2 :='N',
13195: p_task_ver_id IN NUMBER,
13196: p_project_id IN NUMBER,

Line 13468: IF (p_commit = FND_API.G_TRUE) THEN

13464: IF (p_debug_mode = 'Y') THEN
13465: pa_debug.debug('PA_TASK_PUB1.UPDATE_TASK_DET_SCH_INFO begin');
13466: END IF;
13467:
13468: IF (p_commit = FND_API.G_TRUE) THEN
13469: savepoint UPDATE_task_det_sch;
13470: END IF;
13471:
13472: l_debug_mode := NVL(FND_PROFILE.value_specific('PA_DEBUG_MODE',fnd_global.user_id,fnd_global.login_id,275,null,null), 'N');

Line 13509: RAISE FND_API.G_EXC_ERROR;

13505: ,p_msg_name => 'PA_TP_NO_NEG_PLN');
13506:
13507: x_msg_data := 'PA_TP_NO_NEG_PLN';
13508: x_return_status := 'E';
13509: RAISE FND_API.G_EXC_ERROR;
13510: END IF;
13511:
13512: IF (((p_etc_cost <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) and (nvl(p_etc_cost,0) < 0))
13513: or ((p_etc_effort <> PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) and (nvl(p_etc_effort,0) < 0))) THEN

Line 13520: RAISE FND_API.G_EXC_ERROR;

13516: ,p_msg_name => 'PA_TP_NO_NEG_ETC');
13517:
13518: x_msg_data := 'PA_TP_NO_NEG_ETC';
13519: x_return_status := 'E';
13520: RAISE FND_API.G_EXC_ERROR;
13521: END IF;
13522: */
13523: -- End of Bug Fix 5726773
13524:

Line 13672: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

13668: x_msg_count => l_msg_count,
13669: x_msg_data => l_msg_data
13670: );
13671:
13672: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
13673: l_msg_count := FND_MSG_PUB.count_msg;
13674: IF l_msg_count > 0 THEN
13675: x_msg_count := l_msg_count;
13676: IF x_msg_count = 1 THEN

Line 13679: RAISE FND_API.G_EXC_ERROR;

13675: x_msg_count := l_msg_count;
13676: IF x_msg_count = 1 THEN
13677: x_msg_data := l_msg_data;
13678: END IF;
13679: RAISE FND_API.G_EXC_ERROR;
13680: END IF;
13681: END IF;
13682: END IF;
13683:

Line 13731: l_planned_effort2(1) := FND_API.G_MISS_NUM;

13727:
13728: /* Start Modifications to fix Bug # 3640498. */
13729:
13730: IF ((l_planned_effort = PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM) or (nvl(l_planned_effort,0) = 0)) then
13731: l_planned_effort2(1) := FND_API.G_MISS_NUM;
13732: ELSE
13733: l_planned_effort2(1) := l_planned_effort;
13734: END IF;
13735:

Line 13772: RAISE FND_API.G_EXC_ERROR;

13768: WHEN OTHERS THEN
13769: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
13770: p_procedure_name => 'update_task_det_sch_info',
13771: p_error_text => SUBSTRB('pa_fp_planning_transaction_pub.update_planning_transactions:'||SQLERRM,1,240));
13772: RAISE FND_API.G_EXC_ERROR;
13773: END;
13774: --end 3301192 fp changes
13775: END IF; --<< l_planned_effort >>
13776:

Line 14407: p_init_msg_list => FND_API.G_FALSE,

14403: END IF;
14404:
14405: -- 4591321 : Always call populate_pji_tab_for_plan
14406: pa_progress_pub.populate_pji_tab_for_plan(
14407: p_init_msg_list => FND_API.G_FALSE,
14408: p_project_id => p_project_id,
14409: p_structure_version_id => p_structure_version_id,
14410: p_baselined_str_ver_id => PA_PROJECT_STRUCTURE_UTILS.Get_Baseline_Struct_Ver(p_project_id),
14411: p_structure_type => 'WORKPLAN',

Line 14418: RAISE FND_API.G_EXC_ERROR;

14414: x_msg_data => l_msg_data
14415: );
14416:
14417: IF l_return_status <> 'S' THEN
14418: RAISE FND_API.G_EXC_ERROR;
14419: END IF;
14420:
14421: -- Bug 3861259 End
14422:

Line 14506: p_init_msg_list => FND_API.G_FALSE,

14502: END IF;
14503: -- 4591321 : Always call populate_pji_tab_for_plan
14504:
14505: pa_progress_pub.populate_pji_tab_for_plan(
14506: p_init_msg_list => FND_API.G_FALSE,
14507: --p_calling_module => p_calling_module,
14508: p_project_id => p_project_id,
14509: p_structure_version_id => p_structure_version_id,
14510: p_baselined_str_ver_id => PA_PROJECT_STRUCTURE_UTILS.Get_Baseline_Struct_Ver(p_project_id),

Line 14517: RAISE FND_API.G_EXC_ERROR;

14513: x_msg_count => l_msg_count,
14514: x_msg_data => l_msg_data
14515: );
14516: IF l_return_status <> 'S' THEN
14517: RAISE FND_API.G_EXC_ERROR;
14518: END IF;
14519: -- Bug 3861259 End
14520:
14521:

Line 14552: if l_return_status <> FND_API.G_RET_STS_SUCCESS then

14548: end if;
14549:
14550: /* END: The above actions are to be performed only when p_object_type = 'PA_ASSIGNMENTS'. */
14551:
14552: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
14553: x_msg_count := FND_MSG_PUB.count_msg;
14554: if x_msg_count = 1 then
14555: pa_interface_utils_pub.get_messages
14556: (p_encoded => FND_API.G_TRUE,

Line 14556: (p_encoded => FND_API.G_TRUE,

14552: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
14553: x_msg_count := FND_MSG_PUB.count_msg;
14554: if x_msg_count = 1 then
14555: pa_interface_utils_pub.get_messages
14556: (p_encoded => FND_API.G_TRUE,
14557: p_msg_index => 1,
14558: p_msg_count => l_msg_count,
14559: p_msg_data => l_msg_data,
14560: p_data => l_data,

Line 14564: raise FND_API.G_EXC_ERROR;

14560: p_data => l_data,
14561: p_msg_index_out => l_msg_index_out);
14562: x_msg_data := l_data;
14563: end if;
14564: raise FND_API.G_EXC_ERROR;
14565: end if;
14566:
14567: x_return_status := FND_API.G_RET_STS_SUCCESS;
14568:

Line 14567: x_return_status := FND_API.G_RET_STS_SUCCESS;

14563: end if;
14564: raise FND_API.G_EXC_ERROR;
14565: end if;
14566:
14567: x_return_status := FND_API.G_RET_STS_SUCCESS;
14568:
14569: EXCEPTION
14570: WHEN FND_API.G_EXC_ERROR THEN
14571: IF (p_commit = FND_API.G_TRUE) THEN

Line 14570: WHEN FND_API.G_EXC_ERROR THEN

14566:
14567: x_return_status := FND_API.G_RET_STS_SUCCESS;
14568:
14569: EXCEPTION
14570: WHEN FND_API.G_EXC_ERROR THEN
14571: IF (p_commit = FND_API.G_TRUE) THEN
14572: ROLLBACK to UPDATE_task_det_sch;
14573: END IF;
14574: x_msg_count := FND_MSG_PUB.count_msg;

Line 14571: IF (p_commit = FND_API.G_TRUE) THEN

14567: x_return_status := FND_API.G_RET_STS_SUCCESS;
14568:
14569: EXCEPTION
14570: WHEN FND_API.G_EXC_ERROR THEN
14571: IF (p_commit = FND_API.G_TRUE) THEN
14572: ROLLBACK to UPDATE_task_det_sch;
14573: END IF;
14574: x_msg_count := FND_MSG_PUB.count_msg;
14575: x_return_status := FND_API.G_RET_STS_ERROR;

Line 14575: x_return_status := FND_API.G_RET_STS_ERROR;

14571: IF (p_commit = FND_API.G_TRUE) THEN
14572: ROLLBACK to UPDATE_task_det_sch;
14573: END IF;
14574: x_msg_count := FND_MSG_PUB.count_msg;
14575: x_return_status := FND_API.G_RET_STS_ERROR;
14576: WHEN OTHERS THEN
14577: IF (p_commit = FND_API.G_TRUE) THEN
14578: ROLLBACK to UPDATE_task_det_sch;
14579: END IF;

Line 14577: IF (p_commit = FND_API.G_TRUE) THEN

14573: END IF;
14574: x_msg_count := FND_MSG_PUB.count_msg;
14575: x_return_status := FND_API.G_RET_STS_ERROR;
14576: WHEN OTHERS THEN
14577: IF (p_commit = FND_API.G_TRUE) THEN
14578: ROLLBACK to UPDATE_task_det_sch;
14579: END IF;
14580: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14581: x_msg_count := FND_MSG_PUB.count_msg;

Line 14580: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

14576: WHEN OTHERS THEN
14577: IF (p_commit = FND_API.G_TRUE) THEN
14578: ROLLBACK to UPDATE_task_det_sch;
14579: END IF;
14580: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14581: x_msg_count := FND_MSG_PUB.count_msg;
14582: --put message
14583: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
14584: p_procedure_name => 'update_task_det_sch_info',

Line 14597: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

14593: -- Pre-reqs : None
14594: -- Return Value : N/A
14595: -- Prameters
14596: -- p_api_version IN NUMBER N Not Null 1.0
14597: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14598: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
14599: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
14600: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
14601: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 14598: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

14594: -- Return Value : N/A
14595: -- Prameters
14596: -- p_api_version IN NUMBER N Not Null 1.0
14597: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14598: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
14599: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
14600: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
14601: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
14602: -- p_debug_mode IN VARCHAR2 N Null N

Line 14599: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

14595: -- Prameters
14596: -- p_api_version IN NUMBER N Not Null 1.0
14597: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14598: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
14599: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
14600: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
14601: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
14602: -- p_debug_mode IN VARCHAR2 N Null N
14603: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 14600: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

14596: -- p_api_version IN NUMBER N Not Null 1.0
14597: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
14598: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
14599: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
14600: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
14601: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
14602: -- p_debug_mode IN VARCHAR2 N Null N
14603: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
14604: -- p_src_project_id IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 14630: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

14626:
14627: PROCEDURE Copy_Tasks_In_Bulk
14628: (
14629: p_api_version IN NUMBER :=1.0,
14630: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
14631: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
14632: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
14633: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
14634: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 14631: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

14627: PROCEDURE Copy_Tasks_In_Bulk
14628: (
14629: p_api_version IN NUMBER :=1.0,
14630: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
14631: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
14632: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
14633: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
14634: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
14635: p_debug_mode IN VARCHAR2 :='N',

Line 14632: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

14628: (
14629: p_api_version IN NUMBER :=1.0,
14630: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
14631: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
14632: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
14633: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
14634: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
14635: p_debug_mode IN VARCHAR2 :='N',
14636: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 14633: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

14629: p_api_version IN NUMBER :=1.0,
14630: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
14631: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
14632: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
14633: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
14634: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
14635: p_debug_mode IN VARCHAR2 :='N',
14636: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
14637: p_src_project_id IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 14736: x_return_status := FND_API.G_RET_STS_SUCCESS;

14732: FROM PA_PROJECTS_ALL
14733: WHERE project_id = c_project_id;
14734: BEGIN
14735: pa_debug.init_err_stack ('PA_TASK_PUB1.COPY_TASKS_IN_BULK');
14736: x_return_status := FND_API.G_RET_STS_SUCCESS;
14737: IF (p_debug_mode = 'Y') THEN
14738: pa_debug.debug('PA_TASK_PUB1.COPY_TASKS_IN_BULK begin');
14739: END IF;
14740:

Line 14741: IF (p_commit = FND_API.G_TRUE) THEN

14737: IF (p_debug_mode = 'Y') THEN
14738: pa_debug.debug('PA_TASK_PUB1.COPY_TASKS_IN_BULK begin');
14739: END IF;
14740:
14741: IF (p_commit = FND_API.G_TRUE) THEN
14742: savepoint copy_tasks_in_bulk;
14743: END IF;
14744:
14745: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 14745: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

14741: IF (p_commit = FND_API.G_TRUE) THEN
14742: savepoint copy_tasks_in_bulk;
14743: END IF;
14744:
14745: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
14746: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
14747: END IF;
14748:
14749: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 14746: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

14742: savepoint copy_tasks_in_bulk;
14743: END IF;
14744:
14745: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
14746: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
14747: END IF;
14748:
14749: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
14750: FND_MSG_PUB.initialize;

Line 14749: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

14745: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
14746: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
14747: END IF;
14748:
14749: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
14750: FND_MSG_PUB.initialize;
14751: END IF;
14752:
14753: IF p_calling_module = 'SELF_SERVICE' THEN

Line 14805: raise FND_API.G_EXC_ERROR;

14801:
14802: IF l_add_task_allowed = 'N' THEN
14803: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14804: p_msg_name => 'PA_PR_PM_CANNOT_COPY');
14805: raise FND_API.G_EXC_ERROR;
14806: END IF;
14807:
14808: END IF;
14809:

Line 14824: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

14820: x_project_id => l_src_project_id,
14821: x_return_status => l_return_status,
14822: x_error_msg_code => l_error_msg_code);
14823:
14824: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
14825: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14826: p_msg_name => l_error_msg_code);
14827: END IF;
14828: END IF;

Line 14847: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

14843: ,x_return_status => l_return_status
14844: ,x_error_message_code => l_error_msg_code
14845: );
14846:
14847: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
14848: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14849: p_msg_name => l_error_msg_code);
14850: END IF;
14851: END IF;

Line 14871: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

14867: ,x_return_status => l_return_status
14868: ,x_error_message_code => l_error_msg_code
14869: );
14870:
14871: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
14872: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14873: p_msg_name => l_error_msg_code);
14874: END IF;
14875:

Line 14889: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

14885:
14886: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14887: p_msg_name => 'PA_PS_NOT_ENOUGH_PARAMS' );
14888: x_msg_data := ' BULK API : PA_PS_NOT_ENOUGH_PARAMS';
14889: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14890: RAISE FND_API.G_EXC_ERROR;
14891: END IF;
14892:
14893: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

Line 14890: RAISE FND_API.G_EXC_ERROR;

14886: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14887: p_msg_name => 'PA_PS_NOT_ENOUGH_PARAMS' );
14888: x_msg_data := ' BULK API : PA_PS_NOT_ENOUGH_PARAMS';
14889: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14890: RAISE FND_API.G_EXC_ERROR;
14891: END IF;
14892:
14893: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
14894: x_msg_count := FND_MSG_PUB.count_msg;

Line 14893: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

14889: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14890: RAISE FND_API.G_EXC_ERROR;
14891: END IF;
14892:
14893: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
14894: x_msg_count := FND_MSG_PUB.count_msg;
14895: IF x_msg_count = 1 then
14896: pa_interface_utils_pub.get_messages
14897: (p_encoded => FND_API.G_TRUE,

Line 14897: (p_encoded => FND_API.G_TRUE,

14893: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
14894: x_msg_count := FND_MSG_PUB.count_msg;
14895: IF x_msg_count = 1 then
14896: pa_interface_utils_pub.get_messages
14897: (p_encoded => FND_API.G_TRUE,
14898: p_msg_index => 1,
14899: p_msg_count => l_msg_count,
14900: p_msg_data => l_msg_data,
14901: p_data => l_data,

Line 14905: raise FND_API.G_EXC_ERROR;

14901: p_data => l_data,
14902: p_msg_index_out => l_msg_index_out);
14903: x_msg_data := l_data;
14904: END IF;
14905: raise FND_API.G_EXC_ERROR;
14906: END IF;
14907:
14908: IF p_copy_option NOT IN( 'PA_ENTIRE_VERSION', 'PA_TASK_ONLY', 'PA_TASK_SUBTASK' )
14909: THEN

Line 14914: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

14910:
14911: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14912: p_msg_name => 'PA_PS_WRONG_COPY_OPTION' );
14913: x_msg_data := 'PA_PS_WRONG_COPY_OPTION';
14914: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14915: RAISE FND_API.G_EXC_ERROR;
14916: END IF;
14917:
14918: /*====================================================================

Line 14915: RAISE FND_API.G_EXC_ERROR;

14911: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
14912: p_msg_name => 'PA_PS_WRONG_COPY_OPTION' );
14913: x_msg_data := 'PA_PS_WRONG_COPY_OPTION';
14914: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14915: RAISE FND_API.G_EXC_ERROR;
14916: END IF;
14917:
14918: /*====================================================================
14919: ALL BASIC VALIDATIONS COMPLETE RELEVANT TO VALIDITY OF PASSED PARAMS

Line 14998: p_init_msg_list => FND_API.G_FALSE,

14994:
14995: IF nvl(p_src_task_version_id_tbl.LAST,0)>0 THEN
14996: FOR i IN p_src_task_version_id_tbl.FIRST..p_src_task_version_id_tbl.LAST LOOP
14997: PA_TASK_PUB1.Copy_Task(
14998: p_init_msg_list => FND_API.G_FALSE,
14999: p_src_project_id => p_src_project_id,
15000: p_src_project_name => p_src_project_name,
15001: p_src_structure_id => p_src_structure_id ,
15002: p_src_structure_name => p_src_structure_name,

Line 15032: if(x_return_status <> FND_API.G_RET_STS_SUCCESS)

15028: x_return_status => x_return_status,
15029: x_msg_count => x_msg_count,
15030: x_msg_data => x_msg_data
15031: );
15032: if(x_return_status <> FND_API.G_RET_STS_SUCCESS)
15033: then
15034: RAISE FND_API.G_EXC_ERROR ;
15035: End if;
15036: END LOOP;

Line 15034: RAISE FND_API.G_EXC_ERROR ;

15030: x_msg_data => x_msg_data
15031: );
15032: if(x_return_status <> FND_API.G_RET_STS_SUCCESS)
15033: then
15034: RAISE FND_API.G_EXC_ERROR ;
15035: End if;
15036: END LOOP;
15037:
15038: END IF;

Line 15041: IF (p_commit = FND_API.G_TRUE) THEN

15037:
15038: END IF;
15039:
15040: END IF; /*End If Calling Module is self service*/
15041: IF (p_commit = FND_API.G_TRUE) THEN
15042: COMMIT;
15043: END IF;
15044: EXCEPTION
15045: when FND_API.G_EXC_ERROR then

Line 15045: when FND_API.G_EXC_ERROR then

15041: IF (p_commit = FND_API.G_TRUE) THEN
15042: COMMIT;
15043: END IF;
15044: EXCEPTION
15045: when FND_API.G_EXC_ERROR then
15046: if p_commit = FND_API.G_TRUE then
15047: rollback to Copy_Tasks_in_bulk;
15048: end if;
15049: x_return_status := FND_API.G_RET_STS_ERROR;

Line 15046: if p_commit = FND_API.G_TRUE then

15042: COMMIT;
15043: END IF;
15044: EXCEPTION
15045: when FND_API.G_EXC_ERROR then
15046: if p_commit = FND_API.G_TRUE then
15047: rollback to Copy_Tasks_in_bulk;
15048: end if;
15049: x_return_status := FND_API.G_RET_STS_ERROR;
15050: x_msg_count := Fnd_Msg_Pub.count_msg;

Line 15049: x_return_status := FND_API.G_RET_STS_ERROR;

15045: when FND_API.G_EXC_ERROR then
15046: if p_commit = FND_API.G_TRUE then
15047: rollback to Copy_Tasks_in_bulk;
15048: end if;
15049: x_return_status := FND_API.G_RET_STS_ERROR;
15050: x_msg_count := Fnd_Msg_Pub.count_msg;
15051: IF x_msg_count = 1 AND x_msg_data IS NULL
15052: THEN
15053: Pa_Interface_Utils_Pub.get_messages

Line 15054: ( p_encoded => Fnd_Api.G_TRUE

15050: x_msg_count := Fnd_Msg_Pub.count_msg;
15051: IF x_msg_count = 1 AND x_msg_data IS NULL
15052: THEN
15053: Pa_Interface_Utils_Pub.get_messages
15054: ( p_encoded => Fnd_Api.G_TRUE
15055: , p_msg_index => 1
15056: , p_msg_count => l_msg_count
15057: , p_msg_data => l_msg_data
15058: , p_data => l_data

Line 15062: when FND_API.G_EXC_UNEXPECTED_ERROR then

15058: , p_data => l_data
15059: , p_msg_index_out => l_msg_index_out);
15060: END IF;
15061: x_msg_data := l_data;
15062: when FND_API.G_EXC_UNEXPECTED_ERROR then
15063: if p_commit = FND_API.G_TRUE then
15064: rollback to Copy_Tasks_in_bulk;
15065: end if;
15066: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 15063: if p_commit = FND_API.G_TRUE then

15059: , p_msg_index_out => l_msg_index_out);
15060: END IF;
15061: x_msg_data := l_data;
15062: when FND_API.G_EXC_UNEXPECTED_ERROR then
15063: if p_commit = FND_API.G_TRUE then
15064: rollback to Copy_Tasks_in_bulk;
15065: end if;
15066: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15067: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 15066: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15062: when FND_API.G_EXC_UNEXPECTED_ERROR then
15063: if p_commit = FND_API.G_TRUE then
15064: rollback to Copy_Tasks_in_bulk;
15065: end if;
15066: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15067: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15068: p_procedure_name => 'COPY_TASKS_IN_BULK',
15069: p_error_text => SUBSTRB(SQLERRM,1,240));
15070: when OTHERS then

Line 15071: if p_commit = FND_API.G_TRUE then

15067: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15068: p_procedure_name => 'COPY_TASKS_IN_BULK',
15069: p_error_text => SUBSTRB(SQLERRM,1,240));
15070: when OTHERS then
15071: if p_commit = FND_API.G_TRUE then
15072: rollback to Copy_Tasks_in_bulk;
15073: end if;
15074: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15075: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 15074: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15070: when OTHERS then
15071: if p_commit = FND_API.G_TRUE then
15072: rollback to Copy_Tasks_in_bulk;
15073: end if;
15074: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15075: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15076: p_procedure_name => 'COPY_TASKS_IN_BULK',
15077: p_error_text => SUBSTRB(SQLERRM,1,240));
15078: raise;

Line 15088: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE

15084: -- Pre-reqs : None
15085: -- Return Value : N/A
15086: -- Prameters
15087: -- p_api_version IN NUMBER N Not Null 1.0
15088: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
15089: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15090: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
15091: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
15092: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE

Line 15089: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE

15085: -- Return Value : N/A
15086: -- Prameters
15087: -- p_api_version IN NUMBER N Not Null 1.0
15088: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
15089: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15090: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
15091: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
15092: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
15093: -- p_debug_mode IN VARCHAR2 N Null N

Line 15090: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE

15086: -- Prameters
15087: -- p_api_version IN NUMBER N Not Null 1.0
15088: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
15089: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15090: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
15091: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
15092: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
15093: -- p_debug_mode IN VARCHAR2 N Null N
15094: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 15091: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL

15087: -- p_api_version IN NUMBER N Not Null 1.0
15088: -- p_init_msg_list IN VARCHAR2 N Not Null FND_API.TRUE
15089: -- p_commit IN VARCHAR2 N Not Null FND_API.G_FALSE
15090: -- p_validate_only IN VARCHAR2 N Not Null FND_API.G_TRUE
15091: -- p_validation_level IN NUMBER N Null FND_API.G_VALID_LEVEL_FULL
15092: -- p_calling_module IN VARCHAR2 N Null SELF_SERVICE
15093: -- p_debug_mode IN VARCHAR2 N Null N
15094: -- p_max_msg_count IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
15095: -- p_structure_version_id IN NUMBER N NULL PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 15112: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,

15108: -- 29-MAR-05 Modified avaithia 4269830 : Performance Tuning done
15109: --
15110: PROCEDURE MOVE_TASK_VERSIONS_IN_BULK
15111: ( p_api_version IN NUMBER := 1.0,
15112: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
15113: p_commit IN VARCHAR2 := FND_API.G_FALSE,
15114: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
15115: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
15116: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',

Line 15113: p_commit IN VARCHAR2 := FND_API.G_FALSE,

15109: --
15110: PROCEDURE MOVE_TASK_VERSIONS_IN_BULK
15111: ( p_api_version IN NUMBER := 1.0,
15112: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
15113: p_commit IN VARCHAR2 := FND_API.G_FALSE,
15114: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
15115: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
15116: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',
15117: p_debug_mode IN VARCHAR2 := 'N',

Line 15114: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,

15110: PROCEDURE MOVE_TASK_VERSIONS_IN_BULK
15111: ( p_api_version IN NUMBER := 1.0,
15112: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
15113: p_commit IN VARCHAR2 := FND_API.G_FALSE,
15114: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
15115: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
15116: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',
15117: p_debug_mode IN VARCHAR2 := 'N',
15118: p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 15115: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,

15111: ( p_api_version IN NUMBER := 1.0,
15112: p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE,
15113: p_commit IN VARCHAR2 := FND_API.G_FALSE,
15114: p_validate_only IN VARCHAR2 := FND_API.G_TRUE,
15115: p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
15116: p_calling_module IN VARCHAR2 := 'SELF_SERVICE',
15117: p_debug_mode IN VARCHAR2 := 'N',
15118: p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
15119: p_structure_version_id IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 15213: x_return_status := FND_API.G_RET_STS_SUCCESS ;

15209:
15210: BEGIN
15211: pa_debug.init_err_stack ('PA_TASK_PUB1.MOVE_TASK_VERSIONS_IN_BULK');
15212:
15213: x_return_status := FND_API.G_RET_STS_SUCCESS ;
15214:
15215: IF (p_debug_mode = 'Y') THEN
15216: pa_debug.debug('PA_TASK_PUB1.MOVE_TASK_VERSIONS_IN_BULK begin');
15217: END IF;

Line 15219: IF (p_commit = FND_API.G_TRUE) THEN

15215: IF (p_debug_mode = 'Y') THEN
15216: pa_debug.debug('PA_TASK_PUB1.MOVE_TASK_VERSIONS_IN_BULK begin');
15217: END IF;
15218:
15219: IF (p_commit = FND_API.G_TRUE) THEN
15220: savepoint MOVE_TASK_VERSIONS_IN_BULK ;
15221: END IF;
15222:
15223: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 15223: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

15219: IF (p_commit = FND_API.G_TRUE) THEN
15220: savepoint MOVE_TASK_VERSIONS_IN_BULK ;
15221: END IF;
15222:
15223: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
15224: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
15225: END IF;
15226:
15227: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 15224: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

15220: savepoint MOVE_TASK_VERSIONS_IN_BULK ;
15221: END IF;
15222:
15223: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
15224: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
15225: END IF;
15226:
15227: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
15228: FND_MSG_PUB.initialize;

Line 15227: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

15223: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
15224: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
15225: END IF;
15226:
15227: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
15228: FND_MSG_PUB.initialize;
15229: END IF;
15230: IF p_calling_module = 'SELF_SERVICE' THEN
15231:

Line 15276: raise FND_API.G_EXC_ERROR;

15272: END IF;
15273: IF l_update_parent_task_allowed = 'N' THEN
15274: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
15275: p_msg_name => 'PA_PR_PM_NO_MOVE_TASK');
15276: raise FND_API.G_EXC_ERROR;
15277: END IF;
15278: End If;
15279:
15280: End If; /* End if calling module is self service*/

Line 15342: p_init_msg_list => FND_API.G_FALSE,

15338:
15339: IF nvl(p_task_version_id_tbl.LAST,0)>0 THEN
15340: FOR i IN p_task_version_id_tbl.FIRST..p_task_version_id_tbl.LAST LOOP
15341: PA_TASK_PUB1.Move_Task_Version(
15342: p_init_msg_list => FND_API.G_FALSE,
15343: p_structure_version_id => p_structure_version_id,
15344: p_task_version_id => p_task_version_id_tbl(i),
15345: p_ref_task_version_id => ref_task_temp_version_id, --p_ref_task_version_id, -- Bug 6628382
15346: p_peer_or_sub => p_peer_or_sub,

Line 15369: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

15365: x_return_status => x_return_status,
15366: x_msg_count => x_msg_count,
15367: x_msg_data => x_msg_data
15368: );
15369: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
15370: RAISE FND_API.G_EXC_ERROR ;
15371: END IF;
15372: ref_task_temp_version_id := p_task_version_id_tbl(i); -- Bug 6628382
15373: END LOOP;

Line 15370: RAISE FND_API.G_EXC_ERROR ;

15366: x_msg_count => x_msg_count,
15367: x_msg_data => x_msg_data
15368: );
15369: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
15370: RAISE FND_API.G_EXC_ERROR ;
15371: END IF;
15372: ref_task_temp_version_id := p_task_version_id_tbl(i); -- Bug 6628382
15373: END LOOP;
15374:

Line 15377: IF (p_commit = FND_API.G_TRUE) THEN

15373: END LOOP;
15374:
15375: END IF;
15376:
15377: IF (p_commit = FND_API.G_TRUE) THEN
15378: COMMIT;
15379: END IF;
15380:
15381: EXCEPTION

Line 15382: when FND_API.G_EXC_ERROR then

15378: COMMIT;
15379: END IF;
15380:
15381: EXCEPTION
15382: when FND_API.G_EXC_ERROR then
15383: if p_commit = FND_API.G_TRUE then
15384: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15385: end if;
15386: x_return_status := FND_API.G_RET_STS_ERROR;

Line 15383: if p_commit = FND_API.G_TRUE then

15379: END IF;
15380:
15381: EXCEPTION
15382: when FND_API.G_EXC_ERROR then
15383: if p_commit = FND_API.G_TRUE then
15384: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15385: end if;
15386: x_return_status := FND_API.G_RET_STS_ERROR;
15387: x_msg_count := Fnd_Msg_Pub.count_msg;

Line 15386: x_return_status := FND_API.G_RET_STS_ERROR;

15382: when FND_API.G_EXC_ERROR then
15383: if p_commit = FND_API.G_TRUE then
15384: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15385: end if;
15386: x_return_status := FND_API.G_RET_STS_ERROR;
15387: x_msg_count := Fnd_Msg_Pub.count_msg;
15388:
15389: IF x_msg_count = 1 AND x_msg_data IS NULL
15390: THEN

Line 15392: ( p_encoded => Fnd_Api.G_FALSE

15388:
15389: IF x_msg_count = 1 AND x_msg_data IS NULL
15390: THEN
15391: Pa_Interface_Utils_Pub.get_messages
15392: ( p_encoded => Fnd_Api.G_FALSE
15393: , p_msg_index => 1
15394: , p_msg_count => l_msg_count
15395: , p_msg_data => l_msg_data
15396: , p_data => l_data

Line 15401: when FND_API.G_EXC_UNEXPECTED_ERROR then

15397: , p_msg_index_out => l_msg_index_out);
15398: x_msg_data := l_data;
15399: END IF;
15400:
15401: when FND_API.G_EXC_UNEXPECTED_ERROR then
15402: if p_commit = FND_API.G_TRUE then
15403: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15404: end if;
15405: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 15402: if p_commit = FND_API.G_TRUE then

15398: x_msg_data := l_data;
15399: END IF;
15400:
15401: when FND_API.G_EXC_UNEXPECTED_ERROR then
15402: if p_commit = FND_API.G_TRUE then
15403: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15404: end if;
15405: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15406: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 15405: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15401: when FND_API.G_EXC_UNEXPECTED_ERROR then
15402: if p_commit = FND_API.G_TRUE then
15403: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15404: end if;
15405: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15406: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15407: p_procedure_name => 'MOVE_TASK_VERSIONS_IN_BULK',
15408: p_error_text => SUBSTRB(SQLERRM,1,240));
15409: when OTHERS then

Line 15410: if p_commit = FND_API.G_TRUE then

15406: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15407: p_procedure_name => 'MOVE_TASK_VERSIONS_IN_BULK',
15408: p_error_text => SUBSTRB(SQLERRM,1,240));
15409: when OTHERS then
15410: if p_commit = FND_API.G_TRUE then
15411: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15412: end if;
15413: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15414: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 15413: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15409: when OTHERS then
15410: if p_commit = FND_API.G_TRUE then
15411: rollback to MOVE_TASK_VERSIONS_IN_BULK;
15412: end if;
15413: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15414: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15415: p_procedure_name => 'MOVE_TASK_VERSIONS_IN_BULK',
15416: p_error_text => SUBSTRB(SQLERRM,1,240));
15417: raise;

Line 15424: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,

15420: -- 4218932 Added below update api for update task page for bulk approach
15421:
15422: PROCEDURE Update_Task_All_Info(
15423: p_api_version IN NUMBER :=1.0,
15424: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
15425: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
15426: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
15427: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
15428: p_calling_module IN VARCHAR2 :='SELF_SERVICE',

Line 15425: p_commit IN VARCHAR2 :=FND_API.G_FALSE,

15421:
15422: PROCEDURE Update_Task_All_Info(
15423: p_api_version IN NUMBER :=1.0,
15424: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
15425: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
15426: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
15427: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
15428: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
15429: p_debug_mode IN VARCHAR2 :='N',

Line 15426: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,

15422: PROCEDURE Update_Task_All_Info(
15423: p_api_version IN NUMBER :=1.0,
15424: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
15425: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
15426: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
15427: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
15428: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
15429: p_debug_mode IN VARCHAR2 :='N',
15430: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,

Line 15427: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,

15423: p_api_version IN NUMBER :=1.0,
15424: p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE,
15425: p_commit IN VARCHAR2 :=FND_API.G_FALSE,
15426: p_validate_only IN VARCHAR2 :=FND_API.G_TRUE,
15427: p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL,
15428: p_calling_module IN VARCHAR2 :='SELF_SERVICE',
15429: p_debug_mode IN VARCHAR2 :='N',
15430: p_max_msg_count IN NUMBER :=PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
15431: p_task_id_tbl IN SYSTEM.PA_NUM_TBL_TYPE := SYSTEM.PA_NUM_TBL_TYPE(),

Line 15501: IF (p_commit = FND_API.G_TRUE) THEN

15497: IF (p_debug_mode = 'Y') THEN
15498: pa_debug.debug('PA_TASK_PUB1.Update_Task_All_Info begin');
15499: END IF;
15500:
15501: IF (p_commit = FND_API.G_TRUE) THEN
15502: savepoint update_Task_all_info;
15503: END IF;
15504:
15505: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 15505: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

15501: IF (p_commit = FND_API.G_TRUE) THEN
15502: savepoint update_Task_all_info;
15503: END IF;
15504:
15505: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
15506: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
15507: END IF;
15508:
15509: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 15506: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

15502: savepoint update_Task_all_info;
15503: END IF;
15504:
15505: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
15506: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
15507: END IF;
15508:
15509: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
15510: FND_MSG_PUB.initialize;

Line 15509: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

15505: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
15506: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
15507: END IF;
15508:
15509: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
15510: FND_MSG_PUB.initialize;
15511: END IF;
15512:
15513: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 15513: x_return_status := FND_API.G_RET_STS_SUCCESS;

15509: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
15510: FND_MSG_PUB.initialize;
15511: END IF;
15512:
15513: x_return_status := FND_API.G_RET_STS_SUCCESS;
15514:
15515: IF nvl(p_task_id_tbl.last,0) >= 1 THEN
15516:
15517: FOR i in p_task_id_tbl.FIRST .. p_task_id_tbl.LAST LOOP

Line 15545: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

15541: ,x_msg_count => l_msg_count
15542: ,x_msg_data => l_msg_data
15543: );
15544:
15545: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
15546: x_msg_count := FND_MSG_PUB.count_msg;
15547: IF x_msg_count = 1 then
15548: pa_interface_utils_pub.get_messages
15549: (

Line 15550: p_encoded => FND_API.G_TRUE,

15546: x_msg_count := FND_MSG_PUB.count_msg;
15547: IF x_msg_count = 1 then
15548: pa_interface_utils_pub.get_messages
15549: (
15550: p_encoded => FND_API.G_TRUE,
15551: p_msg_index => 1,
15552: p_msg_count => l_msg_count,
15553: p_msg_data => l_msg_data,
15554: p_data => l_data,

Line 15559: raise FND_API.G_EXC_ERROR;

15555: p_msg_index_out => l_msg_index_out
15556: );
15557: x_msg_data := l_data;
15558: END IF;
15559: raise FND_API.G_EXC_ERROR;
15560: END IF;
15561:
15562: PA_TASK_PUB1.Update_Schedule_Version
15563: (

Line 15582: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

15578: ,x_msg_count => l_msg_count
15579: ,x_msg_data => l_msg_data
15580: );
15581:
15582: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
15583: x_msg_count := FND_MSG_PUB.count_msg;
15584: IF x_msg_count = 1 then
15585: pa_interface_utils_pub.get_messages
15586: (

Line 15587: p_encoded => FND_API.G_TRUE,

15583: x_msg_count := FND_MSG_PUB.count_msg;
15584: IF x_msg_count = 1 then
15585: pa_interface_utils_pub.get_messages
15586: (
15587: p_encoded => FND_API.G_TRUE,
15588: p_msg_index => 1,
15589: p_msg_count => l_msg_count,
15590: p_msg_data => l_msg_data,
15591: p_data => l_data,

Line 15596: raise FND_API.G_EXC_ERROR;

15592: p_msg_index_out => l_msg_index_out
15593: );
15594: x_msg_data := l_data;
15595: END IF;
15596: raise FND_API.G_EXC_ERROR;
15597: END IF;
15598:
15599: PA_TASK_PUB1.update_task_det_sch_info
15600: (

Line 15613: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

15609: ,x_msg_count => l_msg_count
15610: ,x_msg_data => l_msg_data
15611: );
15612:
15613: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
15614: x_msg_count := FND_MSG_PUB.count_msg;
15615: IF x_msg_count = 1 then
15616: pa_interface_utils_pub.get_messages
15617: (

Line 15618: p_encoded => FND_API.G_TRUE,

15614: x_msg_count := FND_MSG_PUB.count_msg;
15615: IF x_msg_count = 1 then
15616: pa_interface_utils_pub.get_messages
15617: (
15618: p_encoded => FND_API.G_TRUE,
15619: p_msg_index => 1,
15620: p_msg_count => l_msg_count,
15621: p_msg_data => l_msg_data,
15622: p_data => l_data,

Line 15627: raise FND_API.G_EXC_ERROR;

15623: p_msg_index_out => l_msg_index_out
15624: );
15625: x_msg_data := l_data;
15626: END IF;
15627: raise FND_API.G_EXC_ERROR;
15628: END IF;
15629:
15630: IF p_task_weight_method = 'MANUAL' THEN
15631:

Line 15642: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN

15638: ,x_msg_count => l_msg_count
15639: ,x_msg_data => l_msg_data
15640: );
15641:
15642: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
15643: x_msg_count := FND_MSG_PUB.count_msg;
15644: IF x_msg_count = 1 then
15645: pa_interface_utils_pub.get_messages
15646: (

Line 15647: p_encoded => FND_API.G_TRUE,

15643: x_msg_count := FND_MSG_PUB.count_msg;
15644: IF x_msg_count = 1 then
15645: pa_interface_utils_pub.get_messages
15646: (
15647: p_encoded => FND_API.G_TRUE,
15648: p_msg_index => 1,
15649: p_msg_count => l_msg_count,
15650: p_msg_data => l_msg_data,
15651: p_data => l_data,

Line 15656: raise FND_API.G_EXC_ERROR;

15652: p_msg_index_out => l_msg_index_out
15653: );
15654: x_msg_data := l_data;
15655: END IF;
15656: raise FND_API.G_EXC_ERROR;
15657: END IF;
15658: END IF;
15659:
15660: END LOOP;

Line 15664: IF (p_commit = FND_API.G_TRUE) THEN

15660: END LOOP;
15661:
15662: END IF;
15663:
15664: IF (p_commit = FND_API.G_TRUE) THEN
15665: COMMIT;
15666: END IF;
15667:
15668: IF (p_debug_mode = 'Y') THEN

Line 15673: when FND_API.G_EXC_ERROR then

15669: pa_debug.debug('PA_TASK_PUB1.Update_Task_All_Info END');
15670: END IF;
15671:
15672: EXCEPTION
15673: when FND_API.G_EXC_ERROR then
15674: if p_commit = FND_API.G_TRUE then
15675: rollback to update_Task_all_info;
15676: end if;
15677: x_return_status := FND_API.G_RET_STS_ERROR;

Line 15674: if p_commit = FND_API.G_TRUE then

15670: END IF;
15671:
15672: EXCEPTION
15673: when FND_API.G_EXC_ERROR then
15674: if p_commit = FND_API.G_TRUE then
15675: rollback to update_Task_all_info;
15676: end if;
15677: x_return_status := FND_API.G_RET_STS_ERROR;
15678: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 15677: x_return_status := FND_API.G_RET_STS_ERROR;

15673: when FND_API.G_EXC_ERROR then
15674: if p_commit = FND_API.G_TRUE then
15675: rollback to update_Task_all_info;
15676: end if;
15677: x_return_status := FND_API.G_RET_STS_ERROR;
15678: when FND_API.G_EXC_UNEXPECTED_ERROR then
15679: if p_commit = FND_API.G_TRUE then
15680: rollback to update_Task_all_info;
15681: end if;

Line 15678: when FND_API.G_EXC_UNEXPECTED_ERROR then

15674: if p_commit = FND_API.G_TRUE then
15675: rollback to update_Task_all_info;
15676: end if;
15677: x_return_status := FND_API.G_RET_STS_ERROR;
15678: when FND_API.G_EXC_UNEXPECTED_ERROR then
15679: if p_commit = FND_API.G_TRUE then
15680: rollback to update_Task_all_info;
15681: end if;
15682: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 15679: if p_commit = FND_API.G_TRUE then

15675: rollback to update_Task_all_info;
15676: end if;
15677: x_return_status := FND_API.G_RET_STS_ERROR;
15678: when FND_API.G_EXC_UNEXPECTED_ERROR then
15679: if p_commit = FND_API.G_TRUE then
15680: rollback to update_Task_all_info;
15681: end if;
15682: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15683: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 15682: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15678: when FND_API.G_EXC_UNEXPECTED_ERROR then
15679: if p_commit = FND_API.G_TRUE then
15680: rollback to update_Task_all_info;
15681: end if;
15682: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15683: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15684: p_procedure_name => 'Update_Task_All_Info',
15685: p_error_text => SUBSTRB(SQLERRM,1,240));
15686: when OTHERS then

Line 15687: if p_commit = FND_API.G_TRUE then

15683: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15684: p_procedure_name => 'Update_Task_All_Info',
15685: p_error_text => SUBSTRB(SQLERRM,1,240));
15686: when OTHERS then
15687: if p_commit = FND_API.G_TRUE then
15688: rollback to update_Task_all_info;
15689: end if;
15690: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15691: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 15690: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15686: when OTHERS then
15687: if p_commit = FND_API.G_TRUE then
15688: rollback to update_Task_all_info;
15689: end if;
15690: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15691: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15692: p_procedure_name => 'Update_Task_All_Info',
15693: p_error_text => SUBSTRB(SQLERRM,1,240));
15694: raise;

Line 15702: ,p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE

15698: -- 4429929 : Added CANCEL_TASK
15699: PROCEDURE CANCEL_TASK(
15700: p_calling_module IN VARCHAR2 :='SELF_SERVICE'
15701: ,p_api_version IN NUMBER :=1.0
15702: ,p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE
15703: ,p_validate_only IN VARCHAR2 :=FND_API.G_FALSE
15704: ,p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL
15705: ,p_calling_mode IN VARCHAR2 :=null
15706: ,p_task_id IN NUMBER

Line 15703: ,p_validate_only IN VARCHAR2 :=FND_API.G_FALSE

15699: PROCEDURE CANCEL_TASK(
15700: p_calling_module IN VARCHAR2 :='SELF_SERVICE'
15701: ,p_api_version IN NUMBER :=1.0
15702: ,p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE
15703: ,p_validate_only IN VARCHAR2 :=FND_API.G_FALSE
15704: ,p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL
15705: ,p_calling_mode IN VARCHAR2 :=null
15706: ,p_task_id IN NUMBER
15707: ,p_task_version_id IN NUMBER

Line 15704: ,p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL

15700: p_calling_module IN VARCHAR2 :='SELF_SERVICE'
15701: ,p_api_version IN NUMBER :=1.0
15702: ,p_init_msg_list IN VARCHAR2 :=FND_API.G_TRUE
15703: ,p_validate_only IN VARCHAR2 :=FND_API.G_FALSE
15704: ,p_validation_level IN NUMBER :=FND_API.G_VALID_LEVEL_FULL
15705: ,p_calling_mode IN VARCHAR2 :=null
15706: ,p_task_id IN NUMBER
15707: ,p_task_version_id IN NUMBER
15708: ,p_project_id IN NUMBER

Line 15797: x_return_status := FND_API.G_RET_STS_SUCCESS;

15793:
15794: l_version_enabled VARCHAR2(1);
15795:
15796: BEGIN
15797: x_return_status := FND_API.G_RET_STS_SUCCESS;
15798: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
15799: SAVEPOINT CANCEL_TASK_SP;
15800:
15801: IF l_debug_mode = 'Y' THEN

Line 15833: raise FND_API.G_EXC_ERROR;

15829:
15830: IF (x_return_status <> 'S') THEN
15831: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
15832: p_msg_name => l_error_message_code);
15833: raise FND_API.G_EXC_ERROR;
15834: END IF;
15835: IF l_debug_mode = 'Y' THEN
15836: pa_debug.write(l_module_name,'Calling set_new_tasks_to_TBD', 3);
15837: END IF;

Line 15852: raise FND_API.G_EXC_ERROR;

15848: pa_debug.write(l_module_name,'After Call set_new_tasks_to_TBD x_return_status='||x_return_status, 3);
15849: END IF;
15850:
15851: IF (x_return_status <> 'S') THEN
15852: raise FND_API.G_EXC_ERROR;
15853: END IF;
15854:
15855: IF l_debug_mode = 'Y' THEN
15856: pa_debug.write(l_module_name,'Calling push_down_task_status', 3);

Line 15875: raise FND_API.G_EXC_ERROR;

15871: pa_debug.write(l_module_name,'After Call push_down_task_status x_return_status='||x_return_status, 3);
15872: END IF;
15873:
15874: IF (x_return_status <> 'S') THEN
15875: raise FND_API.G_EXC_ERROR;
15876: END IF;
15877:
15878: l_version_enabled := PA_WORKPLAN_ATTR_UTILS.CHECK_WP_VERSIONING_ENABLED(p_project_id);
15879:

Line 15912: ( p_init_msg_list => FND_API.G_FALSE,

15908: --4533534
15909: --IF ((l_version_enabled = 'N') OR (l_version_enabled = 'Y' AND NVL(l_all_links.task_unpub_ver_status_code,'WORKING') <> 'PUBLISHED'))
15910:
15911: PA_RELATIONSHIP_PUB.Delete_SubProject_Association
15912: ( p_init_msg_list => FND_API.G_FALSE,
15913: p_calling_module => p_calling_module,
15914: p_object_relationships_id => l_all_links.object_relationship_id,
15915: p_record_version_number => l_all_links.record_version_number,
15916: x_return_status => x_return_status,

Line 15925: raise FND_API.G_EXC_ERROR;

15921: pa_debug.write(l_module_name,'After Call Delete_SubProject_Association x_return_status='||x_return_status, 3);
15922: END IF;
15923:
15924: IF (x_return_status <> 'S') THEN
15925: raise FND_API.G_EXC_ERROR;
15926: END IF;
15927: END LOOP;
15928: END IF;
15929: END LOOP;

Line 15931: when FND_API.G_EXC_ERROR then

15927: END LOOP;
15928: END IF;
15929: END LOOP;
15930: EXCEPTION
15931: when FND_API.G_EXC_ERROR then
15932: x_return_status := FND_API.G_RET_STS_ERROR;
15933: x_msg_count := fnd_msg_pub.count_msg;
15934: ROLLBACK to CANCEL_TASK_SP;
15935: when FND_API.G_EXC_UNEXPECTED_ERROR then

Line 15932: x_return_status := FND_API.G_RET_STS_ERROR;

15928: END IF;
15929: END LOOP;
15930: EXCEPTION
15931: when FND_API.G_EXC_ERROR then
15932: x_return_status := FND_API.G_RET_STS_ERROR;
15933: x_msg_count := fnd_msg_pub.count_msg;
15934: ROLLBACK to CANCEL_TASK_SP;
15935: when FND_API.G_EXC_UNEXPECTED_ERROR then
15936: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 15935: when FND_API.G_EXC_UNEXPECTED_ERROR then

15931: when FND_API.G_EXC_ERROR then
15932: x_return_status := FND_API.G_RET_STS_ERROR;
15933: x_msg_count := fnd_msg_pub.count_msg;
15934: ROLLBACK to CANCEL_TASK_SP;
15935: when FND_API.G_EXC_UNEXPECTED_ERROR then
15936: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15937: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15938: p_procedure_name => 'CANCEL_TASK',
15939: p_error_text => SUBSTRB(SQLERRM,1,240));

Line 15936: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15932: x_return_status := FND_API.G_RET_STS_ERROR;
15933: x_msg_count := fnd_msg_pub.count_msg;
15934: ROLLBACK to CANCEL_TASK_SP;
15935: when FND_API.G_EXC_UNEXPECTED_ERROR then
15936: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15937: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15938: p_procedure_name => 'CANCEL_TASK',
15939: p_error_text => SUBSTRB(SQLERRM,1,240));
15940: x_msg_count := fnd_msg_pub.count_msg;

Line 15943: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

15939: p_error_text => SUBSTRB(SQLERRM,1,240));
15940: x_msg_count := fnd_msg_pub.count_msg;
15941: ROLLBACK to CANCEL_TASK_SP;
15942: when OTHERS then
15943: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
15944: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
15945: p_procedure_name => 'CANCEL_TASK',
15946: p_error_text => SUBSTRB(SQLERRM,1,240));
15947: x_msg_count := fnd_msg_pub.count_msg;

Line 15956: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE

15952: -- Bug Fix 5593736.
15953:
15954: PROCEDURE INDENT_MULTI_TASK_VERSION
15955: (p_api_version IN NUMBER := 1.0
15956: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
15957: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
15958: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
15959: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
15960: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'

Line 15957: ,p_commit IN VARCHAR2 := FND_API.G_FALSE

15953:
15954: PROCEDURE INDENT_MULTI_TASK_VERSION
15955: (p_api_version IN NUMBER := 1.0
15956: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
15957: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
15958: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
15959: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
15960: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
15961: ,p_debug_mode IN VARCHAR2 := 'N'

Line 15958: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE

15954: PROCEDURE INDENT_MULTI_TASK_VERSION
15955: (p_api_version IN NUMBER := 1.0
15956: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
15957: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
15958: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
15959: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
15960: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
15961: ,p_debug_mode IN VARCHAR2 := 'N'
15962: ,p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 15959: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL

15955: (p_api_version IN NUMBER := 1.0
15956: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
15957: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
15958: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
15959: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
15960: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
15961: ,p_debug_mode IN VARCHAR2 := 'N'
15962: ,p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
15963: ,p_project_id IN NUMBER

Line 16030: IF (p_commit = FND_API.G_TRUE) THEN

16026: IF (p_debug_mode = 'Y') THEN
16027: pa_debug.debug('PA_TASK_PUB1.INDENT_MULTI_TASK_VERSION BEGIN');
16028: END IF;
16029:
16030: IF (p_commit = FND_API.G_TRUE) THEN
16031: savepoint indent_multi_task_version;
16032: END IF;
16033:
16034: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 16034: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

16030: IF (p_commit = FND_API.G_TRUE) THEN
16031: savepoint indent_multi_task_version;
16032: END IF;
16033:
16034: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
16035: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
16036: END IF;
16037:
16038: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 16035: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

16031: savepoint indent_multi_task_version;
16032: END IF;
16033:
16034: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
16035: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
16036: END IF;
16037:
16038: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
16039: FND_MSG_PUB.initialize;

Line 16038: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

16034: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
16035: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
16036: END IF;
16037:
16038: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
16039: FND_MSG_PUB.initialize;
16040: END IF;
16041:
16042: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 16042: x_return_status := FND_API.G_RET_STS_SUCCESS;

16038: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
16039: FND_MSG_PUB.initialize;
16040: END IF;
16041:
16042: x_return_status := FND_API.G_RET_STS_SUCCESS;
16043:
16044: -- Copy the input paramters to the local pl/sql table.
16045: for h in p_task_version_id_tbl.FIRST..p_task_version_id_tbl.LAST
16046: loop

Line 16096: if (l_return_status <> FND_API.G_RET_STS_SUCCESS) then

16092: , x_return_status => l_return_status
16093: , x_msg_count => l_msg_count
16094: , x_msg_data => l_msg_data);
16095:
16096: if (l_return_status <> FND_API.G_RET_STS_SUCCESS) then
16097:
16098: -- Store the task name and task number in the local pl/sql error table.
16099: open l_cur_task_attr(p_project_id, l_task_in_tbl(k).task_version_id);
16100: fetch l_cur_task_attr into l_task_error_tbl(k).task_name, l_task_error_tbl(k).task_number ;

Line 16105: (p_encoded => FND_API.G_FALSE -- Get the encoded message.

16101: close l_cur_task_attr;
16102:
16103: -- Store the message code for the error message reported in the local pl/sql error table.
16104: PA_INTERFACE_UTILS_PUB.get_messages
16105: (p_encoded => FND_API.G_FALSE -- Get the encoded message.
16106: , p_msg_index => 1 -- Get the message at index 1.
16107: , p_data => l_task_error_tbl(k).error_msg
16108: , p_msg_index_out => l_msg_index_out);
16109:

Line 16120: x_return_status := FND_API.G_RET_STS_ERROR;

16116:
16117: if (l_error_count > 0) then
16118:
16119: -- Set the return status to error.
16120: x_return_status := FND_API.G_RET_STS_ERROR;
16121:
16122: -- Clear all previous messages from the message stack.
16123: FND_MSG_PUB.initialize;
16124:

Line 16145: raise FND_API.G_EXC_ERROR;

16141: ,'ERRORMSG', l_task_error_tbl(l).error_msg);
16142: end if;
16143: end loop;
16144:
16145: raise FND_API.G_EXC_ERROR;
16146:
16147: end if;
16148:
16149: IF (p_commit = FND_API.G_TRUE) THEN

Line 16149: IF (p_commit = FND_API.G_TRUE) THEN

16145: raise FND_API.G_EXC_ERROR;
16146:
16147: end if;
16148:
16149: IF (p_commit = FND_API.G_TRUE) THEN
16150: COMMIT;
16151: END IF;
16152:
16153: IF (p_debug_mode = 'Y') THEN

Line 16159: when FND_API.G_EXC_ERROR then

16155: END IF;
16156:
16157: EXCEPTION
16158:
16159: when FND_API.G_EXC_ERROR then
16160: if p_commit = FND_API.G_TRUE then
16161: rollback to indent_multi_task_version;
16162: end if;
16163: x_return_status := FND_API.G_RET_STS_ERROR;

Line 16160: if p_commit = FND_API.G_TRUE then

16156:
16157: EXCEPTION
16158:
16159: when FND_API.G_EXC_ERROR then
16160: if p_commit = FND_API.G_TRUE then
16161: rollback to indent_multi_task_version;
16162: end if;
16163: x_return_status := FND_API.G_RET_STS_ERROR;
16164:

Line 16163: x_return_status := FND_API.G_RET_STS_ERROR;

16159: when FND_API.G_EXC_ERROR then
16160: if p_commit = FND_API.G_TRUE then
16161: rollback to indent_multi_task_version;
16162: end if;
16163: x_return_status := FND_API.G_RET_STS_ERROR;
16164:
16165: when FND_API.G_EXC_UNEXPECTED_ERROR then
16166: if p_commit = FND_API.G_TRUE then
16167: rollback to indent_multi_task_version;

Line 16165: when FND_API.G_EXC_UNEXPECTED_ERROR then

16161: rollback to indent_multi_task_version;
16162: end if;
16163: x_return_status := FND_API.G_RET_STS_ERROR;
16164:
16165: when FND_API.G_EXC_UNEXPECTED_ERROR then
16166: if p_commit = FND_API.G_TRUE then
16167: rollback to indent_multi_task_version;
16168: end if;
16169: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 16166: if p_commit = FND_API.G_TRUE then

16162: end if;
16163: x_return_status := FND_API.G_RET_STS_ERROR;
16164:
16165: when FND_API.G_EXC_UNEXPECTED_ERROR then
16166: if p_commit = FND_API.G_TRUE then
16167: rollback to indent_multi_task_version;
16168: end if;
16169: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16170: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 16169: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

16165: when FND_API.G_EXC_UNEXPECTED_ERROR then
16166: if p_commit = FND_API.G_TRUE then
16167: rollback to indent_multi_task_version;
16168: end if;
16169: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16170: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
16171: p_procedure_name => 'INDENT_MULTI_TASK_VERSION',
16172: p_error_text => SUBSTRB(SQLERRM,1,240));
16173: when OTHERS then

Line 16174: if p_commit = FND_API.G_TRUE then

16170: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
16171: p_procedure_name => 'INDENT_MULTI_TASK_VERSION',
16172: p_error_text => SUBSTRB(SQLERRM,1,240));
16173: when OTHERS then
16174: if p_commit = FND_API.G_TRUE then
16175: rollback to indent_multi_task_version;
16176: end if;
16177: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16178: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 16177: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

16173: when OTHERS then
16174: if p_commit = FND_API.G_TRUE then
16175: rollback to indent_multi_task_version;
16176: end if;
16177: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16178: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
16179: p_procedure_name => 'INDENT_MULTI_TASK_VERSION',
16180: p_error_text => SUBSTRB(SQLERRM,1,240));
16181:

Line 16188: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE

16184: END INDENT_MULTI_TASK_VERSION;
16185:
16186: PROCEDURE OUTDENT_MULTI_TASK_VERSION
16187: (p_api_version IN NUMBER := 1.0
16188: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
16189: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
16190: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
16191: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
16192: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'

Line 16189: ,p_commit IN VARCHAR2 := FND_API.G_FALSE

16185:
16186: PROCEDURE OUTDENT_MULTI_TASK_VERSION
16187: (p_api_version IN NUMBER := 1.0
16188: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
16189: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
16190: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
16191: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
16192: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
16193: ,p_debug_mode IN VARCHAR2 := 'N'

Line 16190: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE

16186: PROCEDURE OUTDENT_MULTI_TASK_VERSION
16187: (p_api_version IN NUMBER := 1.0
16188: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
16189: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
16190: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
16191: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
16192: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
16193: ,p_debug_mode IN VARCHAR2 := 'N'
16194: ,p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM

Line 16191: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL

16187: (p_api_version IN NUMBER := 1.0
16188: ,p_init_msg_list IN VARCHAR2 := FND_API.G_TRUE
16189: ,p_commit IN VARCHAR2 := FND_API.G_FALSE
16190: ,p_validate_only IN VARCHAR2 := FND_API.G_TRUE
16191: ,p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL
16192: ,p_calling_module IN VARCHAR2 := 'SELF_SERVICE'
16193: ,p_debug_mode IN VARCHAR2 := 'N'
16194: ,p_max_msg_count IN NUMBER := PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM
16195: ,p_project_id IN NUMBER

Line 16262: IF (p_commit = FND_API.G_TRUE) THEN

16258: IF (p_debug_mode = 'Y') THEN
16259: pa_debug.debug('PA_TASK_PUB1.OUTDENT_MULTI_TASK_VERSION BEGIN');
16260: END IF;
16261:
16262: IF (p_commit = FND_API.G_TRUE) THEN
16263: savepoint outdent_multi_task_version;
16264: END IF;
16265:
16266: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

Line 16266: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then

16262: IF (p_commit = FND_API.G_TRUE) THEN
16263: savepoint outdent_multi_task_version;
16264: END IF;
16265:
16266: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
16267: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
16268: END IF;
16269:
16270: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 16267: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

16263: savepoint outdent_multi_task_version;
16264: END IF;
16265:
16266: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
16267: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
16268: END IF;
16269:
16270: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
16271: FND_MSG_PUB.initialize;

Line 16270: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

16266: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version, p_api_version, l_api_name, g_pkg_name) then
16267: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
16268: END IF;
16269:
16270: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
16271: FND_MSG_PUB.initialize;
16272: END IF;
16273:
16274: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 16274: x_return_status := FND_API.G_RET_STS_SUCCESS;

16270: IF FND_API.TO_BOOLEAN(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
16271: FND_MSG_PUB.initialize;
16272: END IF;
16273:
16274: x_return_status := FND_API.G_RET_STS_SUCCESS;
16275:
16276: -- Copy the input paramters to the local pl/sql table.
16277: for h in p_task_version_id_tbl.FIRST..p_task_version_id_tbl.LAST
16278: loop

Line 16328: if (l_return_status <> FND_API.G_RET_STS_SUCCESS) then

16324: , x_return_status => l_return_status
16325: , x_msg_count => l_msg_count
16326: , x_msg_data => l_msg_data);
16327:
16328: if (l_return_status <> FND_API.G_RET_STS_SUCCESS) then
16329:
16330: -- Store the task name and task number in the local pl/sql error table.
16331: open l_cur_task_attr(p_project_id, l_task_in_tbl(k).task_version_id);
16332: fetch l_cur_task_attr into l_task_error_tbl(k).task_name, l_task_error_tbl(k).task_number ;

Line 16337: (p_encoded => FND_API.G_FALSE -- Get the encoded message.

16333: close l_cur_task_attr;
16334:
16335: -- Store the message code for the error message reported in the local pl/sql error table.
16336: PA_INTERFACE_UTILS_PUB.get_messages
16337: (p_encoded => FND_API.G_FALSE -- Get the encoded message.
16338: , p_msg_index => 1 -- Get the message at index 1.
16339: , p_data => l_task_error_tbl(k).error_msg
16340: , p_msg_index_out => l_msg_index_out);
16341:

Line 16352: x_return_status := FND_API.G_RET_STS_ERROR;

16348:
16349: if (l_error_count > 0) then
16350:
16351: -- Set the return status to error.
16352: x_return_status := FND_API.G_RET_STS_ERROR;
16353:
16354: -- Clear all previous messages from the message stack.
16355: FND_MSG_PUB.initialize;
16356:

Line 16371: raise FND_API.G_EXC_ERROR;

16367: ,'ERRORMSG', l_task_error_tbl(l).error_msg);
16368: end if;
16369: end loop;
16370:
16371: raise FND_API.G_EXC_ERROR;
16372:
16373: end if;
16374:
16375: IF (p_commit = FND_API.G_TRUE) THEN

Line 16375: IF (p_commit = FND_API.G_TRUE) THEN

16371: raise FND_API.G_EXC_ERROR;
16372:
16373: end if;
16374:
16375: IF (p_commit = FND_API.G_TRUE) THEN
16376: COMMIT;
16377: END IF;
16378:
16379: IF (p_debug_mode = 'Y') THEN

Line 16385: when FND_API.G_EXC_ERROR then

16381: END IF;
16382:
16383: EXCEPTION
16384:
16385: when FND_API.G_EXC_ERROR then
16386: if p_commit = FND_API.G_TRUE then
16387: rollback to outdent_multi_task_version;
16388: end if;
16389: x_return_status := FND_API.G_RET_STS_ERROR;

Line 16386: if p_commit = FND_API.G_TRUE then

16382:
16383: EXCEPTION
16384:
16385: when FND_API.G_EXC_ERROR then
16386: if p_commit = FND_API.G_TRUE then
16387: rollback to outdent_multi_task_version;
16388: end if;
16389: x_return_status := FND_API.G_RET_STS_ERROR;
16390:

Line 16389: x_return_status := FND_API.G_RET_STS_ERROR;

16385: when FND_API.G_EXC_ERROR then
16386: if p_commit = FND_API.G_TRUE then
16387: rollback to outdent_multi_task_version;
16388: end if;
16389: x_return_status := FND_API.G_RET_STS_ERROR;
16390:
16391: when FND_API.G_EXC_UNEXPECTED_ERROR then
16392: if p_commit = FND_API.G_TRUE then
16393: rollback to outdent_multi_task_version;

Line 16391: when FND_API.G_EXC_UNEXPECTED_ERROR then

16387: rollback to outdent_multi_task_version;
16388: end if;
16389: x_return_status := FND_API.G_RET_STS_ERROR;
16390:
16391: when FND_API.G_EXC_UNEXPECTED_ERROR then
16392: if p_commit = FND_API.G_TRUE then
16393: rollback to outdent_multi_task_version;
16394: end if;
16395: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 16392: if p_commit = FND_API.G_TRUE then

16388: end if;
16389: x_return_status := FND_API.G_RET_STS_ERROR;
16390:
16391: when FND_API.G_EXC_UNEXPECTED_ERROR then
16392: if p_commit = FND_API.G_TRUE then
16393: rollback to outdent_multi_task_version;
16394: end if;
16395: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16396: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 16395: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

16391: when FND_API.G_EXC_UNEXPECTED_ERROR then
16392: if p_commit = FND_API.G_TRUE then
16393: rollback to outdent_multi_task_version;
16394: end if;
16395: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16396: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
16397: p_procedure_name => 'OUTDENT_MULTI_TASK_VERSION',
16398: p_error_text => SUBSTRB(SQLERRM,1,240));
16399: when OTHERS then

Line 16400: if p_commit = FND_API.G_TRUE then

16396: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
16397: p_procedure_name => 'OUTDENT_MULTI_TASK_VERSION',
16398: p_error_text => SUBSTRB(SQLERRM,1,240));
16399: when OTHERS then
16400: if p_commit = FND_API.G_TRUE then
16401: rollback to outdent_multi_task_version;
16402: end if;
16403: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16404: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',

Line 16403: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

16399: when OTHERS then
16400: if p_commit = FND_API.G_TRUE then
16401: rollback to outdent_multi_task_version;
16402: end if;
16403: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
16404: fnd_msg_pub.add_exc_msg(p_pkg_name => 'PA_TASK_PUB1',
16405: p_procedure_name => 'OUTDENT_MULTI_TASK_VERSION',
16406: p_error_text => SUBSTRB(SQLERRM,1,240));
16407: