biuan SAP® BUSINESS ONE SDK
DTW Administration / Approval Procedures / Approval Templates
API Approval Stages Service

Description

ApprovalStagesService is a business object that manages the Approval stages Process in SAP Business One environment.

This object enables user to:

  • Add new Approval Stage to approval Process.
  • Get Approval Stage from approval Process.
  • Get a list of Approval Stages from approval Process.
  • Remove Approval Stage from approval Process.
  • Update Approval Stage within approval Process.
  • Get Data interfaces.

Source table: OWST.

Object Model

Remarks

To use the service:

  1. Connect to a valid company.
  2. Call the CompanyService, which is the main DI service that you must call before using any other service.
  3. Call the method GetBusinessService for the required service.
  4. Create an empty data structure related to the required service.
    - or-
    You can create a data structure from an XML file or XML string.
  5. Set the required properties of the specified data structure.
  6. Call the required service method.

To display the form in the application:

Select Administration --> Approval Procedure --> Approval Stages.

Example

See Also

SAP® B1 DI-API C# definition

public class ApprovalStagesServiceClass : IApprovalStagesService, ApprovalStagesService { public extern ApprovalStagesServiceClass(); public virtual extern ApprovalStageParams AddApprovalStage( ApprovalStage pApprovalStage); public virtual extern ApprovalStage GetApprovalStage( ApprovalStageParams pIApprovalStageParams); public virtual extern ApprovalStagesParams GetApprovalStageList(); public virtual extern object GetDataInterface( ApprovalStagesServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern void RemoveApprovalStage( ApprovalStageParams pIApprovalStageParams); public virtual extern void UpdateApprovalStage( ApprovalStage pIApprovalStage); }

Related information


Approval Stages Service Data Interfaces ApprovalStagesServiceDataInterfaces Enumeration
ApprovalStagesService data interfaces.
   Parent: Approval Stages Service ApprovalStagesService Service· Table: OWST

Approval Stages Params ApprovalStagesParams Collection· Table: OWST
ApprovalStagesParams is a Data Collection of ApprovalStageParams identification keys. Source table: OWST.
   Parent: Approval Stages Service ApprovalStagesService Service· Table: OWST

Service Types ServiceTypes Enumeration
DI API services.
   Parent: Company Service CompanyService Service


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