582: );
583: else
584: l_application_id := p_application_id;
585: select userenv('LANG') into l_nls_language 586: from dual; 587: end if;
588:
589: -- If API call returns with an error status...
590: if (l_return_status = FND_API.G_RET_STS_UNEXP_ERROR) or