DBA Data[Home] [Help]

APPS.CN_PAYMENT_SECURITY_PVT dependencies on FND_API

Line 79: RAISE fnd_api.g_exc_error;

75: THEN
76: -- resource not exist for this user
77: fnd_message.set_name ('CN', 'CN_INVALID_PAYBYMODE');
78: fnd_msg_pub.ADD;
79: RAISE fnd_api.g_exc_error;
80: END IF ;
81: RETURN l_ret_val ;
82: END;
83:

Line 122: RAISE fnd_api.g_exc_error;

118: THEN
119: -- resource not exist for this user
120: fnd_message.set_name ('CN', 'CN_USER_RESOURCE_NF');
121: fnd_msg_pub.ADD;
122: RAISE fnd_api.g_exc_error;
123: END;
124:
125: -- Get number of parent_resource for current resource
126: SELECT SUM (DECODE (resource_id, parent_resource_id, 0, 1))

Line 195: RAISE fnd_api.g_exc_error;

191: THEN
192: -- resource not exist for this user
193: fnd_message.set_name ('CN', 'CN_USER_RESOURCE_NF');
194: fnd_msg_pub.ADD;
195: RAISE fnd_api.g_exc_error;
196: END;
197:
198: SELECT 1
199: INTO l_tmp

Line 259: x_return_status := fnd_api.g_ret_sts_success;

255: FROM cn_payruns
256: WHERE payrun_id = p_payrun_id;
257: BEGIN
258: -- Initialize API return status to success
259: x_return_status := fnd_api.g_ret_sts_success;
260:
261: OPEN getobj;
262:
263: FETCH getobj

Line 271: RAISE fnd_api.g_exc_error;

267: l_has_access := get_security_access (g_type_payrun, g_access_payrun_pay);
268:
269: IF (l_has_access = FALSE)
270: THEN
271: RAISE fnd_api.g_exc_error;
272: END IF;
273:
274: fnd_message.set_name('CN', 'CN_PAYSHEET_PAY_NOTE');
275: l_note_msg := fnd_message.get;

Line 304: IF x_return_status <> fnd_api.g_ret_sts_success

300: x_msg_data => x_msg_data,
301: p_payrun_id => p_payrun_id
302: );
303:
304: IF x_return_status <> fnd_api.g_ret_sts_success
305: THEN
306: RAISE fnd_api.g_exc_error;
307: END IF;
308:

Line 306: RAISE fnd_api.g_exc_error;

302: );
303:
304: IF x_return_status <> fnd_api.g_ret_sts_success
305: THEN
306: RAISE fnd_api.g_exc_error;
307: END IF;
308:
309: -- update payrun status='PAID'
310: cn_payruns_pkg.UPDATE_RECORD (x_payrun_id => p_payrun_id,

Line 325: WHEN fnd_api.g_exc_error

321: p_event_name => 'pay' ,
322: p_payrun_id => p_payrun_id ) ;
323:
324: EXCEPTION
325: WHEN fnd_api.g_exc_error
326: THEN
327: x_return_status := fnd_api.g_ret_sts_error;
328: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
329: WHEN OTHERS

Line 327: x_return_status := fnd_api.g_ret_sts_error;

323:
324: EXCEPTION
325: WHEN fnd_api.g_exc_error
326: THEN
327: x_return_status := fnd_api.g_ret_sts_error;
328: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
329: WHEN OTHERS
330: THEN
331: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 328: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

324: EXCEPTION
325: WHEN fnd_api.g_exc_error
326: THEN
327: x_return_status := fnd_api.g_ret_sts_error;
328: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
329: WHEN OTHERS
330: THEN
331: x_return_status := fnd_api.g_ret_sts_unexp_error;
332:

Line 331: x_return_status := fnd_api.g_ret_sts_unexp_error;

327: x_return_status := fnd_api.g_ret_sts_error;
328: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
329: WHEN OTHERS
330: THEN
331: x_return_status := fnd_api.g_ret_sts_unexp_error;
332:
333: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error)
334: THEN
335: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);

Line 338: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

334: THEN
335: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);
336: END IF;
337:
338: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
339: END paid_payrun_audit;
340:
341: --
342: -- Procedure : Payrun_Audit

Line 366: x_return_status := fnd_api.g_ret_sts_success;

362: FROM cn_payruns
363: WHERE payrun_id = p_payrun_id;
364: BEGIN
365: -- Initialize API return status to success
366: x_return_status := fnd_api.g_ret_sts_success;
367:
368: OPEN getobj;
369:
370: FETCH getobj

Line 385: RAISE fnd_api.g_exc_error;

381: l_has_access := get_security_access (g_type_payrun, g_access_payrun_freeze);
382:
383: IF (l_has_access = FALSE)
384: THEN
385: RAISE fnd_api.g_exc_error;
386: END IF;
387:
388: --Added for R12 payment security check end.
389: l_new_status := 'FROZEN';

Line 401: RAISE fnd_api.g_exc_error;

397: l_has_access := get_security_access (g_type_payrun, g_access_payrun_unfreeze);
398:
399: IF (l_has_access = FALSE)
400: THEN
401: RAISE fnd_api.g_exc_error;
402: END IF;
403: l_event_name := 'unfreeze' ;
404:
405: ELSIF p_action = 'REFRESH'

Line 411: RAISE fnd_api.g_exc_error;

407: l_has_access := get_security_access (g_type_payrun, g_access_payrun_refresh);
408:
409: IF (l_has_access = FALSE)
410: THEN
411: RAISE fnd_api.g_exc_error;
412: END IF;
413: l_event_name := 'refresh' ;
414:
415: ELSIF p_action = 'REMOVE'

Line 421: RAISE fnd_api.g_exc_error;

417: l_has_access := get_security_access (g_type_payrun, g_access_payrun_delete);
418:
419: IF (l_has_access = FALSE)
420: THEN
421: RAISE fnd_api.g_exc_error;
422: END IF;
423: l_event_name := 'delete' ;
424:
425: END IF;

Line 446: WHEN fnd_api.g_exc_error

442: p_payrun_id => p_payrun_id ) ;
443:
444: END IF;
445: EXCEPTION
446: WHEN fnd_api.g_exc_error
447: THEN
448: x_return_status := fnd_api.g_ret_sts_error;
449: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
450: WHEN OTHERS

Line 448: x_return_status := fnd_api.g_ret_sts_error;

444: END IF;
445: EXCEPTION
446: WHEN fnd_api.g_exc_error
447: THEN
448: x_return_status := fnd_api.g_ret_sts_error;
449: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
450: WHEN OTHERS
451: THEN
452: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 449: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

445: EXCEPTION
446: WHEN fnd_api.g_exc_error
447: THEN
448: x_return_status := fnd_api.g_ret_sts_error;
449: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
450: WHEN OTHERS
451: THEN
452: x_return_status := fnd_api.g_ret_sts_unexp_error;
453:

Line 452: x_return_status := fnd_api.g_ret_sts_unexp_error;

448: x_return_status := fnd_api.g_ret_sts_error;
449: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
450: WHEN OTHERS
451: THEN
452: x_return_status := fnd_api.g_ret_sts_unexp_error;
453:
454: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error)
455: THEN
456: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);

Line 459: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

455: THEN
456: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);
457: END IF;
458:
459: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
460: END payrun_audit;
461:
462:
463: --===================================================================================

Line 466: -- This procedure expects validation to have been done already (worksheet_action p_do_audit => fnd_api.g_false)

462:
463: --===================================================================================
464: -- Procedure : Worksheet_Audit
465: -- Procedure to update worksheet status and enter audit info into notes
466: -- This procedure expects validation to have been done already (worksheet_action p_do_audit => fnd_api.g_false)
467: --===================================================================================
468: PROCEDURE worksheet_audit (
469: p_worksheet_id IN NUMBER,
470: p_payrun_id IN NUMBER,

Line 473: p_do_approval_flow IN VARCHAR2 := fnd_api.g_true,

469: p_worksheet_id IN NUMBER,
470: p_payrun_id IN NUMBER,
471: p_salesrep_id IN NUMBER,
472: p_action IN VARCHAR2,
473: p_do_approval_flow IN VARCHAR2 := fnd_api.g_true,
474: x_return_status OUT NOCOPY VARCHAR2,
475: x_msg_count OUT NOCOPY NUMBER,
476: x_msg_data OUT NOCOPY VARCHAR2
477: )

Line 493: x_return_status := fnd_api.g_ret_sts_success;

489: l_event_name VARCHAR2(80);
490:
491: BEGIN
492: -- Initialize API return status to success
493: x_return_status := fnd_api.g_ret_sts_success;
494:
495: -- update worksheet status
496: IF p_action = 'LOCK'
497: THEN

Line 549: IF p_do_approval_flow = fnd_api.g_true

545: ELSIF p_action = 'SUBMIT'
546: THEN
547: l_new_status := 'SUBMITTED';
548:
549: IF p_do_approval_flow = fnd_api.g_true
550: THEN
551: cn_pay_approval_flow_pvt.submit_worksheet (p_api_version => 1.0,
552: x_return_status => x_return_status,
553: x_msg_count => x_msg_count,

Line 558: IF x_return_status <> fnd_api.g_ret_sts_success

554: x_msg_data => x_msg_data,
555: p_worksheet_id => p_worksheet_id
556: );
557:
558: IF x_return_status <> fnd_api.g_ret_sts_success
559: THEN
560: RAISE fnd_api.g_exc_error;
561: END IF;
562: END IF;

Line 560: RAISE fnd_api.g_exc_error;

556: );
557:
558: IF x_return_status <> fnd_api.g_ret_sts_success
559: THEN
560: RAISE fnd_api.g_exc_error;
561: END IF;
562: END IF;
563: l_msg_name:='CN_PAYSHEET_SUBMIT_NOTE';
564: l_event_name := 'submit' ;

Line 570: IF p_do_approval_flow = fnd_api.g_true

566: ELSIF p_action = 'APPROVE'
567: THEN
568: l_new_status := 'APPROVED';
569:
570: IF p_do_approval_flow = fnd_api.g_true
571: THEN
572: cn_pay_approval_flow_pvt.approve_worksheet (p_api_version => 1.0,
573: x_return_status => x_return_status,
574: x_msg_count => x_msg_count,

Line 579: IF x_return_status <> fnd_api.g_ret_sts_success

575: x_msg_data => x_msg_data,
576: p_worksheet_id => p_worksheet_id
577: );
578:
579: IF x_return_status <> fnd_api.g_ret_sts_success
580: THEN
581: RAISE fnd_api.g_exc_error;
582: END IF;
583: END IF;

Line 581: RAISE fnd_api.g_exc_error;

577: );
578:
579: IF x_return_status <> fnd_api.g_ret_sts_success
580: THEN
581: RAISE fnd_api.g_exc_error;
582: END IF;
583: END IF;
584: l_msg_name:='CN_PAYESHEET_APPROVE_NOTE';
585: l_event_name := 'approve' ;

Line 591: IF p_do_approval_flow = fnd_api.g_true

587: ELSIF p_action = 'REJECT'
588: THEN
589: l_new_status := 'UNPAID';
590:
591: IF p_do_approval_flow = fnd_api.g_true
592: THEN
593: cn_pay_approval_flow_pvt.reject_worksheet (p_api_version => 1.0,
594: x_return_status => x_return_status,
595: x_msg_count => x_msg_count,

Line 600: IF x_return_status <> fnd_api.g_ret_sts_success

596: x_msg_data => x_msg_data,
597: p_worksheet_id => p_worksheet_id
598: );
599:
600: IF x_return_status <> fnd_api.g_ret_sts_success
601: THEN
602: RAISE fnd_api.g_exc_error;
603: END IF;
604: END IF;

Line 602: RAISE fnd_api.g_exc_error;

598: );
599:
600: IF x_return_status <> fnd_api.g_ret_sts_success
601: THEN
602: RAISE fnd_api.g_exc_error;
603: END IF;
604: END IF;
605: l_msg_name:='CN_PAYESHEET_REJECT_NOTE';
606: l_event_name := 'reject' ;

Line 652: WHEN fnd_api.g_exc_error

648: p_payrun_id => p_payrun_id,
649: p_salesrep_id => p_salesrep_id) ;
650:
651: EXCEPTION
652: WHEN fnd_api.g_exc_error
653: THEN
654: x_return_status := fnd_api.g_ret_sts_error;
655: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
656: WHEN OTHERS

Line 654: x_return_status := fnd_api.g_ret_sts_error;

650:
651: EXCEPTION
652: WHEN fnd_api.g_exc_error
653: THEN
654: x_return_status := fnd_api.g_ret_sts_error;
655: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
656: WHEN OTHERS
657: THEN
658: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 655: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

651: EXCEPTION
652: WHEN fnd_api.g_exc_error
653: THEN
654: x_return_status := fnd_api.g_ret_sts_error;
655: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
656: WHEN OTHERS
657: THEN
658: x_return_status := fnd_api.g_ret_sts_unexp_error;
659:

Line 658: x_return_status := fnd_api.g_ret_sts_unexp_error;

654: x_return_status := fnd_api.g_ret_sts_error;
655: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
656: WHEN OTHERS
657: THEN
658: x_return_status := fnd_api.g_ret_sts_unexp_error;
659:
660: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error)
661: THEN
662: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);

Line 665: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

661: THEN
662: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);
663: END IF;
664:
665: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
666: END worksheet_audit;
667:
668: -- Start of comments
669: -- API name : Payrun_Action

Line 676: -- Default = FND_API.G_FALSE

672: -- Pre-reqs : None.
673: -- Parameters :
674: -- IN : p_api_version IN NUMBER Required
675: -- p_init_msg_list IN VARCHAR2 Optional
676: -- Default = FND_API.G_FALSE
677: -- p_commit IN VARCHAR2 Optional
678: -- Default = FND_API.G_FALSE
679: -- p_validation_level IN NUMBER Optional
680: -- Default = FND_API.G_VALID_LEVEL_FULL

Line 678: -- Default = FND_API.G_FALSE

674: -- IN : p_api_version IN NUMBER Required
675: -- p_init_msg_list IN VARCHAR2 Optional
676: -- Default = FND_API.G_FALSE
677: -- p_commit IN VARCHAR2 Optional
678: -- Default = FND_API.G_FALSE
679: -- p_validation_level IN NUMBER Optional
680: -- Default = FND_API.G_VALID_LEVEL_FULL
681: -- p_payrun_id IN NUMBER
682: -- p_action IN VARCHAR2

Line 680: -- Default = FND_API.G_VALID_LEVEL_FULL

676: -- Default = FND_API.G_FALSE
677: -- p_commit IN VARCHAR2 Optional
678: -- Default = FND_API.G_FALSE
679: -- p_validation_level IN NUMBER Optional
680: -- Default = FND_API.G_VALID_LEVEL_FULL
681: -- p_payrun_id IN NUMBER
682: -- p_action IN VARCHAR2
683: -- OUT : x_return_status OUT VARCHAR2(1)
684: -- x_msg_count OUT NUMBER

Line 693: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

689: --
690: -- End of comments
691: PROCEDURE payrun_action (
692: p_api_version IN NUMBER,
693: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
694: p_commit IN VARCHAR2 := fnd_api.g_false,
695: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,
696: x_return_status OUT NOCOPY VARCHAR2,
697: x_msg_count OUT NOCOPY NUMBER,

Line 694: p_commit IN VARCHAR2 := fnd_api.g_false,

690: -- End of comments
691: PROCEDURE payrun_action (
692: p_api_version IN NUMBER,
693: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
694: p_commit IN VARCHAR2 := fnd_api.g_false,
695: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,
696: x_return_status OUT NOCOPY VARCHAR2,
697: x_msg_count OUT NOCOPY NUMBER,
698: x_msg_data OUT NOCOPY VARCHAR2,

Line 695: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,

691: PROCEDURE payrun_action (
692: p_api_version IN NUMBER,
693: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
694: p_commit IN VARCHAR2 := fnd_api.g_false,
695: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,
696: x_return_status OUT NOCOPY VARCHAR2,
697: x_msg_count OUT NOCOPY NUMBER,
698: x_msg_data OUT NOCOPY VARCHAR2,
699: p_payrun_id IN NUMBER,

Line 701: p_do_audit IN VARCHAR2 := fnd_api.g_true

697: x_msg_count OUT NOCOPY NUMBER,
698: x_msg_data OUT NOCOPY VARCHAR2,
699: p_payrun_id IN NUMBER,
700: p_action IN VARCHAR2,
701: p_do_audit IN VARCHAR2 := fnd_api.g_true
702: )
703: IS
704: l_api_name CONSTANT VARCHAR2 (30) := 'Payrun_Action';
705: l_api_version CONSTANT NUMBER := 1.0;

Line 737: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name)

733: -- Standard Start of API savepoint
734: SAVEPOINT payrun_action;
735:
736: -- Standard call to check for call compatibility.
737: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name)
738: THEN
739: RAISE fnd_api.g_exc_unexpected_error;
740: END IF;
741:

Line 739: RAISE fnd_api.g_exc_unexpected_error;

735:
736: -- Standard call to check for call compatibility.
737: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name)
738: THEN
739: RAISE fnd_api.g_exc_unexpected_error;
740: END IF;
741:
742: -- Initialize message list if p_init_msg_list is set to TRUE.
743: IF fnd_api.to_boolean (p_init_msg_list)

Line 743: IF fnd_api.to_boolean (p_init_msg_list)

739: RAISE fnd_api.g_exc_unexpected_error;
740: END IF;
741:
742: -- Initialize message list if p_init_msg_list is set to TRUE.
743: IF fnd_api.to_boolean (p_init_msg_list)
744: THEN
745: fnd_msg_pub.initialize;
746: END IF;
747:

Line 749: x_return_status := fnd_api.g_ret_sts_success;

745: fnd_msg_pub.initialize;
746: END IF;
747:
748: -- Initialize API return status to success
749: x_return_status := fnd_api.g_ret_sts_success;
750:
751: -- API body
752: -- Get payrun information
753: BEGIN

Line 769: RAISE fnd_api.g_exc_error;

765: fnd_message.set_name ('CN', 'CN_PAYRUN_DOES_NOT_EXIST');
766: fnd_msg_pub.ADD;
767: END IF;
768:
769: RAISE fnd_api.g_exc_error;
770: END;
771:
772: BEGIN
773: -- lock payrun for update

Line 797: RAISE fnd_api.g_exc_error;

793: IF err_num = -54
794: THEN
795: fnd_message.set_name ('CN', 'CN_INVALID_OBJECT_VERSION');
796: fnd_msg_pub.ADD;
797: RAISE fnd_api.g_exc_error;
798: ELSE
799: RAISE;
800: END IF;
801: END;

Line 810: RAISE FND_API.G_EXC_ERROR ;

806: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_ERROR) THEN
807: FND_MESSAGE.SET_NAME ('CN','CN_PAYRUN_NOT_SU');
808: FND_MSG_PUB.Add;
809: END IF;
810: RAISE FND_API.G_EXC_ERROR ;
811: END IF;
812: */
813:
814: -- cannot perform action on paid payrun

Line 823: RAISE fnd_api.g_exc_error;

819: fnd_message.set_name ('CN', 'CN_PAYRUN_PAID');
820: fnd_msg_pub.ADD;
821: END IF;
822:
823: RAISE fnd_api.g_exc_error;
824: END IF;
825:
826: -- should never perform any payrun action when one of the worksheets is processing
827: SELECT COUNT(1)

Line 840: RAISE fnd_api.g_exc_error;

836: THEN
837: fnd_message.set_name ('CN', 'CN_WKSHT_STILL_PROCESSING');
838: fnd_msg_pub.ADD;
839: END IF;
840: RAISE fnd_api.g_exc_error;
841: END IF;
842:
843: -- Check for each action
844: -- p_action = 'REFRESH' OR 'REMOVE' OR 'FREEZE'

Line 854: RAISE fnd_api.g_exc_error;

850: l_has_access := get_security_access (g_type_payrun, g_access_payrun_refresh);
851:
852: IF (l_has_access = FALSE)
853: THEN
854: RAISE fnd_api.g_exc_error;
855: END IF;
856: ELSIF p_action = 'REMOVE'
857: THEN
858: l_has_access := get_security_access (g_type_payrun, g_access_payrun_delete);

Line 862: RAISE fnd_api.g_exc_error;

858: l_has_access := get_security_access (g_type_payrun, g_access_payrun_delete);
859:
860: IF (l_has_access = FALSE)
861: THEN
862: RAISE fnd_api.g_exc_error;
863: END IF;
864: ELSIF p_action = 'FREEZE'
865: THEN
866: l_has_access := get_security_access (g_type_payrun, g_access_payrun_freeze);

Line 870: RAISE fnd_api.g_exc_error;

866: l_has_access := get_security_access (g_type_payrun, g_access_payrun_freeze);
867:
868: IF (l_has_access = FALSE)
869: THEN
870: RAISE fnd_api.g_exc_error;
871: END IF;
872: END IF;
873:
874: --Added for R12 payment security check end.

Line 883: RAISE fnd_api.g_exc_error;

879: fnd_message.set_name ('CN', 'CN_PAYRUN_ACTION_UNPAID');
880: fnd_msg_pub.ADD;
881: END IF;
882:
883: RAISE fnd_api.g_exc_error;
884: END IF;
885: -- p_action = 'UNFREEZE'
886: ELSIF p_action = 'UNFREEZE'
887: THEN

Line 893: RAISE fnd_api.g_exc_error;

889: l_has_access := get_security_access (g_type_payrun, g_access_payrun_unfreeze);
890:
891: IF (l_has_access = FALSE)
892: THEN
893: RAISE fnd_api.g_exc_error;
894: END IF;
895:
896: --Added for R12 payment security check end.
897: IF l_payrun_status <> 'FROZEN'

Line 905: RAISE fnd_api.g_exc_error;

901: fnd_message.set_name ('CN', 'CN_PAYRUN_ACTION_UNFREEZE');
902: fnd_msg_pub.ADD;
903: END IF;
904:
905: RAISE fnd_api.g_exc_error;
906: END IF;
907: -- p_action = 'PAY'
908: ELSIF p_action = 'PAY'
909: THEN

Line 915: RAISE fnd_api.g_exc_error;

911: l_has_access := get_security_access (g_type_payrun, g_access_payrun_pay);
912:
913: IF (l_has_access = FALSE)
914: THEN
915: RAISE fnd_api.g_exc_error;
916: END IF;
917:
918: --Added for R12 payment security check end.
919: IF NVL (fnd_profile.VALUE ('CN_CHK_WKSHT_STATUS'), 'Y') = 'Y'

Line 936: RAISE fnd_api.g_exc_error;

932: fnd_message.set_name ('CN', 'CN_PAYRUN_ACTION_PAY');
933: fnd_msg_pub.ADD;
934: END IF;
935:
936: RAISE fnd_api.g_exc_error;
937: EXCEPTION
938: WHEN NO_DATA_FOUND
939: THEN
940: NULL;

Line 951: RAISE fnd_api.g_exc_error;

947: fnd_message.set_name ('CN', 'CN_PAYRUN_ACTION_PAY_FRZ');
948: fnd_msg_pub.ADD;
949: END IF;
950:
951: RAISE fnd_api.g_exc_error;
952: END IF;
953: END IF;
954: ELSE
955: -- invalid p_action

Line 962: RAISE fnd_api.g_exc_error;

958: fnd_message.set_name ('CN', 'CN_PAYRUN_ACTION_NOT_EXIST');
959: fnd_msg_pub.ADD;
960: END IF;
961:
962: RAISE fnd_api.g_exc_error;
963: END IF;
964:
965: IF fnd_api.to_boolean (p_do_audit)
966: THEN

Line 965: IF fnd_api.to_boolean (p_do_audit)

961:
962: RAISE fnd_api.g_exc_error;
963: END IF;
964:
965: IF fnd_api.to_boolean (p_do_audit)
966: THEN
967: -- update audit table and payrun status
968: payrun_audit (p_payrun_id => p_payrun_id,
969: p_action => p_action,

Line 975: IF x_return_status <> fnd_api.g_ret_sts_success

971: x_msg_count => x_msg_count,
972: x_msg_data => x_msg_data
973: );
974:
975: IF x_return_status <> fnd_api.g_ret_sts_success
976: THEN
977: RAISE fnd_api.g_exc_error;
978: END IF;
979: END IF;

Line 977: RAISE fnd_api.g_exc_error;

973: );
974:
975: IF x_return_status <> fnd_api.g_ret_sts_success
976: THEN
977: RAISE fnd_api.g_exc_error;
978: END IF;
979: END IF;
980:
981: -- End of API body.

Line 983: IF fnd_api.to_boolean (p_commit)

979: END IF;
980:
981: -- End of API body.
982: -- Standard check of p_commit.
983: IF fnd_api.to_boolean (p_commit)
984: THEN
985: COMMIT WORK;
986: END IF;
987:

Line 989: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

985: COMMIT WORK;
986: END IF;
987:
988: -- Standard call to get message count and if count is 1, get message info.
989: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
990: EXCEPTION
991: WHEN fnd_api.g_exc_error
992: THEN
993: ROLLBACK TO payrun_action;

Line 991: WHEN fnd_api.g_exc_error

987:
988: -- Standard call to get message count and if count is 1, get message info.
989: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
990: EXCEPTION
991: WHEN fnd_api.g_exc_error
992: THEN
993: ROLLBACK TO payrun_action;
994: x_return_status := fnd_api.g_ret_sts_error;
995: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

Line 994: x_return_status := fnd_api.g_ret_sts_error;

990: EXCEPTION
991: WHEN fnd_api.g_exc_error
992: THEN
993: ROLLBACK TO payrun_action;
994: x_return_status := fnd_api.g_ret_sts_error;
995: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
996: WHEN fnd_api.g_exc_unexpected_error
997: THEN
998: ROLLBACK TO payrun_action;

Line 995: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

991: WHEN fnd_api.g_exc_error
992: THEN
993: ROLLBACK TO payrun_action;
994: x_return_status := fnd_api.g_ret_sts_error;
995: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
996: WHEN fnd_api.g_exc_unexpected_error
997: THEN
998: ROLLBACK TO payrun_action;
999: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 996: WHEN fnd_api.g_exc_unexpected_error

992: THEN
993: ROLLBACK TO payrun_action;
994: x_return_status := fnd_api.g_ret_sts_error;
995: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
996: WHEN fnd_api.g_exc_unexpected_error
997: THEN
998: ROLLBACK TO payrun_action;
999: x_return_status := fnd_api.g_ret_sts_unexp_error;
1000: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

Line 999: x_return_status := fnd_api.g_ret_sts_unexp_error;

995: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
996: WHEN fnd_api.g_exc_unexpected_error
997: THEN
998: ROLLBACK TO payrun_action;
999: x_return_status := fnd_api.g_ret_sts_unexp_error;
1000: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1001: WHEN OTHERS
1002: THEN
1003: ROLLBACK TO payrun_action;

Line 1000: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

996: WHEN fnd_api.g_exc_unexpected_error
997: THEN
998: ROLLBACK TO payrun_action;
999: x_return_status := fnd_api.g_ret_sts_unexp_error;
1000: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1001: WHEN OTHERS
1002: THEN
1003: ROLLBACK TO payrun_action;
1004: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 1004: x_return_status := fnd_api.g_ret_sts_unexp_error;

1000: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1001: WHEN OTHERS
1002: THEN
1003: ROLLBACK TO payrun_action;
1004: x_return_status := fnd_api.g_ret_sts_unexp_error;
1005:
1006: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error)
1007: THEN
1008: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);

Line 1011: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

1007: THEN
1008: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);
1009: END IF;
1010:
1011: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1012: END payrun_action;
1013:
1014: -- Start of comments
1015: -- API name : Worksheet_action

Line 1022: -- Default = FND_API.G_FALSE

1018: -- Pre-reqs : None.
1019: -- Parameters :
1020: -- IN : p_api_version IN NUMBER Required
1021: -- p_init_msg_list IN VARCHAR2 Optional
1022: -- Default = FND_API.G_FALSE
1023: -- p_commit IN VARCHAR2 Optional
1024: -- Default = FND_API.G_FALSE
1025: -- p_validation_level IN NUMBER Optional
1026: -- Default = FND_API.G_VALID_LEVEL_FULL

Line 1024: -- Default = FND_API.G_FALSE

1020: -- IN : p_api_version IN NUMBER Required
1021: -- p_init_msg_list IN VARCHAR2 Optional
1022: -- Default = FND_API.G_FALSE
1023: -- p_commit IN VARCHAR2 Optional
1024: -- Default = FND_API.G_FALSE
1025: -- p_validation_level IN NUMBER Optional
1026: -- Default = FND_API.G_VALID_LEVEL_FULL
1027: -- p_worksheet_id IN NUMBER
1028: -- p_action IN VARCHAR2

Line 1026: -- Default = FND_API.G_VALID_LEVEL_FULL

1022: -- Default = FND_API.G_FALSE
1023: -- p_commit IN VARCHAR2 Optional
1024: -- Default = FND_API.G_FALSE
1025: -- p_validation_level IN NUMBER Optional
1026: -- Default = FND_API.G_VALID_LEVEL_FULL
1027: -- p_worksheet_id IN NUMBER
1028: -- p_action IN VARCHAR2
1029: -- OUT : x_return_status OUT VARCHAR2(1)
1030: -- x_msg_count OUT NUMBER

Line 1039: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,

1035: --
1036: -- End of comments
1037: PROCEDURE worksheet_action (
1038: p_api_version IN NUMBER,
1039: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
1040: p_commit IN VARCHAR2 := fnd_api.g_false,
1041: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,
1042: x_return_status OUT NOCOPY VARCHAR2,
1043: x_msg_count OUT NOCOPY NUMBER,

Line 1040: p_commit IN VARCHAR2 := fnd_api.g_false,

1036: -- End of comments
1037: PROCEDURE worksheet_action (
1038: p_api_version IN NUMBER,
1039: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
1040: p_commit IN VARCHAR2 := fnd_api.g_false,
1041: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,
1042: x_return_status OUT NOCOPY VARCHAR2,
1043: x_msg_count OUT NOCOPY NUMBER,
1044: x_msg_data OUT NOCOPY VARCHAR2,

Line 1041: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,

1037: PROCEDURE worksheet_action (
1038: p_api_version IN NUMBER,
1039: p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
1040: p_commit IN VARCHAR2 := fnd_api.g_false,
1041: p_validation_level IN NUMBER := fnd_api.g_valid_level_full,
1042: x_return_status OUT NOCOPY VARCHAR2,
1043: x_msg_count OUT NOCOPY NUMBER,
1044: x_msg_data OUT NOCOPY VARCHAR2,
1045: p_worksheet_id IN NUMBER,

Line 1047: p_do_audit IN VARCHAR2 := fnd_api.g_true

1043: x_msg_count OUT NOCOPY NUMBER,
1044: x_msg_data OUT NOCOPY VARCHAR2,
1045: p_worksheet_id IN NUMBER,
1046: p_action IN VARCHAR2,
1047: p_do_audit IN VARCHAR2 := fnd_api.g_true
1048: )
1049: IS
1050: l_api_name CONSTANT VARCHAR2 (30) := 'Worksheet_action';
1051: l_api_version CONSTANT NUMBER := 1.0;

Line 1089: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name)

1085: -- Standard Start of API savepoint
1086: SAVEPOINT worksheet_action;
1087:
1088: -- Standard call to check for call compatibility.
1089: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name)
1090: THEN
1091: RAISE fnd_api.g_exc_unexpected_error;
1092: END IF;
1093:

Line 1091: RAISE fnd_api.g_exc_unexpected_error;

1087:
1088: -- Standard call to check for call compatibility.
1089: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name)
1090: THEN
1091: RAISE fnd_api.g_exc_unexpected_error;
1092: END IF;
1093:
1094: -- Initialize message list if p_init_msg_list is set to TRUE.
1095: IF fnd_api.to_boolean (p_init_msg_list)

Line 1095: IF fnd_api.to_boolean (p_init_msg_list)

1091: RAISE fnd_api.g_exc_unexpected_error;
1092: END IF;
1093:
1094: -- Initialize message list if p_init_msg_list is set to TRUE.
1095: IF fnd_api.to_boolean (p_init_msg_list)
1096: THEN
1097: fnd_msg_pub.initialize;
1098: END IF;
1099:

Line 1101: x_return_status := fnd_api.g_ret_sts_success;

1097: fnd_msg_pub.initialize;
1098: END IF;
1099:
1100: -- Initialize API return status to success
1101: x_return_status := fnd_api.g_ret_sts_success;
1102:
1103: -- API body
1104: -- Get worksheet information
1105: BEGIN

Line 1138: RAISE fnd_api.g_exc_error;

1134: fnd_message.set_name ('CN', 'CN_WKSHT_DOES_NOT_EXIST');
1135: fnd_msg_pub.ADD;
1136: END IF;
1137:
1138: RAISE fnd_api.g_exc_error;
1139: END;
1140:
1141: BEGIN
1142: -- lock payrun for preventing update while updating wksht

Line 1166: RAISE fnd_api.g_exc_error;

1162: IF err_num = -54
1163: THEN
1164: fnd_message.set_name ('CN', 'CN_INVALID_OBJECT_VERSION');
1165: fnd_msg_pub.ADD;
1166: RAISE fnd_api.g_exc_error;
1167: ELSE
1168: RAISE;
1169: END IF;
1170: END;

Line 1181: RAISE fnd_api.g_exc_error;

1177: fnd_message.set_name ('CN', 'CN_PAYRUN_PAID');
1178: fnd_msg_pub.ADD;
1179: END IF;
1180:
1181: RAISE fnd_api.g_exc_error;
1182: END IF;
1183:
1184: -- Get login user resource_id
1185: l_resource_id := NULL;

Line 1198: RAISE fnd_api.g_exc_error;

1194: THEN
1195: -- resource not exist for this user
1196: fnd_message.set_name ('CN', 'CN_USER_RESOURCE_NF');
1197: fnd_msg_pub.ADD;
1198: RAISE fnd_api.g_exc_error;
1199: END;
1200:
1201: -- check if user can access this worksheet when
1202: -- l_assigned_to_user_id is not null

Line 1258: RAISE fnd_api.g_exc_error;

1254: fnd_message.set_name ('CN', 'CN_NO_SRP_ACCESS');
1255: fnd_msg_pub.ADD;
1256: END IF;
1257:
1258: RAISE fnd_api.g_exc_error;
1259: END;
1260:
1261: NULL;
1262: END IF; -- Bug 3498950

Line 1276: RAISE fnd_api.g_exc_error;

1272: l_has_access := get_security_access (g_type_wksht, g_access_wksht_refresh);
1273:
1274: IF (l_has_access = FALSE)
1275: THEN
1276: RAISE fnd_api.g_exc_error;
1277: END IF;
1278: ELSIF p_action = 'REMOVE'
1279: THEN
1280: l_has_access := get_security_access (g_type_wksht, g_access_wksht_delete);

Line 1284: RAISE fnd_api.g_exc_error;

1280: l_has_access := get_security_access (g_type_wksht, g_access_wksht_delete);
1281:
1282: IF (l_has_access = FALSE)
1283: THEN
1284: RAISE fnd_api.g_exc_error;
1285: END IF;
1286: ELSIF p_action = 'LOCK'
1287: THEN
1288: l_has_access := get_security_access (g_type_wksht, g_access_wksht_lock);

Line 1292: RAISE fnd_api.g_exc_error;

1288: l_has_access := get_security_access (g_type_wksht, g_access_wksht_lock);
1289:
1290: IF (l_has_access = FALSE)
1291: THEN
1292: RAISE fnd_api.g_exc_error;
1293: END IF;
1294: ELSIF p_action = 'RELEASE_HOLD'
1295: THEN
1296: l_has_access := get_security_access (g_type_wksht, g_access_wksht_release_holds);

Line 1300: RAISE fnd_api.g_exc_error;

1296: l_has_access := get_security_access (g_type_wksht, g_access_wksht_release_holds);
1297:
1298: IF (l_has_access = FALSE)
1299: THEN
1300: RAISE fnd_api.g_exc_error;
1301: END IF;
1302: END IF;
1303: --fix for the Bug 7415126
1304: IF NVL (fnd_profile.VALUE ('CN_CHK_WKSHT_STATUS'), 'Y') = 'Y'

Line 1315: RAISE fnd_api.g_exc_error;

1311: fnd_message.set_name ('CN', 'CN_WKSHT_ACTION_UNPAID');
1312: fnd_msg_pub.ADD;
1313: END IF;
1314:
1315: RAISE fnd_api.g_exc_error;
1316: END IF;
1317: ELSE
1318:
1319: IF l_payrun_status = 'PAID' OR l_worksheet_rec.worksheet_status <> 'UNPAID'

Line 1327: RAISE fnd_api.g_exc_error;

1323: fnd_message.set_name ('CN', 'CN_WKSHT_ACTION_UNPAID');
1324: fnd_msg_pub.ADD;
1325: END IF;
1326:
1327: RAISE fnd_api.g_exc_error;
1328: END IF;
1329: END IF;
1330:
1331:

Line 1339: RAISE fnd_api.g_exc_error;

1335: l_has_access := get_security_access (g_type_wksht, g_access_wksht_release_holds);
1336:
1337: IF (l_has_access = FALSE)
1338: THEN
1339: RAISE fnd_api.g_exc_error;
1340: END IF;
1341:
1342: --Added for R12 payment security check end.
1343: IF l_payrun_status <> 'UNPAID' OR l_worksheet_rec.worksheet_status NOT IN ('PROCESSING', 'UNPAID')

Line 1351: RAISE fnd_api.g_exc_error;

1347: fnd_message.set_name ('CN', 'CN_WKSHT_NOT_PROCESSING');
1348: fnd_msg_pub.ADD;
1349: END IF;
1350:
1351: RAISE fnd_api.g_exc_error;
1352: END IF;
1353:
1354: ELSIF p_action IN ( 'RESET_TO_UNPAID' )
1355: THEN

Line 1360: RAISE fnd_api.g_exc_error;

1356: l_has_access := get_security_access (g_type_wksht, g_access_wksht_release_holds);
1357:
1358: IF (l_has_access = FALSE)
1359: THEN
1360: RAISE fnd_api.g_exc_error;
1361: END IF;
1362:
1363: --Added for R12 payment security check end.
1364: IF l_payrun_status <> 'UNPAID' OR (l_worksheet_rec.worksheet_status NOT IN ('PROCESSING','FAILED'))

Line 1372: RAISE fnd_api.g_exc_error;

1368: fnd_message.set_name ('CN', 'CN_WKSHT_NOT_PROCESSING');
1369: fnd_msg_pub.ADD;
1370: END IF;
1371:
1372: RAISE fnd_api.g_exc_error;
1373: END IF;
1374:
1375: -- p_action = 'UNLOCK'
1376: ELSIF p_action = 'UNLOCK'

Line 1383: RAISE fnd_api.g_exc_error;

1379: l_has_access := get_security_access (g_type_wksht, g_access_wksht_unlock);
1380:
1381: IF (l_has_access = FALSE)
1382: THEN
1383: RAISE fnd_api.g_exc_error;
1384: END IF;
1385:
1386: --Added for R12 payment security check end.
1387: IF l_payrun_status <> 'UNPAID' OR l_worksheet_rec.worksheet_status <> 'LOCKED'

Line 1395: RAISE fnd_api.g_exc_error;

1391: fnd_message.set_name ('CN', 'CN_WKSHT_ACTION_UNLOCK');
1392: fnd_msg_pub.ADD;
1393: END IF;
1394:
1395: RAISE fnd_api.g_exc_error;
1396: END IF;
1397: -- p_action = 'SUBMIT'
1398: ELSIF p_action = 'SUBMIT'
1399: THEN

Line 1405: RAISE fnd_api.g_exc_error;

1401: l_has_access := get_security_access (g_type_wksht, g_access_wksht_submit);
1402:
1403: IF (l_has_access = FALSE)
1404: THEN
1405: RAISE fnd_api.g_exc_error;
1406: END IF;
1407:
1408: --Added for R12 payment security check end.
1409: IF l_worksheet_rec.worksheet_status <> 'LOCKED'

Line 1417: RAISE fnd_api.g_exc_error;

1413: fnd_message.set_name ('CN', 'CN_WKSHT_ACTION_SUBMIT');
1414: fnd_msg_pub.ADD;
1415: END IF;
1416:
1417: RAISE fnd_api.g_exc_error;
1418: END IF;
1419:
1420: ELSIF p_action = 'REJECT' OR p_action = 'APPROVE'
1421: THEN

Line 1429: RAISE fnd_api.g_exc_error;

1425: l_has_access := get_security_access (g_type_wksht, g_access_wksht_reject);
1426:
1427: IF (l_has_access = FALSE)
1428: THEN
1429: RAISE fnd_api.g_exc_error;
1430: END IF;
1431: ELSIF p_action = 'APPROVE'
1432: THEN
1433: l_has_access := get_security_access (g_type_wksht, g_access_wksht_approve);

Line 1437: RAISE fnd_api.g_exc_error;

1433: l_has_access := get_security_access (g_type_wksht, g_access_wksht_approve);
1434:
1435: IF (l_has_access = FALSE)
1436: THEN
1437: RAISE fnd_api.g_exc_error;
1438: END IF;
1439: END IF;
1440:
1441: IF NVL (fnd_profile.VALUE ('CN_CHK_WKSHT_STATUS'), 'Y') = 'Y'

Line 1454: RAISE fnd_api.g_exc_error;

1450: fnd_message.set_name ('CN', 'CN_WKSHT_ACTION_APPROVE');
1451: fnd_msg_pub.ADD;
1452: END IF;
1453:
1454: RAISE fnd_api.g_exc_error;
1455: END IF;
1456:
1457: END IF;
1458:

Line 1467: RAISE FND_API.G_EXC_ERROR ;

1463: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_ERROR) THEN
1464: FND_MESSAGE.SET_NAME ('CN','CN_WKSHT_NOT_MGR');
1465: FND_MSG_PUB.Add;
1466: END IF;
1467: RAISE FND_API.G_EXC_ERROR ;
1468: END IF;
1469: */
1470:
1471: -- l_assigned_to_user_id is null

Line 1531: RAISE fnd_api.g_exc_error;

1527: fnd_message.set_name ('CN', 'CN_NO_SRP_ACCESS');
1528: fnd_msg_pub.ADD;
1529: END IF;
1530:
1531: RAISE fnd_api.g_exc_error;
1532: END;
1533: END IF; -- Bug 3498950
1534: END IF;
1535:

Line 1544: RAISE fnd_api.g_exc_error;

1540: l_has_access := get_security_access (g_type_wksht, g_access_wksht_approve);
1541:
1542: IF (l_has_access = FALSE)
1543: THEN
1544: RAISE fnd_api.g_exc_error;
1545: END IF;
1546:
1547: --Added for R12 payment security check end.
1548: SELECT COUNT (1)

Line 1562: RAISE fnd_api.g_exc_error;

1558: fnd_message.set_name ('CN', 'CN_SAME_USER_APPROVE');
1559: fnd_msg_pub.ADD;
1560: END IF;
1561:
1562: RAISE fnd_api.g_exc_error;
1563: END IF;
1564: END IF;
1565:
1566: ELSE

Line 1574: RAISE fnd_api.g_exc_error;

1570: fnd_message.set_name ('CN', 'CN_WKSHT_ACTION_NOT_EXIST');
1571: fnd_msg_pub.ADD;
1572: END IF;
1573:
1574: RAISE fnd_api.g_exc_error;
1575: END IF;
1576:
1577: IF fnd_api.to_boolean (p_do_audit)
1578: THEN

Line 1577: IF fnd_api.to_boolean (p_do_audit)

1573:
1574: RAISE fnd_api.g_exc_error;
1575: END IF;
1576:
1577: IF fnd_api.to_boolean (p_do_audit)
1578: THEN
1579: -- update audit table and worksheet status
1580: worksheet_audit (p_worksheet_id => p_worksheet_id,
1581: p_payrun_id => l_worksheet_rec.payrun_id,

Line 1589: IF x_return_status <> fnd_api.g_ret_sts_success

1585: x_msg_count => x_msg_count,
1586: x_msg_data => x_msg_data
1587: );
1588:
1589: IF x_return_status <> fnd_api.g_ret_sts_success
1590: THEN
1591: RAISE fnd_api.g_exc_error;
1592: END IF;
1593: END IF;

Line 1591: RAISE fnd_api.g_exc_error;

1587: );
1588:
1589: IF x_return_status <> fnd_api.g_ret_sts_success
1590: THEN
1591: RAISE fnd_api.g_exc_error;
1592: END IF;
1593: END IF;
1594:
1595: -- End of API body.

Line 1597: IF fnd_api.to_boolean (p_commit)

1593: END IF;
1594:
1595: -- End of API body.
1596: -- Standard check of p_commit.
1597: IF fnd_api.to_boolean (p_commit)
1598: THEN
1599: COMMIT WORK;
1600: END IF;
1601:

Line 1603: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

1599: COMMIT WORK;
1600: END IF;
1601:
1602: -- Standard call to get message count and if count is 1, get message info.
1603: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1604: EXCEPTION
1605: WHEN fnd_api.g_exc_error
1606: THEN
1607: ROLLBACK TO worksheet_action;

Line 1605: WHEN fnd_api.g_exc_error

1601:
1602: -- Standard call to get message count and if count is 1, get message info.
1603: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1604: EXCEPTION
1605: WHEN fnd_api.g_exc_error
1606: THEN
1607: ROLLBACK TO worksheet_action;
1608: x_return_status := fnd_api.g_ret_sts_error;
1609: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

Line 1608: x_return_status := fnd_api.g_ret_sts_error;

1604: EXCEPTION
1605: WHEN fnd_api.g_exc_error
1606: THEN
1607: ROLLBACK TO worksheet_action;
1608: x_return_status := fnd_api.g_ret_sts_error;
1609: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1610: WHEN fnd_api.g_exc_unexpected_error
1611: THEN
1612: ROLLBACK TO worksheet_action;

Line 1609: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

1605: WHEN fnd_api.g_exc_error
1606: THEN
1607: ROLLBACK TO worksheet_action;
1608: x_return_status := fnd_api.g_ret_sts_error;
1609: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1610: WHEN fnd_api.g_exc_unexpected_error
1611: THEN
1612: ROLLBACK TO worksheet_action;
1613: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 1610: WHEN fnd_api.g_exc_unexpected_error

1606: THEN
1607: ROLLBACK TO worksheet_action;
1608: x_return_status := fnd_api.g_ret_sts_error;
1609: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1610: WHEN fnd_api.g_exc_unexpected_error
1611: THEN
1612: ROLLBACK TO worksheet_action;
1613: x_return_status := fnd_api.g_ret_sts_unexp_error;
1614: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

Line 1613: x_return_status := fnd_api.g_ret_sts_unexp_error;

1609: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1610: WHEN fnd_api.g_exc_unexpected_error
1611: THEN
1612: ROLLBACK TO worksheet_action;
1613: x_return_status := fnd_api.g_ret_sts_unexp_error;
1614: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1615: WHEN OTHERS
1616: THEN
1617: ROLLBACK TO worksheet_action;

Line 1614: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

1610: WHEN fnd_api.g_exc_unexpected_error
1611: THEN
1612: ROLLBACK TO worksheet_action;
1613: x_return_status := fnd_api.g_ret_sts_unexp_error;
1614: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1615: WHEN OTHERS
1616: THEN
1617: ROLLBACK TO worksheet_action;
1618: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 1618: x_return_status := fnd_api.g_ret_sts_unexp_error;

1614: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1615: WHEN OTHERS
1616: THEN
1617: ROLLBACK TO worksheet_action;
1618: x_return_status := fnd_api.g_ret_sts_unexp_error;
1619:
1620: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error)
1621: THEN
1622: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);

Line 1625: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);

1621: THEN
1622: fnd_msg_pub.add_exc_msg (g_pkg_name, l_api_name);
1623: END IF;
1624:
1625: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data, p_encoded => fnd_api.g_false);
1626: END worksheet_action;
1627:
1628: --R12 payment security
1629: FUNCTION get_security_access (