658: );
659: else
660: l_application_id := p_application_id;
661: select userenv('LANG') into l_nls_language 662: from dual; 663: end if;
664:
665: -- If API call returns with an error status...
666: if (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) or