387: -- Internal Bug# 8459818
388:
389: IF G_QP_DEBUG_PROFILE_VALUE = G_TIME_LOG_DBG_LEVEL
390: AND FND_PROFILE.VALUE('ONT_DEBUG_LEVEL') = 1 THEN
391: oe_debug_pub.SetDebugLevel(1);
392: oe_debug_pub.Initialize;
393: oe_debug_pub.debug_on;
394:
395: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
388:
389: IF G_QP_DEBUG_PROFILE_VALUE = G_TIME_LOG_DBG_LEVEL
390: AND FND_PROFILE.VALUE('ONT_DEBUG_LEVEL') = 1 THEN
391: oe_debug_pub.SetDebugLevel(1);
392: oe_debug_pub.Initialize;
393: oe_debug_pub.debug_on;
394:
395: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
396: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
389: IF G_QP_DEBUG_PROFILE_VALUE = G_TIME_LOG_DBG_LEVEL
390: AND FND_PROFILE.VALUE('ONT_DEBUG_LEVEL') = 1 THEN
391: oe_debug_pub.SetDebugLevel(1);
392: oe_debug_pub.Initialize;
393: oe_debug_pub.debug_on;
394:
395: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
396: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
397: engine_debug ('The output file is : ' || l_output_file );
391: oe_debug_pub.SetDebugLevel(1);
392: oe_debug_pub.Initialize;
393: oe_debug_pub.debug_on;
394:
395: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
396: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
397: engine_debug ('The output file is : ' || l_output_file );
398: END IF;
399: ELSIF FND_PROFILE.VALUE('ONT_DEBUG_LEVEL') = 5 THEN
396: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
397: engine_debug ('The output file is : ' || l_output_file );
398: END IF;
399: ELSIF FND_PROFILE.VALUE('ONT_DEBUG_LEVEL') = 5 THEN
400: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
401: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
402: engine_debug ('The output file is : ' || l_output_file );
403: END IF;
404: END IF;
403: END IF;
404: END IF;
405:
406: -- Introduced for facilitating debugging for non OM Applications
407: --IF (NOT OE_DEBUG_PUB.ISDebugOn) THEN --If om debug is not on , then only look at qp_debug
408: if oe_debug_pub.g_debug_level > 0 then
409: G_DEBUG_ENGINE:= FND_API.G_TRUE;
410: else
411: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
404: END IF;
405:
406: -- Introduced for facilitating debugging for non OM Applications
407: --IF (NOT OE_DEBUG_PUB.ISDebugOn) THEN --If om debug is not on , then only look at qp_debug
408: if oe_debug_pub.g_debug_level > 0 then
409: G_DEBUG_ENGINE:= FND_API.G_TRUE;
410: else
411: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
412: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
409: G_DEBUG_ENGINE:= FND_API.G_TRUE;
410: else
411: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
412: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
413: oe_debug_pub.SetDebugLevel(10);
414: oe_debug_pub.Initialize;
415: oe_debug_pub.debug_on;
416: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
417: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
410: else
411: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
412: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
413: oe_debug_pub.SetDebugLevel(10);
414: oe_debug_pub.Initialize;
415: oe_debug_pub.debug_on;
416: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
417: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
418: engine_debug ('The output file is : ' || l_output_file );
411: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
412: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
413: oe_debug_pub.SetDebugLevel(10);
414: oe_debug_pub.Initialize;
415: oe_debug_pub.debug_on;
416: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
417: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
418: engine_debug ('The output file is : ' || l_output_file );
419: END IF;
412: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
413: oe_debug_pub.SetDebugLevel(10);
414: oe_debug_pub.Initialize;
415: oe_debug_pub.debug_on;
416: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
417: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
418: engine_debug ('The output file is : ' || l_output_file );
419: END IF;
420: G_DEBUG_ENGINE:= FND_API.G_TRUE;
544: l_return_status VARCHAR2(240);
545: l_status_text VARCHAR2(240);
546: BEGIN
547: --IF (G_DEBUG_ENGINE = FND_API.G_TRUE) THEN
548: oe_debug_pub.add(p_text,3);
549:
550: -- Debug Screen related change
551: -- Irrespective of om debug if qp debug is on debug information is captured into qp debug tables
552: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) THEN
41285: END IF;
41286: END IF;
41287:
41288:
41289: /* IF (NOT OE_DEBUG_PUB.ISDebugOn) THEN --If om debug is not on , then only look at qp_debug
41290: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
41291: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
41292: oe_debug_pub.SetDebugLevel(10);
41293: oe_debug_pub.Initialize;
41288:
41289: /* IF (NOT OE_DEBUG_PUB.ISDebugOn) THEN --If om debug is not on , then only look at qp_debug
41290: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
41291: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
41292: oe_debug_pub.SetDebugLevel(10);
41293: oe_debug_pub.Initialize;
41294: oe_debug_pub.debug_on;
41295: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
41296: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
41289: /* IF (NOT OE_DEBUG_PUB.ISDebugOn) THEN --If om debug is not on , then only look at qp_debug
41290: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
41291: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
41292: oe_debug_pub.SetDebugLevel(10);
41293: oe_debug_pub.Initialize;
41294: oe_debug_pub.debug_on;
41295: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
41296: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
41297: engine_debug ('The output file is : ' || l_output_file );
41290: IF (G_QP_DEBUG_PROFILE_VALUE = G_YES) OR
41291: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
41292: oe_debug_pub.SetDebugLevel(10);
41293: oe_debug_pub.Initialize;
41294: oe_debug_pub.debug_on;
41295: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
41296: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
41297: engine_debug ('The output file is : ' || l_output_file );
41298: END IF;
41291: (G_QP_DEBUG_PROFILE_VALUE = G_DONT_WRITE_TO_DEBUG) THEN -- If qp debug is on
41292: oe_debug_pub.SetDebugLevel(10);
41293: oe_debug_pub.Initialize;
41294: oe_debug_pub.debug_on;
41295: l_output_file := oe_debug_pub.Set_Debug_Mode('FILE');
41296: IF G_DEBUG_ENGINE = FND_API.G_TRUE THEN
41297: engine_debug ('The output file is : ' || l_output_file );
41298: END IF;
41299: G_DEBUG_ENGINE:= FND_API.G_TRUE;
41332: G_CHILD_VALUE_FROM_TBL.delete;
41333: G_CHILD_VALUE_TO_TBL.delete;
41334: G_PARENT_LINE_DETAIL_INDEX_TBL.delete;
41335:
41336: --dbms_output.put_line('Final Debug: ' || oe_debug_pub.g_debug);
41337: --G_DEBUG_ENGINE := FND_API.G_TRUE;
41338: --G_LINE_DETAIL_INDEX := 0;
41339: G_MANUAL_DISCOUNT_FLAG := nvl(FND_PROFILE.VALUE(G_RETURN_MANUAL_DISCOUNTS),'Y'); --p_control_rec.manual_discount_flag;
41340: G_GSA_CHECK_FLAG := p_control_rec.gsa_check_flag;