📚 SAP Business One SDK Help

CountriesService Object
See Also  Members  Example

Description

The CountriesService manages the setting of each country in SAP Business One. For example, country code, country name and address format.

Source table: OCRY.

Object Model







Remarks

To access countries in the application:

Choose Administration > Setup > Business Partners > Countries/Regions.

Example

C#Copy Code
CompanyService cmpService = oCmpy.GetCompanyService(); 
Country cty = (Country)countryService.GetDataInterface(CountriesServiceDataInterfaces.csCountry); 
cty.Code = "XP"; 
cty.Name = "XP Name"; 
cty.ISOAlpha2Code = "XC"; 
cty.ISOAlpha3Code = "XCC"; 
cty.ISONumeric = "002"; 
CountryParams cp = countryService.AddCountry(cty);

See Also