Example documentationApproval Process Setup BAdI: Examples

 

Electronic Payment Integration (China) allows you to set up a flexible approval process that best meets your business practices. You do this by implementing the Approval Process Setup Business Add-In (BAdI). With this BAdI, you can set up an approval process that has multiple levels and multiple approvers. You can also allow items to be released direct for payment when their amount is under a certain threshold. To access the BAdI and its technical documentation, choose, in Customizing for Financial Accounting (New), under Start of the navigation path Accounts Receivable and Accounts Payable Next navigation step Business Transactions Next navigation step Outgoing Payments Next navigation step Country Specifics Next navigation step China Next navigation step Electronic Payment Integration Next navigation step Business Add-Ins (BAdIs) End of the navigation path.

To assist you in creating your approval process, the Approval Process Setup BAdI is delivered with two example implementations:

  • CL_EPIC_APPR_CTRL_EXAMPLE_01 – Four-Eye Principle

  • CL_EPIC_APPR_CTRL_EXAMPLE_02 – Three-Tier Approach

The following documentation explains two possible ways that a company could implement their approval process based on the example BAdI implementations.

Note Note

Any resemblance in this documentation to real enterprises, people, or occurrences is purely coincidental.

End of the note.
Four-Eye Principle

The China Everbright Manufacturing Company (CEMC) first considers using the CL_EPIC_APPR_CTRL_EXAMPLE_01 – Four-Eye Principle example BAdI implementation as a starting point for creating their approval process. The following employees at CEMC would be involved in the approval process:

Employee’s Name

Employee’s Job

Employee’s Role in Approval Process

Mr. Feng Li

An accountant

Payment proposal runs, Payment responsible

Mr. Ting Wang

Chief accountant

Possible approver

Ms. Xiaoyan Ke

Accounting Manager

Possible approver

Mr. Chi Song

Financial Director

Possible approver

In this implementation, items from the payment proposal that have an amount under 100,000 CNY would be released for payment without approval. Items whose amount is above 100,000 CNY must be approved by two of the following users: WANG, KE, SONG. The item must be approved by two approvers. The following figure shows how two items would be processed using such an approval process and is explained in more detail in the following documentation:

After a payment proposal, Mr. Li in the accounting department submits 2 items for approval:

  • Item A, amount: 50,000 CNY

  • Item B, amount 500,000 CNY

The system calls theApproval Process Setup BAdI to determine if the items have to go through the approval process. Since the amount of Item A is under the threshold (100,000 CNY), the system sets its status to Released for Payment. Item B needs further approval; the approval level is set to 0. The method then determines which users are possible approvers. The system displays the item on the Approve Items tab page for WANG, KE, SONG, who are all possible approvers. The item still has no one assigned approver.

Mr. Wang is the first to check the new items and takes over Item B. He approves the item. The system changes the approval level for this item to 1, and the BAdI method checks who are possible approvers. Mr. Wang has approved the item, so he is no longer in the list. The system displays the time on the Approve Items tab page for Ms. Ke and Mr. Song.

Ms. Ke is the first of the two to check the new items and takes over Item B. She approves the item. The system changes the approval level for this item to 2. Based on the approval level, the system now sets the status of Item B to Released for Payment.

Three-Tier Approach

The other alternative approval process that the China Everbright Manufacturing Company (CEMC) considers uses the CL_EPIC_APPR_CTRL_EXAMPLE_02 – Three-Tier Approach example BAdI implementation. In this approval process, items whose amount exceeds a certain threshold amount have to be approved by three different approvers. Depending on the amount, an item must be approved by two approvers on the same tier (that is, level of approval authorization) and then an approver on a higher tier.

The following documentation explains a sample approval process that is based on the example BAdI implementation.

The following employees are involved in this approval process:

Employee’s Name

Employee’s Job

Employee’s Role in Approval Process

Mr. Feng Li

An accountant

Payment proposal runs, Payment responsible

Ms. Chunyan Bin

Senior accountant

Possible approver on Tier 2

Mr. Ting Wang

Chief accountant

Possible approver on Tier 2

Ms. Xiaoyan Ke

Accounting Manager

Possible approver on Tier 3

Mr. Chi Song

Financial Director

Possible approver on Tier 3

The following figure also shows how an item would be sent for approval:

Items from the payment proposal that have the following amounts are processed in the following way:

  • Items under 100,000 CNY can be released for payment without approval.

  • Items whose amount is 100,000 CNY or more but below 500,000 CNY must be approved by two approvers on Tier 1 and then one approver on Tier 2.

  • Items whose amount is 500,000 CNY or more must be approved by two approvers on Tier 2 and one approver on Tier 3.

After a payment proposal, Mr. Li in the accounting department submits one item for approval whose amount is 850,000 CNY.

The system calls the Approval Process Setup BAdI to determine if the items have to go through the approval process. Since the amount of the item is more than 500,000 CNY, the system determines that it must be approved by users on Tier 2 and Tier 3, for a total of 3 approvals. The approval level is set to 0. The method then determines which users are possible approvers. The system displays the item on the Approve Items tab page for BIN and WANG, who are both possible approvers. The item still has no one assigned approver.

The following figure shows how the process continues on this tier and then how the item moves to the next tier:

Ms. Bin is the first to check the new items and takes over this item. She approves the item. The system changes the approval level for this item to 1 and method checks who are possible approvers. Ms. Bin has approved the item, so she is no longer in the list.

Since Mr. Wang is the only approver available, the system assigns the item to him and it appears on his view of the Approve Items tab page. He approves the item. The system changes the approval level for this item to 2.

The BAdI method then determines which users are possible approvers on the next tier. The system displays the item on the Approve Items tab page for KE and SONG, who are both possible approvers. The item still has no one assigned approver. Mr. Song is the first to check the new items and takes over this item. He approves the item. The system changes the approval level for this item to 3. Based on the approval level, the system now sets the status of the item to Released for Payment.