DBA Data[Home] [Help]

APPS.XLE_BUSINESSINFO_GRP dependencies on FND_API

Line 1328: x_return_status := FND_API.G_RET_STS_SUCCESS;

1324: l_ccid_le_info XLE_BUSINESSINFO_GRP.ccid_le_Rec_Type;
1325:
1326: BEGIN
1327:
1328: x_return_status := FND_API.G_RET_STS_SUCCESS;
1329: /* Check for mandatory information */
1330:
1331: if (P_operating_unit_ID is null) then
1332: x_msg_data := 'Please provide the Operating Unit Id';

Line 1333: x_return_status := FND_API.G_RET_STS_ERROR;

1329: /* Check for mandatory information */
1330:
1331: if (P_operating_unit_ID is null) then
1332: x_msg_data := 'Please provide the Operating Unit Id';
1333: x_return_status := FND_API.G_RET_STS_ERROR;
1334: return;
1335: end if;
1336:
1337: if (P_REGISTRATION_NUMBER is null AND P_REGISTRATION_CODE is null

Line 1340: x_return_status := FND_API.G_RET_STS_ERROR;

1336:
1337: if (P_REGISTRATION_NUMBER is null AND P_REGISTRATION_CODE is null
1338: AND P_LOCATION_ID is null AND P_CODE_COMBINATION_ID is null) then
1339: x_msg_data := 'Please provide either Registration Code and Number or Location id or Code combination id';
1340: x_return_status := FND_API.G_RET_STS_ERROR;
1341: return;
1342: end if;
1343:
1344: /* Check if Both Registration Code and Registration Number are provided */

Line 1350: x_return_status := FND_API.G_RET_STS_ERROR;

1346: if (P_REGISTRATION_CODE IS NOT NULL AND P_REGISTRATION_NUMBER IS NULL) OR
1347: (P_REGISTRATION_NUMBER IS NOT NULL AND P_REGISTRATION_CODE IS NULL) then
1348:
1349: x_msg_data := 'Registration Code and Registration Number need to be provided';
1350: x_return_status := FND_API.G_RET_STS_ERROR;
1351: return;
1352: End if;
1353:
1354: /* Derive LE from Le-Ledger-OU relationship if the Accounting Environment is Exclusive */

Line 1562: x_return_status := FND_API.G_RET_STS_ERROR ;

1558: x_ptop_le_info.region_3 := l_le_info.region_3 ;
1559: x_ptop_le_info.postal_code := l_le_info.postal_code ;
1560: x_ptop_le_info.country := l_le_info.country ;
1561: else
1562: x_return_status := FND_API.G_RET_STS_ERROR ;
1563: x_msg_data := 'No Legal Entity Found';
1564: l_le_id := null;
1565: end if;
1566: end if;

Line 1569: x_return_status := FND_API.G_RET_STS_ERROR ;

1565: end if;
1566: end if;
1567: EXCEPTION
1568: WHEN OTHERS THEN
1569: x_return_status := FND_API.G_RET_STS_ERROR ;
1570: raise;
1571: -- null;
1572:
1573: END Get_PurchasetoPay_Info;

Line 1626: x_return_status := FND_API.G_RET_STS_ERROR;

1622:
1623: /* Parameter Operating Unit Id is mandatory */
1624: IF P_operating_unit_id IS null then
1625: x_msg_data := 'Please pass a value for Operating Unit ID.';
1626: x_return_status := FND_API.G_RET_STS_ERROR;
1627: x_otoc_Le_info.legal_entity_id := -1;
1628: return;
1629: end if;
1630:

Line 1637: x_return_status := FND_API.G_RET_STS_ERROR;

1633: IF P_customer_type = 'SOLD_TO' or P_customer_type = 'BILL_TO' then
1634: IF P_customer_id IS NULL then
1635: x_msg_data := 'Please pass a value for Customer Id as
1636: Customer Type has been specified.';
1637: x_return_status := FND_API.G_RET_STS_ERROR;
1638: x_otoc_Le_info.legal_entity_id := -1;
1639: return;
1640: End if;
1641: else

Line 1643: x_return_status := FND_API.G_RET_STS_ERROR;

1639: return;
1640: End if;
1641: else
1642: x_msg_data := 'Please pass value SOLD_TO or BILL_TO for Customer Type.';
1643: x_return_status := FND_API.G_RET_STS_ERROR;
1644: x_otoc_Le_info.legal_entity_id := -1;
1645: return;
1646: end if;
1647: End if;

Line 1662: x_return_status := FND_API.G_RET_STS_ERROR ;

1658: /* Next try to get LE id from Default Legal Context */
1659: l_le_id := xle_utilities_grp.GET_DefaultLegalContext_OU(
1660: P_operating_unit_id);
1661: if l_le_id = -1 then
1662: x_return_status := FND_API.G_RET_STS_ERROR ;
1663: x_msg_data := 'No Legal Entity Found';
1664: x_otoc_Le_info.legal_entity_id := -1;
1665: return;
1666: end if;

Line 1671: x_return_status := FND_API.G_RET_STS_SUCCESS;

1667: end if;
1668:
1669: x_otoc_Le_info.legal_entity_id := l_le_id;
1670:
1671: x_return_status := FND_API.G_RET_STS_SUCCESS;
1672: EXCEPTION
1673: WHEN OTHERS THEN
1674: x_return_status := FND_API.G_RET_STS_ERROR ;
1675:

Line 1674: x_return_status := FND_API.G_RET_STS_ERROR ;

1670:
1671: x_return_status := FND_API.G_RET_STS_SUCCESS;
1672: EXCEPTION
1673: WHEN OTHERS THEN
1674: x_return_status := FND_API.G_RET_STS_ERROR ;
1675:
1676: END Get_OrdertoCash_Info ;
1677:
1678: /*============================================+

Line 1761: IF l_return_status = FND_API.G_RET_STS_ERROR OR

1757: -- if any error occurs propagate as unexpected error
1758:
1759: -- Commenting for bug 5159735
1760: /*
1761: IF l_return_status = FND_API.G_RET_STS_ERROR OR
1762: l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
1763: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1764: END IF ;
1765:

Line 1762: l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

1758:
1759: -- Commenting for bug 5159735
1760: /*
1761: IF l_return_status = FND_API.G_RET_STS_ERROR OR
1762: l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
1763: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1764: END IF ;
1765:
1766: */

Line 1763: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

1759: -- Commenting for bug 5159735
1760: /*
1761: IF l_return_status = FND_API.G_RET_STS_ERROR OR
1762: l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
1763: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1764: END IF ;
1765:
1766: */
1767: /* If the otoc_Le_info is returned just get the Legal Entity Id*/

Line 1851: if l_return_status = FND_API.G_RET_STS_ERROR then

1847: P_batch_source_id => l_batch_source_id,
1848: P_operating_unit_id => l_operating_unit_id,
1849: x_otoc_Le_info => l_otoc_le_info);
1850:
1851: if l_return_status = FND_API.G_RET_STS_ERROR then
1852: x_return_status := l_return_status ;
1853: x_msg_data := l_msg_data;
1854: RETURN -1;
1855: end if;

Line 1863: x_return_status := FND_API.G_RET_STS_ERROR ;

1859: if l_otoc_le_info.legal_entity_id IS NOT NULL then
1860: return l_otoc_le_info.legal_entity_id;
1861:
1862: else
1863: x_return_status := FND_API.G_RET_STS_ERROR ;
1864: x_msg_data := 'No Legal Entity Found';
1865: l_le_id := -1;
1866: return -1;
1867: end if;

Line 1871: x_return_status := FND_API.G_RET_STS_ERROR ;

1867: end if;
1868:
1869: EXCEPTION
1870: WHEN OTHERS THEN
1871: x_return_status := FND_API.G_RET_STS_ERROR ;
1872:
1873: END Get_OrdertoCash_Info ;
1874:
1875: END XLE_BUSINESSINFO_GRP;