605: , x_tokenname3 => NULL
606: , x_tokenname4 => NULL
607: , x_tokenname5 => NULL
608: , x_tokenname6 => NULL
609: , x_tokenvalue1 => PO_GA_PVT.get_org_name(p_org_id => x_organization_id)
610: , x_tokenvalue2 => NULL
611: , x_tokenvalue3 => NULL
612: , x_tokenvalue4 => NULL
613: , x_tokenvalue5 => NULL
1492: , x_tokenname3 => NULL
1493: , x_tokenname4 => NULL
1494: , x_tokenname5 => NULL
1495: , x_tokenname6 => NULL
1496: , x_tokenvalue1 => PO_GA_PVT.get_org_name(p_org_id => x_organization_id)
1497: , x_tokenvalue2 => NULL
1498: , x_tokenvalue3 => NULL
1499: , x_tokenvalue4 => NULL
1500: , x_tokenvalue5 => NULL
1820: l_ga_flag po_headers_all.global_agreement_flag%TYPE := 'N';
1821: BEGIN
1822: --If the Doc is GA then get_vendor_site returns vendor_site_id
1823: --Else returns NULL
1824: x_vendor_site_id := PO_GA_PVT.get_vendor_site_id(p_po_header_id);
1825:
1826: --Either the doc is not GA or the current org is not enabled.
1827: --For both of these cases, select site from the header
1828: IF x_vendor_site_id is NULL then