DBA Data[Home] [Help]

APPS.PO_ENCUMBRANCE_PREPROCESSING dependencies on PO_DEBUG

Line 44: g_debug_stmt BOOLEAN := PO_DEBUG.is_debug_stmt_on;

40: ;
41:
42: -- Read the profile option that enables/disables the debug log
43: g_fnd_debug VARCHAR2(1) := NVL(FND_PROFILE.VALUE('AFLOG_ENABLED'),'N');
44: g_debug_stmt BOOLEAN := PO_DEBUG.is_debug_stmt_on;
45: g_debug_unexp BOOLEAN := PO_DEBUG.is_debug_unexp_on;
46:
47:
48: -- encumbrance actions

Line 45: g_debug_unexp BOOLEAN := PO_DEBUG.is_debug_unexp_on;

41:
42: -- Read the profile option that enables/disables the debug log
43: g_fnd_debug VARCHAR2(1) := NVL(FND_PROFILE.VALUE('AFLOG_ENABLED'),'N');
44: g_debug_stmt BOOLEAN := PO_DEBUG.is_debug_stmt_on;
45: g_debug_unexp BOOLEAN := PO_DEBUG.is_debug_unexp_on;
46:
47:
48: -- encumbrance actions
49: g_action_RESERVE CONSTANT VARCHAR2(30)

Line 599: PO_DEBUG.debug_begin(l_log_head);

595:
596: BEGIN
597:
598: IF g_debug_stmt THEN
599: PO_DEBUG.debug_begin(l_log_head);
600: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',
602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

Line 600: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

596: BEGIN
597:
598: IF g_debug_stmt THEN
599: PO_DEBUG.debug_begin(l_log_head);
600: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',
602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

Line 601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',

597:
598: IF g_debug_stmt THEN
599: PO_DEBUG.debug_begin(l_log_head);
600: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',
602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

Line 603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

599: PO_DEBUG.debug_begin(l_log_head);
600: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',
602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',

Line 604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

600: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',
602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',
608: p_use_enc_gt_flag);

Line 605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

601: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag',
602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',
608: p_use_enc_gt_flag);
609: PO_DEBUG.debug_var(l_log_head,l_progress,'p_get_backing_docs_flag',

Line 606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);

602: p_check_only_flag);
603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',
608: p_use_enc_gt_flag);
609: PO_DEBUG.debug_var(l_log_head,l_progress,'p_get_backing_docs_flag',
610: p_get_backing_docs_flag);

Line 607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',

603: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
604: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',
608: p_use_enc_gt_flag);
609: PO_DEBUG.debug_var(l_log_head,l_progress,'p_get_backing_docs_flag',
610: p_get_backing_docs_flag);
611: END IF;

Line 609: PO_DEBUG.debug_var(l_log_head,l_progress,'p_get_backing_docs_flag',

605: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
606: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
607: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag',
608: p_use_enc_gt_flag);
609: PO_DEBUG.debug_var(l_log_head,l_progress,'p_get_backing_docs_flag',
610: p_get_backing_docs_flag);
611: END IF;
612:
613: l_progress := '010';

Line 737: PO_DEBUG.debug_stmt(l_log_head,l_progress,'No backing PPOs');

733:
734: ELSE
735: l_progress := '130';
736: IF g_debug_stmt THEN
737: PO_DEBUG.debug_stmt(l_log_head,l_progress,'No backing PPOs');
738: END IF;
739: END IF;
740:
741: l_progress := '140';

Line 743: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'

739: END IF;
740:
741: l_progress := '140';
742: IF g_debug_stmt THEN
743: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
744: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
745: END IF;
746:
747: IF ((p_doc_type IN (g_doc_type_PO , g_doc_type_MIXED_PO_RELEASE)

Line 779: PO_DEBUG.debug_stmt(l_log_head,l_progress,'No backing Reqs');

775:
776: ELSE
777: l_progress := '170';
778: IF g_debug_stmt THEN
779: PO_DEBUG.debug_stmt(l_log_head,l_progress,'No backing Reqs');
780: END IF;
781: END IF;
782:
783: l_progress := '200';

Line 785: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'

781: END IF;
782:
783: l_progress := '200';
784: IF g_debug_stmt THEN
785: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'
786: , PO_DOCUMENT_FUNDS_PVT.g_pa_encumbrance_on);
787: END IF;
788:
789: IF ( p_doc_subtype IN ( g_doc_subtype_STANDARD,g_doc_subtype_BLANKET

Line 820: PO_DEBUG.debug_stmt(l_log_head,l_progress,'No backing BPAs/GAs');

816:
817: ELSE
818: l_progress := '230';
819: IF g_debug_stmt THEN
820: PO_DEBUG.debug_stmt(l_log_head,l_progress,'No backing BPAs/GAs');
821: END IF;
822: END IF;
823:
824: l_progress := '270';

Line 829: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Do not get backing docs');

825:
826: ELSE
827: l_progress := '290';
828: IF g_debug_stmt THEN
829: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Do not get backing docs');
830: END IF;
831: END IF; -- if backing doc flag is Yes
832:
833: l_progress := '990';

Line 835: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);

831: END IF; -- if backing doc flag is Yes
832:
833: l_progress := '990';
834: IF g_debug_stmt THEN
835: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
836: PO_DEBUG.debug_end(l_log_head);
837: END IF;
838:
839:

Line 836: PO_DEBUG.debug_end(l_log_head);

832:
833: l_progress := '990';
834: IF g_debug_stmt THEN
835: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
836: PO_DEBUG.debug_end(l_log_head);
837: END IF;
838:
839:
840: EXCEPTION

Line 886: PO_DEBUG.debug_begin(l_log_head);

882:
883: BEGIN
884:
885: IF g_debug_stmt THEN
886: PO_DEBUG.debug_begin(l_log_head);
887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
888: END IF;
889:
890: l_progress := '010';

Line 887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);

883: BEGIN
884:
885: IF g_debug_stmt THEN
886: PO_DEBUG.debug_begin(l_log_head);
887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
888: END IF;
889:
890: l_progress := '010';
891:

Line 896: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Truncating PO_ENCUMBRANCE_GT');

892: IF (p_use_enc_gt_flag = g_parameter_NO) THEN
893:
894: l_progress := '020';
895: IF g_debug_stmt THEN
896: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Truncating PO_ENCUMBRANCE_GT');
897: END IF;
898:
899: -- If we shouldn't be using whatever was in the encumbrance table,
900: -- get rid of all of it.

Line 910: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');

906: ELSIF (p_use_enc_gt_flag = g_parameter_YES) THEN
907:
908: l_progress := '040';
909: IF g_debug_stmt THEN
910: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
911: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Cleaning PO_ENCUMBRANCE_GT');
912: END IF;
913:
914: -- If we are trusting the data in the encumbrance table,

Line 911: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Cleaning PO_ENCUMBRANCE_GT');

907:
908: l_progress := '040';
909: IF g_debug_stmt THEN
910: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
911: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Cleaning PO_ENCUMBRANCE_GT');
912: END IF;
913:
914: -- If we are trusting the data in the encumbrance table,
915: -- we need to make sure that we have our own keys into it.

Line 933: PO_DEBUG.debug_end(l_log_head);

929:
930: l_progress := '070';
931:
932: IF g_debug_stmt THEN
933: PO_DEBUG.debug_end(l_log_head);
934: END IF;
935:
936: EXCEPTION
937:

Line 940: PO_DEBUG.debug_exc(l_log_head,l_progress);

936: EXCEPTION
937:
938: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
939: IF g_debug_unexp THEN
940: PO_DEBUG.debug_exc(l_log_head,l_progress);
941: END IF;
942: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
943: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
944: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 1078: PO_DEBUG.debug_begin(l_log_head);

1074:
1075: BEGIN
1076:
1077: IF g_debug_stmt THEN
1078: PO_DEBUG.debug_begin(l_log_head);
1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);

Line 1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

1075: BEGIN
1076:
1077: IF g_debug_stmt THEN
1078: PO_DEBUG.debug_begin(l_log_head);
1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

Line 1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);

1076:
1077: IF g_debug_stmt THEN
1078: PO_DEBUG.debug_begin(l_log_head);
1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);

Line 1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);

1077: IF g_debug_stmt THEN
1078: PO_DEBUG.debug_begin(l_log_head);
1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
1085: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);

Line 1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);

1078: PO_DEBUG.debug_begin(l_log_head);
1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
1085: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
1086: END IF;

Line 1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

1079: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
1085: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
1086: END IF;
1087:

Line 1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);

1080: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
1085: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
1086: END IF;
1087:
1088: l_progress := '010';

Line 1085: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);

1081: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1082: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1083: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
1084: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
1085: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
1086: END IF;
1087:
1088: l_progress := '010';
1089:

Line 1139: PO_DEBUG.debug_stmt(l_log_head,l_progress,'backing call');

1135: IF (p_main_or_backing = g_BACKING) THEN
1136:
1137: l_progress := '100';
1138: IF g_debug_stmt THEN
1139: PO_DEBUG.debug_stmt(l_log_head,l_progress,'backing call');
1140: END IF;
1141:
1142: IF (p_check_only_flag = g_parameter_NO) THEN
1143:

Line 1158: PO_DEBUG.debug_stmt(l_log_head,l_progress,'check only');

1154:
1155: ELSE
1156: l_progress := '130';
1157: IF g_debug_stmt THEN
1158: PO_DEBUG.debug_stmt(l_log_head,l_progress,'check only');
1159: END IF;
1160: END IF;
1161:
1162: -- We have already locked the backing distributions,

Line 1190: PO_DEBUG.debug_stmt(l_log_head,l_progress,'main call');

1186: -- so no need to lock here.
1187:
1188: l_progress := '170';
1189: IF g_debug_stmt THEN
1190: PO_DEBUG.debug_stmt(l_log_head,l_progress,'main call');
1191: END IF;
1192:
1193: l_check_only_flag := p_check_only_flag;
1194:

Line 1227: PO_DEBUG.debug_stmt(l_log_head,l_progress,'using table data');

1223:
1224: ELSE
1225: l_progress := '290';
1226: IF g_debug_stmt THEN
1227: PO_DEBUG.debug_stmt(l_log_head,l_progress,'using table data');
1228: END IF;
1229: END IF;
1230:
1231: l_progress := '300';

Line 1249: PO_DEBUG.debug_stmt(l_log_head,l_progress,'backing');

1245:
1246: ELSE
1247: l_progress := '370';
1248: IF g_debug_stmt THEN
1249: PO_DEBUG.debug_stmt(l_log_head,l_progress,'backing');
1250: END IF;
1251: END IF;
1252:
1253: l_progress := '400';

Line 1292: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);

1288:
1289: l_progress := '990';
1290:
1291: IF g_debug_stmt THEN
1292: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
1293: PO_DEBUG.debug_end(l_log_head);
1294: END IF;
1295:
1296: EXCEPTION

Line 1293: PO_DEBUG.debug_end(l_log_head);

1289: l_progress := '990';
1290:
1291: IF g_debug_stmt THEN
1292: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
1293: PO_DEBUG.debug_end(l_log_head);
1294: END IF;
1295:
1296: EXCEPTION
1297:

Line 1300: PO_DEBUG.debug_exc(l_log_head,l_progress);

1296: EXCEPTION
1297:
1298: WHEN G_POPULATE_ENC_GT_EXC THEN
1299: IF g_debug_unexp THEN
1300: PO_DEBUG.debug_exc(l_log_head,l_progress);
1301: END IF;
1302: -- populate_enc_gt should have left its error msg on the stack
1303: -- no further action required
1304: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1308: PO_DEBUG.debug_exc(l_log_head,l_progress);

1304: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1305:
1306: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
1307: IF g_debug_unexp THEN
1308: PO_DEBUG.debug_exc(l_log_head,l_progress);
1309: END IF;
1310: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
1311: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
1312: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 1365: PO_DEBUG.debug_begin(l_log_head);

1361:
1362: BEGIN
1363:
1364: IF g_debug_stmt THEN
1365: PO_DEBUG.debug_begin(l_log_head);
1366: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1367: END IF;
1368:
1369: l_progress := '010';

Line 1366: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

1362: BEGIN
1363:
1364: IF g_debug_stmt THEN
1365: PO_DEBUG.debug_begin(l_log_head);
1366: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
1367: END IF;
1368:
1369: l_progress := '010';
1370:

Line 1506: PO_DEBUG.debug_var(l_log_head,l_progress,'Number of rows deleted', SQL%ROWCOUNT);

1502:
1503: l_progress := '900';
1504:
1505: IF g_debug_stmt THEN
1506: PO_DEBUG.debug_var(l_log_head,l_progress,'Number of rows deleted', SQL%ROWCOUNT);
1507: END IF;
1508:
1509:
1510: IF g_debug_stmt THEN

Line 1511: PO_DEBUG.debug_end(l_log_head);

1507: END IF;
1508:
1509:
1510: IF g_debug_stmt THEN
1511: PO_DEBUG.debug_end(l_log_head);
1512: END IF;
1513:
1514: EXCEPTION
1515:

Line 1589: PO_DEBUG.debug_begin(l_log_head);

1585:
1586: BEGIN
1587:
1588: IF g_debug_stmt THEN
1589: PO_DEBUG.debug_begin(l_log_head);
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1593: ,p_origin_seq_num_tbl);

Line 1590: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);

1586: BEGIN
1587:
1588: IF g_debug_stmt THEN
1589: PO_DEBUG.debug_begin(l_log_head);
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1593: ,p_origin_seq_num_tbl);
1594: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'

Line 1591: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);

1587:
1588: IF g_debug_stmt THEN
1589: PO_DEBUG.debug_begin(l_log_head);
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1593: ,p_origin_seq_num_tbl);
1594: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1595: ,p_backing_dist_id_tbl);

Line 1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'

1588: IF g_debug_stmt THEN
1589: PO_DEBUG.debug_begin(l_log_head);
1590: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1593: ,p_origin_seq_num_tbl);
1594: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1595: ,p_backing_dist_id_tbl);
1596: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'

Line 1594: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'

1590: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1591: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1593: ,p_origin_seq_num_tbl);
1594: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1595: ,p_backing_dist_id_tbl);
1596: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'
1597: ,p_ap_budget_account_id);
1598: END IF;

Line 1596: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'

1592: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1593: ,p_origin_seq_num_tbl);
1594: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1595: ,p_backing_dist_id_tbl);
1596: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'
1597: ,p_ap_budget_account_id);
1598: END IF;
1599:
1600: l_progress := '010';

Line 1704: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating GA dist_id');

1700: THEN
1701:
1702: l_progress := '200';
1703: IF g_debug_stmt THEN
1704: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating GA dist_id');
1705: END IF;
1706:
1707: UPDATE PO_ENCUMBRANCE_GT PO_DIST
1708: SET PO_DIST.agreement_dist_id =

Line 1722: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no GAs');

1718:
1719: ELSE
1720: l_progress := '250';
1721: IF g_debug_stmt THEN
1722: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no GAs');
1723: END IF;
1724: END IF;
1725:
1726: l_progress := '290';

Line 1737: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating BPA dist ids');

1733: THEN
1734:
1735: l_progress := '300';
1736: IF g_debug_stmt THEN
1737: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating BPA dist ids');
1738: END IF;
1739:
1740: UPDATE PO_ENCUMBRANCE_GT REL_DIST
1741: SET REL_DIST.agreement_dist_id =

Line 1757: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no BPAs');

1753:
1754: ELSE
1755: l_progress := '350';
1756: IF g_debug_stmt THEN
1757: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no BPAs');
1758: END IF;
1759: END IF;
1760:
1761: l_progress := '400';

Line 1769: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating backing link');

1765: IF (p_main_or_backing = g_BACKING) THEN
1766:
1767: l_progress := '410';
1768: IF g_debug_stmt THEN
1769: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating backing link');
1770: END IF;
1771:
1772: FORALL i IN 1 .. p_origin_seq_num_tbl.COUNT
1773: UPDATE PO_ENCUMBRANCE_GT BACKING

Line 1788: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating send to GL flag');

1784: IF p_action NOT IN (g_action_INVOICE_CANCEL, g_action_CR_MEMO_CANCEL) THEN
1785:
1786: l_progress := '420';
1787: IF g_debug_stmt THEN
1788: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating send to GL flag');
1789: END IF;
1790:
1791: --bug 3568512: do not send Unreserved backing BPA/PPO lines to GL; we
1792: --only keep them in the GTT to maintain the unencumbered_amount column

Line 1810: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not backing');

1806:
1807: ELSE
1808: l_progress := '450';
1809: IF g_debug_stmt THEN
1810: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not backing');
1811: END IF;
1812: END IF;
1813:
1814: l_progress := '500';

Line 1831: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);

1827:
1828: l_progress := '600';
1829:
1830: IF g_debug_stmt THEN
1831: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
1832: PO_DEBUG.debug_end(l_log_head);
1833: END IF;
1834:
1835: EXCEPTION

Line 1832: PO_DEBUG.debug_end(l_log_head);

1828: l_progress := '600';
1829:
1830: IF g_debug_stmt THEN
1831: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
1832: PO_DEBUG.debug_end(l_log_head);
1833: END IF;
1834:
1835: EXCEPTION
1836:

Line 1889: PO_DEBUG.debug_begin(l_log_head);

1885:
1886: BEGIN
1887:
1888: IF g_debug_stmt THEN
1889: PO_DEBUG.debug_begin(l_log_head);
1890: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1891: END IF;
1892:
1893: l_progress := '010';

Line 1890: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);

1886: BEGIN
1887:
1888: IF g_debug_stmt THEN
1889: PO_DEBUG.debug_begin(l_log_head);
1890: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1891: END IF;
1892:
1893: l_progress := '010';
1894:

Line 1901: PO_DEBUG.debug_stmt(l_log_head,l_progress,'requisitions');

1897: IF (p_distribution_type = g_dist_type_REQUISITION) THEN
1898:
1899: l_progress := '020';
1900: IF g_debug_stmt THEN
1901: PO_DEBUG.debug_stmt(l_log_head,l_progress,'requisitions');
1902: END IF;
1903:
1904: SELECT DISTS.req_distribution_id
1905: BULK COLLECT INTO l_distribution_id_tbl

Line 1918: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PPOs');

1914: ELSIF (p_distribution_type = g_dist_type_PLANNED) THEN
1915:
1916: l_progress := '040';
1917: IF g_debug_stmt THEN
1918: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PPOs');
1919: END IF;
1920:
1921: SELECT DISTS.source_distribution_id
1922: BULK COLLECT INTO l_distribution_id_tbl

Line 1935: PO_DEBUG.debug_stmt(l_log_head,l_progress,'agreements');

1931: ELSIF (p_distribution_type = g_dist_type_AGREEMENT) THEN
1932:
1933: l_progress := '060';
1934: IF g_debug_stmt THEN
1935: PO_DEBUG.debug_stmt(l_log_head,l_progress,'agreements');
1936: END IF;
1937:
1938: SELECT DISTS.agreement_dist_id
1939: BULK COLLECT INTO l_distribution_id_tbl

Line 1974: PO_DEBUG.debug_end(l_log_head);

1970:
1971: l_progress := '120';
1972:
1973: IF g_debug_stmt THEN
1974: PO_DEBUG.debug_end(l_log_head);
1975: END IF;
1976:
1977: EXCEPTION
1978:

Line 1981: PO_DEBUG.debug_exc(l_log_head,l_progress);

1977: EXCEPTION
1978:
1979: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
1980: IF g_debug_unexp THEN
1981: PO_DEBUG.debug_exc(l_log_head,l_progress);
1982: END IF;
1983: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
1984: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
1985: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 2051: PO_DEBUG.debug_begin(l_log_head);

2047:
2048: BEGIN
2049:
2050: IF g_debug_stmt THEN
2051: PO_DEBUG.debug_begin(l_log_head);
2052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2054: END IF;
2055:

Line 2052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

2048: BEGIN
2049:
2050: IF g_debug_stmt THEN
2051: PO_DEBUG.debug_begin(l_log_head);
2052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2054: END IF;
2055:
2056: l_progress := '010';

Line 2053: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);

2049:
2050: IF g_debug_stmt THEN
2051: PO_DEBUG.debug_begin(l_log_head);
2052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2053: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2054: END IF;
2055:
2056: l_progress := '010';
2057:

Line 2062: PO_DEBUG.debug_stmt(l_log_head,l_progress,'requisitions');

2058: IF (p_distribution_type = g_dist_type_REQUISITION) THEN
2059:
2060: l_progress := '020';
2061: IF g_debug_stmt THEN
2062: PO_DEBUG.debug_stmt(l_log_head,l_progress,'requisitions');
2063: END IF;
2064:
2065: ----------------------------------------------------------------
2066: -- PO_SESSION_GT column mapping

Line 2119: PO_DEBUG.debug_stmt(l_log_head,l_progress,'cancel w/ recreate demand');

2115: IF (p_action = g_action_CANCEL) THEN
2116:
2117: l_progress := '050';
2118: IF g_debug_stmt THEN
2119: PO_DEBUG.debug_stmt(l_log_head,l_progress,'cancel w/ recreate demand');
2120: END IF;
2121:
2122: -- The cancel code operates as follows:
2123: --

Line 2185: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not cancel');

2181:
2182: ELSE
2183: l_progress := '070';
2184: IF g_debug_stmt THEN
2185: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not cancel');
2186: END IF;
2187: END IF;
2188:
2189: l_progress := '080';

Line 2192: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl

2188:
2189: l_progress := '080';
2190:
2191: IF g_debug_stmt THEN
2192: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
2193: FROM PO_SESSION_GT WHERE key = l_backing_req_key ;
2194:
2195: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
2196: PO_DEBUG.g_rowid_tbl,

Line 2195: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',

2191: IF g_debug_stmt THEN
2192: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
2193: FROM PO_SESSION_GT WHERE key = l_backing_req_key ;
2194:
2195: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
2196: PO_DEBUG.g_rowid_tbl,
2197: po_tbl_varchar30('key','num1','num2','num3')
2198: );
2199: END IF;

Line 2196: PO_DEBUG.g_rowid_tbl,

2192: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
2193: FROM PO_SESSION_GT WHERE key = l_backing_req_key ;
2194:
2195: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
2196: PO_DEBUG.g_rowid_tbl,
2197: po_tbl_varchar30('key','num1','num2','num3')
2198: );
2199: END IF;
2200:

Line 2222: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PPOs');

2218: ELSIF (p_distribution_type = g_dist_type_PLANNED) THEN
2219:
2220: l_progress := '100';
2221: IF g_debug_stmt THEN
2222: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PPOs');
2223: END IF;
2224:
2225: -- Get the relevant backing PPO distributions of Scheduled Releases.
2226:

Line 2261: PO_DEBUG.debug_stmt(l_log_head,l_progress,'agreements');

2257: ELSIF (p_distribution_type = g_dist_type_AGREEMENT) THEN
2258:
2259: l_progress := '200';
2260: IF g_debug_stmt THEN
2261: PO_DEBUG.debug_stmt(l_log_head,l_progress,'agreements');
2262: END IF;
2263:
2264: -- Get the backing BPA/GA distributions of Blanket Releases/POs.
2265:

Line 2305: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);

2301:
2302: l_progress := '400';
2303:
2304: IF g_debug_stmt THEN
2305: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);
2306: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);
2307: PO_DEBUG.debug_end(l_log_head);
2308: END IF;
2309:

Line 2306: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);

2302: l_progress := '400';
2303:
2304: IF g_debug_stmt THEN
2305: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);
2306: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);
2307: PO_DEBUG.debug_end(l_log_head);
2308: END IF;
2309:
2310: EXCEPTION

Line 2307: PO_DEBUG.debug_end(l_log_head);

2303:
2304: IF g_debug_stmt THEN
2305: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);
2306: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);
2307: PO_DEBUG.debug_end(l_log_head);
2308: END IF;
2309:
2310: EXCEPTION
2311:

Line 2314: PO_DEBUG.debug_exc(l_log_head,l_progress);

2310: EXCEPTION
2311:
2312: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
2313: IF g_debug_unexp THEN
2314: PO_DEBUG.debug_exc(l_log_head,l_progress);
2315: END IF;
2316: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
2317: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
2318: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 2383: PO_DEBUG.debug_begin(l_log_head);

2379:
2380: BEGIN
2381:
2382: IF g_debug_stmt THEN
2383: PO_DEBUG.debug_begin(l_log_head);
2384: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2385: END IF;
2386:
2387: l_progress := '010';

Line 2384: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);

2380: BEGIN
2381:
2382: IF g_debug_stmt THEN
2383: PO_DEBUG.debug_begin(l_log_head);
2384: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2385: END IF;
2386:
2387: l_progress := '010';
2388:

Line 2418: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);

2414:
2415: l_progress := '900';
2416:
2417: IF g_debug_stmt THEN
2418: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);
2419: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);
2420: PO_DEBUG.debug_end(l_log_head);
2421: END IF;
2422:

Line 2419: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);

2415: l_progress := '900';
2416:
2417: IF g_debug_stmt THEN
2418: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);
2419: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);
2420: PO_DEBUG.debug_end(l_log_head);
2421: END IF;
2422:
2423: EXCEPTION

Line 2420: PO_DEBUG.debug_end(l_log_head);

2416:
2417: IF g_debug_stmt THEN
2418: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);
2419: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);
2420: PO_DEBUG.debug_end(l_log_head);
2421: END IF;
2422:
2423: EXCEPTION
2424:

Line 2427: PO_DEBUG.debug_exc(l_log_head,l_progress);

2423: EXCEPTION
2424:
2425: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
2426: IF g_debug_unexp THEN
2427: PO_DEBUG.debug_exc(l_log_head,l_progress);
2428: END IF;
2429: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
2430: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
2431: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 2495: PO_DEBUG.debug_begin(l_log_head);

2491:
2492: BEGIN
2493:
2494: IF g_debug_stmt THEN
2495: PO_DEBUG.debug_begin(l_log_head);
2496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2497: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2498: END IF;
2499:

Line 2496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

2492: BEGIN
2493:
2494: IF g_debug_stmt THEN
2495: PO_DEBUG.debug_begin(l_log_head);
2496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2497: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2498: END IF;
2499:
2500: l_progress := '010';

Line 2497: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

2493:
2494: IF g_debug_stmt THEN
2495: PO_DEBUG.debug_begin(l_log_head);
2496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2497: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2498: END IF;
2499:
2500: l_progress := '010';
2501:

Line 2515: PO_DEBUG.debug_var(l_log_head,l_progress,'x_distribution_type',x_distribution_type);

2511:
2512: l_progress := '900';
2513:
2514: IF g_debug_stmt THEN
2515: PO_DEBUG.debug_var(l_log_head,l_progress,'x_distribution_type',x_distribution_type);
2516: PO_DEBUG.debug_end(l_log_head);
2517: END IF;
2518:
2519: EXCEPTION

Line 2516: PO_DEBUG.debug_end(l_log_head);

2512: l_progress := '900';
2513:
2514: IF g_debug_stmt THEN
2515: PO_DEBUG.debug_var(l_log_head,l_progress,'x_distribution_type',x_distribution_type);
2516: PO_DEBUG.debug_end(l_log_head);
2517: END IF;
2518:
2519: EXCEPTION
2520:

Line 2685: PO_DEBUG.debug_begin(l_log_head);

2681:
2682: BEGIN
2683:
2684: IF g_debug_stmt THEN
2685: PO_DEBUG.debug_begin(l_log_head);
2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

Line 2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

2682: BEGIN
2683:
2684: IF g_debug_stmt THEN
2685: PO_DEBUG.debug_begin(l_log_head);
2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

Line 2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);

2683:
2684: IF g_debug_stmt THEN
2685: PO_DEBUG.debug_begin(l_log_head);
2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);

Line 2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

2684: IF g_debug_stmt THEN
2685: PO_DEBUG.debug_begin(l_log_head);
2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);

Line 2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

2685: PO_DEBUG.debug_begin(l_log_head);
2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);

Line 2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

2686: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2694: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);

Line 2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);

2687: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2694: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2695: END IF;

Line 2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);

2688: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2694: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2695: END IF;
2696:

Line 2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);

2689: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2694: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2695: END IF;
2696:
2697: l_progress := '010';

Line 2694: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);

2690: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2691: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2692: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2693: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2694: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2695: END IF;
2696:
2697: l_progress := '010';
2698:

Line 2733: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'

2729:
2730: l_progress := '040';
2731:
2732: IF g_debug_stmt THEN
2733: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
2734: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
2735: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'
2736: , PO_DOCUMENT_FUNDS_PVT.g_po_encumbrance_on);
2737: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'

Line 2735: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'

2731:
2732: IF g_debug_stmt THEN
2733: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
2734: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
2735: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'
2736: , PO_DOCUMENT_FUNDS_PVT.g_po_encumbrance_on);
2737: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'
2738: , PO_DOCUMENT_FUNDS_PVT.g_pa_encumbrance_on);
2739: END IF;

Line 2737: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'

2733: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
2734: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
2735: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'
2736: , PO_DOCUMENT_FUNDS_PVT.g_po_encumbrance_on);
2737: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'
2738: , PO_DOCUMENT_FUNDS_PVT.g_pa_encumbrance_on);
2739: END IF;
2740:
2741: IF (p_doc_type = g_doc_type_REQUISITION) THEN

Line 2762: PO_DEBUG.debug_var(l_log_head,l_progress,'l_enc_on',l_enc_on);

2758:
2759: END IF;
2760:
2761: IF g_debug_stmt THEN
2762: PO_DEBUG.debug_var(l_log_head,l_progress,'l_enc_on',l_enc_on);
2763: END IF;
2764:
2765: l_progress := '080';
2766:

Line 2778: PO_DEBUG.debug_stmt(l_log_head,l_progress,'encumbrance on');

2774:
2775: ELSE
2776: l_progress := '095';
2777: IF g_debug_stmt THEN
2778: PO_DEBUG.debug_stmt(l_log_head,l_progress,'encumbrance on');
2779: END IF;
2780: END IF;
2781:
2782: l_progress := '099';

Line 2812: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');

2808: ) THEN
2809:
2810: l_progress := 'a20';
2811: IF g_debug_stmt THEN
2812: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');
2813: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'
2814: ,PO_DEBUG.g_all_rows
2815: ,po_tbl_varchar30('distribution_type','doc_level','doc_level_id')
2816: );

Line 2813: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'

2809:
2810: l_progress := 'a20';
2811: IF g_debug_stmt THEN
2812: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');
2813: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'
2814: ,PO_DEBUG.g_all_rows
2815: ,po_tbl_varchar30('distribution_type','doc_level','doc_level_id')
2816: );
2817: END IF;

Line 2814: ,PO_DEBUG.g_all_rows

2810: l_progress := 'a20';
2811: IF g_debug_stmt THEN
2812: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');
2813: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'
2814: ,PO_DEBUG.g_all_rows
2815: ,po_tbl_varchar30('distribution_type','doc_level','doc_level_id')
2816: );
2817: END IF;
2818:

Line 2835: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);

2831: ;
2832:
2833: l_progress := 'a30';
2834: IF g_debug_stmt THEN
2835: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);
2836: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);
2837: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);
2838: END IF;
2839:

Line 2836: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);

2832:
2833: l_progress := 'a30';
2834: IF g_debug_stmt THEN
2835: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);
2836: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);
2837: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);
2838: END IF;
2839:
2840: IF (l_doc_level_tbl.COUNT <> 1) THEN

Line 2837: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);

2833: l_progress := 'a30';
2834: IF g_debug_stmt THEN
2835: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);
2836: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);
2837: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);
2838: END IF;
2839:
2840: IF (l_doc_level_tbl.COUNT <> 1) THEN
2841: l_progress := 'a35';

Line 2924: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doc type PA');

2920: ) THEN
2921:
2922: l_progress := '110';
2923: IF g_debug_stmt THEN
2924: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doc type PA');
2925: END IF;
2926:
2927: IF (p_use_enc_gt_flag = g_parameter_YES) THEN
2928: l_doc_id := l_doc_level_id_tbl(1);

Line 2935: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_id',l_doc_id);

2931: END IF;
2932:
2933: l_progress := '120';
2934: IF g_debug_stmt THEN
2935: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_id',l_doc_id);
2936: END IF;
2937:
2938: -- actions on PAs only allowed at the header level
2939: IF (l_doc_level <> g_doc_level_HEADER) THEN

Line 2960: PO_DEBUG.debug_var(l_log_head,l_progress,'l_id_tbl',l_id_tbl);

2956: ;
2957:
2958: l_progress := '140';
2959: IF g_debug_stmt THEN
2960: PO_DEBUG.debug_var(l_log_head,l_progress,'l_id_tbl',l_id_tbl);
2961: END IF;
2962:
2963: IF (l_id_tbl.COUNT <> 1) THEN
2964:

Line 2974: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PA valid');

2970:
2971: ELSE
2972: l_progress := '160';
2973: IF g_debug_stmt THEN
2974: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PA valid');
2975: END IF;
2976: END IF;
2977:
2978: l_progress := '170';

Line 2983: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not PA');

2979:
2980: ELSE
2981: l_progress := '180';
2982: IF g_debug_stmt THEN
2983: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not PA');
2984: END IF;
2985: END IF;
2986:
2987: l_progress := '200';

Line 3007: PO_DEBUG.debug_stmt(l_log_head,l_progress,'validate single doc');

3003: ) THEN
3004:
3005: l_progress := '210';
3006: IF g_debug_stmt THEN
3007: PO_DEBUG.debug_stmt(l_log_head,l_progress,'validate single doc');
3008: END IF;
3009:
3010: SELECT DECODE( p_doc_type
3011: , g_doc_type_RELEASE, ENC.po_release_id

Line 3021: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_id',l_doc_id);

3017: ;
3018:
3019: l_progress := '220';
3020: IF g_debug_stmt THEN
3021: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_id',l_doc_id);
3022: END IF;
3023:
3024: l_multiple_docs_flag := 'N';
3025:

Line 3030: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking multiple docs');

3026: BEGIN
3027:
3028: l_progress := '230';
3029: IF g_debug_stmt THEN
3030: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking multiple docs');
3031: END IF;
3032:
3033: IF (p_doc_type = g_doc_type_RELEASE) THEN
3034:

Line 3037: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking release');

3033: IF (p_doc_type = g_doc_type_RELEASE) THEN
3034:
3035: l_progress := '240';
3036: IF g_debug_stmt THEN
3037: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking release');
3038: END IF;
3039:
3040: SELECT 'Y'
3041: INTO l_multiple_docs_flag

Line 3054: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking non-release');

3050: ELSE
3051:
3052: l_progress := '260';
3053: IF g_debug_stmt THEN
3054: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking non-release');
3055: END IF;
3056:
3057: SELECT 'Y'
3058: INTO l_multiple_docs_flag

Line 3071: PO_DEBUG.debug_var(l_log_head,l_progress,'l_multiple_docs_flag',l_multiple_docs_flag);

3067: END IF;
3068:
3069: l_progress := '275';
3070: IF g_debug_stmt THEN
3071: PO_DEBUG.debug_var(l_log_head,l_progress,'l_multiple_docs_flag',l_multiple_docs_flag);
3072: END IF;
3073:
3074: EXCEPTION
3075: WHEN NO_DATA_FOUND THEN

Line 3081: PO_DEBUG.debug_var(l_log_head,l_progress,'l_multiple_docs_flag',l_multiple_docs_flag);

3077: END;
3078:
3079: l_progress := '280';
3080: IF g_debug_stmt THEN
3081: PO_DEBUG.debug_var(l_log_head,l_progress,'l_multiple_docs_flag',l_multiple_docs_flag);
3082: END IF;
3083:
3084: IF (l_multiple_docs_flag = 'Y') THEN
3085:

Line 3095: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no multiple docs');

3091:
3092: ELSE
3093: l_progress := '290';
3094: IF g_debug_stmt THEN
3095: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no multiple docs');
3096: END IF;
3097: END IF;
3098:
3099: l_progress := '295';

Line 3104: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not validating single doc');

3100:
3101: ELSE
3102: l_progress := '299';
3103: IF g_debug_stmt THEN
3104: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not validating single doc');
3105: END IF;
3106: END IF;
3107:
3108: l_progress := '300';

Line 3123: PO_DEBUG.debug_stmt(l_log_head,l_progress,'locking header');

3119: ) THEN
3120:
3121: l_progress := '310';
3122: IF g_debug_stmt THEN
3123: PO_DEBUG.debug_stmt(l_log_head,l_progress,'locking header');
3124: END IF;
3125:
3126: IF (p_use_enc_gt_flag = g_parameter_NO) THEN
3127:

Line 3158: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not locking doc');

3154:
3155: ELSE
3156: l_progress := '360';
3157: IF g_debug_stmt THEN
3158: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not locking doc');
3159: END IF;
3160: END IF;
3161:
3162: l_progress := '400';

Line 3216: PO_DEBUG.debug_stmt(l_log_head,l_progress,'state check passed');

3212:
3213: ELSE
3214: l_progress := '440';
3215: IF g_debug_stmt THEN
3216: PO_DEBUG.debug_stmt(l_log_head,l_progress,'state check passed');
3217: END IF;
3218: END IF;
3219:
3220: l_progress := '450';

Line 3225: PO_DEBUG.debug_stmt(l_log_head,l_progress,'skipping state check');

3221:
3222: ELSE
3223: l_progress := '460';
3224: IF g_debug_stmt THEN
3225: PO_DEBUG.debug_stmt(l_log_head,l_progress,'skipping state check');
3226: END IF;
3227: END IF;
3228:
3229: l_progress := '500';

Line 3243: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doing doc checks');

3239: ) THEN
3240:
3241: l_progress := '510';
3242: IF g_debug_stmt THEN
3243: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doing doc checks');
3244: END IF;
3245:
3246: -- Initialize the return variables.
3247:

Line 3288: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);

3284:
3285: END IF;
3286:
3287: IF g_debug_stmt THEN
3288: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3289: END IF;
3290:
3291: l_progress := '540';
3292:

Line 3299: PO_DEBUG.debug_stmt(l_log_head,l_progress,'starting sub check loop');

3295: IF (l_sub_check_action IS NOT NULL) THEN
3296:
3297: l_progress := '550';
3298: IF g_debug_stmt THEN
3299: PO_DEBUG.debug_stmt(l_log_head,l_progress,'starting sub check loop');
3300: END IF;
3301:
3302: -- bug 3435714
3303: -- Allowing multiple ids, but submission check isn't designed for this.

Line 3337: PO_DEBUG.debug_stmt(l_log_head,l_progress,

3333: SET show_in_psa_flag='Y'
3334: WHERE ONLINE_report_id=x_sub_check_report_id;
3335: --
3336: IF g_debug_stmt THEN
3337: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3338: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);

Line 3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);

3335: --
3336: IF g_debug_stmt THEN
3337: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3338: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));

Line 3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);

3336: IF g_debug_stmt THEN
3337: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3338: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);

Line 3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);

3337: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3338: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);

Line 3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);

3338: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);

Line 3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));

3339: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);

Line 3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);

3340: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3348: END IF;

Line 3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);

3341: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3348: END IF;
3349:

Line 3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);

3342: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3348: END IF;
3349:
3350: IF (l_sub_check_status <> FND_API.G_RET_STS_SUCCESS) THEN

Line 3347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);

3343: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3344: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3345: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3346: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3347: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3348: END IF;
3349:
3350: IF (l_sub_check_status <> FND_API.G_RET_STS_SUCCESS) THEN
3351: l_progress := '560';

Line 3367: PO_DEBUG.debug_stmt(l_log_head,l_progress,'finished sub check loop');

3363: g_call_from_encumbrance := 'N';
3364:
3365: l_progress := '580';
3366: IF g_debug_stmt THEN
3367: PO_DEBUG.debug_stmt(l_log_head,l_progress,'finished sub check loop');
3368: END IF;
3369:
3370: ELSE
3371: l_progress := '585';

Line 3373: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not performing sub check');

3369:
3370: ELSE
3371: l_progress := '585';
3372: IF g_debug_stmt THEN
3373: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not performing sub check');
3374: END IF;
3375: END IF;
3376:
3377: l_progress := '590';

Line 3382: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not validating doc');

3378:
3379: ELSE
3380: l_progress := '600';
3381: IF g_debug_stmt THEN
3382: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not validating doc');
3383: END IF;
3384: END IF;
3385:
3386: l_progress := '900';

Line 3394: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);

3390:
3391: x_validation_successful_flag := g_parameter_YES;
3392:
3393: IF g_debug_stmt THEN
3394: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3395: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3396: PO_DEBUG.debug_end(l_log_head);
3397: END IF;
3398:

Line 3395: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);

3391: x_validation_successful_flag := g_parameter_YES;
3392:
3393: IF g_debug_stmt THEN
3394: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3395: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3396: PO_DEBUG.debug_end(l_log_head);
3397: END IF;
3398:
3399: EXCEPTION

Line 3396: PO_DEBUG.debug_end(l_log_head);

3392:
3393: IF g_debug_stmt THEN
3394: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3395: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3396: PO_DEBUG.debug_end(l_log_head);
3397: END IF;
3398:
3399: EXCEPTION
3400: WHEN OTHERS THEN

Line 3402: PO_DEBUG.debug_exc(l_log_head,l_progress);

3398:
3399: EXCEPTION
3400: WHEN OTHERS THEN
3401: IF g_debug_unexp THEN
3402: PO_DEBUG.debug_exc(l_log_head,l_progress);
3403: END IF;
3404:
3405: x_validation_successful_flag := g_parameter_NO;
3406:

Line 3423: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);

3419: END IF;
3420: END IF;
3421:
3422: IF g_debug_stmt THEN
3423: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3424: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3425: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3426: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3427: END IF;

Line 3424: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);

3420: END IF;
3421:
3422: IF g_debug_stmt THEN
3423: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3424: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3425: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3426: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3427: END IF;
3428:

Line 3425: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);

3421:
3422: IF g_debug_stmt THEN
3423: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3424: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3425: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3426: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3427: END IF;
3428:
3429: -- Prepare the message to put on the API message list.

Line 3426: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);

3422: IF g_debug_stmt THEN
3423: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3424: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3425: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3426: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3427: END IF;
3428:
3429: -- Prepare the message to put on the API message list.
3430: IF (l_exc_code IN (g_ENC_VALIDATION_EXC_CODE,g_SUBMISSION_CHECK_EXC_CODE)) THEN

Line 3533: PO_DEBUG.debug_begin(l_log_head);

3529:
3530: BEGIN
3531:
3532: IF g_debug_stmt THEN
3533: PO_DEBUG.debug_begin(l_log_head);
3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

Line 3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

3530: BEGIN
3531:
3532: IF g_debug_stmt THEN
3533: PO_DEBUG.debug_begin(l_log_head);
3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3538: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);

Line 3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

3531:
3532: IF g_debug_stmt THEN
3533: PO_DEBUG.debug_begin(l_log_head);
3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3538: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3539: END IF;

Line 3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

3532: IF g_debug_stmt THEN
3533: PO_DEBUG.debug_begin(l_log_head);
3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3538: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3539: END IF;
3540:

Line 3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

3533: PO_DEBUG.debug_begin(l_log_head);
3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3538: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3539: END IF;
3540:
3541: l_progress := '010';

Line 3538: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);

3534: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3535: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3536: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3537: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3538: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3539: END IF;
3540:
3541: l_progress := '010';
3542:

Line 3690: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);

3686:
3687: l_progress := '290';
3688:
3689: IF g_debug_stmt THEN
3690: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);

Line 3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);

3687: l_progress := '290';
3688:
3689: IF g_debug_stmt THEN
3690: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3695: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);

Line 3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);

3688:
3689: IF g_debug_stmt THEN
3690: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3695: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3696: END IF;

Line 3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);

3689: IF g_debug_stmt THEN
3690: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3695: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3696: END IF;
3697:

Line 3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);

3690: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3695: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3696: END IF;
3697:
3698: -- Call the doc status check.

Line 3695: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);

3691: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3692: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3693: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3694: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3695: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3696: END IF;
3697:
3698: -- Call the doc status check.
3699:

Line 3706: PO_DEBUG.debug_stmt(l_log_head,l_progress,'req');

3702: IF (p_doc_type = g_doc_type_REQUISITION) THEN
3703:
3704: l_progress := '310';
3705: IF g_debug_stmt THEN
3706: PO_DEBUG.debug_stmt(l_log_head,l_progress,'req');
3707: END IF;
3708:
3709: PO_REQ_DOCUMENT_CHECKS_GRP.req_status_check(
3710: p_api_version => 1.0

Line 3728: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not req');

3724: ELSE
3725:
3726: l_progress := '330';
3727: IF g_debug_stmt THEN
3728: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not req');
3729: END IF;
3730:
3731: PO_DOCUMENT_CHECKS_GRP.po_status_check(
3732: p_api_version => 1.0

Line 3754: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);

3750: END IF;
3751:
3752: l_progress := '350';
3753: IF g_debug_stmt THEN
3754: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3755: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3756: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3757: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3758: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);

Line 3755: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);

3751:
3752: l_progress := '350';
3753: IF g_debug_stmt THEN
3754: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3755: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3756: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3757: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3758: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3759: END IF;

Line 3756: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);

3752: l_progress := '350';
3753: IF g_debug_stmt THEN
3754: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3755: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3756: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3757: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3758: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3759: END IF;
3760:

Line 3757: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);

3753: IF g_debug_stmt THEN
3754: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3755: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3756: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3757: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3758: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3759: END IF;
3760:
3761: IF (p_action = g_action_RESERVE) THEN

Line 3758: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);

3754: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3755: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3756: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3757: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3758: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3759: END IF;
3760:
3761: IF (p_action = g_action_RESERVE) THEN
3762:

Line 3778: PO_DEBUG.debug_var(l_log_head,l_progress,'x_valid_state_flag',x_valid_state_flag);

3774:
3775: l_progress := '900';
3776:
3777: IF g_debug_stmt THEN
3778: PO_DEBUG.debug_var(l_log_head,l_progress,'x_valid_state_flag',x_valid_state_flag);
3779: PO_DEBUG.debug_end(l_log_head);
3780: END IF;
3781:
3782: EXCEPTION

Line 3779: PO_DEBUG.debug_end(l_log_head);

3775: l_progress := '900';
3776:
3777: IF g_debug_stmt THEN
3778: PO_DEBUG.debug_var(l_log_head,l_progress,'x_valid_state_flag',x_valid_state_flag);
3779: PO_DEBUG.debug_end(l_log_head);
3780: END IF;
3781:
3782: EXCEPTION
3783: WHEN OTHERS THEN

Line 3872: PO_DEBUG.debug_begin(l_log_head);

3868:
3869: BEGIN
3870:
3871: IF g_debug_stmt THEN
3872: PO_DEBUG.debug_begin(l_log_head);
3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);

Line 3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);

3869: BEGIN
3870:
3871: IF g_debug_stmt THEN
3872: PO_DEBUG.debug_begin(l_log_head);
3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);

Line 3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);

3870:
3871: IF g_debug_stmt THEN
3872: PO_DEBUG.debug_begin(l_log_head);
3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);

Line 3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);

3871: IF g_debug_stmt THEN
3872: PO_DEBUG.debug_begin(l_log_head);
3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);

Line 3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);

3872: PO_DEBUG.debug_begin(l_log_head);
3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);

Line 3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);

3873: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);

Line 3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);

3874: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3882: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);

Line 3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);

3875: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3882: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3883: END IF;

Line 3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);

3876: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3882: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3883: END IF;
3884:

Line 3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);

3877: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3882: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3883: END IF;
3884:
3885: l_progress := '010';

Line 3882: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);

3878: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3879: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3880: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3881: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3882: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3883: END IF;
3884:
3885: l_progress := '010';
3886:

Line 4047: PO_DEBUG.debug_begin(l_log_head);

4043:
4044: BEGIN
4045:
4046: IF g_debug_stmt THEN
4047: PO_DEBUG.debug_begin(l_log_head);
4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);

Line 4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);

4044: BEGIN
4045:
4046: IF g_debug_stmt THEN
4047: PO_DEBUG.debug_begin(l_log_head);
4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);

Line 4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);

4045:
4046: IF g_debug_stmt THEN
4047: PO_DEBUG.debug_begin(l_log_head);
4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
4053: END IF;

Line 4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);

4046: IF g_debug_stmt THEN
4047: PO_DEBUG.debug_begin(l_log_head);
4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
4053: END IF;
4054:

Line 4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);

4047: PO_DEBUG.debug_begin(l_log_head);
4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
4053: END IF;
4054:
4055: -- Set the parameters used by the different actions

Line 4052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);

4048: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
4049: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4050: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4051: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4052: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
4053: END IF;
4054:
4055: -- Set the parameters used by the different actions
4056: IF p_action IN (g_action_UNRESERVE, g_action_FINAL_CLOSE,

Line 4072: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_forward',l_allow_roll_forward);

4068:
4069: l_progress := '010';
4070:
4071: IF g_debug_stmt THEN
4072: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_forward',l_allow_roll_forward);
4073: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_backward',l_allow_roll_backward);
4074: END IF;
4075:
4076: IF (p_try_dist_date_flag = 'Y' OR p_action = g_action_ADJUST) THEN

Line 4073: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_backward',l_allow_roll_backward);

4069: l_progress := '010';
4070:
4071: IF g_debug_stmt THEN
4072: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_forward',l_allow_roll_forward);
4073: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_backward',l_allow_roll_backward);
4074: END IF;
4075:
4076: IF (p_try_dist_date_flag = 'Y' OR p_action = g_action_ADJUST) THEN
4077:

Line 4373: PO_DEBUG.debug_begin(l_log_head);

4369:
4370: BEGIN
4371:
4372: IF g_debug_stmt THEN
4373: PO_DEBUG.debug_begin(l_log_head);
4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);

Line 4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);

4370: BEGIN
4371:
4372: IF g_debug_stmt THEN
4373: PO_DEBUG.debug_begin(l_log_head);
4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4378: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);

Line 4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);

4371:
4372: IF g_debug_stmt THEN
4373: PO_DEBUG.debug_begin(l_log_head);
4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4378: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4379: END IF;

Line 4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);

4372: IF g_debug_stmt THEN
4373: PO_DEBUG.debug_begin(l_log_head);
4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4378: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4379: END IF;
4380:

Line 4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);

4373: PO_DEBUG.debug_begin(l_log_head);
4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4378: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4379: END IF;
4380:
4381: l_progress := '010';

Line 4378: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);

4374: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4375: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4376: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4377: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4378: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4379: END IF;
4380:
4381: l_progress := '010';
4382:

Line 4707: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Search for matching periods done');

4703:
4704: l_progress := '060';
4705:
4706: IF g_debug_stmt THEN
4707: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Search for matching periods done');
4708:
4709: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
4710: FROM PO_SESSION_GT WHERE key = l_procedure_id
4711: ;

Line 4709: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl

4705:
4706: IF g_debug_stmt THEN
4707: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Search for matching periods done');
4708:
4709: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
4710: FROM PO_SESSION_GT WHERE key = l_procedure_id
4711: ;
4712:
4713: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542

Line 4713: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542

4709: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
4710: FROM PO_SESSION_GT WHERE key = l_procedure_id
4711: ;
4712:
4713: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542
4714:
4715: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',PO_DEBUG.g_rowid_tbl,PO_DEBUG.g_column_tbl,'PO');
4716:
4717: END IF;

Line 4715: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',PO_DEBUG.g_rowid_tbl,PO_DEBUG.g_column_tbl,'PO');

4711: ;
4712:
4713: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542
4714:
4715: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',PO_DEBUG.g_rowid_tbl,PO_DEBUG.g_column_tbl,'PO');
4716:
4717: END IF;
4718:
4719:

Line 4805: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated main encumbrance gt with period information');

4801:
4802: l_progress := '090';
4803:
4804: IF g_debug_stmt THEN
4805: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated main encumbrance gt with period information');
4806: END IF;
4807:
4808: -- Determine if we found period information for all the dates
4809: -- we were looking at.

Line 4837: PO_DEBUG.debug_var(l_log_head,l_progress,'x_missing_date_flag',x_missing_date_flag);

4833:
4834: l_progress := '900';
4835:
4836: IF g_debug_stmt THEN
4837: PO_DEBUG.debug_var(l_log_head,l_progress,'x_missing_date_flag',x_missing_date_flag);
4838: PO_DEBUG.debug_end(l_log_head);
4839: END IF;
4840:
4841: EXCEPTION

Line 4838: PO_DEBUG.debug_end(l_log_head);

4834: l_progress := '900';
4835:
4836: IF g_debug_stmt THEN
4837: PO_DEBUG.debug_var(l_log_head,l_progress,'x_missing_date_flag',x_missing_date_flag);
4838: PO_DEBUG.debug_end(l_log_head);
4839: END IF;
4840:
4841: EXCEPTION
4842:

Line 4931: PO_DEBUG.debug_begin(l_log_head);

4927: -- below. It is assumed that NULL values in these fields were given default
4928: -- values upon initial insertion into the global temp table.
4929:
4930: IF g_debug_stmt THEN
4931: PO_DEBUG.debug_begin(l_log_head);
4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);

Line 4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

4928: -- values upon initial insertion into the global temp table.
4929:
4930: IF g_debug_stmt THEN
4931: PO_DEBUG.debug_begin(l_log_head);
4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);

Line 4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

4929:
4930: IF g_debug_stmt THEN
4931: PO_DEBUG.debug_begin(l_log_head);
4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);

Line 4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

4930: IF g_debug_stmt THEN
4931: PO_DEBUG.debug_begin(l_log_head);
4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4938: END IF;

Line 4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);

4931: PO_DEBUG.debug_begin(l_log_head);
4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4938: END IF;
4939:

Line 4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);

4932: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4938: END IF;
4939:
4940:

Line 4937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);

4933: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4934: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4935: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4936: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4937: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4938: END IF;
4939:
4940:
4941: -- If AP gives us NULL values, deal with them gracefully.

Line 4959: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func', l_min_acct_unit_func);

4955: WHERE FND_CUR.currency_code = p_currency_code_func
4956: ;
4957:
4958: IF g_debug_stmt THEN
4959: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func', l_min_acct_unit_func);
4960: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func', l_cur_precision_func);
4961: END IF;
4962:
4963:

Line 4960: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func', l_cur_precision_func);

4956: ;
4957:
4958: IF g_debug_stmt THEN
4959: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func', l_min_acct_unit_func);
4960: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func', l_cur_precision_func);
4961: END IF;
4962:
4963:
4964: --*********************************************************

Line 5005: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Doc type can have backing docs');

5001: -- Adjust, FC actions do not have backing trxns
5002:
5003: l_progress := '050';
5004: IF g_debug_stmt THEN
5005: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Doc type can have backing docs');
5006: END IF;
5007:
5008: --: determine if the Std PO is a Complex Work PO
5009: IF (p_doc_subtype = g_doc_subtype_STANDARD) THEN

Line 5070: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows);

5066:
5067: l_progress := '070';
5068:
5069: IF g_debug_stmt THEN
5070: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows);
5071: PO_DEBUG.debug_end(l_log_head);
5072: END IF;
5073:
5074:

Line 5071: PO_DEBUG.debug_end(l_log_head);

5067: l_progress := '070';
5068:
5069: IF g_debug_stmt THEN
5070: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows);
5071: PO_DEBUG.debug_end(l_log_head);
5072: END IF;
5073:
5074:
5075: EXCEPTION

Line 5149: PO_DEBUG.debug_begin(l_log_head);

5145:
5146: BEGIN
5147:
5148: IF g_debug_stmt THEN
5149: PO_DEBUG.debug_begin(l_log_head);
5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

Line 5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

5146: BEGIN
5147:
5148: IF g_debug_stmt THEN
5149: PO_DEBUG.debug_begin(l_log_head);
5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

Line 5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

5147:
5148: IF g_debug_stmt THEN
5149: PO_DEBUG.debug_begin(l_log_head);
5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5155: END IF;

Line 5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

5148: IF g_debug_stmt THEN
5149: PO_DEBUG.debug_begin(l_log_head);
5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5155: END IF;
5156:

Line 5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

5149: PO_DEBUG.debug_begin(l_log_head);
5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5155: END IF;
5156:
5157:

Line 5154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

5150: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5151: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5155: END IF;
5156:
5157:
5158: -- If the doc is a BPA, or can have a backing BPA, convert

Line 5212: PO_DEBUG.debug_table(

5208:
5209: l_progress := '030';
5210:
5211: IF g_debug_stmt THEN
5212: PO_DEBUG.debug_table(
5213: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5214: po_tbl_varchar30( 'amount_based_flag', 'qty_ordered', 'amt_ordered' )
5215: );
5216: END IF;

Line 5213: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,

5209: l_progress := '030';
5210:
5211: IF g_debug_stmt THEN
5212: PO_DEBUG.debug_table(
5213: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5214: po_tbl_varchar30( 'amount_based_flag', 'qty_ordered', 'amt_ordered' )
5215: );
5216: END IF;
5217:

Line 5244: PO_DEBUG.debug_table(

5240:
5241: l_progress := '040';
5242:
5243: IF g_debug_stmt THEN
5244: PO_DEBUG.debug_table(
5245: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5246: po_tbl_varchar30( 'nonrecoverable_tax_rate')
5247: );
5248: PO_DEBUG.debug_end(l_log_head);

Line 5245: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,

5241: l_progress := '040';
5242:
5243: IF g_debug_stmt THEN
5244: PO_DEBUG.debug_table(
5245: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5246: po_tbl_varchar30( 'nonrecoverable_tax_rate')
5247: );
5248: PO_DEBUG.debug_end(l_log_head);
5249: END IF;

Line 5248: PO_DEBUG.debug_end(l_log_head);

5244: PO_DEBUG.debug_table(
5245: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5246: po_tbl_varchar30( 'nonrecoverable_tax_rate')
5247: );
5248: PO_DEBUG.debug_end(l_log_head);
5249: END IF;
5250:
5251:
5252: EXCEPTION

Line 5321: PO_DEBUG.debug_begin(l_log_head);

5317:
5318: BEGIN
5319:
5320: IF g_debug_stmt THEN
5321: PO_DEBUG.debug_begin(l_log_head);
5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

Line 5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

5318: BEGIN
5319:
5320: IF g_debug_stmt THEN
5321: PO_DEBUG.debug_begin(l_log_head);
5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5326: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);

Line 5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

5319:
5320: IF g_debug_stmt THEN
5321: PO_DEBUG.debug_begin(l_log_head);
5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5326: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5327: END IF;

Line 5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

5320: IF g_debug_stmt THEN
5321: PO_DEBUG.debug_begin(l_log_head);
5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5326: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5327: END IF;
5328:

Line 5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

5321: PO_DEBUG.debug_begin(l_log_head);
5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5326: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5327: END IF;
5328:
5329:

Line 5326: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);

5322: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5323: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5324: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5325: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5326: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5327: END IF;
5328:
5329:
5330: IF p_action NOT IN (g_action_INVOICE_CANCEL, g_action_CR_MEMO_CANCEL) THEN

Line 5517: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doing AP calculations for main doc');

5513:
5514: l_progress := '080';
5515:
5516: IF g_debug_stmt THEN
5517: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doing AP calculations for main doc');
5518: END IF;
5519:
5520: -- Bug 3480949: Removed logic that would remove tax from ap amount
5521: -- AP now calls the invoice cancel API with p_tax_line_flag = 'Y'

Line 5573: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5569:
5570: END IF; -- p_action is AP Inv Cancel vs. any other action
5571:
5572: IF g_debug_stmt THEN
5573: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5574: 'Calculated amount_closed for main document'
5575: );
5576: PO_DEBUG.debug_table(
5577: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,

Line 5576: PO_DEBUG.debug_table(

5572: IF g_debug_stmt THEN
5573: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5574: 'Calculated amount_closed for main document'
5575: );
5576: PO_DEBUG.debug_table(
5577: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5578: po_tbl_varchar30( 'amount_based_flag', 'qty_closed', 'amt_closed')
5579: );
5580: PO_DEBUG.debug_end(l_log_head);

Line 5577: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,

5573: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5574: 'Calculated amount_closed for main document'
5575: );
5576: PO_DEBUG.debug_table(
5577: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5578: po_tbl_varchar30( 'amount_based_flag', 'qty_closed', 'amt_closed')
5579: );
5580: PO_DEBUG.debug_end(l_log_head);
5581: END IF;

Line 5580: PO_DEBUG.debug_end(l_log_head);

5576: PO_DEBUG.debug_table(
5577: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5578: po_tbl_varchar30( 'amount_based_flag', 'qty_closed', 'amt_closed')
5579: );
5580: PO_DEBUG.debug_end(l_log_head);
5581: END IF;
5582:
5583:
5584: EXCEPTION

Line 5675: PO_DEBUG.debug_begin(l_log_head);

5671: -- downwards to stay within PA amt limits. This occurs AFTER the
5672: -- final rounding/conversion, to prevent penny differences
5673:
5674: IF g_debug_stmt THEN
5675: PO_DEBUG.debug_begin(l_log_head);
5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

Line 5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

5672: -- final rounding/conversion, to prevent penny differences
5673:
5674: IF g_debug_stmt THEN
5675: PO_DEBUG.debug_begin(l_log_head);
5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

Line 5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

5673:
5674: IF g_debug_stmt THEN
5675: PO_DEBUG.debug_begin(l_log_head);
5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

Line 5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

5674: IF g_debug_stmt THEN
5675: PO_DEBUG.debug_begin(l_log_head);
5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);

Line 5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

5675: PO_DEBUG.debug_begin(l_log_head);
5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5683: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);

Line 5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

5676: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5683: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5684: END IF;

Line 5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

5677: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5683: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5684: END IF;
5685:

Line 5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);

5678: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5683: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5684: END IF;
5685:
5686:

Line 5683: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);

5679: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5680: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5681: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5682: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5683: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5684: END IF;
5685:
5686:
5687: -- Calculations for Backing Reqs:

Line 5706: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5702: -- to do these calculations.
5703: l_progress := '020';
5704:
5705: IF g_debug_stmt THEN
5706: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5707: 'Starting calculations for backing Reqs');
5708: END IF;
5709:
5710:

Line 5733: PO_DEBUG.debug_stmt(l_log_head,l_progress,'did UoM conversion');

5729:
5730: l_progress := '030';
5731:
5732: IF g_debug_stmt THEN
5733: PO_DEBUG.debug_stmt(l_log_head,l_progress,'did UoM conversion');
5734: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5735: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'
5736: ,'distribution_type','uom_conversion_rate','unit_meas_lookup_code'
5737: ,'item_id','sequence_num','origin_sequence_num'

Line 5734: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows

5730: l_progress := '030';
5731:
5732: IF g_debug_stmt THEN
5733: PO_DEBUG.debug_stmt(l_log_head,l_progress,'did UoM conversion');
5734: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5735: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'
5736: ,'distribution_type','uom_conversion_rate','unit_meas_lookup_code'
5737: ,'item_id','sequence_num','origin_sequence_num'
5738: )

Line 5775: PO_DEBUG.debug_var(l_log_head,l_progress,'l_uom_conversion_error',l_uom_conversion_error);

5771: l_uom_conversion_error := 'N';
5772: END;
5773:
5774: IF g_debug_stmt THEN
5775: PO_DEBUG.debug_var(l_log_head,l_progress,'l_uom_conversion_error',l_uom_conversion_error);
5776: END IF;
5777:
5778: ----
5779: -- When the Conversion rate is not defined between the main document UOM

Line 5932: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5928:
5929: END IF; -- p_action <> Cancel
5930:
5931: IF g_debug_stmt THEN
5932: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5933: 'Calculated amount_closed for backing Reqs'
5934: );
5935: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5936: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'

Line 5935: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows

5931: IF g_debug_stmt THEN
5932: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5933: 'Calculated amount_closed for backing Reqs'
5934: );
5935: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5936: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'
5937: ,'qty_open','qty_ordered','qty_closed','uom_conversion_rate'
5938: ,'quantity_billed','distribution_type','sequence_num','origin_sequence_num'
5939: ,'amt_open','price','amt_ordered','amt_closed','amount_billed'

Line 5962: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Starting calculations for backing PPOs');

5958: -- 2) update the PPO unencumbered_quantity during post-processing.
5959:
5960: l_progress := '100';
5961: IF g_debug_stmt THEN
5962: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Starting calculations for backing PPOs');
5963: END IF;
5964:
5965: IF p_action NOT IN (g_action_INVOICE_CANCEL, g_action_CR_MEMO_CANCEL) THEN
5966:

Line 6019: PO_DEBUG.debug_stmt(l_log_head,l_progress,

6015:
6016: END IF; -- if action is Invoice Cancel vs. other actions
6017:
6018: IF g_debug_stmt THEN
6019: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6020: 'Updated qty_open for backing PPO'
6021: );
6022: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6023: ,po_tbl_varchar30('prevent_encumbrance_flag'

Line 6022: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows

6018: IF g_debug_stmt THEN
6019: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6020: 'Updated qty_open for backing PPO'
6021: );
6022: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6023: ,po_tbl_varchar30('prevent_encumbrance_flag'
6024: ,'qty_open','qty_ordered','qty_closed','quantity_billed'
6025: ,'distribution_type','sequence_num','origin_sequence_num')
6026: );

Line 6039: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Get last implemented Fund Value for backing Requisitions.');

6035: and p_action = g_action_RESERVE ) Then
6036:
6037: l_progress := '130';
6038: IF g_debug_stmt THEN
6039: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Get last implemented Fund Value for backing Requisitions.');
6040: End If;
6041:
6042: UPDATE PO_ENCUMBRANCE_GT REQ_DISTS
6043: SET REQ_DISTS.FUNDED_VALUE = por_amendment_pkg.getLastImplFundValue(REQ_DISTS.distribution_id)

Line 6051: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Successfully Updated the Fund Value for Backing Reqs.');

6047: AND REQ_DISTS.prevent_encumbrance_flag = 'N';
6048:
6049: l_progress := '140';
6050: IF g_debug_stmt THEN
6051: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Successfully Updated the Fund Value for Backing Reqs.');
6052: End If;
6053:
6054: End If;
6055: /* <> */

Line 6058: PO_DEBUG.debug_end(l_log_head);

6054: End If;
6055: /* <> */
6056:
6057: IF g_debug_stmt THEN
6058: PO_DEBUG.debug_end(l_log_head);
6059: END IF;
6060:
6061:
6062: EXCEPTION

Line 6151: PO_DEBUG.debug_begin(l_log_head);

6147:
6148: BEGIN
6149:
6150: IF g_debug_stmt THEN
6151: PO_DEBUG.debug_begin(l_log_head);
6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

Line 6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

6148: BEGIN
6149:
6150: IF g_debug_stmt THEN
6151: PO_DEBUG.debug_begin(l_log_head);
6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

Line 6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

6149:
6150: IF g_debug_stmt THEN
6151: PO_DEBUG.debug_begin(l_log_head);
6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

Line 6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

6150: IF g_debug_stmt THEN
6151: PO_DEBUG.debug_begin(l_log_head);
6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

Line 6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

6151: PO_DEBUG.debug_begin(l_log_head);
6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
6159: END IF;

Line 6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

6152: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
6159: END IF;
6160:

Line 6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

6153: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
6159: END IF;
6160:
6161: -- First, calculate the 'open' amount, which is basically the

Line 6158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

6154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
6155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
6159: END IF;
6160:
6161: -- First, calculate the 'open' amount, which is basically the
6162: -- transaction amount without any tax or rounding.

Line 6189: PO_DEBUG.debug_stmt(l_log_head,l_progress,'CLM Installed. Calling UPDATE_CLM_INTIAL_AMOUNTS.');

6185: /* <> */
6186: l_progress := '015';
6187: If (po_partial_funding_pkg.is_CLM_Enabled = 'Y') Then
6188: IF g_debug_stmt THEN
6189: PO_DEBUG.debug_stmt(l_log_head,l_progress,'CLM Installed. Calling UPDATE_CLM_INTIAL_AMOUNTS.');
6190: END IF;
6191: UPDATE_CLM_INTIAL_AMOUNTS();
6192: l_progress := '016';
6193: IF g_debug_stmt THEN

Line 6194: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated Initial Amounts for CLM Documents.');

6190: END IF;
6191: UPDATE_CLM_INTIAL_AMOUNTS();
6192: l_progress := '016';
6193: IF g_debug_stmt THEN
6194: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated Initial Amounts for CLM Documents.');
6195: END IF;
6196: End If;
6197: /* <> */
6198:

Line 6286: PO_DEBUG.debug_stmt(l_log_head,l_progress,

6282:
6283:
6284:
6285: IF g_debug_stmt THEN
6286: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6287: 'Updated amt_open for all lines'
6288: );
6289: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6290: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'amt_open',

Line 6289: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows

6285: IF g_debug_stmt THEN
6286: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6287: 'Updated amt_open for all lines'
6288: );
6289: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6290: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'amt_open',
6291: 'qty_ordered','qty_closed','quantity_billed', 'quantity_cancelled'
6292: ,'distribution_type','sequence_num','origin_sequence_num')
6293: );

Line 6333: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl

6329: FROM po_session_gt
6330: WHERE index_char1= g_column_PO_ENCUMBERED_AMOUNT;
6331:
6332: IF g_debug_stmt THEN
6333: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
6334: FROM PO_SESSION_GT WHERE index_char1 = g_column_PO_ENCUMBERED_AMOUNT;
6335:
6336: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
6337: PO_DEBUG.g_rowid_tbl,

Line 6336: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',

6332: IF g_debug_stmt THEN
6333: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
6334: FROM PO_SESSION_GT WHERE index_char1 = g_column_PO_ENCUMBERED_AMOUNT;
6335:
6336: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
6337: PO_DEBUG.g_rowid_tbl,
6338: po_tbl_varchar30('index_char1','num1','num2')
6339: );
6340: END IF;

Line 6337: PO_DEBUG.g_rowid_tbl,

6333: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
6334: FROM PO_SESSION_GT WHERE index_char1 = g_column_PO_ENCUMBERED_AMOUNT;
6335:
6336: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
6337: PO_DEBUG.g_rowid_tbl,
6338: po_tbl_varchar30('index_char1','num1','num2')
6339: );
6340: END IF;
6341:

Line 6376: PO_DEBUG.debug_stmt(l_log_head,l_progress,

6372: -- <13503748: Edit without unreserve ER END>
6373:
6374: l_progress := '090';
6375: IF g_debug_stmt THEN
6376: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6377: 'Updated pre_round_amt for all lines'
6378: );
6379: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6380: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'pre_round_amt')

Line 6379: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows

6375: IF g_debug_stmt THEN
6376: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6377: 'Updated pre_round_amt for all lines'
6378: );
6379: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6380: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'pre_round_amt')
6381: );
6382: END IF;
6383:

Line 6406: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling UPDATE_CLM_FINAL_AMOUNTS');

6402: If po_partial_funding_pkg.is_CLM_Enabled = 'Y' Then
6403: -- Bug#13503748 change l_progress := '065' to 95;
6404: l_progress := '095';
6405: IF g_debug_stmt THEN
6406: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Calling UPDATE_CLM_FINAL_AMOUNTS');
6407: END IF;
6408:
6409: UPDATE_CLM_FINAL_AMOUNTS(
6410: p_action => p_action

Line 6422: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Successfully Updated Final Amounts for CLM documents.');

6418: );
6419: -- Bug#13503748 change l_progress := '066' to 96;
6420: l_progress := '096';
6421: IF g_debug_stmt THEN
6422: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Successfully Updated Final Amounts for CLM documents.');
6423: END IF;
6424: End If;
6425: /* <> */
6426:

Line 6466: PO_DEBUG.debug_end(l_log_head);

6462:
6463: l_progress := '110';
6464:
6465: IF g_debug_stmt THEN
6466: PO_DEBUG.debug_end(l_log_head);
6467: END IF;
6468:
6469:
6470: EXCEPTION

Line 6559: PO_DEBUG.debug_begin(l_log_head);

6555:
6556: BEGIN
6557:
6558: IF g_debug_stmt THEN
6559: PO_DEBUG.debug_begin(l_log_head);
6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

Line 6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

6556: BEGIN
6557:
6558: IF g_debug_stmt THEN
6559: PO_DEBUG.debug_begin(l_log_head);
6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);

Line 6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

6557:
6558: IF g_debug_stmt THEN
6559: PO_DEBUG.debug_begin(l_log_head);
6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6565: END IF;

Line 6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

6558: IF g_debug_stmt THEN
6559: PO_DEBUG.debug_begin(l_log_head);
6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6565: END IF;
6566:

Line 6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

6559: PO_DEBUG.debug_begin(l_log_head);
6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6565: END IF;
6566:
6567: SELECT

Line 6564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);

6560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6561: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6563: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6565: END IF;
6566:
6567: SELECT
6568: DISTS.sequence_num

Line 6715: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Inserting the converted encumbered amount into po session gt');

6711: IF p_column_to_use IN (g_column_PO_ENCUMBERED_AMOUNT) THEN
6712:
6713: l_progress := '040';
6714: IF g_debug_stmt THEN
6715: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Inserting the converted encumbered amount into po session gt');
6716: END IF;
6717:
6718: FORALL i IN 1..l_sequence_num_tbl.COUNT
6719: INSERT INTO po_session_gt(index_char1,num1,num2)

Line 7065: PO_DEBUG.debug_begin(l_log_head);

7061:
7062: BEGIN
7063:
7064: IF g_debug_stmt THEN
7065: PO_DEBUG.debug_begin(l_log_head);
7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);

Line 7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);

7062: BEGIN
7063:
7064: IF g_debug_stmt THEN
7065: PO_DEBUG.debug_begin(l_log_head);
7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);

Line 7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);

7063:
7064: IF g_debug_stmt THEN
7065: PO_DEBUG.debug_begin(l_log_head);
7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);

Line 7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);

7064: IF g_debug_stmt THEN
7065: PO_DEBUG.debug_begin(l_log_head);
7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);

Line 7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);

7065: PO_DEBUG.debug_begin(l_log_head);
7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);

Line 7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);

7066: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
7074: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);

Line 7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);

7067: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
7074: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7075: END IF;

Line 7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);

7068: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
7074: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7075: END IF;
7076:

Line 7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);

7069: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
7074: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7075: END IF;
7076:
7077: l_progress := '010';

Line 7074: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);

7070: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
7071: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
7072: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
7073: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
7074: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7075: END IF;
7076:
7077: l_progress := '010';
7078:

Line 7098: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available',l_amount_available);

7094: -- zero out those distributions that exceed the maximum:
7095: l_progress := '020';
7096:
7097: IF g_debug_stmt THEN
7098: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available',l_amount_available);
7099: END IF;
7100:
7101: IF ABS(p_running_total) > l_amount_available THEN
7102: -- The sum of the PA amount entries is too high.

Line 7145: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);

7141:
7142: l_progress := '900';
7143:
7144: IF g_debug_stmt THEN
7145: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7146: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);
7147: PO_DEBUG.debug_end(l_log_head);
7148: END IF;
7149:

Line 7146: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);

7142: l_progress := '900';
7143:
7144: IF g_debug_stmt THEN
7145: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7146: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);
7147: PO_DEBUG.debug_end(l_log_head);
7148: END IF;
7149:
7150: EXCEPTION

Line 7147: PO_DEBUG.debug_end(l_log_head);

7143:
7144: IF g_debug_stmt THEN
7145: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
7146: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);
7147: PO_DEBUG.debug_end(l_log_head);
7148: END IF;
7149:
7150: EXCEPTION
7151:

Line 7210: PO_DEBUG.debug_begin(l_log_head);

7206:
7207: l_progress := '000';
7208:
7209: IF g_debug_stmt THEN
7210: PO_DEBUG.debug_begin(l_log_head);
7211: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7212: END IF;
7213:
7214:

Line 7211: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);

7207: l_progress := '000';
7208:
7209: IF g_debug_stmt THEN
7210: PO_DEBUG.debug_begin(l_log_head);
7211: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7212: END IF;
7213:
7214:
7215: -- Algorithm:

Line 7238: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');

7234: AND BACKING_REQ.distribution_type = g_dist_type_REQUISITION
7235: AND BACKING_REQ.prevent_encumbrance_flag = 'N'
7236: ;
7237: IF g_debug_stmt THEN
7238: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
7239: END IF;
7240: l_progress := '010';
7241:
7242: -- Next, extract the l_max_total_tbl for each distinct Req distribution: it

Line 7267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);

7263: GROUP BY distribution_id
7264: ;
7265:
7266: IF g_debug_stmt THEN
7267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);
7268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);
7269: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);
7270: END IF;
7271:

Line 7268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);

7264: ;
7265:
7266: IF g_debug_stmt THEN
7267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);
7268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);
7269: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);
7270: END IF;
7271:
7272: l_progress := '020';

Line 7269: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);

7265:
7266: IF g_debug_stmt THEN
7267: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);
7268: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);
7269: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);
7270: END IF;
7271:
7272: l_progress := '020';
7273:

Line 7304: PO_DEBUG.debug_end(l_log_head);

7300:
7301:
7302: l_progress := '030';
7303: IF g_debug_stmt THEN
7304: PO_DEBUG.debug_end(l_log_head);
7305: END IF;
7306:
7307: EXCEPTION
7308: WHEN FND_API.G_EXC_ERROR THEN

Line 7391: PO_DEBUG.debug_begin(l_log_head);

7387:
7388: BEGIN
7389:
7390: IF g_debug_stmt THEN
7391: PO_DEBUG.debug_begin(l_log_head);
7392: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
7393: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7394: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
7395: END IF;

Line 7392: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);

7388: BEGIN
7389:
7390: IF g_debug_stmt THEN
7391: PO_DEBUG.debug_begin(l_log_head);
7392: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
7393: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7394: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
7395: END IF;
7396:

Line 7393: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);

7389:
7390: IF g_debug_stmt THEN
7391: PO_DEBUG.debug_begin(l_log_head);
7392: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
7393: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7394: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
7395: END IF;
7396:
7397: l_progress := '010';

Line 7394: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);

7390: IF g_debug_stmt THEN
7391: PO_DEBUG.debug_begin(l_log_head);
7392: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
7393: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7394: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
7395: END IF;
7396:
7397: l_progress := '010';
7398:

Line 7419: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);

7415: l_start_row := l_gtt_amount_tbl.FIRST;
7416: l_end_row := l_gtt_amount_tbl.LAST;
7417:
7418: IF g_debug_stmt THEN
7419: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);
7420: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);
7421: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);
7422: END IF;
7423:

Line 7420: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);

7416: l_end_row := l_gtt_amount_tbl.LAST;
7417:
7418: IF g_debug_stmt THEN
7419: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);
7420: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);
7421: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);
7422: END IF;
7423:
7424: IF (p_max_total_amount > p_current_total_amount) THEN

Line 7421: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);

7417:
7418: IF g_debug_stmt THEN
7419: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);
7420: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);
7421: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);
7422: END IF;
7423:
7424: IF (p_max_total_amount > p_current_total_amount) THEN
7425: -- If p_max_total_amount is greater than p_current_total_amount, then set

Line 7438: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available ',l_amount_available );

7434: l_progress := '030';
7435:
7436: l_amount_available := p_max_total_amount;
7437: IF g_debug_stmt THEN
7438: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available ',l_amount_available );
7439: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7440: END IF;
7441:
7442: FOR i in l_start_row..l_end_row LOOP

Line 7439: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);

7435:
7436: l_amount_available := p_max_total_amount;
7437: IF g_debug_stmt THEN
7438: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available ',l_amount_available );
7439: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7440: END IF;
7441:
7442: FOR i in l_start_row..l_end_row LOOP
7443:

Line 7447: PO_DEBUG.debug_var(l_log_head,l_progress,'l_current_amount ',l_current_amount );

7443:
7444: l_current_amount := l_gtt_amount_tbl(i);
7445:
7446: IF g_debug_stmt THEN
7447: PO_DEBUG.debug_var(l_log_head,l_progress,'l_current_amount ',l_current_amount );
7448: END IF;
7449: --
7450: --Modified the condition (<= l_amount_available) as
7451: --(< l_amount_available). This is to ensure that if the remaining

Line 7477: PO_DEBUG.debug_end(l_log_head);

7473:
7474: l_progress := '050';
7475:
7476: IF g_debug_stmt THEN
7477: PO_DEBUG.debug_end(l_log_head);
7478: END IF;
7479:
7480: EXCEPTION
7481: WHEN OTHERS THEN

Line 7551: PO_DEBUG.debug_begin(l_log_head);

7547:
7548: BEGIN
7549:
7550: IF g_debug_stmt THEN
7551: PO_DEBUG.debug_begin(l_log_head);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);

Line 7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);

7548: BEGIN
7549:
7550: IF g_debug_stmt THEN
7551: PO_DEBUG.debug_begin(l_log_head);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7556: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);

Line 7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);

7549:
7550: IF g_debug_stmt THEN
7551: PO_DEBUG.debug_begin(l_log_head);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7556: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7557: END IF;

Line 7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);

7550: IF g_debug_stmt THEN
7551: PO_DEBUG.debug_begin(l_log_head);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7556: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7557: END IF;
7558:

Line 7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);

7551: PO_DEBUG.debug_begin(l_log_head);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7556: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7557: END IF;
7558:
7559: l_progress := '010';

Line 7556: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);

7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7553: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7554: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7555: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7556: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7557: END IF;
7558:
7559: l_progress := '010';
7560:

Line 7830: PO_DEBUG.debug_stmt(l_log_head,l_progress,'modifying packet for CBC');

7826:
7827: l_progress := '210';
7828:
7829: IF g_debug_stmt THEN
7830: PO_DEBUG.debug_stmt(l_log_head,l_progress,'modifying packet for CBC');
7831: END IF;
7832:
7833: IF p_action = g_action_RESERVE THEN
7834: l_cbc_action := g_action_CBC_RESERVE;

Line 7851: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_action',l_cbc_action);

7847:
7848: l_progress := '230';
7849:
7850: IF g_debug_stmt THEN
7851: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_action',l_cbc_action);
7852: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_line_description',l_cbc_line_description);
7853: END IF;
7854:
7855: UPDATE PO_ENCUMBRANCE_GT ALL_DISTS

Line 7852: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_line_description',l_cbc_line_description);

7848: l_progress := '230';
7849:
7850: IF g_debug_stmt THEN
7851: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_action',l_cbc_action);
7852: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_line_description',l_cbc_line_description);
7853: END IF;
7854:
7855: UPDATE PO_ENCUMBRANCE_GT ALL_DISTS
7856: SET

Line 7871: PO_DEBUG.debug_end(l_log_head);

7867:
7868: l_progress := '900';
7869:
7870: IF g_debug_stmt THEN
7871: PO_DEBUG.debug_end(l_log_head);
7872: END IF;
7873:
7874: EXCEPTION
7875: WHEN FND_API.G_EXC_ERROR THEN

Line 7947: PO_DEBUG.debug_begin(l_log_head);

7943:
7944: SAVEPOINT CHECK_ENC_ACTION_POSSIBLE;
7945:
7946: IF g_debug_stmt THEN
7947: PO_DEBUG.debug_begin(l_log_head);
7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);

Line 7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);

7944: SAVEPOINT CHECK_ENC_ACTION_POSSIBLE;
7945:
7946: IF g_debug_stmt THEN
7947: PO_DEBUG.debug_begin(l_log_head);
7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7952: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);

Line 7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);

7945:
7946: IF g_debug_stmt THEN
7947: PO_DEBUG.debug_begin(l_log_head);
7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7952: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7953: END IF;

Line 7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);

7946: IF g_debug_stmt THEN
7947: PO_DEBUG.debug_begin(l_log_head);
7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7952: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7953: END IF;
7954:

Line 7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);

7947: PO_DEBUG.debug_begin(l_log_head);
7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7952: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7953: END IF;
7954:
7955: l_progress := '010';

Line 7952: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);

7948: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7949: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7950: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7951: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7952: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7953: END IF;
7954:
7955: l_progress := '010';
7956:

Line 7983: PO_DEBUG.debug_var(l_log_head,l_progress,'x_action_possible_flag',x_action_possible_flag);

7979:
7980: l_progress := '900';
7981:
7982: IF g_debug_stmt THEN
7983: PO_DEBUG.debug_var(l_log_head,l_progress,'x_action_possible_flag',x_action_possible_flag);
7984: PO_DEBUG.debug_end(l_log_head);
7985: END IF;
7986:
7987: EXCEPTION

Line 7984: PO_DEBUG.debug_end(l_log_head);

7980: l_progress := '900';
7981:
7982: IF g_debug_stmt THEN
7983: PO_DEBUG.debug_var(l_log_head,l_progress,'x_action_possible_flag',x_action_possible_flag);
7984: PO_DEBUG.debug_end(l_log_head);
7985: END IF;
7986:
7987: EXCEPTION
7988:

Line 7992: PO_DEBUG.debug_exc(l_log_head,l_progress);

7988:
7989: WHEN OTHERS THEN
7990:
7991: IF g_debug_unexp THEN
7992: PO_DEBUG.debug_exc(l_log_head,l_progress);
7993: END IF;
7994:
7995: RAISE;
7996:

Line 8029: PO_DEBUG.debug_begin(l_log_head);

8025:
8026: BEGIN
8027:
8028: IF g_debug_stmt THEN
8029: PO_DEBUG.debug_begin(l_log_head);
8030: END IF;
8031:
8032: l_progress := '010';
8033:

Line 8039: PO_DEBUG.debug_end(l_log_head);

8035:
8036: l_progress := '900';
8037:
8038: IF g_debug_stmt THEN
8039: PO_DEBUG.debug_end(l_log_head);
8040: END IF;
8041:
8042: EXCEPTION
8043: WHEN OTHERS THEN

Line 8215: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Before starting currency conversions on entered_amount_fields in po_encumbrance_gt');

8211: l_progress:= '060';
8212: --
8213: -- Get functional currency setup
8214: IF g_debug_stmt THEN
8215: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Before starting currency conversions on entered_amount_fields in po_encumbrance_gt');
8216: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
8217: END IF;
8218:
8219: SELECT

Line 8216: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');

8212: --
8213: -- Get functional currency setup
8214: IF g_debug_stmt THEN
8215: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Before starting currency conversions on entered_amount_fields in po_encumbrance_gt');
8216: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
8217: END IF;
8218:
8219: SELECT
8220: FND_CUR.minimum_accountable_unit

Line 8229: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');

8225: FROM FND_CURRENCIES FND_CUR
8226: WHERE FND_CUR.currency_code = p_currency_code_func
8227: ;
8228: IF g_debug_stmt THEN
8229: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');
8230: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);
8231: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);
8232: END IF;
8233: l_progress:= '070';

Line 8230: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);

8226: WHERE FND_CUR.currency_code = p_currency_code_func
8227: ;
8228: IF g_debug_stmt THEN
8229: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');
8230: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);
8231: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);
8232: END IF;
8233: l_progress:= '070';
8234: --For Agreement Distributions we need to convert back from the

Line 8231: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);

8227: ;
8228: IF g_debug_stmt THEN
8229: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');
8230: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);
8231: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);
8232: END IF;
8233: l_progress:= '070';
8234: --For Agreement Distributions we need to convert back from the
8235: --Functional currency to the foreign currency and then apply rounding.

Line 8275: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');

8271: ORDER BY DISTS.sequence_num
8272: ;
8273:
8274: IF g_debug_stmt THEN
8275: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);

Line 8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);

8272: ;
8273:
8274: IF g_debug_stmt THEN
8275: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);

Line 8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);

8273:
8274: IF g_debug_stmt THEN
8275: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);

Line 8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);

8274: IF g_debug_stmt THEN
8275: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);

Line 8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);

8275: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);

Line 8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);

8276: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
8284: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);

Line 8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);

8277: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
8284: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
8285: END IF;

Line 8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);

8278: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
8284: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
8285: END IF;
8286: l_progress:= '080';

Line 8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);

8279: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
8284: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
8285: END IF;
8286: l_progress:= '080';
8287:

Line 8284: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);

8280: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
8281: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
8282: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
8283: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
8284: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
8285: END IF;
8286: l_progress:= '080';
8287:
8288: PO_CORE_S2.round_and_convert_currency(

Line 8303: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing PO_CORE_S2.round_and_convert_currency on distributions');

8299: );
8300:
8301: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8302:
8303: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing PO_CORE_S2.round_and_convert_currency on distributions');
8304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
8305: l_progress := '090';
8306: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
8307: END IF;

Line 8304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);

8300:
8301: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8302:
8303: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing PO_CORE_S2.round_and_convert_currency on distributions');
8304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
8305: l_progress := '090';
8306: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
8307: END IF;
8308:

Line 8310: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_result_tbl',l_amount_result_tbl);

8306: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
8307: END IF;
8308:
8309: IF g_debug_stmt THEN
8310: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_result_tbl',l_amount_result_tbl);
8311: END IF;
8312:
8313: l_progress:='100';
8314: FORALL i IN 1 .. l_sequence_num_tbl.COUNT

Line 8321: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');

8317: WHERE DISTS.prevent_encumbrance_flag = 'N'
8318: AND DISTS.sequence_num = l_sequence_num_tbl(i)
8319: ;
8320: IF g_debug_stmt THEN
8321: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');
8322: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);
8323: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
8324: END IF;
8325: --

Line 8322: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);

8318: AND DISTS.sequence_num = l_sequence_num_tbl(i)
8319: ;
8320: IF g_debug_stmt THEN
8321: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');
8322: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);
8323: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
8324: END IF;
8325: --
8326: /* <> */

Line 8323: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');

8319: ;
8320: IF g_debug_stmt THEN
8321: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');
8322: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);
8323: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
8324: END IF;
8325: --
8326: /* <> */
8327: -- Filter the CLM Distributions with No change in their Funded Value for Reserve Action

Line 8334: PO_DEBUG.debug_stmt(l_log_head,l_progress,'CLM Installed and Reserve Action. Setting Send to GL Flag as N for Zero Amounts.');

8330: This need not be done any longer as FV now handles zero dollar values.Commenting out the update*/
8331: /*If (po_partial_funding_pkg.is_clm_enabled = 'Y' and p_action = g_action_RESERVE) Then
8332: l_progress := '105';
8333: IF g_debug_stmt THEN
8334: PO_DEBUG.debug_stmt(l_log_head,l_progress,'CLM Installed and Reserve Action. Setting Send to GL Flag as N for Zero Amounts.');
8335: End If;
8336:
8337: UPDATE PO_ENCUMBRANCE_GT CLM_DISTS
8338: SET CLM_DISTS.SEND_TO_GL_FLAG = 'N'

Line 8345: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Successfully Updated the Send To Gl Flag for the Candidate CLM Distributions with Zero Amounts.');

8341: AND CLM_DISTS.ACCOUNTED_AMOUNT = 0);
8342:
8343: l_progress := '108';
8344: IF g_debug_stmt THEN
8345: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Successfully Updated the Send To Gl Flag for the Candidate CLM Distributions with Zero Amounts.');
8346: End If;
8347:
8348: End If;*/
8349: /*Bug 15871378 end */

Line 8386: PO_DEBUG.debug_begin(l_log_head);

8382: l_log_head CONSTANT VARCHAR2(100) := g_log_head||l_proc_name;
8383: l_progress VARCHAR2(3) := '000';
8384: BEGIN
8385: IF g_debug_stmt THEN
8386: PO_DEBUG.debug_begin(l_log_head);
8387: END IF;
8388:
8389:
8390: l_progress := '010';

Line 8400: PO_DEBUG.debug_stmt(l_log_head, l_progress, 'Updated Amt Ordered for CLM Distributions.');

8396: and CLM_DISTS.prevent_encumbrance_flag = 'N';
8397:
8398: l_progress := '020';
8399: IF g_debug_stmt THEN
8400: PO_DEBUG.debug_stmt(l_log_head, l_progress, 'Updated Amt Ordered for CLM Distributions.');
8401: END IF;
8402:
8403: l_progress := '900';
8404: IF g_debug_stmt THEN

Line 8405: PO_DEBUG.debug_end(l_log_head);

8401: END IF;
8402:
8403: l_progress := '900';
8404: IF g_debug_stmt THEN
8405: PO_DEBUG.debug_end(l_log_head);
8406: END IF;
8407: EXCEPTION
8408: WHEN OTHERS THEN
8409: po_message_s.sql_error(g_pkg_name,l_proc_name,l_progress,SQLCODE,SQLERRM);

Line 8446: PO_DEBUG.debug_begin(l_log_head);

8442: l_amount_result_tbl PO_TBL_NUMBER;
8443: l_origin_sequence_num_tbl PO_TBL_NUMBER;
8444: BEGIN
8445: IF g_debug_stmt THEN
8446: PO_DEBUG.debug_begin(l_log_head);
8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

Line 8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);

8443: l_origin_sequence_num_tbl PO_TBL_NUMBER;
8444: BEGIN
8445: IF g_debug_stmt THEN
8446: PO_DEBUG.debug_begin(l_log_head);
8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

Line 8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);

8444: BEGIN
8445: IF g_debug_stmt THEN
8446: PO_DEBUG.debug_begin(l_log_head);
8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

Line 8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

8445: IF g_debug_stmt THEN
8446: PO_DEBUG.debug_begin(l_log_head);
8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

Line 8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

8446: PO_DEBUG.debug_begin(l_log_head);
8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
8454: PO_DEBUG.debug_var(l_log_head,l_progress,'p_is_Complex_Work_PO', p_is_complex_work_po);

Line 8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

8447: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
8454: PO_DEBUG.debug_var(l_log_head,l_progress,'p_is_Complex_Work_PO', p_is_complex_work_po);
8455: END IF;

Line 8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

8448: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
8454: PO_DEBUG.debug_var(l_log_head,l_progress,'p_is_Complex_Work_PO', p_is_complex_work_po);
8455: END IF;
8456: l_progress := '010';

Line 8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

8449: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
8454: PO_DEBUG.debug_var(l_log_head,l_progress,'p_is_Complex_Work_PO', p_is_complex_work_po);
8455: END IF;
8456: l_progress := '010';
8457: IF p_action IN (g_action_RESERVE)

Line 8454: PO_DEBUG.debug_var(l_log_head,l_progress,'p_is_Complex_Work_PO', p_is_complex_work_po);

8450: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
8451: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
8452: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
8453: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
8454: PO_DEBUG.debug_var(l_log_head,l_progress,'p_is_Complex_Work_PO', p_is_complex_work_po);
8455: END IF;
8456: l_progress := '010';
8457: IF p_action IN (g_action_RESERVE)
8458: THEN

Line 8467: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated Final Amount for Main Document Distributions');

8463: AND MAIN_DISTS.CLM_DOC_FLAG = 'Y'
8464: AND MAIN_DISTS.PREVENT_ENCUMBRANCE_FLAG = 'N';
8465: l_progress := '020';
8466: IF g_debug_stmt THEN
8467: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated Final Amount for Main Document Distributions');
8468: End If;
8469:
8470: IF (p_doc_type = g_doc_type_PO
8471: AND p_doc_subtype = g_doc_subtype_STANDARD) THEN

Line 8492: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated Final Amount for Backing Requisition Distributions');

8488: AND BACK_REQ.PREVENT_ENCUMBRANCE_FLAG = 'N';
8489:
8490: l_progress := '030';
8491: IF g_debug_stmt THEN
8492: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated Final Amount for Backing Requisition Distributions');
8493: END IF;
8494: END IF;/* Action is PO Reserve*/
8495: /* Line Type Changes: Liquidate iProcurement Requisition -- Start */
8496: ELSIF p_action = g_action_UNRESERVE AND p_doc_type = g_doc_type_REQUISITION THEN

Line 8500: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Derive the Requisition amount that need to be liquidated');

8496: ELSIF p_action = g_action_UNRESERVE AND p_doc_type = g_doc_type_REQUISITION THEN
8497:
8498: l_progress := '035';
8499: IF g_debug_stmt THEN
8500: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Derive the Requisition amount that need to be liquidated');
8501: End If;
8502:
8503: BEGIN
8504: UPDATE PO_ENCUMBRANCE_GT MAIN_DISTS

Line 8548: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Populated the tables required for Rounding');

8544: ORDER BY CLM_DISTS.sequence_num;
8545:
8546: l_progress := '040';
8547: IF g_debug_stmt THEN
8548: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Populated the tables required for Rounding');
8549: End If;
8550:
8551: -- Call the rounding routine for Final Amt
8552: PO_CORE_S2.round_and_convert_currency( x_return_status => l_return_status ,

Line 8569: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Rounding of CLM Document Amounts Successful');

8565: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
8566: END IF;
8567: l_progress := '050';
8568: IF g_debug_stmt THEN
8569: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Rounding of CLM Document Amounts Successful');
8570: End If;
8571:
8572: FORALL i IN 1 .. l_sequence_num_tbl.COUNT
8573: UPDATE PO_ENCUMBRANCE_GT CLM_DISTS

Line 8580: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated the Rounded Values back for CLM Distributions');

8576: AND CLM_DISTS.sequence_num = l_sequence_num_tbl(i) ;
8577:
8578: l_progress := '060';
8579: IF g_debug_stmt THEN
8580: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated the Rounded Values back for CLM Distributions');
8581: End If;
8582:
8583: l_progress := '070';
8584: IF g_debug_stmt THEN

Line 8585: PO_DEBUG.debug_end(l_log_head);

8581: End If;
8582:
8583: l_progress := '070';
8584: IF g_debug_stmt THEN
8585: PO_DEBUG.debug_end(l_log_head);
8586: End if;
8587: EXCEPTION
8588: WHEN FND_API.G_EXC_ERROR THEN
8589: RAISE;