Enterprise Resource Planning Blog Posts by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
LilingJia
Product and Topic Expert
Product and Topic Expert
16,635

Nowadays, more and more customers get benefit from the S/4 HANA flexible workflow. Specially for the General Journal Entries Workflow, user could set up dynamic workflow(s). For example, set up multi-level workflow based on certain amount or different cost centers. 
If you also want to take advantage, you just need to do 2-step settings, so that system will learn,‘

  • When to trigger workflow - Using Fiori App 'Manage Workflows for General Journal Entry Verification'
  • Who to approve - Using Fiori app 'Manage Teams and Responsibilities (General Journal Entry Verification)'

In SAP Help Portal - Verify General Journal Entries,there is complete explanation about ‘Enabling and Extending Workflows’. It is strongly recommended that you go through all the example settings mentioned above, better to play around in some test system. Practice makes perfect!

In this blog, I would like to show you how to enhance the 'Who to approve' part by illustration one typical use case - set up workflow approve based on submitter

What it looks like?

  1. Step1: Logon with GL_ACCOUNTANT role and open Fiori APP ‘Manage Teams and Responsibilities (General Journal Entries Verification)
  2. Step2: Create a new team with Type FI General Journal Entry Verification Default Team (FGLVG) for General Journal Entry workflow
  3. Step3: Then you could see the custom responsibility definition is also show in the section. Now you could set a value for the submit by and define a processor for this person.

How to? ( Configuration)

Step1 - Open Configuration Item Define Customer Responsibility Definitions’ (SSCUI ID 102159) 

  • option 1: customer with 2 System landscape 
  1. Select ‘Manage Your solution’ app, in order to navigate to the Configuration screen.  Within this app, Click the task ‘Configure your solution’ which will give you the possibility to maintain certain processes.
  2. Select configuration item ‘Responsibility definition’. The application Area is Application Platform and Infrastructure and the sub application area is Responsibility Management
  3. Choose configuration step ‘Define Customer Responsibility Definitions’ (SSCUI ID 102159) 
  • Option 2:  customer with 3-system landscape

Login in CBC system, Configure Your Business Processes ->  General Settings -> Further Settings Responsibility Management  -> Responsibility Management -> Define Custom Responsibility Definitions (102159)

cbc.png

Step 2: Create a new 'Customer Responsibility Definition' with an existing CDS field/view

2.1 Within this SSCUI, first click the ‘New entries’ button to create a new entry
2.2 Then input the resp. def. name as you need. for example, Z_SUBMITBY
2.3 Select CDS view 'I_BusinessUserVH ’, CDS field ‘USERID’.

2.4 Input the resp. def. ext. name as you need. for example, Z_SUBMITBY
2.5 Save and Exit

Spoiler

Customer’s admin must add the authorization for the following authorization objects (as can be seen in the DCL of I_BusinessUserVH) to the user (i.e. Business Process Specialist who wants to maintain teams) to search for Business Users.

    1. B_BUPA_GRP: Business Partner: Authorization Groups (preferably with ACTVT = F4)
    2. B_BUPA_RLT: Business Partner: BP Roles  (preferably with ACTVT = F4)
    3. B_BUP_DCPD  : Business Partner Processing 
    4. B_BUP_PCPT : Business Partner: Purpose Completed

configuration.png
Step3: Back to worklist and Choose configuration item Responsibility definition’. Select configure step 'Assign Custom Responsibility Definition to CDS View’ (SSCUI ID 102163)

  1. Within this SSCUI, first click the ‘New entries’ button to create a new entry
  2. Then input the newly created Customer Responsibility Definition, the one you created in step2
  3. Select the CDS VIEW name ‘C_GLJRNLENTRYTOBEVERIFIED and input the CDS field name 'PARKEDBYUSER'. (for General Journal Entry Workflow )

Save and Exit.
Step4:  Select configure ‘Assign Custom Responsibility Definitions to Standard Team Category (SSCUI ID 102160)

  1.  Within this SSCUI, first click the ‘New entries’ button to create a new entry
  2. Select standard team category ‘FGJEV (G/L Journal Entry Verification)’
  3. Then input the newly created Customer Responsibility Definition, the one you created in step4.
  4. Save and Exit

Example - User Case

Different processors are needed in the following cases:

  • Manager X’s approval is needed when general journal entry is submitted by Employee A or B
  • Manager Y’s approval is needed when general journal entry is submitted by Employee C
Submit General Journal Entries byApprove by
Employee A or BManager X
Employee CManager Y

Settings in Managing Teams and Responsibilities
You need to create two team entries in the app for Manager X and Manager Y, and configure the settings as below:

 Team Entry 1Team Entry 2
Responsibility DefinitionsUser Name = Employee A, BUser Name = Employee C
Team MembersBusiness partner = Manager XBusiness partner = Manager Y
 Function = Group 1 for Verifying G/L Journal EntriesFunction = Group 1 for Verifying G/L Journal Entries


So far, you've set up different approvals based on submitters. (known issue: the description is always blank )

If you would like to extend more other dimensions to extend the 'Who to approve' part, you could just change corresponding fields in Configuration step 3 and 4. After that, you will could realize a more suitable approval.

Spoiler
Important Note:
As guided by SAP product engineering team, using of code list / customizing to define the custom responsibility definitions is more recommended. This typically don’t use DCLs and have less number of entries in the F4 resulting in good performance and user experience. 

Due to low performance and user experience, SAP discourages use of master data / transactional data to define the custom responsibility definitions. 
If customer is accept above issueappropriate authorization (preferably with ACTVT = F4) corresponding to the DCL of the CDS for the custom responsibility definition must been configured. 

Hope you found this blog useful and feel free to share with anyone else who might could benefit from it. 

In case of any doubts about this blog, please leave comments down below. 

36 Comments
Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert

jessica.jia : Great blog, I know few customers who have been looking for this functionality, thanks for sharing.


rpmuller riwamouawad : Please have a look, may be of interest to you guys!

riwamouawad
Advisor
Advisor
0 Kudos

jessica.jia Great blog - thank you so much for sharing. Many customers will find this very helpful.


sandeep.kumar - indeed very interesting - thank you for pointing this out.

former_member95896
Active Contributor

sandeep.kumar Thanks for the heads up I'll definitely dive into it more as this was a key stumbling point for us in getting to sox controls.

Ana_Moreira
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you so much for the blog! You have no idea how useful.

abinash_routray
Product and Topic Expert
Product and Topic Expert

Liling J Thank you so much for the blog to explain about the custom responsibility definitions in Responsibility Management and how it extends the standard workflow agent determination without any modification to existing code.



‎@All: You can know more about Responsibility Management via https://help.sap.com/viewer/8308e6d301d54584a33cd04a9861bc52/1909.000/en-US/a4a31dc3e2824cb1afc7be8e... for On-Premise offerings and https://help.sap.com/viewer/a630d57fc5004c6383e7a81efee7a8bb/2002.500/en-US/a4a31dc3e2824cb1afc7be8e... for Cloud offerings.



Although SAP User (e.g. CBXXXXXXXXXX) or Business User or Business Partner or Material Number are technically allowed as custom responsibility definitions, you should consider custom responsibility definitions which are based on characteristics (e.g. Salary Group with values like Average Salary Group, High Salary Group or Material Type with values like Perishable goods and Non-perishable goods) which are non-personal and which have same value in Quality and Production. The advantage of that approach is that even if Person A is replaced by Person B in an organization/department or Material 123 is replaced by Material 456, the team definition doesn't need to change. Using in-app extensibility and custom logic, such characteristics can be maintained and even populated automatically from other data like salary of a person.

OwenLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for sharing. Useful and detailed.

former_member132345
Contributor
0 Kudos

Thank you for this content jessica.jia.


Very detailed and accurate.



Well done 😄

Rachel1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for sharing this Liling, really appreciate it~

Shakeel_Ahmed
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for sharing.

former_member131852
Active Participant
0 Kudos

thanks for sharing...should be useful info

Former Member
0 Kudos



Hello Liling,



Thank you for this step by step process.



I have followed the process and created the additional field. I have then created 2 Teams in Manage Teams and responsibilities and have created 2 workflows in Manage Workflows for General Journal Verification Entries.



The issue I am having is that when people submitted journals, all the journals are going to the approver of the workflow that is number 1 in the order of workflows. It is ignoring the Submitted by rule created.



Please Help


LilingJia
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Lorrelle,


In this case, you might want to adjust the order for the workflows, or you could add precondition in the workflow.


hope this could help.


best regards,


liling

Former Member
0 Kudos

Hi Liling,



I have tried adjusting the order of the workflows, however it just looks at the first workflow rule and ignores the others.

0 Kudos

jessica.jia Are you able to advise on the workflow order setup?

LilingJia
Product and Topic Expert
Product and Topic Expert
0 Kudos

tapillay16 then would you please check the precondition of the first workflow rule and the others? if it is unlimited, then it will fall into that workflow.

0 Kudos

On the pre-condition its setup the same on both at company code level and there is only one company code.

0 Kudos

Please refer to the attached file.

Vijayendra
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for this blog!

LilingJia
Product and Topic Expert
Product and Topic Expert
0 Kudos

tapillay16 thanks for the screen shot. then you could need to check what is the company code you are using. if you are using this mentioned company code, by design it will fall into this workflow. unless you make additional restriction to make it not match.

0 Kudos

Thanks Liling!

Bhawesh
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for this blog.

Former Member
0 Kudos

Hi ,



Version 2005 .




After implementing above solution , we were trying to assign users in responsibility definition (Z_SUBMITBY)in teams and responsibility app . But user list is empty . I double checked in system as there quite number of users who has GL_Accountant role . Did any one faced similar issue ?





Appreciate your help .




LilingJia
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anand,



thank you so trying this solution.



1. 'users' here are those 'submitter'. which means, only those users who have submitted a journal entry would be listed in the value list. thus, at the begining, the value list is empty.



2. don't worry. at same time system allow you to input the users who has gl_accountant role.



hope this expains.


best regards,


liling

0 Kudos

HI Anand,



We also faced a similar issue - so the list will not show any names when trying to search for a user, unless they have submitted a journal via the verify app. You can also enter their "CB - user ID" in the custom field added and that should work.



Hope this is useful.



Thanks.

TakeZhou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anand,



1. Usually, the search help of the new created custom responsibility definitions will take long time to get result for the first time. Please wait few minutes.


2. Also you can directly input the correct user ID( CBXXXXXXXX) without using search help. It also works.



Best regards,


Take

TakeZhou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anand,



SSCUI 102159 Define Customer Responsibility Definition’ (Blog Step 4)


In this SSCUI , you need to define a new responsibility definition name which should start with Z. Also, you need to maintain a CDS view and one field that belongs to this CDS view. This CDS view that maintained here will be used as search help of the newly created responsibility definitions.


Actually it is not a good solution that uses CDS view C_GLJRNLENTRYTOBEVERIFIED here. It will cause the issue that pointed out by tpillay -->User can be selected only after he/she submitted JE by verify app.


Please try to use view I_BusinessUser and field USERID.



Best regards,


Take

Alice_Ying
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anand, Submitted By is a custom field that needs extra configuration. For information about how to, please look at the topic on help portal: https://help.sap.com/viewer/0fa84c9d9c634132b7c4abb9ffdd8f06/latest/en-US/9cd674525d2b4a07ba5c577522...

dalmada915
Discoverer
0 Kudos
Liling, hi, on the last step when I try to add the custom responsibility definition to the standard team ccategory I get the following error:

 

Custom resp. def. mapping for the FGJEV team category is not supported


Message no. RSM_TEAM039

 

Thanks

Daniel

 
LilingJia
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi dalmada915

I just tested the steps in CE2102 system and it works well from my side.

kindly follow the same steps to check again. This message should not appear.

thanks,

liling
dalmada915
Discoverer
0 Kudos
I don't see how repeating the steps would make the error message go away. It's still there.Thanks Liling.
0 Kudos

Hello Jia,

Do you know the steps to configure the agent determination for 'Teams & Responsibility' Application for customized flexible workflow created without taking reference of any other standard workflow in S/4 HANA 1909 On premise version?

 

LilingJia
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi gnanasekaranbalaji ,

As you know, the S4HANA OP version enables more flexibility. Here is what i know.

Geneally speaking, you could check this document for 'Definition of an Agent Determination Rule' and the relevant document for SAP Business workflow.

https://help.sap.com/viewer/a602ff71a47c441bb3000504ec938fea/201909.004/en-US/4eebac630d3e57e0e10000...

As for agent determination, there are  a few scenario based BAdIs. for example, purchase order workflow scenario.

https://blogs.sap.com/2020/05/19/s-4-purchase-order-flexible-workflow-agent-determination-by-badi/

https://help.sap.com/viewer/af9ef57f504840d2b81be8667206d485/1909.002/en-US/fb148364c6ee49758df5b767...

hope this helps.

best regards,

liling
0 Kudos

Thank you for the response Jia. I might not have been clear in my earlier question. Let me elaborate it further.


For example, Consider sales order flexible workflow WS02000006. When you configure this workflow using 'Manage sales order workflow' application, you get an option to add multiple steps to the workflow and to define the recipients based on roles or users. When you select the roles option, you get certain set of roles such as workflow initiator, manage of workflow initiator etc. If we want to have additional roles in the recipient section of the workflow step, we can configure the functions in 'Teams & Responsibility' Application and then can utilize those functions as roles in recipient section of workflow steps in 'Manage sales order workflow' application.


Now, when I define the custom flexible workflow in the system, I can always define the recipients based on traditional agent determination approaches such as defining a custom agent determination rule, security roles, HR job positions etc. However, if I want to define the recipients based on functions(approval-level 1 in below screenshot ) in 'Teams & Responsibilities' application, then how can I add them in 'Manage Workflow' application for customized flexible workflow.


 

 
0 Kudos
Hi jessica.jia ,

 

Thank you for the wonderful share. I tried the same for sales order workflow, I was not able to get the standard CDS view hence created the custom one. But I am getting the following error:


Can you please help with this?

 

Best Regards,

Sanket

 
KM2020
Newcomer
0 Kudos

Hello Liling,

thank you for sharing information!

this definitely address one of the requirements to have specific approver depending on who submitted the entry. However, other requirements is having 2-level workflow and 3-level workflow depending on who submitted the entry and thresholds. And for each 2-level and 3-level workflow there are 2 workflows with the corresponding conditions, one workflow contains condition that has specific document type and company code and the other workflow contains condition with only company code. 

to give you an example, user A submits an entry with document type and it is expected to go through only 2-level workflow created which is assigned as order number 2 but since the same document type is also defined in a 3-level workflow created where the order number is 1 the workflow that is triggered is the 3-level workflow which makes it incorrect when user A submitted the entry. And if I make the 2-level workflow order number be 1, it will also be incorrect if another user submits an entry with the same document type where it is expected to go through 3-level workflow.

is there any other way we can trigger the correct workflow based on these conditions?

thank you so much for your help!

LucasMorris
Newcomer
0 Kudos

Hi All 

Wanting some advice if anyone has set up the custom field for GL account? Based on the SAP help portal artical they mention setting up GL account as a custom field. 

https://help.sap.com/docs/SAP_S4HANA_CLOUD/0fa84c9d9c634132b7c4abb9ffdd8f06/cfa19b88659e4a50a913eb8b...

Having followed the guidence, on step 3, 'Assign Custom Responsibility Definition to CDS View’, what is the CDS view that you need to extend the field too? The CDS mentioned in the blog, C_GLJRNLENTRYTOBEVERIFIED, does not have GL Account. I have tried, C_GLJRNLENTRYITEMTOBEVERIFIED which has GL account by standard, however the assignment in the team set up does not appear to trigger the approver, ignores the GL account assignment in the team set up. 

I have set up the 'parkedby' user with no issue, using CDS view C_GLJRNLENTRYTOBEVERIFIED, however not having same success for GL account. 

Any advice much appreciated.