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

Description

ApprovalTemplatesService is a business object that manages the Approval of deviations from organization limitations.

This object enables to:

  • Add a new Approval Stage to approval process.
  • Get Approval Stage from approval process.
  • Get a list of Approval Stages from approval process.
  • Remove an Approval Stage from approval process.
  • Update an Approval Stage within approval process.

Source table: OWTM.

Object Model

Remarks

The ApprovalTemplatesService does not trigger the approval process for objects added via the DI API.

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 Templates.

Example

See Also

SAP® B1 DI-API C# definition

public class ApprovalTemplatesServiceClass : IApprovalTemplatesService, ApprovalTemplatesService { public extern ApprovalTemplatesServiceClass(); public virtual extern ApprovalTemplateParams AddApprovalTemplate( ApprovalTemplate pApprovalTemplate); public virtual extern ApprovalTemplate GetApprovalTemplate( ApprovalTemplateParams pIApprovalTemplateParams); public virtual extern ApprovalTemplatesParams GetApprovalTemplateList(); public virtual extern object GetDataInterface( ApprovalTemplatesServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern void RemoveApprovalTemplate( ApprovalTemplateParams pIApprovalTemplateParams); public virtual extern void UpdateApprovalTemplate( ApprovalTemplate pIApprovalTemplate); }

Related information


Approval Templates Params ApprovalTemplatesParams Collection· Table: OWTM
ApprovalTemplatesParams is a Data Collection of ApprovalTemplateParams identification keys. Source table: OWTM.
   Parent: Approval Templates Service ApprovalTemplatesService Service· Table: OWTM

Approval Templates Service Data Interfaces ApprovalTemplatesServiceDataInterfaces Enumeration
ApprovalTemplateUsers data interfaces.
   Parent: Approval Templates Service ApprovalTemplatesService Service· Table: OWTM


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