﻿
// read customer address
Call "/guixt/select" cache="session" in.table="KNA1" in.fields="NAME1,ORT01,LAND1" in.condition="KUNNR = '&V[zcso_kunnr]'" out.found="found" out.v1="zcso_name1"  out.v2="zcso_city" out.v3="zcso_countrycode"    


// found?
if not V[found]
  StatusMessage -remove
  return "E: Customer &V[zcso_kunnr_ext] not found" -statusline
endif


// read country text
Call "/guixt/select" cache="session" in.table="T005T" in.fields="LANDX50" in.condition="SPRAS = '&V[_language]' AND LAND1 = '&V[zcso_countrycode]'"  out.v1="zcso_country" 
