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 596: PO_DEBUG.debug_begin(l_log_head);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 833: PO_DEBUG.debug_end(l_log_head);

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

Line 883: PO_DEBUG.debug_begin(l_log_head);

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

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

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

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

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

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

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

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

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

Line 930: PO_DEBUG.debug_end(l_log_head);

926:
927: l_progress := '070';
928:
929: IF g_debug_stmt THEN
930: PO_DEBUG.debug_end(l_log_head);
931: END IF;
932:
933: EXCEPTION
934:

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

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

Line 1075: PO_DEBUG.debug_begin(l_log_head);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 1290: PO_DEBUG.debug_end(l_log_head);

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

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

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

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

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

Line 1362: PO_DEBUG.debug_begin(l_log_head);

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

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

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

Line 1479: PO_DEBUG.debug_end(l_log_head);

1475:
1476: l_progress := '900';
1477:
1478: IF g_debug_stmt THEN
1479: PO_DEBUG.debug_end(l_log_head);
1480: END IF;
1481:
1482: EXCEPTION
1483:

Line 1557: PO_DEBUG.debug_begin(l_log_head);

1553:
1554: BEGIN
1555:
1556: IF g_debug_stmt THEN
1557: PO_DEBUG.debug_begin(l_log_head);
1558: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1559: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1561: ,p_origin_seq_num_tbl);

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

1554: BEGIN
1555:
1556: IF g_debug_stmt THEN
1557: PO_DEBUG.debug_begin(l_log_head);
1558: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1559: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1561: ,p_origin_seq_num_tbl);
1562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'

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

1555:
1556: IF g_debug_stmt THEN
1557: PO_DEBUG.debug_begin(l_log_head);
1558: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1559: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1561: ,p_origin_seq_num_tbl);
1562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1563: ,p_backing_dist_id_tbl);

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

1556: IF g_debug_stmt THEN
1557: PO_DEBUG.debug_begin(l_log_head);
1558: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1559: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1561: ,p_origin_seq_num_tbl);
1562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1563: ,p_backing_dist_id_tbl);
1564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'

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

1558: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1559: PO_DEBUG.debug_var(l_log_head,l_progress,'p_main_or_backing',p_main_or_backing);
1560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1561: ,p_origin_seq_num_tbl);
1562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1563: ,p_backing_dist_id_tbl);
1564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'
1565: ,p_ap_budget_account_id);
1566: END IF;

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

1560: PO_DEBUG.debug_var(l_log_head,l_progress,'p_origin_seq_num_tbl'
1561: ,p_origin_seq_num_tbl);
1562: PO_DEBUG.debug_var(l_log_head,l_progress,'p_backing_dist_id_tbl'
1563: ,p_backing_dist_id_tbl);
1564: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_budget_account_id'
1565: ,p_ap_budget_account_id);
1566: END IF;
1567:
1568: l_progress := '010';

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

1662: THEN
1663:
1664: l_progress := '200';
1665: IF g_debug_stmt THEN
1666: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating GA dist_id');
1667: END IF;
1668:
1669: UPDATE PO_ENCUMBRANCE_GT PO_DIST
1670: SET PO_DIST.agreement_dist_id =

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

1680:
1681: ELSE
1682: l_progress := '250';
1683: IF g_debug_stmt THEN
1684: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no GAs');
1685: END IF;
1686: END IF;
1687:
1688: l_progress := '290';

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

1695: THEN
1696:
1697: l_progress := '300';
1698: IF g_debug_stmt THEN
1699: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating BPA dist ids');
1700: END IF;
1701:
1702: UPDATE PO_ENCUMBRANCE_GT REL_DIST
1703: SET REL_DIST.agreement_dist_id =

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

1715:
1716: ELSE
1717: l_progress := '350';
1718: IF g_debug_stmt THEN
1719: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no BPAs');
1720: END IF;
1721: END IF;
1722:
1723: l_progress := '400';

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

1727: IF (p_main_or_backing = g_BACKING) THEN
1728:
1729: l_progress := '410';
1730: IF g_debug_stmt THEN
1731: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating backing link');
1732: END IF;
1733:
1734: FORALL i IN 1 .. p_origin_seq_num_tbl.COUNT
1735: UPDATE PO_ENCUMBRANCE_GT BACKING

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

1746: IF p_action NOT IN (g_action_INVOICE_CANCEL, g_action_CR_MEMO_CANCEL) THEN
1747:
1748: l_progress := '420';
1749: IF g_debug_stmt THEN
1750: PO_DEBUG.debug_stmt(l_log_head,l_progress,'updating send to GL flag');
1751: END IF;
1752:
1753: --bug 3568512: do not send Unreserved backing BPA/PPO lines to GL; we
1754: --only keep them in the GTT to maintain the unencumbered_amount column

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

1768:
1769: ELSE
1770: l_progress := '450';
1771: IF g_debug_stmt THEN
1772: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not backing');
1773: END IF;
1774: END IF;
1775:
1776: l_progress := '500';

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

1789:
1790: l_progress := '600';
1791:
1792: IF g_debug_stmt THEN
1793: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
1794: PO_DEBUG.debug_end(l_log_head);
1795: END IF;
1796:
1797: EXCEPTION

Line 1794: PO_DEBUG.debug_end(l_log_head);

1790: l_progress := '600';
1791:
1792: IF g_debug_stmt THEN
1793: PO_DEBUG.debug_var(l_log_head,l_progress,'x_count',x_count);
1794: PO_DEBUG.debug_end(l_log_head);
1795: END IF;
1796:
1797: EXCEPTION
1798:

Line 1851: PO_DEBUG.debug_begin(l_log_head);

1847:
1848: BEGIN
1849:
1850: IF g_debug_stmt THEN
1851: PO_DEBUG.debug_begin(l_log_head);
1852: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1853: END IF;
1854:
1855: l_progress := '010';

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

1848: BEGIN
1849:
1850: IF g_debug_stmt THEN
1851: PO_DEBUG.debug_begin(l_log_head);
1852: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
1853: END IF;
1854:
1855: l_progress := '010';
1856:

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

1859: IF (p_distribution_type = g_dist_type_REQUISITION) THEN
1860:
1861: l_progress := '020';
1862: IF g_debug_stmt THEN
1863: PO_DEBUG.debug_stmt(l_log_head,l_progress,'requisitions');
1864: END IF;
1865:
1866: SELECT DISTS.req_distribution_id
1867: BULK COLLECT INTO l_distribution_id_tbl

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

1876: ELSIF (p_distribution_type = g_dist_type_PLANNED) THEN
1877:
1878: l_progress := '040';
1879: IF g_debug_stmt THEN
1880: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PPOs');
1881: END IF;
1882:
1883: SELECT DISTS.source_distribution_id
1884: BULK COLLECT INTO l_distribution_id_tbl

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

1893: ELSIF (p_distribution_type = g_dist_type_AGREEMENT) THEN
1894:
1895: l_progress := '060';
1896: IF g_debug_stmt THEN
1897: PO_DEBUG.debug_stmt(l_log_head,l_progress,'agreements');
1898: END IF;
1899:
1900: SELECT DISTS.agreement_dist_id
1901: BULK COLLECT INTO l_distribution_id_tbl

Line 1936: PO_DEBUG.debug_end(l_log_head);

1932:
1933: l_progress := '120';
1934:
1935: IF g_debug_stmt THEN
1936: PO_DEBUG.debug_end(l_log_head);
1937: END IF;
1938:
1939: EXCEPTION
1940:

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

1939: EXCEPTION
1940:
1941: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
1942: IF g_debug_unexp THEN
1943: PO_DEBUG.debug_exc(l_log_head,l_progress);
1944: END IF;
1945: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
1946: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
1947: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 2013: PO_DEBUG.debug_begin(l_log_head);

2009:
2010: BEGIN
2011:
2012: IF g_debug_stmt THEN
2013: PO_DEBUG.debug_begin(l_log_head);
2014: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2015: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2016: END IF;
2017:

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

2010: BEGIN
2011:
2012: IF g_debug_stmt THEN
2013: PO_DEBUG.debug_begin(l_log_head);
2014: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2015: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2016: END IF;
2017:
2018: l_progress := '010';

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

2011:
2012: IF g_debug_stmt THEN
2013: PO_DEBUG.debug_begin(l_log_head);
2014: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2015: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2016: END IF;
2017:
2018: l_progress := '010';
2019:

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

2020: IF (p_distribution_type = g_dist_type_REQUISITION) THEN
2021:
2022: l_progress := '020';
2023: IF g_debug_stmt THEN
2024: PO_DEBUG.debug_stmt(l_log_head,l_progress,'requisitions');
2025: END IF;
2026:
2027: ----------------------------------------------------------------
2028: -- PO_SESSION_GT column mapping

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

2077: IF (p_action = g_action_CANCEL) THEN
2078:
2079: l_progress := '050';
2080: IF g_debug_stmt THEN
2081: PO_DEBUG.debug_stmt(l_log_head,l_progress,'cancel w/ recreate demand');
2082: END IF;
2083:
2084: -- The cancel code operates as follows:
2085: --

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

2143:
2144: ELSE
2145: l_progress := '070';
2146: IF g_debug_stmt THEN
2147: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not cancel');
2148: END IF;
2149: END IF;
2150:
2151: l_progress := '080';

Line 2154: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl

2150:
2151: l_progress := '080';
2152:
2153: IF g_debug_stmt THEN
2154: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
2155: FROM PO_SESSION_GT WHERE key = l_backing_req_key ;
2156:
2157: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
2158: PO_DEBUG.g_rowid_tbl,

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

2153: IF g_debug_stmt THEN
2154: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
2155: FROM PO_SESSION_GT WHERE key = l_backing_req_key ;
2156:
2157: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
2158: PO_DEBUG.g_rowid_tbl,
2159: po_tbl_varchar30('key','num1','num2','num3')
2160: );
2161: END IF;

Line 2158: PO_DEBUG.g_rowid_tbl,

2154: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
2155: FROM PO_SESSION_GT WHERE key = l_backing_req_key ;
2156:
2157: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',
2158: PO_DEBUG.g_rowid_tbl,
2159: po_tbl_varchar30('key','num1','num2','num3')
2160: );
2161: END IF;
2162:

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

2180: ELSIF (p_distribution_type = g_dist_type_PLANNED) THEN
2181:
2182: l_progress := '100';
2183: IF g_debug_stmt THEN
2184: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PPOs');
2185: END IF;
2186:
2187: -- Get the relevant backing PPO distributions of Scheduled Releases.
2188:

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

2219: ELSIF (p_distribution_type = g_dist_type_AGREEMENT) THEN
2220:
2221: l_progress := '200';
2222: IF g_debug_stmt THEN
2223: PO_DEBUG.debug_stmt(l_log_head,l_progress,'agreements');
2224: END IF;
2225:
2226: -- Get the backing BPA/GA distributions of Blanket Releases/POs.
2227:

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

2263:
2264: l_progress := '400';
2265:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);
2269: PO_DEBUG.debug_end(l_log_head);
2270: END IF;
2271:

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

2264: l_progress := '400';
2265:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);
2269: PO_DEBUG.debug_end(l_log_head);
2270: END IF;
2271:
2272: EXCEPTION

Line 2269: PO_DEBUG.debug_end(l_log_head);

2265:
2266: IF g_debug_stmt THEN
2267: PO_DEBUG.debug_var(l_log_head,l_progress,'x_dist_id_tbl',x_dist_id_tbl);
2268: PO_DEBUG.debug_var(l_log_head,l_progress,'x_origin_seq_num_tbl',x_origin_seq_num_tbl);
2269: PO_DEBUG.debug_end(l_log_head);
2270: END IF;
2271:
2272: EXCEPTION
2273:

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

2272: EXCEPTION
2273:
2274: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
2275: IF g_debug_unexp THEN
2276: PO_DEBUG.debug_exc(l_log_head,l_progress);
2277: END IF;
2278: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
2279: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
2280: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 2345: PO_DEBUG.debug_begin(l_log_head);

2341:
2342: BEGIN
2343:
2344: IF g_debug_stmt THEN
2345: PO_DEBUG.debug_begin(l_log_head);
2346: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2347: END IF;
2348:
2349: l_progress := '010';

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

2342: BEGIN
2343:
2344: IF g_debug_stmt THEN
2345: PO_DEBUG.debug_begin(l_log_head);
2346: PO_DEBUG.debug_var(l_log_head,l_progress,'p_distribution_type',p_distribution_type);
2347: END IF;
2348:
2349: l_progress := '010';
2350:

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

2376:
2377: l_progress := '900';
2378:
2379: IF g_debug_stmt THEN
2380: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);
2381: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);
2382: PO_DEBUG.debug_end(l_log_head);
2383: END IF;
2384:

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

2377: l_progress := '900';
2378:
2379: IF g_debug_stmt THEN
2380: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);
2381: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);
2382: PO_DEBUG.debug_end(l_log_head);
2383: END IF;
2384:
2385: EXCEPTION

Line 2382: PO_DEBUG.debug_end(l_log_head);

2378:
2379: IF g_debug_stmt THEN
2380: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_type',x_doc_type);
2381: PO_DEBUG.debug_var(l_log_head,l_progress,'x_doc_subtype',x_doc_subtype);
2382: PO_DEBUG.debug_end(l_log_head);
2383: END IF;
2384:
2385: EXCEPTION
2386:

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

2385: EXCEPTION
2386:
2387: WHEN PO_CORE_S.G_INVALID_CALL_EXC THEN
2388: IF g_debug_unexp THEN
2389: PO_DEBUG.debug_exc(l_log_head,l_progress);
2390: END IF;
2391: FND_MESSAGE.set_name('PO', 'PO_ALL_INVALID_PARAMETER');
2392: FND_MESSAGE.set_token('PROCEDURE', l_api_name);
2393: FND_MESSAGE.set_token('PACKAGE', g_pkg_name);

Line 2457: PO_DEBUG.debug_begin(l_log_head);

2453:
2454: BEGIN
2455:
2456: IF g_debug_stmt THEN
2457: PO_DEBUG.debug_begin(l_log_head);
2458: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2459: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2460: END IF;
2461:

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

2454: BEGIN
2455:
2456: IF g_debug_stmt THEN
2457: PO_DEBUG.debug_begin(l_log_head);
2458: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2459: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2460: END IF;
2461:
2462: l_progress := '010';

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

2455:
2456: IF g_debug_stmt THEN
2457: PO_DEBUG.debug_begin(l_log_head);
2458: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2459: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2460: END IF;
2461:
2462: l_progress := '010';
2463:

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

2473:
2474: l_progress := '900';
2475:
2476: IF g_debug_stmt THEN
2477: PO_DEBUG.debug_var(l_log_head,l_progress,'x_distribution_type',x_distribution_type);
2478: PO_DEBUG.debug_end(l_log_head);
2479: END IF;
2480:
2481: EXCEPTION

Line 2478: PO_DEBUG.debug_end(l_log_head);

2474: l_progress := '900';
2475:
2476: IF g_debug_stmt THEN
2477: PO_DEBUG.debug_var(l_log_head,l_progress,'x_distribution_type',x_distribution_type);
2478: PO_DEBUG.debug_end(l_log_head);
2479: END IF;
2480:
2481: EXCEPTION
2482:

Line 2647: PO_DEBUG.debug_begin(l_log_head);

2643:
2644: BEGIN
2645:
2646: IF g_debug_stmt THEN
2647: PO_DEBUG.debug_begin(l_log_head);
2648: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);

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

2644: BEGIN
2645:
2646: IF g_debug_stmt THEN
2647: PO_DEBUG.debug_begin(l_log_head);
2648: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

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

2645:
2646: IF g_debug_stmt THEN
2647: PO_DEBUG.debug_begin(l_log_head);
2648: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);

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

2646: IF g_debug_stmt THEN
2647: PO_DEBUG.debug_begin(l_log_head);
2648: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);

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

2647: PO_DEBUG.debug_begin(l_log_head);
2648: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2655: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);

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

2648: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2655: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2656: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);

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

2649: PO_DEBUG.debug_var(l_log_head,l_progress,'p_check_only_flag', p_check_only_flag);
2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2655: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2656: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2657: END IF;

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

2650: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2655: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2656: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2657: END IF;
2658:

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

2651: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2655: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2656: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2657: END IF;
2658:
2659: l_progress := '010';

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

2652: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
2653: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id', p_doc_level_id);
2654: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_enc_gt_flag', p_use_enc_gt_flag);
2655: PO_DEBUG.debug_var(l_log_head,l_progress,'p_validate_document',p_validate_document);
2656: PO_DEBUG.debug_var(l_log_head,l_progress,'p_do_state_check_flag', p_do_state_check_flag);
2657: END IF;
2658:
2659: l_progress := '010';
2660:

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

2691:
2692: l_progress := '040';
2693:
2694: IF g_debug_stmt THEN
2695: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
2696: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
2697: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'
2698: , PO_DOCUMENT_FUNDS_PVT.g_po_encumbrance_on);
2699: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'

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

2693:
2694: IF g_debug_stmt THEN
2695: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
2696: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
2697: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'
2698: , PO_DOCUMENT_FUNDS_PVT.g_po_encumbrance_on);
2699: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'
2700: , PO_DOCUMENT_FUNDS_PVT.g_pa_encumbrance_on);
2701: END IF;

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

2695: PO_DEBUG.debug_var(l_log_head,l_progress,'req encumbrance'
2696: , PO_DOCUMENT_FUNDS_PVT.g_req_encumbrance_on);
2697: PO_DEBUG.debug_var(l_log_head,l_progress,'po encumbrance'
2698: , PO_DOCUMENT_FUNDS_PVT.g_po_encumbrance_on);
2699: PO_DEBUG.debug_var(l_log_head,l_progress,'pa encumbrance'
2700: , PO_DOCUMENT_FUNDS_PVT.g_pa_encumbrance_on);
2701: END IF;
2702:
2703: IF (p_doc_type = g_doc_type_REQUISITION) THEN

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

2720:
2721: END IF;
2722:
2723: IF g_debug_stmt THEN
2724: PO_DEBUG.debug_var(l_log_head,l_progress,'l_enc_on',l_enc_on);
2725: END IF;
2726:
2727: l_progress := '080';
2728:

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

2736:
2737: ELSE
2738: l_progress := '095';
2739: IF g_debug_stmt THEN
2740: PO_DEBUG.debug_stmt(l_log_head,l_progress,'encumbrance on');
2741: END IF;
2742: END IF;
2743:
2744: l_progress := '099';

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

2770: ) THEN
2771:
2772: l_progress := 'a20';
2773: IF g_debug_stmt THEN
2774: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');
2775: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'
2776: ,PO_DEBUG.g_all_rows
2777: ,po_tbl_varchar30('distribution_type','doc_level','doc_level_id')
2778: );

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

2771:
2772: l_progress := 'a20';
2773: IF g_debug_stmt THEN
2774: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');
2775: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'
2776: ,PO_DEBUG.g_all_rows
2777: ,po_tbl_varchar30('distribution_type','doc_level','doc_level_id')
2778: );
2779: END IF;

Line 2776: ,PO_DEBUG.g_all_rows

2772: l_progress := 'a20';
2773: IF g_debug_stmt THEN
2774: PO_DEBUG.debug_stmt(l_log_head,l_progress,'multiple id do action');
2775: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT'
2776: ,PO_DEBUG.g_all_rows
2777: ,po_tbl_varchar30('distribution_type','doc_level','doc_level_id')
2778: );
2779: END IF;
2780:

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

2793: ;
2794:
2795: l_progress := 'a30';
2796: IF g_debug_stmt THEN
2797: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);
2798: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);
2799: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);
2800: END IF;
2801:

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

2794:
2795: l_progress := 'a30';
2796: IF g_debug_stmt THEN
2797: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);
2798: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);
2799: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);
2800: END IF;
2801:
2802: IF (l_doc_level_tbl.COUNT <> 1) THEN

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

2795: l_progress := 'a30';
2796: IF g_debug_stmt THEN
2797: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_tbl',l_doc_level_tbl);
2798: PO_DEBUG.debug_var(l_log_head,l_progress,'l_dist_type_tbl',l_dist_type_tbl);
2799: PO_DEBUG.debug_var(l_log_head,l_progress,'l_count_tbl',l_count_tbl);
2800: END IF;
2801:
2802: IF (l_doc_level_tbl.COUNT <> 1) THEN
2803: l_progress := 'a35';

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

2882: ) THEN
2883:
2884: l_progress := '110';
2885: IF g_debug_stmt THEN
2886: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doc type PA');
2887: END IF;
2888:
2889: IF (p_use_enc_gt_flag = g_parameter_YES) THEN
2890: l_doc_id := l_doc_level_id_tbl(1);

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

2893: END IF;
2894:
2895: l_progress := '120';
2896: IF g_debug_stmt THEN
2897: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_id',l_doc_id);
2898: END IF;
2899:
2900: -- actions on PAs only allowed at the header level
2901: IF (l_doc_level <> g_doc_level_HEADER) THEN

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

2918: ;
2919:
2920: l_progress := '140';
2921: IF g_debug_stmt THEN
2922: PO_DEBUG.debug_var(l_log_head,l_progress,'l_id_tbl',l_id_tbl);
2923: END IF;
2924:
2925: IF (l_id_tbl.COUNT <> 1) THEN
2926:

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

2932:
2933: ELSE
2934: l_progress := '160';
2935: IF g_debug_stmt THEN
2936: PO_DEBUG.debug_stmt(l_log_head,l_progress,'PA valid');
2937: END IF;
2938: END IF;
2939:
2940: l_progress := '170';

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

2941:
2942: ELSE
2943: l_progress := '180';
2944: IF g_debug_stmt THEN
2945: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not PA');
2946: END IF;
2947: END IF;
2948:
2949: l_progress := '200';

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

2965: ) THEN
2966:
2967: l_progress := '210';
2968: IF g_debug_stmt THEN
2969: PO_DEBUG.debug_stmt(l_log_head,l_progress,'validate single doc');
2970: END IF;
2971:
2972: SELECT DECODE( p_doc_type
2973: , g_doc_type_RELEASE, ENC.po_release_id

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

2979: ;
2980:
2981: l_progress := '220';
2982: IF g_debug_stmt THEN
2983: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_id',l_doc_id);
2984: END IF;
2985:
2986: l_multiple_docs_flag := 'N';
2987:

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

2988: BEGIN
2989:
2990: l_progress := '230';
2991: IF g_debug_stmt THEN
2992: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking multiple docs');
2993: END IF;
2994:
2995: IF (p_doc_type = g_doc_type_RELEASE) THEN
2996:

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

2995: IF (p_doc_type = g_doc_type_RELEASE) THEN
2996:
2997: l_progress := '240';
2998: IF g_debug_stmt THEN
2999: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking release');
3000: END IF;
3001:
3002: SELECT 'Y'
3003: INTO l_multiple_docs_flag

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

3012: ELSE
3013:
3014: l_progress := '260';
3015: IF g_debug_stmt THEN
3016: PO_DEBUG.debug_stmt(l_log_head,l_progress,'checking non-release');
3017: END IF;
3018:
3019: SELECT 'Y'
3020: INTO l_multiple_docs_flag

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

3029: END IF;
3030:
3031: l_progress := '275';
3032: IF g_debug_stmt THEN
3033: PO_DEBUG.debug_var(l_log_head,l_progress,'l_multiple_docs_flag',l_multiple_docs_flag);
3034: END IF;
3035:
3036: EXCEPTION
3037: WHEN NO_DATA_FOUND THEN

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

3039: END;
3040:
3041: l_progress := '280';
3042: IF g_debug_stmt THEN
3043: PO_DEBUG.debug_var(l_log_head,l_progress,'l_multiple_docs_flag',l_multiple_docs_flag);
3044: END IF;
3045:
3046: IF (l_multiple_docs_flag = 'Y') THEN
3047:

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

3053:
3054: ELSE
3055: l_progress := '290';
3056: IF g_debug_stmt THEN
3057: PO_DEBUG.debug_stmt(l_log_head,l_progress,'no multiple docs');
3058: END IF;
3059: END IF;
3060:
3061: l_progress := '295';

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

3062:
3063: ELSE
3064: l_progress := '299';
3065: IF g_debug_stmt THEN
3066: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not validating single doc');
3067: END IF;
3068: END IF;
3069:
3070: l_progress := '300';

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

3081: ) THEN
3082:
3083: l_progress := '310';
3084: IF g_debug_stmt THEN
3085: PO_DEBUG.debug_stmt(l_log_head,l_progress,'locking header');
3086: END IF;
3087:
3088: IF (p_use_enc_gt_flag = g_parameter_NO) THEN
3089:

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

3116:
3117: ELSE
3118: l_progress := '360';
3119: IF g_debug_stmt THEN
3120: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not locking doc');
3121: END IF;
3122: END IF;
3123:
3124: l_progress := '400';

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

3174:
3175: ELSE
3176: l_progress := '440';
3177: IF g_debug_stmt THEN
3178: PO_DEBUG.debug_stmt(l_log_head,l_progress,'state check passed');
3179: END IF;
3180: END IF;
3181:
3182: l_progress := '450';

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

3183:
3184: ELSE
3185: l_progress := '460';
3186: IF g_debug_stmt THEN
3187: PO_DEBUG.debug_stmt(l_log_head,l_progress,'skipping state check');
3188: END IF;
3189: END IF;
3190:
3191: l_progress := '500';

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

3201: ) THEN
3202:
3203: l_progress := '510';
3204: IF g_debug_stmt THEN
3205: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doing doc checks');
3206: END IF;
3207:
3208: -- Initialize the return variables.
3209:

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

3246:
3247: END IF;
3248:
3249: IF g_debug_stmt THEN
3250: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3251: END IF;
3252:
3253: l_progress := '540';
3254:

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

3257: IF (l_sub_check_action IS NOT NULL) THEN
3258:
3259: l_progress := '550';
3260: IF g_debug_stmt THEN
3261: PO_DEBUG.debug_stmt(l_log_head,l_progress,'starting sub check loop');
3262: END IF;
3263:
3264: -- bug 3435714
3265: -- Allowing multiple ids, but submission check isn't designed for this.

Line 3297: PO_DEBUG.debug_stmt(l_log_head,l_progress,

3293: SET show_in_psa_flag='Y'
3294: WHERE ONLINE_report_id=x_sub_check_report_id;
3295: --
3296: IF g_debug_stmt THEN
3297: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3298: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3299: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);

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

3295: --
3296: IF g_debug_stmt THEN
3297: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3298: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3299: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));

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

3296: IF g_debug_stmt THEN
3297: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3298: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3299: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);

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

3297: PO_DEBUG.debug_stmt(l_log_head,l_progress,
3298: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3299: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);

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

3298: 'Submission check results (i = ' || TO_CHAR(i) || ')');
3299: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3306: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);

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

3299: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_action',l_sub_check_action);
3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3306: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3307: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);

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

3300: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_type',l_doc_type);
3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3306: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3307: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3308: END IF;

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

3301: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_subtype',l_doc_subtype);
3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3306: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3307: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3308: END IF;
3309:

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

3302: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level',l_doc_level);
3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3306: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3307: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3308: END IF;
3309:
3310: IF (l_sub_check_status <> FND_API.G_RET_STS_SUCCESS) THEN

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

3303: PO_DEBUG.debug_var(l_log_head,l_progress,'l_doc_level_id_tbl(i)',l_doc_level_id_tbl(i));
3304: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3305: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sub_check_status',l_sub_check_status);
3306: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3307: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3308: END IF;
3309:
3310: IF (l_sub_check_status <> FND_API.G_RET_STS_SUCCESS) THEN
3311: l_progress := '560';

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

3321: END LOOP;
3322:
3323: l_progress := '580';
3324: IF g_debug_stmt THEN
3325: PO_DEBUG.debug_stmt(l_log_head,l_progress,'finished sub check loop');
3326: END IF;
3327:
3328: ELSE
3329: l_progress := '585';

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

3327:
3328: ELSE
3329: l_progress := '585';
3330: IF g_debug_stmt THEN
3331: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not performing sub check');
3332: END IF;
3333: END IF;
3334:
3335: l_progress := '590';

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

3336:
3337: ELSE
3338: l_progress := '600';
3339: IF g_debug_stmt THEN
3340: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not validating doc');
3341: END IF;
3342: END IF;
3343:
3344: l_progress := '900';

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

3348:
3349: x_validation_successful_flag := g_parameter_YES;
3350:
3351: IF g_debug_stmt THEN
3352: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3353: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3354: PO_DEBUG.debug_end(l_log_head);
3355: END IF;
3356:

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

3349: x_validation_successful_flag := g_parameter_YES;
3350:
3351: IF g_debug_stmt THEN
3352: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3353: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3354: PO_DEBUG.debug_end(l_log_head);
3355: END IF;
3356:
3357: EXCEPTION

Line 3354: PO_DEBUG.debug_end(l_log_head);

3350:
3351: IF g_debug_stmt THEN
3352: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3353: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3354: PO_DEBUG.debug_end(l_log_head);
3355: END IF;
3356:
3357: EXCEPTION
3358: WHEN OTHERS THEN

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

3356:
3357: EXCEPTION
3358: WHEN OTHERS THEN
3359: IF g_debug_unexp THEN
3360: PO_DEBUG.debug_exc(l_log_head,l_progress);
3361: END IF;
3362:
3363: x_validation_successful_flag := g_parameter_NO;
3364:

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

3377: END IF;
3378: END IF;
3379:
3380: IF g_debug_stmt THEN
3381: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3382: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3383: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3384: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3385: END IF;

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

3378: END IF;
3379:
3380: IF g_debug_stmt THEN
3381: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3382: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3383: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3384: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3385: END IF;
3386:

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

3379:
3380: IF g_debug_stmt THEN
3381: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3382: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3383: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3384: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3385: END IF;
3386:
3387: -- Prepare the message to put on the API message list.

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

3380: IF g_debug_stmt THEN
3381: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_code',l_exc_code);
3382: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exc_message_name',l_exc_message_name);
3383: PO_DEBUG.debug_var(l_log_head,l_progress,'x_validation_successful_flag',x_validation_successful_flag);
3384: PO_DEBUG.debug_var(l_log_head,l_progress,'x_sub_check_report_id',x_sub_check_report_id);
3385: END IF;
3386:
3387: -- Prepare the message to put on the API message list.
3388: IF (l_exc_code IN (g_ENC_VALIDATION_EXC_CODE,g_SUBMISSION_CHECK_EXC_CODE)) THEN

Line 3491: PO_DEBUG.debug_begin(l_log_head);

3487:
3488: BEGIN
3489:
3490: IF g_debug_stmt THEN
3491: PO_DEBUG.debug_begin(l_log_head);
3492: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3493: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3494: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3495: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);

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

3488: BEGIN
3489:
3490: IF g_debug_stmt THEN
3491: PO_DEBUG.debug_begin(l_log_head);
3492: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3493: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3494: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3495: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);

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

3489:
3490: IF g_debug_stmt THEN
3491: PO_DEBUG.debug_begin(l_log_head);
3492: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3493: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3494: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3495: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3497: END IF;

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

3490: IF g_debug_stmt THEN
3491: PO_DEBUG.debug_begin(l_log_head);
3492: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3493: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3494: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3495: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3497: END IF;
3498:

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

3491: PO_DEBUG.debug_begin(l_log_head);
3492: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3493: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3494: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3495: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3497: END IF;
3498:
3499: l_progress := '010';

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

3492: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
3493: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
3494: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
3495: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level', p_doc_level);
3496: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id_tbl', p_doc_level_id_tbl);
3497: END IF;
3498:
3499: l_progress := '010';
3500:

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

3644:
3645: l_progress := '290';
3646:
3647: IF g_debug_stmt THEN
3648: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3649: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3650: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3651: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3652: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);

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

3645: l_progress := '290';
3646:
3647: IF g_debug_stmt THEN
3648: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3649: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3650: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3651: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3652: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3653: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);

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

3646:
3647: IF g_debug_stmt THEN
3648: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3649: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3650: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3651: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3652: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3653: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3654: END IF;

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

3647: IF g_debug_stmt THEN
3648: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3649: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3650: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3651: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3652: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3653: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3654: END IF;
3655:

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

3648: PO_DEBUG.debug_var(l_log_head,l_progress,'l_header_id_tbl',l_header_id_tbl);
3649: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3650: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3651: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3652: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3653: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3654: END IF;
3655:
3656: -- Call the doc status check.

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

3649: PO_DEBUG.debug_var(l_log_head,l_progress,'l_release_id_tbl',l_release_id_tbl);
3650: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_id_tbl',l_line_id_tbl);
3651: PO_DEBUG.debug_var(l_log_head,l_progress,'l_line_location_id_tbl',l_line_location_id_tbl);
3652: PO_DEBUG.debug_var(l_log_head,l_progress,'l_distribution_id_tbl',l_distribution_id_tbl);
3653: PO_DEBUG.debug_var(l_log_head,l_progress,'l_mode',l_mode);
3654: END IF;
3655:
3656: -- Call the doc status check.
3657:

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

3660: IF (p_doc_type = g_doc_type_REQUISITION) THEN
3661:
3662: l_progress := '310';
3663: IF g_debug_stmt THEN
3664: PO_DEBUG.debug_stmt(l_log_head,l_progress,'req');
3665: END IF;
3666:
3667: PO_REQ_DOCUMENT_CHECKS_GRP.req_status_check(
3668: p_api_version => 1.0

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

3682: ELSE
3683:
3684: l_progress := '330';
3685: IF g_debug_stmt THEN
3686: PO_DEBUG.debug_stmt(l_log_head,l_progress,'not req');
3687: END IF;
3688:
3689: PO_DOCUMENT_CHECKS_GRP.po_status_check(
3690: p_api_version => 1.0

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

3708: END IF;
3709:
3710: l_progress := '350';
3711: IF g_debug_stmt THEN
3712: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3713: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3714: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3715: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3716: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);

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

3709:
3710: l_progress := '350';
3711: IF g_debug_stmt THEN
3712: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3713: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3714: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3715: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3716: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3717: END IF;

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

3710: l_progress := '350';
3711: IF g_debug_stmt THEN
3712: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3713: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3714: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3715: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3716: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3717: END IF;
3718:

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

3711: IF g_debug_stmt THEN
3712: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3713: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3714: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3715: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3716: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3717: END IF;
3718:
3719: IF (p_action = g_action_RESERVE) THEN

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

3712: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
3713: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_count',l_msg_count);
3714: PO_DEBUG.debug_var(l_log_head,l_progress,'l_msg_data',l_msg_data);
3715: PO_DEBUG.debug_var(l_log_head,l_progress,'reservable flag',l_status_rec.reservable_flag);
3716: PO_DEBUG.debug_var(l_log_head,l_progress,'unreservable flag',l_status_rec.unreservable_flag);
3717: END IF;
3718:
3719: IF (p_action = g_action_RESERVE) THEN
3720:

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

3732:
3733: l_progress := '900';
3734:
3735: IF g_debug_stmt THEN
3736: PO_DEBUG.debug_var(l_log_head,l_progress,'x_valid_state_flag',x_valid_state_flag);
3737: PO_DEBUG.debug_end(l_log_head);
3738: END IF;
3739:
3740: EXCEPTION

Line 3737: PO_DEBUG.debug_end(l_log_head);

3733: l_progress := '900';
3734:
3735: IF g_debug_stmt THEN
3736: PO_DEBUG.debug_var(l_log_head,l_progress,'x_valid_state_flag',x_valid_state_flag);
3737: PO_DEBUG.debug_end(l_log_head);
3738: END IF;
3739:
3740: EXCEPTION
3741: WHEN OTHERS THEN

Line 3825: PO_DEBUG.debug_begin(l_log_head);

3821:
3822: BEGIN
3823:
3824: IF g_debug_stmt THEN
3825: PO_DEBUG.debug_begin(l_log_head);
3826: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);

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

3822: BEGIN
3823:
3824: IF g_debug_stmt THEN
3825: PO_DEBUG.debug_begin(l_log_head);
3826: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);

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

3823:
3824: IF g_debug_stmt THEN
3825: PO_DEBUG.debug_begin(l_log_head);
3826: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);

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

3824: IF g_debug_stmt THEN
3825: PO_DEBUG.debug_begin(l_log_head);
3826: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);

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

3825: PO_DEBUG.debug_begin(l_log_head);
3826: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);

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

3826: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3834: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);

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

3827: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3834: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3835: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);

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

3828: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3834: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3835: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3836: END IF;

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

3829: PO_DEBUG.debug_var(l_log_head,l_progress,'p_use_gl_date',p_use_gl_date);
3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3834: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3835: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3836: END IF;
3837:

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

3830: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3834: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3835: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3836: END IF;
3837:
3838: l_progress := '010';

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

3831: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3832: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3833: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
3834: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
3835: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
3836: END IF;
3837:
3838: l_progress := '010';
3839:

Line 3970: PO_DEBUG.debug_begin(l_log_head);

3966:
3967: BEGIN
3968:
3969: IF g_debug_stmt THEN
3970: PO_DEBUG.debug_begin(l_log_head);
3971: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3972: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3973: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3974: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);

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

3967: BEGIN
3968:
3969: IF g_debug_stmt THEN
3970: PO_DEBUG.debug_begin(l_log_head);
3971: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3972: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3973: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3974: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
3975: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);

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

3968:
3969: IF g_debug_stmt THEN
3970: PO_DEBUG.debug_begin(l_log_head);
3971: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3972: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3973: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3974: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
3975: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3976: END IF;

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

3969: IF g_debug_stmt THEN
3970: PO_DEBUG.debug_begin(l_log_head);
3971: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3972: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3973: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3974: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
3975: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3976: END IF;
3977:

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

3970: PO_DEBUG.debug_begin(l_log_head);
3971: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3972: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3973: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3974: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
3975: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3976: END IF;
3977:
3978: -- Set the parameters used by the different actions

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

3971: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
3972: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
3973: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
3974: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
3975: PO_DEBUG.debug_var(l_log_head,l_progress,'p_partial_flag',p_partial_flag);
3976: END IF;
3977:
3978: -- Set the parameters used by the different actions
3979: IF p_action IN (g_action_UNRESERVE, g_action_FINAL_CLOSE,

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

3991:
3992: l_progress := '010';
3993:
3994: IF g_debug_stmt THEN
3995: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_forward',l_allow_roll_forward);
3996: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_backward',l_allow_roll_backward);
3997: END IF;
3998:
3999: IF (p_try_dist_date_flag = 'Y' OR p_action = g_action_ADJUST) THEN

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

3992: l_progress := '010';
3993:
3994: IF g_debug_stmt THEN
3995: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_forward',l_allow_roll_forward);
3996: PO_DEBUG.debug_var(l_log_head,l_progress,'l_allow_roll_backward',l_allow_roll_backward);
3997: END IF;
3998:
3999: IF (p_try_dist_date_flag = 'Y' OR p_action = g_action_ADJUST) THEN
4000:

Line 4294: PO_DEBUG.debug_begin(l_log_head);

4290:
4291: BEGIN
4292:
4293: IF g_debug_stmt THEN
4294: PO_DEBUG.debug_begin(l_log_head);
4295: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4296: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4297: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4298: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);

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

4291: BEGIN
4292:
4293: IF g_debug_stmt THEN
4294: PO_DEBUG.debug_begin(l_log_head);
4295: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4296: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4297: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4298: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4299: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);

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

4292:
4293: IF g_debug_stmt THEN
4294: PO_DEBUG.debug_begin(l_log_head);
4295: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4296: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4297: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4298: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4299: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4300: END IF;

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

4293: IF g_debug_stmt THEN
4294: PO_DEBUG.debug_begin(l_log_head);
4295: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4296: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4297: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4298: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4299: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4300: END IF;
4301:

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

4294: PO_DEBUG.debug_begin(l_log_head);
4295: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4296: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4297: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4298: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4299: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4300: END IF;
4301:
4302: l_progress := '010';

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

4295: PO_DEBUG.debug_var(l_log_head,l_progress,'p_set_of_books_id',p_set_of_books_id);
4296: PO_DEBUG.debug_var(l_log_head,l_progress,'p_try_dist_date_flag',p_try_dist_date_flag);
4297: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_date',p_override_date);
4298: PO_DEBUG.debug_var(l_log_head,l_progress,'p_override_attempt',p_override_attempt);
4299: PO_DEBUG.debug_var(l_log_head,l_progress,'p_roll_logic_used',p_roll_logic_used);
4300: END IF;
4301:
4302: l_progress := '010';
4303:

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

4552:
4553: l_progress := '060';
4554:
4555: IF g_debug_stmt THEN
4556: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Search for matching periods done');
4557:
4558: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
4559: FROM PO_SESSION_GT WHERE key = l_procedure_id
4560: ;

Line 4558: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl

4554:
4555: IF g_debug_stmt THEN
4556: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Search for matching periods done');
4557:
4558: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
4559: FROM PO_SESSION_GT WHERE key = l_procedure_id
4560: ;
4561:
4562: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542

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

4558: SELECT rowid BULK COLLECT INTO PO_DEBUG.g_rowid_tbl
4559: FROM PO_SESSION_GT WHERE key = l_procedure_id
4560: ;
4561:
4562: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542
4563:
4564: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',PO_DEBUG.g_rowid_tbl,PO_DEBUG.g_column_tbl,'PO');
4565:
4566: END IF;

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

4560: ;
4561:
4562: PO_DEBUG.g_column_tbl := po_tbl_varchar30('key','date1','index_num1','char1','num2','num3','num4'); -- bug3543542
4563:
4564: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_SESSION_GT',PO_DEBUG.g_rowid_tbl,PO_DEBUG.g_column_tbl,'PO');
4565:
4566: END IF;
4567:
4568:

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

4650:
4651: l_progress := '090';
4652:
4653: IF g_debug_stmt THEN
4654: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Updated main encumbrance gt with period information');
4655: END IF;
4656:
4657: -- Determine if we found period information for all the dates
4658: -- we were looking at.

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

4682:
4683: l_progress := '900';
4684:
4685: IF g_debug_stmt THEN
4686: PO_DEBUG.debug_var(l_log_head,l_progress,'x_missing_date_flag',x_missing_date_flag);
4687: PO_DEBUG.debug_end(l_log_head);
4688: END IF;
4689:
4690: EXCEPTION

Line 4687: PO_DEBUG.debug_end(l_log_head);

4683: l_progress := '900';
4684:
4685: IF g_debug_stmt THEN
4686: PO_DEBUG.debug_var(l_log_head,l_progress,'x_missing_date_flag',x_missing_date_flag);
4687: PO_DEBUG.debug_end(l_log_head);
4688: END IF;
4689:
4690: EXCEPTION
4691:

Line 4780: PO_DEBUG.debug_begin(l_log_head);

4776: -- below. It is assumed that NULL values in these fields were given default
4777: -- values upon initial insertion into the global temp table.
4778:
4779: IF g_debug_stmt THEN
4780: PO_DEBUG.debug_begin(l_log_head);
4781: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);

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

4777: -- values upon initial insertion into the global temp table.
4778:
4779: IF g_debug_stmt THEN
4780: PO_DEBUG.debug_begin(l_log_head);
4781: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4785: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);

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

4778:
4779: IF g_debug_stmt THEN
4780: PO_DEBUG.debug_begin(l_log_head);
4781: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4785: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4786: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);

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

4779: IF g_debug_stmt THEN
4780: PO_DEBUG.debug_begin(l_log_head);
4781: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4785: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4786: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4787: END IF;

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

4780: PO_DEBUG.debug_begin(l_log_head);
4781: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4785: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4786: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4787: END IF;
4788:

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

4781: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4785: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4786: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4787: END IF;
4788:
4789:

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

4782: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4783: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4784: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func',p_currency_code_func);
4785: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt',p_ap_reinstated_enc_amt);
4786: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty',p_ap_cancelled_qty);
4787: END IF;
4788:
4789:
4790: -- If AP gives us NULL values, deal with them gracefully.

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

4804: WHERE FND_CUR.currency_code = p_currency_code_func
4805: ;
4806:
4807: IF g_debug_stmt THEN
4808: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func', l_min_acct_unit_func);
4809: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func', l_cur_precision_func);
4810: END IF;
4811:
4812:

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

4805: ;
4806:
4807: IF g_debug_stmt THEN
4808: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func', l_min_acct_unit_func);
4809: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func', l_cur_precision_func);
4810: END IF;
4811:
4812:
4813: --*********************************************************

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

4850: -- Adjust, FC actions do not have backing trxns
4851:
4852: l_progress := '050';
4853: IF g_debug_stmt THEN
4854: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Doc type can have backing docs');
4855: END IF;
4856:
4857: --: determine if the Std PO is a Complex Work PO
4858: IF (p_doc_subtype = g_doc_subtype_STANDARD) THEN

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

4915:
4916: l_progress := '070';
4917:
4918: IF g_debug_stmt THEN
4919: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows);
4920: PO_DEBUG.debug_end(l_log_head);
4921: END IF;
4922:
4923:

Line 4920: PO_DEBUG.debug_end(l_log_head);

4916: l_progress := '070';
4917:
4918: IF g_debug_stmt THEN
4919: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows);
4920: PO_DEBUG.debug_end(l_log_head);
4921: END IF;
4922:
4923:
4924: EXCEPTION

Line 4995: PO_DEBUG.debug_begin(l_log_head);

4991:
4992: BEGIN
4993:
4994: IF g_debug_stmt THEN
4995: PO_DEBUG.debug_begin(l_log_head);
4996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4997: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4998: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4999: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

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

4992: BEGIN
4993:
4994: IF g_debug_stmt THEN
4995: PO_DEBUG.debug_begin(l_log_head);
4996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4997: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4998: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4999: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5000: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

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

4993:
4994: IF g_debug_stmt THEN
4995: PO_DEBUG.debug_begin(l_log_head);
4996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4997: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4998: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4999: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5000: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5001: END IF;

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

4994: IF g_debug_stmt THEN
4995: PO_DEBUG.debug_begin(l_log_head);
4996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4997: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4998: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4999: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5000: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5001: END IF;
5002:

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

4995: PO_DEBUG.debug_begin(l_log_head);
4996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4997: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4998: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4999: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5000: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5001: END IF;
5002:
5003:

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

4996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
4997: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
4998: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
4999: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5000: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5001: END IF;
5002:
5003:
5004: -- If the doc is a BPA, or can have a backing BPA, convert

Line 5058: PO_DEBUG.debug_table(

5054:
5055: l_progress := '030';
5056:
5057: IF g_debug_stmt THEN
5058: PO_DEBUG.debug_table(
5059: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5060: po_tbl_varchar30( 'amount_based_flag', 'qty_ordered', 'amt_ordered' )
5061: );
5062: END IF;

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

5055: l_progress := '030';
5056:
5057: IF g_debug_stmt THEN
5058: PO_DEBUG.debug_table(
5059: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5060: po_tbl_varchar30( 'amount_based_flag', 'qty_ordered', 'amt_ordered' )
5061: );
5062: END IF;
5063:

Line 5090: PO_DEBUG.debug_table(

5086:
5087: l_progress := '040';
5088:
5089: IF g_debug_stmt THEN
5090: PO_DEBUG.debug_table(
5091: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5092: po_tbl_varchar30( 'nonrecoverable_tax_rate')
5093: );
5094: PO_DEBUG.debug_end(l_log_head);

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

5087: l_progress := '040';
5088:
5089: IF g_debug_stmt THEN
5090: PO_DEBUG.debug_table(
5091: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5092: po_tbl_varchar30( 'nonrecoverable_tax_rate')
5093: );
5094: PO_DEBUG.debug_end(l_log_head);
5095: END IF;

Line 5094: PO_DEBUG.debug_end(l_log_head);

5090: PO_DEBUG.debug_table(
5091: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5092: po_tbl_varchar30( 'nonrecoverable_tax_rate')
5093: );
5094: PO_DEBUG.debug_end(l_log_head);
5095: END IF;
5096:
5097:
5098: EXCEPTION

Line 5167: PO_DEBUG.debug_begin(l_log_head);

5163:
5164: BEGIN
5165:
5166: IF g_debug_stmt THEN
5167: PO_DEBUG.debug_begin(l_log_head);
5168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

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

5164: BEGIN
5165:
5166: IF g_debug_stmt THEN
5167: PO_DEBUG.debug_begin(l_log_head);
5168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);

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

5165:
5166: IF g_debug_stmt THEN
5167: PO_DEBUG.debug_begin(l_log_head);
5168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5173: END IF;

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

5166: IF g_debug_stmt THEN
5167: PO_DEBUG.debug_begin(l_log_head);
5168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5173: END IF;
5174:

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

5167: PO_DEBUG.debug_begin(l_log_head);
5168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5173: END IF;
5174:
5175:

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

5168: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5169: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5170: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5171: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5172: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5173: END IF;
5174:
5175:
5176: IF p_action NOT IN (g_action_INVOICE_CANCEL, g_action_CR_MEMO_CANCEL) THEN

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

5321:
5322: l_progress := '080';
5323:
5324: IF g_debug_stmt THEN
5325: PO_DEBUG.debug_stmt(l_log_head,l_progress,'doing AP calculations for main doc');
5326: END IF;
5327:
5328: -- Bug 3480949: Removed logic that would remove tax from ap amount
5329: -- AP now calls the invoice cancel API with p_tax_line_flag = 'Y'

Line 5381: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5377:
5378: END IF; -- p_action is AP Inv Cancel vs. any other action
5379:
5380: IF g_debug_stmt THEN
5381: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5382: 'Calculated amount_closed for main document'
5383: );
5384: PO_DEBUG.debug_table(
5385: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,

Line 5384: PO_DEBUG.debug_table(

5380: IF g_debug_stmt THEN
5381: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5382: 'Calculated amount_closed for main document'
5383: );
5384: PO_DEBUG.debug_table(
5385: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5386: po_tbl_varchar30( 'amount_based_flag', 'qty_closed', 'amt_closed')
5387: );
5388: PO_DEBUG.debug_end(l_log_head);

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

5381: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5382: 'Calculated amount_closed for main document'
5383: );
5384: PO_DEBUG.debug_table(
5385: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5386: po_tbl_varchar30( 'amount_based_flag', 'qty_closed', 'amt_closed')
5387: );
5388: PO_DEBUG.debug_end(l_log_head);
5389: END IF;

Line 5388: PO_DEBUG.debug_end(l_log_head);

5384: PO_DEBUG.debug_table(
5385: l_log_head, l_progress,'PO_ENCUMBRANCE_GT', PO_DEBUG.g_all_rows,
5386: po_tbl_varchar30( 'amount_based_flag', 'qty_closed', 'amt_closed')
5387: );
5388: PO_DEBUG.debug_end(l_log_head);
5389: END IF;
5390:
5391:
5392: EXCEPTION

Line 5481: PO_DEBUG.debug_begin(l_log_head);

5477: -- downwards to stay within PA amt limits. This occurs AFTER the
5478: -- final rounding/conversion, to prevent penny differences
5479:
5480: IF g_debug_stmt THEN
5481: PO_DEBUG.debug_begin(l_log_head);
5482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

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

5478: -- final rounding/conversion, to prevent penny differences
5479:
5480: IF g_debug_stmt THEN
5481: PO_DEBUG.debug_begin(l_log_head);
5482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

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

5479:
5480: IF g_debug_stmt THEN
5481: PO_DEBUG.debug_begin(l_log_head);
5482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

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

5480: IF g_debug_stmt THEN
5481: PO_DEBUG.debug_begin(l_log_head);
5482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5488: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);

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

5481: PO_DEBUG.debug_begin(l_log_head);
5482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5488: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5489: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);

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

5482: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5488: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5489: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5490: END IF;

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

5483: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5488: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5489: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5490: END IF;
5491:

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

5484: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5488: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5489: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5490: END IF;
5491:
5492:

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

5485: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5486: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5487: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5488: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_cancelled_qty', p_ap_cancelled_qty);
5489: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_amt_billed_change', p_ap_amt_billed_change);
5490: END IF;
5491:
5492:
5493: -- Calculations for Backing Reqs:

Line 5512: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5508: -- to do these calculations.
5509: l_progress := '020';
5510:
5511: IF g_debug_stmt THEN
5512: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5513: 'Starting calculations for backing Reqs');
5514: END IF;
5515:
5516:

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

5535:
5536: l_progress := '030';
5537:
5538: IF g_debug_stmt THEN
5539: PO_DEBUG.debug_stmt(l_log_head,l_progress,'did UoM conversion');
5540: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5541: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'
5542: ,'distribution_type','uom_conversion_rate','unit_meas_lookup_code'
5543: ,'item_id','sequence_num','origin_sequence_num'

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

5536: l_progress := '030';
5537:
5538: IF g_debug_stmt THEN
5539: PO_DEBUG.debug_stmt(l_log_head,l_progress,'did UoM conversion');
5540: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5541: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'
5542: ,'distribution_type','uom_conversion_rate','unit_meas_lookup_code'
5543: ,'item_id','sequence_num','origin_sequence_num'
5544: )

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

5564: l_uom_conversion_error := 'N';
5565: END;
5566:
5567: IF g_debug_stmt THEN
5568: PO_DEBUG.debug_var(l_log_head,l_progress,'l_uom_conversion_error',l_uom_conversion_error);
5569: END IF;
5570:
5571: IF (l_uom_conversion_error = 'Y') THEN
5572: l_progress := '040';

Line 5697: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5693:
5694: END IF; -- p_action <> Cancel
5695:
5696: IF g_debug_stmt THEN
5697: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5698: 'Calculated amount_closed for backing Reqs'
5699: );
5700: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5701: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'

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

5696: IF g_debug_stmt THEN
5697: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5698: 'Calculated amount_closed for backing Reqs'
5699: );
5700: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5701: ,po_tbl_varchar30('prevent_encumbrance_flag','amount_based_flag'
5702: ,'qty_open','qty_ordered','qty_closed','uom_conversion_rate'
5703: ,'quantity_billed','distribution_type','sequence_num','origin_sequence_num'
5704: ,'amt_open','price','amt_ordered','amt_closed','amount_billed'

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

5723: -- 2) update the PPO unencumbered_quantity during post-processing.
5724:
5725: l_progress := '100';
5726: IF g_debug_stmt THEN
5727: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Starting calculations for backing PPOs');
5728: END IF;
5729:
5730: IF p_action NOT IN (g_action_INVOICE_CANCEL, g_action_CR_MEMO_CANCEL) THEN
5731:

Line 5784: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5780:
5781: END IF; -- if action is Invoice Cancel vs. other actions
5782:
5783: IF g_debug_stmt THEN
5784: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5785: 'Updated qty_open for backing PPO'
5786: );
5787: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5788: ,po_tbl_varchar30('prevent_encumbrance_flag'

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

5783: IF g_debug_stmt THEN
5784: PO_DEBUG.debug_stmt(l_log_head,l_progress,
5785: 'Updated qty_open for backing PPO'
5786: );
5787: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
5788: ,po_tbl_varchar30('prevent_encumbrance_flag'
5789: ,'qty_open','qty_ordered','qty_closed','quantity_billed'
5790: ,'distribution_type','sequence_num','origin_sequence_num')
5791: );

Line 5797: PO_DEBUG.debug_end(l_log_head);

5793:
5794: END IF; -- doc can have a backing PPO
5795:
5796: IF g_debug_stmt THEN
5797: PO_DEBUG.debug_end(l_log_head);
5798: END IF;
5799:
5800:
5801: EXCEPTION

Line 5882: PO_DEBUG.debug_begin(l_log_head);

5878:
5879: BEGIN
5880:
5881: IF g_debug_stmt THEN
5882: PO_DEBUG.debug_begin(l_log_head);
5883: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);

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

5879: BEGIN
5880:
5881: IF g_debug_stmt THEN
5882: PO_DEBUG.debug_begin(l_log_head);
5883: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);

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

5880:
5881: IF g_debug_stmt THEN
5882: PO_DEBUG.debug_begin(l_log_head);
5883: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5888: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

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

5881: IF g_debug_stmt THEN
5882: PO_DEBUG.debug_begin(l_log_head);
5883: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5888: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5889: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);

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

5882: PO_DEBUG.debug_begin(l_log_head);
5883: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5888: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5889: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5890: END IF;

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

5883: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5888: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5889: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5890: END IF;
5891:

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

5884: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type', p_doc_type);
5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5888: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5889: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5890: END IF;
5891:
5892: -- First, calculate the 'open' amount, which is basically the

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

5885: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype', p_doc_subtype);
5886: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
5887: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
5888: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
5889: PO_DEBUG.debug_var(l_log_head,l_progress,'p_ap_reinstated_enc_amt', p_ap_reinstated_enc_amt);
5890: END IF;
5891:
5892: -- First, calculate the 'open' amount, which is basically the
5893: -- transaction amount without any tax or rounding.

Line 6003: PO_DEBUG.debug_stmt(l_log_head,l_progress,

5999:
6000:
6001:
6002: IF g_debug_stmt THEN
6003: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6004: 'Updated amt_open for all lines'
6005: );
6006: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6007: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'amt_open',

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

6002: IF g_debug_stmt THEN
6003: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6004: 'Updated amt_open for all lines'
6005: );
6006: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6007: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'amt_open',
6008: 'qty_ordered','qty_closed','quantity_billed', 'quantity_cancelled'
6009: ,'distribution_type','sequence_num','origin_sequence_num')
6010: );

Line 6023: PO_DEBUG.debug_stmt(l_log_head,l_progress,

6019: ;
6020:
6021: l_progress := '060';
6022: IF g_debug_stmt THEN
6023: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6024: 'Updated pre_round_amt for all lines'
6025: );
6026: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6027: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'pre_round_amt')

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

6022: IF g_debug_stmt THEN
6023: PO_DEBUG.debug_stmt(l_log_head,l_progress,
6024: 'Updated pre_round_amt for all lines'
6025: );
6026: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows
6027: ,po_tbl_varchar30('prevent_encumbrance_flag' ,'pre_round_amt')
6028: );
6029: END IF;
6030:

Line 6089: PO_DEBUG.debug_end(l_log_head);

6085:
6086: l_progress := '110';
6087:
6088: IF g_debug_stmt THEN
6089: PO_DEBUG.debug_end(l_log_head);
6090: END IF;
6091:
6092:
6093: EXCEPTION

Line 6182: PO_DEBUG.debug_begin(l_log_head);

6178:
6179: BEGIN
6180:
6181: IF g_debug_stmt THEN
6182: PO_DEBUG.debug_begin(l_log_head);
6183: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6184: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6185: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6186: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);

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

6179: BEGIN
6180:
6181: IF g_debug_stmt THEN
6182: PO_DEBUG.debug_begin(l_log_head);
6183: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6184: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6185: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6186: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6187: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);

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

6180:
6181: IF g_debug_stmt THEN
6182: PO_DEBUG.debug_begin(l_log_head);
6183: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6184: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6185: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6186: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6187: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6188: END IF;

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

6181: IF g_debug_stmt THEN
6182: PO_DEBUG.debug_begin(l_log_head);
6183: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6184: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6185: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6186: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6187: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6188: END IF;
6189:

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

6182: PO_DEBUG.debug_begin(l_log_head);
6183: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6184: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6185: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6186: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6187: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6188: END IF;
6189:
6190: SELECT

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

6183: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action', p_action);
6184: PO_DEBUG.debug_var(l_log_head,l_progress,'p_currency_code_func', p_currency_code_func);
6185: PO_DEBUG.debug_var(l_log_head,l_progress,'p_min_acct_unit_func', p_min_acct_unit_func);
6186: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cur_precision_func', p_cur_precision_func);
6187: PO_DEBUG.debug_var(l_log_head,l_progress,'p_column_to_use',p_column_to_use);
6188: END IF;
6189:
6190: SELECT
6191: DISTS.sequence_num

Line 6667: PO_DEBUG.debug_begin(l_log_head);

6663:
6664: BEGIN
6665:
6666: IF g_debug_stmt THEN
6667: PO_DEBUG.debug_begin(l_log_head);
6668: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);

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

6664: BEGIN
6665:
6666: IF g_debug_stmt THEN
6667: PO_DEBUG.debug_begin(l_log_head);
6668: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);

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

6665:
6666: IF g_debug_stmt THEN
6667: PO_DEBUG.debug_begin(l_log_head);
6668: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);

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

6666: IF g_debug_stmt THEN
6667: PO_DEBUG.debug_begin(l_log_head);
6668: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);

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

6667: PO_DEBUG.debug_begin(l_log_head);
6668: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
6675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);

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

6668: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_pa_dist_id',p_current_pa_dist_id);
6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
6675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
6676: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);

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

6669: PO_DEBUG.debug_var(l_log_head,l_progress,'p_start_row',p_start_row);
6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
6675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
6676: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6677: END IF;

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

6670: PO_DEBUG.debug_var(l_log_head,l_progress,'p_end_row',p_end_row);
6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
6675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
6676: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6677: END IF;
6678:

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

6671: PO_DEBUG.debug_var(l_log_head,l_progress,'p_running_total',p_running_total);
6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
6675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
6676: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6677: END IF;
6678:
6679: l_progress := '010';

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

6672: PO_DEBUG.debug_var(l_log_head,l_progress,'p_amt_to_enc_func',p_amt_to_enc_func);
6673: PO_DEBUG.debug_var(l_log_head,l_progress,'p_unencumbered_amt',p_unencumbered_amt);
6674: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_sequence_num_tbl',p_pa_sequence_num_tbl);
6675: PO_DEBUG.debug_var(l_log_head,l_progress,'p_pa_multiplier_tbl',p_pa_multiplier_tbl);
6676: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6677: END IF;
6678:
6679: l_progress := '010';
6680:

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

6696: -- zero out those distributions that exceed the maximum:
6697: l_progress := '020';
6698:
6699: IF g_debug_stmt THEN
6700: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available',l_amount_available);
6701: END IF;
6702:
6703: IF ABS(p_running_total) > l_amount_available THEN
6704: -- The sum of the PA amount entries is too high.

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

6743:
6744: l_progress := '900';
6745:
6746: IF g_debug_stmt THEN
6747: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6748: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);
6749: PO_DEBUG.debug_end(l_log_head);
6750: END IF;
6751:

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

6744: l_progress := '900';
6745:
6746: IF g_debug_stmt THEN
6747: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6748: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);
6749: PO_DEBUG.debug_end(l_log_head);
6750: END IF;
6751:
6752: EXCEPTION

Line 6749: PO_DEBUG.debug_end(l_log_head);

6745:
6746: IF g_debug_stmt THEN
6747: PO_DEBUG.debug_var(l_log_head,l_progress,'x_pa_amount_tbl',x_pa_amount_tbl);
6748: PO_DEBUG.debug_var(l_log_head,l_progress,'x_changed_amounts_flag',x_changed_amounts_flag);
6749: PO_DEBUG.debug_end(l_log_head);
6750: END IF;
6751:
6752: EXCEPTION
6753:

Line 6812: PO_DEBUG.debug_begin(l_log_head);

6808:
6809: l_progress := '000';
6810:
6811: IF g_debug_stmt THEN
6812: PO_DEBUG.debug_begin(l_log_head);
6813: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
6814: END IF;
6815:
6816:

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

6809: l_progress := '000';
6810:
6811: IF g_debug_stmt THEN
6812: PO_DEBUG.debug_begin(l_log_head);
6813: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
6814: END IF;
6815:
6816:
6817: -- Algorithm:

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

6836: AND BACKING_REQ.distribution_type = g_dist_type_REQUISITION
6837: AND BACKING_REQ.prevent_encumbrance_flag = 'N'
6838: ;
6839: IF g_debug_stmt THEN
6840: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
6841: END IF;
6842: l_progress := '010';
6843:
6844: -- Next, extract the l_max_total_tbl for each distinct Req distribution: it

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

6865: GROUP BY distribution_id
6866: ;
6867:
6868: IF g_debug_stmt THEN
6869: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);
6870: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);
6871: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);
6872: END IF;
6873:

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

6866: ;
6867:
6868: IF g_debug_stmt THEN
6869: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);
6870: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);
6871: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);
6872: END IF;
6873:
6874: l_progress := '020';

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

6867:
6868: IF g_debug_stmt THEN
6869: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_id_tbl',l_req_dist_id_tbl);
6870: PO_DEBUG.debug_var(l_log_head,l_progress,'l_max_total_tbl',l_max_total_tbl);
6871: PO_DEBUG.debug_var(l_log_head,l_progress,'l_req_dist_gtt_total_tbl',l_req_dist_gtt_total_tbl);
6872: END IF;
6873:
6874: l_progress := '020';
6875:

Line 6906: PO_DEBUG.debug_end(l_log_head);

6902:
6903:
6904: l_progress := '030';
6905: IF g_debug_stmt THEN
6906: PO_DEBUG.debug_end(l_log_head);
6907: END IF;
6908:
6909: EXCEPTION
6910: WHEN FND_API.G_EXC_ERROR THEN

Line 6993: PO_DEBUG.debug_begin(l_log_head);

6989:
6990: BEGIN
6991:
6992: IF g_debug_stmt THEN
6993: PO_DEBUG.debug_begin(l_log_head);
6994: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
6995: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
6996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
6997: END IF;

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

6990: BEGIN
6991:
6992: IF g_debug_stmt THEN
6993: PO_DEBUG.debug_begin(l_log_head);
6994: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
6995: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
6996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
6997: END IF;
6998:

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

6991:
6992: IF g_debug_stmt THEN
6993: PO_DEBUG.debug_begin(l_log_head);
6994: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
6995: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
6996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
6997: END IF;
6998:
6999: l_progress := '010';

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

6992: IF g_debug_stmt THEN
6993: PO_DEBUG.debug_begin(l_log_head);
6994: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_dist_id',p_req_dist_id);
6995: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
6996: PO_DEBUG.debug_var(l_log_head,l_progress,'p_current_total_amount',p_current_total_amount);
6997: END IF;
6998:
6999: l_progress := '010';
7000:

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

7017: l_start_row := l_gtt_amount_tbl.FIRST;
7018: l_end_row := l_gtt_amount_tbl.LAST;
7019:
7020: IF g_debug_stmt THEN
7021: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);
7022: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);
7023: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);
7024: END IF;
7025:

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

7018: l_end_row := l_gtt_amount_tbl.LAST;
7019:
7020: IF g_debug_stmt THEN
7021: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);
7022: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);
7023: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);
7024: END IF;
7025:
7026: IF (p_max_total_amount > p_current_total_amount) THEN

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

7019:
7020: IF g_debug_stmt THEN
7021: PO_DEBUG.debug_var(l_log_head,l_progress,'l_start_row',l_start_row);
7022: PO_DEBUG.debug_var(l_log_head,l_progress,'l_end_row',l_end_row);
7023: PO_DEBUG.debug_var(l_log_head,l_progress,'l_gtt_amount_tbl',l_gtt_amount_tbl);
7024: END IF;
7025:
7026: IF (p_max_total_amount > p_current_total_amount) THEN
7027: -- If p_max_total_amount is greater than p_current_total_amount, then set

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

7036: l_progress := '030';
7037:
7038: l_amount_available := p_max_total_amount;
7039: IF g_debug_stmt THEN
7040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available ',l_amount_available );
7041: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7042: END IF;
7043:
7044: FOR i in l_start_row..l_end_row LOOP

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

7037:
7038: l_amount_available := p_max_total_amount;
7039: IF g_debug_stmt THEN
7040: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_available ',l_amount_available );
7041: PO_DEBUG.debug_var(l_log_head,l_progress,'p_max_total_amount',p_max_total_amount);
7042: END IF;
7043:
7044: FOR i in l_start_row..l_end_row LOOP
7045:

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

7045:
7046: l_current_amount := l_gtt_amount_tbl(i);
7047:
7048: IF g_debug_stmt THEN
7049: PO_DEBUG.debug_var(l_log_head,l_progress,'l_current_amount ',l_current_amount );
7050: END IF;
7051: --
7052: --Modified the condition (<= l_amount_available) as
7053: --(< l_amount_available). This is to ensure that if the remaining

Line 7079: PO_DEBUG.debug_end(l_log_head);

7075:
7076: l_progress := '050';
7077:
7078: IF g_debug_stmt THEN
7079: PO_DEBUG.debug_end(l_log_head);
7080: END IF;
7081:
7082: EXCEPTION
7083: WHEN OTHERS THEN

Line 7153: PO_DEBUG.debug_begin(l_log_head);

7149:
7150: BEGIN
7151:
7152: IF g_debug_stmt THEN
7153: PO_DEBUG.debug_begin(l_log_head);
7154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);

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

7150: BEGIN
7151:
7152: IF g_debug_stmt THEN
7153: PO_DEBUG.debug_begin(l_log_head);
7154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);

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

7151:
7152: IF g_debug_stmt THEN
7153: PO_DEBUG.debug_begin(l_log_head);
7154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7159: END IF;

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

7152: IF g_debug_stmt THEN
7153: PO_DEBUG.debug_begin(l_log_head);
7154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7159: END IF;
7160:

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

7153: PO_DEBUG.debug_begin(l_log_head);
7154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7159: END IF;
7160:
7161: l_progress := '010';

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

7154: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7155: PO_DEBUG.debug_var(l_log_head,l_progress,'p_cbc_flag',p_cbc_flag);
7156: PO_DEBUG.debug_var(l_log_head,l_progress,'p_req_encumb_type_id',p_req_encumb_type_id);
7157: PO_DEBUG.debug_var(l_log_head,l_progress,'p_po_encumb_type_id',p_po_encumb_type_id);
7158: PO_DEBUG.debug_var(l_log_head,l_progress,'p_invoice_id',p_invoice_id);
7159: END IF;
7160:
7161: l_progress := '010';
7162:

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

7426:
7427: l_progress := '210';
7428:
7429: IF g_debug_stmt THEN
7430: PO_DEBUG.debug_stmt(l_log_head,l_progress,'modifying packet for CBC');
7431: END IF;
7432:
7433: IF p_action = g_action_RESERVE THEN
7434: l_cbc_action := g_action_CBC_RESERVE;

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

7447:
7448: l_progress := '230';
7449:
7450: IF g_debug_stmt THEN
7451: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_action',l_cbc_action);
7452: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_line_description',l_cbc_line_description);
7453: END IF;
7454:
7455: UPDATE PO_ENCUMBRANCE_GT ALL_DISTS

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

7448: l_progress := '230';
7449:
7450: IF g_debug_stmt THEN
7451: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_action',l_cbc_action);
7452: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cbc_line_description',l_cbc_line_description);
7453: END IF;
7454:
7455: UPDATE PO_ENCUMBRANCE_GT ALL_DISTS
7456: SET

Line 7471: PO_DEBUG.debug_end(l_log_head);

7467:
7468: l_progress := '900';
7469:
7470: IF g_debug_stmt THEN
7471: PO_DEBUG.debug_end(l_log_head);
7472: END IF;
7473:
7474: EXCEPTION
7475: WHEN FND_API.G_EXC_ERROR THEN

Line 7547: PO_DEBUG.debug_begin(l_log_head);

7543:
7544: SAVEPOINT CHECK_ENC_ACTION_POSSIBLE;
7545:
7546: IF g_debug_stmt THEN
7547: PO_DEBUG.debug_begin(l_log_head);
7548: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7549: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7550: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7551: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);

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

7544: SAVEPOINT CHECK_ENC_ACTION_POSSIBLE;
7545:
7546: IF g_debug_stmt THEN
7547: PO_DEBUG.debug_begin(l_log_head);
7548: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7549: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7550: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7551: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);

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

7545:
7546: IF g_debug_stmt THEN
7547: PO_DEBUG.debug_begin(l_log_head);
7548: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7549: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7550: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7551: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7553: END IF;

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

7546: IF g_debug_stmt THEN
7547: PO_DEBUG.debug_begin(l_log_head);
7548: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7549: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7550: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7551: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7553: END IF;
7554:

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

7547: PO_DEBUG.debug_begin(l_log_head);
7548: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7549: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7550: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7551: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7553: END IF;
7554:
7555: l_progress := '010';

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

7548: PO_DEBUG.debug_var(l_log_head,l_progress,'p_action',p_action);
7549: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_type',p_doc_type);
7550: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_subtype',p_doc_subtype);
7551: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level',p_doc_level);
7552: PO_DEBUG.debug_var(l_log_head,l_progress,'p_doc_level_id',p_doc_level_id);
7553: END IF;
7554:
7555: l_progress := '010';
7556:

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

7579:
7580: l_progress := '900';
7581:
7582: IF g_debug_stmt THEN
7583: PO_DEBUG.debug_var(l_log_head,l_progress,'x_action_possible_flag',x_action_possible_flag);
7584: PO_DEBUG.debug_end(l_log_head);
7585: END IF;
7586:
7587: EXCEPTION

Line 7584: PO_DEBUG.debug_end(l_log_head);

7580: l_progress := '900';
7581:
7582: IF g_debug_stmt THEN
7583: PO_DEBUG.debug_var(l_log_head,l_progress,'x_action_possible_flag',x_action_possible_flag);
7584: PO_DEBUG.debug_end(l_log_head);
7585: END IF;
7586:
7587: EXCEPTION
7588:

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

7588:
7589: WHEN OTHERS THEN
7590:
7591: IF g_debug_unexp THEN
7592: PO_DEBUG.debug_exc(l_log_head,l_progress);
7593: END IF;
7594:
7595: RAISE;
7596:

Line 7629: PO_DEBUG.debug_begin(l_log_head);

7625:
7626: BEGIN
7627:
7628: IF g_debug_stmt THEN
7629: PO_DEBUG.debug_begin(l_log_head);
7630: END IF;
7631:
7632: l_progress := '010';
7633:

Line 7639: PO_DEBUG.debug_end(l_log_head);

7635:
7636: l_progress := '900';
7637:
7638: IF g_debug_stmt THEN
7639: PO_DEBUG.debug_end(l_log_head);
7640: END IF;
7641:
7642: EXCEPTION
7643: WHEN OTHERS THEN

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

7790: l_progress:= '060';
7791: --
7792: -- Get functional currency setup
7793: IF g_debug_stmt THEN
7794: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Before starting currency conversions on entered_amount_fields in po_encumbrance_gt');
7795: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
7796: END IF;
7797:
7798: SELECT

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

7791: --
7792: -- Get functional currency setup
7793: IF g_debug_stmt THEN
7794: PO_DEBUG.debug_stmt(l_log_head,l_progress,'Before starting currency conversions on entered_amount_fields in po_encumbrance_gt');
7795: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
7796: END IF;
7797:
7798: SELECT
7799: FND_CUR.minimum_accountable_unit

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

7804: FROM FND_CURRENCIES FND_CUR
7805: WHERE FND_CUR.currency_code = p_currency_code_func
7806: ;
7807: IF g_debug_stmt THEN
7808: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');
7809: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);
7810: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);
7811: END IF;
7812: l_progress:= '070';

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

7805: WHERE FND_CUR.currency_code = p_currency_code_func
7806: ;
7807: IF g_debug_stmt THEN
7808: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');
7809: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);
7810: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);
7811: END IF;
7812: l_progress:= '070';
7813: --For Agreement Distributions we need to convert back from the

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

7806: ;
7807: IF g_debug_stmt THEN
7808: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying functional currency setup');
7809: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_func' , l_min_acct_unit_func);
7810: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_func' , l_cur_precision_func);
7811: END IF;
7812: l_progress:= '070';
7813: --For Agreement Distributions we need to convert back from the
7814: --Functional currency to the foreign currency and then apply rounding.

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

7850: ORDER BY DISTS.sequence_num
7851: ;
7852:
7853: IF g_debug_stmt THEN
7854: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
7855: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);

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

7851: ;
7852:
7853: IF g_debug_stmt THEN
7854: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
7855: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);

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

7852:
7853: IF g_debug_stmt THEN
7854: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
7855: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);

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

7853: IF g_debug_stmt THEN
7854: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
7855: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);

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

7854: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After querying for distributions.');
7855: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
7862: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);

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

7855: PO_DEBUG.debug_var(l_log_head,l_progress,'l_sequence_num_tbl',l_sequence_num_tbl);
7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
7862: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
7863: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);

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

7856: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_to_round_tbl',l_amount_to_round_tbl);
7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
7862: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
7863: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
7864: END IF;

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

7857: PO_DEBUG.debug_var(l_log_head,l_progress,'l_exchange_rate_tbl',l_exchange_rate_tbl);
7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
7862: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
7863: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
7864: END IF;
7865: l_progress:= '080';

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

7858: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_from_tbl',l_cur_precision_from_tbl);
7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
7862: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
7863: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
7864: END IF;
7865: l_progress:= '080';
7866:

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

7859: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_from_tbl',l_min_acct_unit_from_tbl);
7860: PO_DEBUG.debug_var(l_log_head,l_progress,'l_cur_precision_to_tbl',l_cur_precision_to_tbl);
7861: PO_DEBUG.debug_var(l_log_head,l_progress,'l_min_acct_unit_to_tbl',l_min_acct_unit_to_tbl);
7862: PO_DEBUG.debug_var(l_log_head,l_progress,'l_round_only_flag_tbl',l_round_only_flag_tbl);
7863: PO_DEBUG.debug_var(l_log_head,l_progress,'l_origin_sequence_num_tbl',l_origin_sequence_num_tbl);
7864: END IF;
7865: l_progress:= '080';
7866:
7867: PO_CORE_S2.round_and_convert_currency(

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

7878: );
7879:
7880: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
7881:
7882: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing PO_CORE_S2.round_and_convert_currency on distributions');
7883: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
7884: l_progress := '090';
7885: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
7886: END IF;

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

7879:
7880: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
7881:
7882: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing PO_CORE_S2.round_and_convert_currency on distributions');
7883: PO_DEBUG.debug_var(l_log_head,l_progress,'l_return_status',l_return_status);
7884: l_progress := '090';
7885: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
7886: END IF;
7887:

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

7885: RAISE FND_API.g_EXC_UNEXPECTED_ERROR;
7886: END IF;
7887:
7888: IF g_debug_stmt THEN
7889: PO_DEBUG.debug_var(l_log_head,l_progress,'l_amount_result_tbl',l_amount_result_tbl);
7890: END IF;
7891:
7892: l_progress:='100';
7893: FORALL i IN 1 .. l_sequence_num_tbl.COUNT

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

7896: WHERE DISTS.prevent_encumbrance_flag = 'N'
7897: AND DISTS.sequence_num = l_sequence_num_tbl(i)
7898: ;
7899: IF g_debug_stmt THEN
7900: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');
7901: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);
7902: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
7903: END IF;
7904: --

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

7897: AND DISTS.sequence_num = l_sequence_num_tbl(i)
7898: ;
7899: IF g_debug_stmt THEN
7900: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');
7901: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);
7902: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
7903: END IF;
7904: --
7905: l_progress := '110';

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

7898: ;
7899: IF g_debug_stmt THEN
7900: PO_DEBUG.debug_stmt(l_log_head,l_progress,'After completing update on po_encumbrance_gt for distributions');
7901: PO_DEBUG.debug_var(l_log_head,l_progress,'sql%rowcount',sql%rowcount);
7902: PO_DEBUG.debug_table(l_log_head,l_progress,'PO_ENCUMBRANCE_GT',PO_DEBUG.g_all_rows,NULL,'PO');
7903: END IF;
7904: --
7905: l_progress := '110';
7906: