Enterprise Resource Planning Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Edna_Garcia1
Product and Topic Expert
Product and Topic Expert
2,000

Configuring workflows for the first time in SAP S/4HANA Cloud may seem complicated, but it is not.

In this blog, I will show scenario 2 of configuring the workflow to assign the Approver based on the user who creates the JE (Submitter) and Company Code.

The following example was executed in an SAP Internal System. The activation of the Workflow to Verify General Journal Entries is based on the documentation provided by the SAP Help Portal - Example of Adding Custom Fields Link

Use case Example:

Let's assume the requirement is the following:

The Cloud Group has 2 Company Codes (1010 and 1730), 2 General Ledger Accountants (Edna and Josie), and 2 General Ledger Managers (Enrico and Paul).

All the general journal entries submitted by Josie in the company code Paul must be approved at 1730.

Enrico must approve the general journal entries submitted by Edna in company code 1730. However, the postings created in company code 1010 do not need approval. 

Edna_Garcia_0-1721935764018.png

Configuration Process Flow:

The configuration consists of five parts:

    1. Create the ZSUBMITBY Field.
    2. Create Custom Functions.
    3. Define the Approvers groups in Teams and Responsibilities.
    4. Activate the workflow for the Approvers and Submitters.
    5. Activate the workflow for the Non-Approval process.

Step 1: Create a custom field - ZSUBMITBY.

1.1 Create the new custom field.

Open the configuration step 102159 - Define Custom Responsibility Definition in your configuration environment.

  • Click the ‘New Entries’ button to create a new entry
  • Fill in the following fields:
    • Resp. Def. Name: Z_SUBMITBY
    • CDS View: I_BUSINESSUSERBASIC
    • CDS Field: USERID
    • Resp. Def. Name: Z_SubmitBy
    • Resp. Def. Desc: User ID
    • Press Enter
    • Click on the Save button

Edna_Garcia_0-1729703511232.png

Edna_Garcia_1-1729703532662.png

1.2 Assign Custom Responsibility Definition to CDS View

Open the configuration step 102163 - Assign Custom Responsibility Definition to CDS View in your configuration environment.

  • Click the ‘New Entries’ button to create a new entry
  • Fill in the following fields:
    • Customer Responsibility Definition: Z_SUBMITBY
    • CDS VIEW name: C_GLJRNLENTRYTOBEVERIFIED
    • CDS field name: PARKEDBYUSER
    • Press Enter
  • Click on the Save button

Edna_Garcia_2-1729703684702.png

1.3 Assign Custom Responsibility Definitions to Standard Team Category

Open the configuration step 102160 - Assign Custom Responsibility Definitions to Standard Team Category in your configuration environment.

  • Click the ‘New Entries’ button to create a new entry
  • Fill in the following fields:
    • Category: FGJEV (G/L Journal Entry Verification)
    • Customer Responsibility Definition: Z_SUBMITBY
    • Press Enter to populate the Responsibility Definition Description field.
  • Click on the Save button

Edna_Garcia_3-1729703871729.png

Step 2: Create Custom Functions

2.1 Define Functions

Open the configuration step 101065 - Define Functions in your configuration environment.

  • Create the functions to define the tasks that need to be executed for the team members.

Edna_Garcia_5-1729704275195.png

2.2 Define Function Profiles.

Open the configuration step 101065 - Define Functions Profiles in your configuration environment.

  • Map the function to the corresponding Function Profile, linked to the Type field in the Teams and Responsibilities app.

Edna_Garcia_6-1729704438715.png

Step 3: Define the Approvers groups in Teams and Responsibilities.

3.1 Teams and Responsibilities App.

  • Create a Team for every group of approvers.
  • Teams and responsibilities app is used to define who is responsible for workflows and situation handling.
  • The responsibility Definitions are different for each Type of Team.
  • The Owner is responsible for maintaining the team header, responsibility definitions, and team members and their functions.
  • The Team Members are the users who will receive the corresponding workflow (approvers).
  • The Function is a task that a team member can perform as a part of the business process.
  • Example of the Team APPROVER01

Edna_Garcia_7-1729704595117.png

3.1 Teams and Responsibilities App.

  • Example of the Team APPROVER03

Edna_Garcia_8-1729704666643.png

Edna_Garcia_9-1729704687433.png

Step 4: Activate the workflow for the Approvers and Submitters.

4.1 Manage Workflow for Journal Entry Verification in General Ledger App

  • Select and copy the standard “General Journal Entry Verification” workflow.

Edna_Garcia_10-1729704872130.png

  • You only need one workflow for all the Teams using the same function in the Teams and Responsibilities app.
  • In the Start Conditions section, DO NOT add all the company codes to the same field. Use the function “or” to get the correct functionality.

Edna_Garcia_11-1729704897036.png

Edna_Garcia_12-1729704914070.png

  • In the “Verify” step, assign the function in the Assignment field by selecting Assignment By Role.
  • Save the Changes
  • Activate your workflow

Edna_Garcia_13-1729704943346.png

Edna_Garcia_14-1729704958629.png

Step 5: Activate the workflow for the Non-Approval process.

5.1 Manage Workflow for Journal Entry Verification in General Ledger App

  • The following workflow is optional.
  • It is created when you do not need approvers for specific conditions.  For example, a specific Company Code

Edna_Garcia_15-1729705055595.png

Edna_Garcia_16-1729705080137.png

Remember to look at Scenario 1: Workflow to Verify General Journal Entries per Level by Amount Blog for more details about the Roles of the Requester and Processor.

I hope this information is helpful. If it is, please press like to keep publishing more blogs.