DBA Data[Home] [Help]

APPS.XLE_BUSINESSINFO_GRP dependencies on FND_API

Line 1329: x_return_status := FND_API.G_RET_STS_SUCCESS;

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

Line 1334: x_return_status := FND_API.G_RET_STS_ERROR;

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

Line 1341: x_return_status := FND_API.G_RET_STS_ERROR;

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

Line 1351: x_return_status := FND_API.G_RET_STS_ERROR;

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

Line 1563: x_return_status := FND_API.G_RET_STS_ERROR ;

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

Line 1570: x_return_status := FND_API.G_RET_STS_ERROR ;

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

Line 1627: x_return_status := FND_API.G_RET_STS_ERROR;

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

Line 1638: x_return_status := FND_API.G_RET_STS_ERROR;

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

Line 1644: x_return_status := FND_API.G_RET_STS_ERROR;

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

Line 1664: x_return_status := FND_API.G_RET_STS_ERROR ;

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

Line 1673: x_return_status := FND_API.G_RET_STS_SUCCESS;

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

Line 1676: x_return_status := FND_API.G_RET_STS_ERROR ;

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

Line 1763: IF l_return_status = FND_API.G_RET_STS_ERROR OR

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

Line 1764: l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

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

Line 1765: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

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

Line 1853: if l_return_status = FND_API.G_RET_STS_ERROR then

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

Line 1865: x_return_status := FND_API.G_RET_STS_ERROR ;

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

Line 1873: x_return_status := FND_API.G_RET_STS_ERROR ;

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