biuan SAP® BUSINESS ONE SDK
API States Service

Description

The StatesService service enables you to add, look up and remove states in the states master data table. States are assigned to business partners and other objects as part of the address information.

Each state is associated with a specific country.

To see the list of states, select Administration --> System Initialization --> Company Details --> General tab --> Local Language tab --> State combobox --> Define new

Source table: OCST

Object Model

Example

See Also

SAP® B1 DI-API C# definition

public class StatesServiceClass : IStatesService, StatesService { public extern StatesServiceClass(); public virtual extern StateParams AddState( State pIState); public virtual extern void DeleteState( StateParams pIStateParams); public virtual extern object GetDataInterface( StatesServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern State GetState( StateParams pIStateParams); public virtual extern StatesParams GetStateList(); public virtual extern void UpdateState( State pIState); }

Related information


States Service Data Interfaces StatesServiceDataInterfaces Enumeration
StatesService data interfaces.
   Parent: States Service StatesService Service· Table: OCST

State State Object· Table: OCST
Represents a state that can be included, for example, in an address for a business partner. Source table: OCST All properties are mandatory.
   Parent: States Service StatesService Service· Table: OCST

States Params StatesParams Collection
A collection of StateParams objects.
   Parent: States Service StatesService Service· Table: OCST


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates