Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 34

Customization Tools:

Approval Processes
SAP Business One
Version 10.0

PUBLIC
Objectives

Objective:
 Describe the business process flow when an
approval process is used
 Set up an approval process in SAP Business One
 Explain the status of a document during an approval
process and how updates to documents pending
approval are managed
 Discuss the special requirements for writing a query
for an approval procedure

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 2


Business Scenario

 In order to control costs, the company now requires all internal purchases
and expenses over a certain limit to be approved by a manager before they
can be processed.
 Solution: Define an approval procedure. If the value of the document
exceeds the limit, the approval procedure will automatically block the
document until it is approved or changed.

Purchase Goods Outgoing


A\P Invoice Payment
Order Receipt PO

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 3


Basic Approval Workflow
Originator

Yes
Approval
needed? raft
D
Approval Process
No
Add
d t
Ad men No
ocu Approved?
D
Access and
Yes Modify Draft

Yes
New
Approval
Approval
needed?
Process
No
v ed
o
pr ent d t
[Approved] p
d A cum Ad men
d
A Do ocu
D
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 4
Setting Up an Approval Process

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 5


Activation

General Settings
 Approval process functionality is enabled in the General Settings
 Once enabled, you cannot disable the functionality if there are active approval templates
 Checkbox to enable approval process for DI API
 Additional checkboxes permit updating generated documents and/or documents still awaiting approval
 A user defined as an originator, cannot disable approval procedure process

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 6


Approval Templates and Stages
Approval Stages Approval Template
To set up an approval process you define approval
stages and approval templates:

 Approval stage is a list of named authorizers who


can approve a document at the same level First level
approvers Originators
 Approval template combines the originators, the
documents, the criteria for approval, and one or
more approval stages Documents
Approval
 The stages are separate from the approval Stages
template and you can reuse approval stages in Second
other templates
level Criteria
approvers (Terms)
 You can define multiple approval templates for
different sets of users and/or documents, and with
different criteria.

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 7


Approval Process Authorizations

Permission to define approval


process stages and templates is
set by General Authorizations

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8


Setup – Approval Stages
Administration > System Initialization >Approval Process >
Approval Stages

 All approvers must first be defined as users in SAP Business One


 Include more than one user in a stage to allow for staff absences.
Specify a minimum number of approvals for the stage
 Stages can be combined in any order to create a multi-stage
approval procedure. When you combine stages, make sure the
same user is not in multiple stages

If you define more than one approver


for a stage, you can set the minimum
number of required approvals or
required rejections before the approval
process moves to the next stage

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9


Setup - Approval Templates
Administration > System Initialization >Approval Process > Approval Templates

Originators tab
 Specify the users who are subject to
approval when they create certain
documents

 Only users specified here are subject to


approval process

 User cannot modify approval template if


selected as an originator in the template

 The approval process also applies to an


originator who runs the Document
Generation Wizard

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 10


Setup - Approval Templates

Documents tab
 Select the documents that require approval
(when created by the originators)

 The approval will apply to every instance of


the document if it meets the approval terms:
 Sales and purchasing document types
can be selected in one template;
however you will need to create separate
approval templates if the terms or
approvers are different
 Cannot combine marketing documents
with inventory, payment, internal
requisition, blanket agreement or
inventory counting transaction document
types in same template

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 11


Setup - Approval Templates

Stages tab

 Include the predefined approval stages

 The sequence of the stages in the template


is the order for a multi-level approval
process

 You can rearrange the sequence by clicking


the row and using the arrows

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 12


Approval Templates – Terms Tab

Approval criteria:

 Always (no terms)

 Predefined terms (vary according to selected


document types)

 User queries

Note: Predefined terms operate only on the header


level of a document, not on the row level. For
example: discount and total appear on each row as
well as on the document header, but the approval
template only considers the header fields

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 13


Using Predefined Terms

 Select an operator (greater than, less than, equal, etc.) and enter value
 Select range (In range, Not in range) and enter range from low to high, separate by hyphen

Predefined Ratio Value


Term
 Multiple predefined terms
Total 500
Greater than evaluated using “or” logic
Less than
Quantity Equal 5-200  Approval process will
Doesthan
Greater not equal
apply if just one of the
LessInthan
range
Not in range
Equal predefined terms is met.
Does. . not
. equal
In range
Not in range
...

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 14


Activating an Approval Template

 The Active checkbox is set by default:


- Deselect if you want to set up the template
now and activate later
- You can also deselect to deactivate an
existing approval process (make sure all
documents are approved)

 The Active when Updating Documents Not


Generated by Approval Process checkbox is also set
by default:
- It covers the condition whereby an originator
updates a document that did not originally go
through an approval process
- If the checkbox is selected, a new draft is
created, and an approval process will be
triggered if the update causes the document to
now meet approval criteria

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 15


Managing the Approval Process

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 16


Document Status During Approval Process

Request for
Status[Draft Pending] Approving Document
Generation

Status [Draft Approved]


Status [Approved]
Originator adds Document
draft document to Generation
system Approved
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 17
Monitoring an Approval Process
Originator view

Approver view

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 18


Canceling an Approval Process

An approval process can be


cancelled using the Approval
Status Report.

If needed, it can be restored using


the right click option, or via the
Data menu
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 19
Summary of Document Statuses
Document Status Comment
Draft [Pending]  Document is in approval process

Draft [Approved]  Document was approved but has not yet been saved by
originator
Draft [Rejected]  Document was rejected by approvers. It can be updated
by the originator. If it still meets approval criteria another
approval process will be launched.
Draft [Canceled]  Document in approval process was canceled by originator
or approver. The draft cannot be added or updated.
[Approved]  Document was approved and saved by originator. It
cannot be updated by originator unless checkbox set in
General Settings
Draft for Document Update [Pending]  Originator updates a document that was not previously
approved, and now meets criteria for an approval process
Draft for Document Update [Approved]  Draft for Document Update was approved and can be
added.
Draft for Document Update [Cancelled] • Draft for Document Update was cancelled
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 20
Document Numbering and Draft Keys

 A draft document number


is assigned to a document
when it is saved as a draft, Draft number 727
pending approval
 Since the originator can
continue to work on other
documents, the actual
document number can
change when the
document is finally added
to the system after
approval

Actual number 728

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 21


Document Updates During Approval Process

A document in the approval process can be accessed from the Document Drafts Report
 Safeguards are in place to prevent an originator/ authorizer from updating a document with [Draft Pending],
[Draft Approved] or [Approved] status
 Checkboxes in the General Settings control updates to documents with these statuses:
 Updating an approved document is only possible if the checkbox Enable Updating the Document Generated/Updated
by Approval Process checkbox is set
 Updating a [Draft Pending] or [Draft Approved] document by the originator is only possible if the checkbox Enable
Originator to Update the Document Draft in Pending/Approved Status checkbox is set
 Updating a [Draft Pending] document by the authorizer is only possible if the check box Enable Authorizer to Update
Document Draft in Pending Status

General Settings

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 22


Multiple Approvers in a Stage

Time
Example: minimum number of approvers
is 1
Jane Approve 
John Reject 

Result: Since only one approval is required for the


stage, the rejection is ignored and the document is
approved and can be added to the system

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 23


Multiple Approvers in a Stage (Cont.)

Example: minimum number of approvers Time


is 1
Jane Reject 
John Approve 

Result: document held pending until another


approver responds

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 24


Print Preferences

 Print preferences can be set on a per document basis for a document that is in the approval process
 Can prevent document being exported, printed or faxed

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 25


Using Queries in Approval Processes

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 26


Using Queries as Terms

Terms Tab:
 Saved user queries can be added to approval
templates
 Queries can be used instead of, or together
with predefined terms
 Allows you to develop customized approval
scenarios

Example:
We want an approval process for item type purchase
orders over 500 AND service type purchase orders over
250.

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 27


Combining Predefined Terms and Queries

Terms Tab
 When predefined terms are combined with a
query, the approval process will start if just
one of the conditions is met – evaluated using
OR logic

In the example, an approval process will start if


 Document puts budget over 500
Or
 If document meets the conditions of the query

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 28


Query Syntax for Approval Procedures

A query used in an approval process has special requirements: Active Window


 It references the current document in active window
 To refer to a field in the active window, you must include a $ sign
in front of the field with square brackets
 Query must use SELECT DISTINCT ‘True’
 Query cannot reference row level fields

SELECT distinct 'true' from OPOR T0 where


Example: Approval for purchase ($[OPOR."DocType"] = 'S' and CAST($[OPOR."DocTotal"] as
orders with: DECIMAL) > 250)
 Service type AND total > 250 OR OR
 Item type AND total > 500
($[OPOR."DocType"] = 'I' and CAST($[OPOR."DocTotal"] as
DECIMAL) > 500)

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 29


Queries for Multiple Document Types

If multiple document types are selected in the


approval template, the query must be able to
work with the multiple similar document types

Use the item number and column syntax


instead of the table and field name syntax:

$[$Item.Column.0]
$[$Item.Column.Number]
$[$Item.Column.Currency]
$[$Item.Column.Date]

In this syntax a second $ sign is added before


the item number. The column number is
always 0 since the query can only reference
header fields

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 30


Active Window Query Examples

View > System information


Item and Table and
Column Field Name Ctrl +Shift+I
Number

[... Item= ## Column= ## …. Table Name, Field Name] Row=1 Status


StatusBar
Bar

Table and field syntax Item number and column syntax

$[Table Name. Field Name] $[$ Item Number. Column Number.0]


.Number]
SELECT distinct ‘true’ FROM OPOR T0 SELECT distinct ‘true’ FROM DUMMY .Currency]
WHERE WHERE .Date]
$[OPOR."DocType"] = ‘S’ and $[$3.0.0] = ‘S’ and
CAST($[OPOR."DocTotal"] as DECIMAL) > $[$29.0.number] > 250
250

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 31


Testing a Query for Approval Procedures
Active window
Tools > Queries > User Queries > Category Name >
Query

To test query, keep document


in the active window and run
the query from the Tools menu

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 32


Key Points

Key points from this topic:


 Approval processes can be established for sales, purchasing, inventory and payment documents.
 To set up an approval process, enable the functionality, then define approval stages and approval
templates. All originators and approvers must be SAP Business One users.
 To create a multi-level approval procedure, combine multiple predefined stages in the approval
template.
 In the approval template, you can select one or more predefined conditions, and/or select a saved user
query.
 Safeguards are in place to prevent documents from being updated after approval or while pending
approval. Checkboxes are available to permit these actions. You can also trigger approval processing
when an originator updates a document that was previously added without need for approval.
 An approval process can be cancelled by the originator or approver.
 Queries used in approval procedures reference the current document in the active window and must
select a true response. To use the same query with multiple document types of the same structure, use
the index and column syntax.

© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 33


Follow us

www.sap.com/contactsap

© 2020 SAP SE or an SAP affiliate company. All rights reserved.


No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of
SAP SE or an SAP affiliate company.
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its
distributors contain proprietary software components of other software vendors. National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or
warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials.
The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty
statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional
warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or
any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation,
and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platforms, directions, and
functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason
without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or
functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ
materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they
should not be relied upon in making purchasing decisions.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names
mentioned are the trademarks of their respective companies.
See www.sap.com/copyright for additional trademark information and notices.

You might also like