1: PACKAGE BODY FA_CUA_ASSET_APIS AS
2: /* $Header: FACXAPIMB.pls 120.1 2002/11/12 07:59:17 glchen ship $ */
3:
4: -- -------------------------------------------------------
5:
1828: -- ------------------------------------
1829: PROCEDURE wrapper_derive_asset_attribute IS
1830: Begin
1831: derive_asset_attribute(
1832: FA_CUA_ASSET_APIS.g_book_type_code
1833: , FA_CUA_ASSET_APIS.g_parent_node_id
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1829: PROCEDURE wrapper_derive_asset_attribute IS
1830: Begin
1831: derive_asset_attribute(
1832: FA_CUA_ASSET_APIS.g_book_type_code
1833: , FA_CUA_ASSET_APIS.g_parent_node_id
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1830: Begin
1831: derive_asset_attribute(
1832: FA_CUA_ASSET_APIS.g_book_type_code
1833: , FA_CUA_ASSET_APIS.g_parent_node_id
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1831: derive_asset_attribute(
1832: FA_CUA_ASSET_APIS.g_book_type_code
1833: , FA_CUA_ASSET_APIS.g_parent_node_id
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1832: FA_CUA_ASSET_APIS.g_book_type_code
1833: , FA_CUA_ASSET_APIS.g_parent_node_id
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1833: , FA_CUA_ASSET_APIS.g_parent_node_id
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1834: , FA_CUA_ASSET_APIS.g_asset_number
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1835: , FA_CUA_ASSET_APIS.g_asset_id
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1836: , FA_CUA_ASSET_APIS.g_prorate_date
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1837: , FA_CUA_ASSET_APIS.g_cat_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1838: , FA_CUA_ASSET_APIS.g_cat_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1839: , FA_CUA_ASSET_APIS.g_cat_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1840: , FA_CUA_ASSET_APIS.g_cat_rejection_flag
1841: , FA_CUA_ASSET_APIS.g_lease_id_in
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1842: , FA_CUA_ASSET_APIS.g_lease_id_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1843: , FA_CUA_ASSET_APIS.g_lease_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1844: , FA_CUA_ASSET_APIS.g_lease_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1845: , NULL -- distribution_set_id_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1846: , FA_CUA_ASSET_APIS.g_distribution_set_id_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1847: , FA_CUA_ASSET_APIS.g_distribution_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1848: , FA_CUA_ASSET_APIS.g_distribution_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1849: , FA_CUA_ASSET_APIS.g_serial_number_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1850: , FA_CUA_ASSET_APIS.g_serial_number_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1851: , FA_CUA_ASSET_APIS.g_serial_num_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1852: , FA_CUA_ASSET_APIS.g_serial_num_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1853: , FA_CUA_ASSET_APIS.g_asset_key_ccid_in
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1854: , FA_CUA_ASSET_APIS.g_asset_key_ccid_out
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1855: , FA_CUA_ASSET_APIS.g_asset_key_overide_allowed
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1863: , FA_CUA_ASSET_APIS.g_err_stack
1856: , FA_CUA_ASSET_APIS.g_asset_key_rejection_flag
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1863: , FA_CUA_ASSET_APIS.g_err_stack
1864: , FA_CUA_ASSET_APIS.g_derivation_type );
1857: , FA_CUA_ASSET_APIS.g_life_in_months_in
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1863: , FA_CUA_ASSET_APIS.g_err_stack
1864: , FA_CUA_ASSET_APIS.g_derivation_type );
1865: End;
1858: , FA_CUA_ASSET_APIS.g_life_in_months_out
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1863: , FA_CUA_ASSET_APIS.g_err_stack
1864: , FA_CUA_ASSET_APIS.g_derivation_type );
1865: End;
1866:
1859: , FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1863: , FA_CUA_ASSET_APIS.g_err_stack
1864: , FA_CUA_ASSET_APIS.g_derivation_type );
1865: End;
1866:
1867: PROCEDURE initialize_Gvariables IS
1860: , FA_CUA_ASSET_APIS.g_life_rejection_flag
1861: , FA_CUA_ASSET_APIS.g_err_code
1862: , FA_CUA_ASSET_APIS.g_err_stage
1863: , FA_CUA_ASSET_APIS.g_err_stack
1864: , FA_CUA_ASSET_APIS.g_derivation_type );
1865: End;
1866:
1867: PROCEDURE initialize_Gvariables IS
1868: Begin
1865: End;
1866:
1867: PROCEDURE initialize_Gvariables IS
1868: Begin
1869: FA_CUA_ASSET_APIS.g_book_type_code := NULL;
1870: FA_CUA_ASSET_APIS.g_parent_node_id := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1866:
1867: PROCEDURE initialize_Gvariables IS
1868: Begin
1869: FA_CUA_ASSET_APIS.g_book_type_code := NULL;
1870: FA_CUA_ASSET_APIS.g_parent_node_id := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1867: PROCEDURE initialize_Gvariables IS
1868: Begin
1869: FA_CUA_ASSET_APIS.g_book_type_code := NULL;
1870: FA_CUA_ASSET_APIS.g_parent_node_id := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1868: Begin
1869: FA_CUA_ASSET_APIS.g_book_type_code := NULL;
1870: FA_CUA_ASSET_APIS.g_parent_node_id := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1869: FA_CUA_ASSET_APIS.g_book_type_code := NULL;
1870: FA_CUA_ASSET_APIS.g_parent_node_id := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1870: FA_CUA_ASSET_APIS.g_parent_node_id := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1871: FA_CUA_ASSET_APIS.g_asset_number := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1872: FA_CUA_ASSET_APIS.g_asset_id := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1873: FA_CUA_ASSET_APIS.g_prorate_date := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1874: FA_CUA_ASSET_APIS.g_cat_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1875: FA_CUA_ASSET_APIS.g_cat_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1876: FA_CUA_ASSET_APIS.g_cat_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1877: FA_CUA_ASSET_APIS.g_cat_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1878: FA_CUA_ASSET_APIS.g_lease_id_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1879: FA_CUA_ASSET_APIS.g_lease_id_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1880: FA_CUA_ASSET_APIS.g_lease_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1881: FA_CUA_ASSET_APIS.g_lease_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1882: --FA_CUA_ASSET_APIS.g_distribution_set_id_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1883: FA_CUA_ASSET_APIS.g_distribution_set_id_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1884: FA_CUA_ASSET_APIS.g_distribution_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1885: FA_CUA_ASSET_APIS.g_distribution_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1886: FA_CUA_ASSET_APIS.g_serial_number_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1887: FA_CUA_ASSET_APIS.g_serial_number_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1888: FA_CUA_ASSET_APIS.g_serial_num_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1889: FA_CUA_ASSET_APIS.g_serial_num_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1890: FA_CUA_ASSET_APIS.g_asset_key_ccid_in := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1891: FA_CUA_ASSET_APIS.g_asset_key_ccid_out := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1892: FA_CUA_ASSET_APIS.g_asset_key_overide_allowed := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1900: FA_CUA_ASSET_APIS.g_err_stack := NULL;
1893: FA_CUA_ASSET_APIS.g_asset_key_rejection_flag := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1900: FA_CUA_ASSET_APIS.g_err_stack := NULL;
1901: FA_CUA_ASSET_APIS.g_derivation_type := NULL;
1894: FA_CUA_ASSET_APIS.g_life_in_months_in := NULL;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1900: FA_CUA_ASSET_APIS.g_err_stack := NULL;
1901: FA_CUA_ASSET_APIS.g_derivation_type := NULL;
1902: End initialize_Gvariables;
1895: FA_CUA_ASSET_APIS.g_life_in_months_out := NULL;
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1900: FA_CUA_ASSET_APIS.g_err_stack := NULL;
1901: FA_CUA_ASSET_APIS.g_derivation_type := NULL;
1902: End initialize_Gvariables;
1903:
1896: FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed := NULL;
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1900: FA_CUA_ASSET_APIS.g_err_stack := NULL;
1901: FA_CUA_ASSET_APIS.g_derivation_type := NULL;
1902: End initialize_Gvariables;
1903:
1904: PROCEDURE Purge(errbuf OUT NOCOPY VARCHAR2,
1897: FA_CUA_ASSET_APIS.g_life_rejection_flag := NULL;
1898: FA_CUA_ASSET_APIS.g_err_code := NULL;
1899: FA_CUA_ASSET_APIS.g_err_stage := NULL;
1900: FA_CUA_ASSET_APIS.g_err_stack := NULL;
1901: FA_CUA_ASSET_APIS.g_derivation_type := NULL;
1902: End initialize_Gvariables;
1903:
1904: PROCEDURE Purge(errbuf OUT NOCOPY VARCHAR2,
1905: retcode OUT NOCOPY VARCHAR2,
1985: where asset_id = p_asset_id;
1986:
1987: initialize_Gvariables;
1988: if p_attribute_name = 'CATEGORY' then
1989: FA_CUA_ASSET_APIS.g_derivation_type := 'ALL';
1990: else
1991: FA_CUA_ASSET_APIS.g_derivation_type := p_attribute_name;
1992: end if;
1993:
1987: initialize_Gvariables;
1988: if p_attribute_name = 'CATEGORY' then
1989: FA_CUA_ASSET_APIS.g_derivation_type := 'ALL';
1990: else
1991: FA_CUA_ASSET_APIS.g_derivation_type := p_attribute_name;
1992: end if;
1993:
1994: FA_CUA_ASSET_APIS.g_book_type_code := p_book_type_code;
1995: FA_CUA_ASSET_APIS.g_parent_node_id := v_parent_id;
1990: else
1991: FA_CUA_ASSET_APIS.g_derivation_type := p_attribute_name;
1992: end if;
1993:
1994: FA_CUA_ASSET_APIS.g_book_type_code := p_book_type_code;
1995: FA_CUA_ASSET_APIS.g_parent_node_id := v_parent_id;
1996: FA_CUA_ASSET_APIS.g_cat_id_in:= v_asset_cat_id;
1997: FA_CUA_ASSET_APIS.g_asset_id:= p_asset_id;
1998: FA_CUA_ASSET_APIS.g_err_code := '0';
1991: FA_CUA_ASSET_APIS.g_derivation_type := p_attribute_name;
1992: end if;
1993:
1994: FA_CUA_ASSET_APIS.g_book_type_code := p_book_type_code;
1995: FA_CUA_ASSET_APIS.g_parent_node_id := v_parent_id;
1996: FA_CUA_ASSET_APIS.g_cat_id_in:= v_asset_cat_id;
1997: FA_CUA_ASSET_APIS.g_asset_id:= p_asset_id;
1998: FA_CUA_ASSET_APIS.g_err_code := '0';
1999:
1992: end if;
1993:
1994: FA_CUA_ASSET_APIS.g_book_type_code := p_book_type_code;
1995: FA_CUA_ASSET_APIS.g_parent_node_id := v_parent_id;
1996: FA_CUA_ASSET_APIS.g_cat_id_in:= v_asset_cat_id;
1997: FA_CUA_ASSET_APIS.g_asset_id:= p_asset_id;
1998: FA_CUA_ASSET_APIS.g_err_code := '0';
1999:
2000: l_err_stage:= 'wrapper_derive_asset_attribute';
1993:
1994: FA_CUA_ASSET_APIS.g_book_type_code := p_book_type_code;
1995: FA_CUA_ASSET_APIS.g_parent_node_id := v_parent_id;
1996: FA_CUA_ASSET_APIS.g_cat_id_in:= v_asset_cat_id;
1997: FA_CUA_ASSET_APIS.g_asset_id:= p_asset_id;
1998: FA_CUA_ASSET_APIS.g_err_code := '0';
1999:
2000: l_err_stage:= 'wrapper_derive_asset_attribute';
2001: --dbms_output.put_line(l_err_stage);
1994: FA_CUA_ASSET_APIS.g_book_type_code := p_book_type_code;
1995: FA_CUA_ASSET_APIS.g_parent_node_id := v_parent_id;
1996: FA_CUA_ASSET_APIS.g_cat_id_in:= v_asset_cat_id;
1997: FA_CUA_ASSET_APIS.g_asset_id:= p_asset_id;
1998: FA_CUA_ASSET_APIS.g_err_code := '0';
1999:
2000: l_err_stage:= 'wrapper_derive_asset_attribute';
2001: --dbms_output.put_line(l_err_stage);
2002: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
1998: FA_CUA_ASSET_APIS.g_err_code := '0';
1999:
2000: l_err_stage:= 'wrapper_derive_asset_attribute';
2001: --dbms_output.put_line(l_err_stage);
2002: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
2003:
2004: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_code);
2005: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stack);
2006: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stage);
2000: l_err_stage:= 'wrapper_derive_asset_attribute';
2001: --dbms_output.put_line(l_err_stage);
2002: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
2003:
2004: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_code);
2005: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stack);
2006: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stage);
2007:
2008: if ( FA_CUA_ASSET_APIS.g_err_code <> '0') then
2001: --dbms_output.put_line(l_err_stage);
2002: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
2003:
2004: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_code);
2005: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stack);
2006: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stage);
2007:
2008: if ( FA_CUA_ASSET_APIS.g_err_code <> '0') then
2009: FA_SRVR_MSG.Add_Message(
2002: FA_CUA_ASSET_APIS.wrapper_derive_asset_attribute;
2003:
2004: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_code);
2005: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stack);
2006: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stage);
2007:
2008: if ( FA_CUA_ASSET_APIS.g_err_code <> '0') then
2009: FA_SRVR_MSG.Add_Message(
2010: CALLING_FN => 'FA_CUA_ASSET_APIS.check_override_allowed',
2004: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_code);
2005: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stack);
2006: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stage);
2007:
2008: if ( FA_CUA_ASSET_APIS.g_err_code <> '0') then
2009: FA_SRVR_MSG.Add_Message(
2010: CALLING_FN => 'FA_CUA_ASSET_APIS.check_override_allowed',
2011: NAME => FA_CUA_ASSET_APIS.g_err_code );
2012: return FALSE;
2006: --dbms_output.put_line(FA_CUA_ASSET_APIS.g_err_stage);
2007:
2008: if ( FA_CUA_ASSET_APIS.g_err_code <> '0') then
2009: FA_SRVR_MSG.Add_Message(
2010: CALLING_FN => 'FA_CUA_ASSET_APIS.check_override_allowed',
2011: NAME => FA_CUA_ASSET_APIS.g_err_code );
2012: return FALSE;
2013: end if;
2014:
2007:
2008: if ( FA_CUA_ASSET_APIS.g_err_code <> '0') then
2009: FA_SRVR_MSG.Add_Message(
2010: CALLING_FN => 'FA_CUA_ASSET_APIS.check_override_allowed',
2011: NAME => FA_CUA_ASSET_APIS.g_err_code );
2012: return FALSE;
2013: end if;
2014:
2015: if p_attribute_name = 'CATEGORY' then
2012: return FALSE;
2013: end if;
2014:
2015: if p_attribute_name = 'CATEGORY' then
2016: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_cat_overide_allowed,'Y');
2017:
2018: elsif p_attribute_name = 'LEASE_NUMBER'then
2019: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_lease_overide_allowed, 'Y');
2020:
2015: if p_attribute_name = 'CATEGORY' then
2016: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_cat_overide_allowed,'Y');
2017:
2018: elsif p_attribute_name = 'LEASE_NUMBER'then
2019: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_lease_overide_allowed, 'Y');
2020:
2021: elsif p_attribute_name = 'DISTRIBUTION' then
2022: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_distribution_overide_allowed, 'Y');
2023:
2018: elsif p_attribute_name = 'LEASE_NUMBER'then
2019: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_lease_overide_allowed, 'Y');
2020:
2021: elsif p_attribute_name = 'DISTRIBUTION' then
2022: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_distribution_overide_allowed, 'Y');
2023:
2024: elsif p_attribute_name = 'SERIAL_NUMBER' then
2025: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_serial_num_overide_allowed, 'Y');
2026:
2021: elsif p_attribute_name = 'DISTRIBUTION' then
2022: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_distribution_overide_allowed, 'Y');
2023:
2024: elsif p_attribute_name = 'SERIAL_NUMBER' then
2025: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_serial_num_overide_allowed, 'Y');
2026:
2027: elsif p_attribute_name = 'ASSET_KEY' then
2028: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_asset_key_overide_allowed,'Y');
2029:
2024: elsif p_attribute_name = 'SERIAL_NUMBER' then
2025: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_serial_num_overide_allowed, 'Y');
2026:
2027: elsif p_attribute_name = 'ASSET_KEY' then
2028: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_asset_key_overide_allowed,'Y');
2029:
2030: elsif p_attribute_name = 'LIFE_END_DATE' then
2031: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed, 'Y');
2032: end if;
2027: elsif p_attribute_name = 'ASSET_KEY' then
2028: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_asset_key_overide_allowed,'Y');
2029:
2030: elsif p_attribute_name = 'LIFE_END_DATE' then
2031: x_override_flag := nvl(FA_CUA_ASSET_APIS.g_life_end_dte_overide_allowed, 'Y');
2032: end if;
2033:
2034: return TRUE;
2035: EXCEPTION
2034: return TRUE;
2035: EXCEPTION
2036: when others then
2037: FA_SRVR_MSG.Add_Message(
2038: CALLING_FN => 'FA_CUA_ASSET_APIS.check_override_allowed');
2039: return FALSE;
2040:
2041: END check_override_allowed;
2042:
2040:
2041: END check_override_allowed;
2042:
2043:
2044: END FA_CUA_ASSET_APIS;