409:
410: -- Call eTax API to delete corrsponding tax distributions
411: ZX_API_PUB.delete_tax_distributions(
412: p_api_version => 1.0,
413: p_init_msg_list => FND_API.G_TRUE,
414: p_commit => FND_API.G_FALSE,
415: p_validation_level => FND_API.G_VALID_LEVEL_FULL,
416: x_return_status => l_return_status,
417: x_msg_count => l_msg_count,
410: -- Call eTax API to delete corrsponding tax distributions
411: ZX_API_PUB.delete_tax_distributions(
412: p_api_version => 1.0,
413: p_init_msg_list => FND_API.G_TRUE,
414: p_commit => FND_API.G_FALSE,
415: p_validation_level => FND_API.G_VALID_LEVEL_FULL,
416: x_return_status => l_return_status,
417: x_msg_count => l_msg_count,
418: x_msg_data => l_msg_data,
411: ZX_API_PUB.delete_tax_distributions(
412: p_api_version => 1.0,
413: p_init_msg_list => FND_API.G_TRUE,
414: p_commit => FND_API.G_FALSE,
415: p_validation_level => FND_API.G_VALID_LEVEL_FULL,
416: x_return_status => l_return_status,
417: x_msg_count => l_msg_count,
418: x_msg_data => l_msg_data,
419: p_transaction_line_rec => l_transaction_line_rec_type
417: x_msg_count => l_msg_count,
418: x_msg_data => l_msg_data,
419: p_transaction_line_rec => l_transaction_line_rec_type
420: );
421: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
422: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
423: END IF;
424: ELSE -- there are sibling distributions
425:
418: x_msg_data => l_msg_data,
419: p_transaction_line_rec => l_transaction_line_rec_type
420: );
421: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
422: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
423: END IF;
424: ELSE -- there are sibling distributions
425:
426: -- Mark parent shipment as DIST_DELETE so that its tax distributions
435: --
436:
437:
438: EXCEPTION
439: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
440: -- Bug 3529594: vinokris
441: -- Had to remove the sql_error procedure, since
442: -- that was looking for a sql error number.
443: PO_MESSAGE_S.app_error(