956:
957: END IF;
958:
959: ----------------------
960: IF (fnd_api.to_boolean (p_init_msg_list))
961: THEN
962: fnd_msg_pub.initialize;
963: END IF;
964:
961: THEN
962: fnd_msg_pub.initialize;
963: END IF;
964:
965: --DBMS_OUTPUT.put_line ('fnd_api.to_boolean got initialized');
966:
967: IF (c_level_procedure >= g_log_level)
968: THEN
969: TRACE (p_msg => 'fnd_api.to_boolean got initialized',
965: --DBMS_OUTPUT.put_line ('fnd_api.to_boolean got initialized');
966:
967: IF (c_level_procedure >= g_log_level)
968: THEN
969: TRACE (p_msg => 'fnd_api.to_boolean got initialized',
970: p_level => c_level_procedure,
971: p_module => l_log_module
972: );
973: END IF;
972: );
973: END IF;
974:
975: -- STANDARD CALL TO CHECK FOR CALL COMPATIBILITY.
976: IF (NOT fnd_api.compatible_api_call (p_current_version_number => l_api_version,
977: p_caller_version_number => p_api_version,
978: p_api_name => l_api_name,
979: p_pkg_name => c_default_module
980: )
979: p_pkg_name => c_default_module
980: )
981: )
982: THEN
983: RAISE fnd_api.g_exc_unexpected_error;
984: END IF;
985:
986: -- INITIALIZE GLOBAL VARIABLES
987: x_return_status := fnd_api.g_ret_sts_success;
983: RAISE fnd_api.g_exc_unexpected_error;
984: END IF;
985:
986: -- INITIALIZE GLOBAL VARIABLES
987: x_return_status := fnd_api.g_ret_sts_success;
988: --DBMS_OUTPUT.put_line (x_return_status);
989:
990: IF (c_level_procedure >= g_log_level)
991: THEN
1462: );
1463: END IF;
1464: -------------------------
1465: EXCEPTION
1466: WHEN fnd_api.g_exc_error
1467: THEN
1468: ROLLBACK;
1469: x_return_status := fnd_api.g_ret_sts_error;
1470: fnd_msg_pub.count_and_get (p_count => x_msg_count,
1465: EXCEPTION
1466: WHEN fnd_api.g_exc_error
1467: THEN
1468: ROLLBACK;
1469: x_return_status := fnd_api.g_ret_sts_error;
1470: fnd_msg_pub.count_and_get (p_count => x_msg_count,
1471: p_data => x_msg_data
1472: );
1473: WHEN fnd_api.g_exc_unexpected_error
1469: x_return_status := fnd_api.g_ret_sts_error;
1470: fnd_msg_pub.count_and_get (p_count => x_msg_count,
1471: p_data => x_msg_data
1472: );
1473: WHEN fnd_api.g_exc_unexpected_error
1474: THEN
1475: ROLLBACK;
1476: x_return_status := fnd_api.g_ret_sts_unexp_error;
1477: fnd_msg_pub.count_and_get (p_count => x_msg_count,
1472: );
1473: WHEN fnd_api.g_exc_unexpected_error
1474: THEN
1475: ROLLBACK;
1476: x_return_status := fnd_api.g_ret_sts_unexp_error;
1477: fnd_msg_pub.count_and_get (p_count => x_msg_count,
1478: p_data => x_msg_data
1479: );
1480: WHEN xla_exceptions_pkg.application_exception
1492: );
1493: END IF;
1494:
1495: ROLLBACK;
1496: x_return_status := fnd_api.g_ret_sts_unexp_error;
1497:
1498: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error)
1499: THEN
1500: fnd_msg_pub.add_exc_msg (c_default_module, l_api_name);
1550: END IF;
1551:
1552: ----------------------
1553: l_api_version := 1.0;
1554: l_init_msg_list := fnd_api.g_true;
1555: l_application_id := 200;
1556: l_reversal_method := 'SIDE';
1557: -- l_gl_date := SYSDATE;
1558: l_post_to_gl_flag := 'Y';
1819: p_ledger_short_name IN VARCHAR2,
1820: p_appl_short_name IN VARCHAR2,
1821: p_end_date IN DATE,
1822: p_accounting_batch_id IN NUMBER,
1823: p_init_msg_list IN VARCHAR2 DEFAULT fnd_api.g_true,
1824: p_api_version IN NUMBER DEFAULT 1.0
1825: )
1826: RETURN NUMBER
1827: IS
1999: p_appl_short_name IN VARCHAR2,
2000: p_end_date IN DATE,
2001: p_accounting_batch_id IN NUMBER,
2002: p_group_id IN NUMBER,
2003: p_init_msg_list IN VARCHAR2 DEFAULT fnd_api.g_true,
2004: p_api_version IN NUMBER DEFAULT 1.0,
2005: p_commit IN BOOLEAN DEFAULT TRUE
2006: )
2007: IS